From 82065a8f6c9a000b04b0a5a729599578df287b74 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Fri, 27 Feb 2026 16:36:00 -0800 Subject: [PATCH 01/33] Improve efficiency in some methods --- packages/pigeon/CHANGELOG.md | 7 + .../pigeon/lib/src/dart/dart_generator.dart | 32 ++- packages/pigeon/lib/src/generator_tools.dart | 2 +- .../lib/src/kotlin/kotlin_generator.dart | 93 +++++- .../pigeon/lib/src/swift/swift_generator.dart | 97 ++++--- .../lib/src/generated/core_tests.gen.dart | 215 +++++++++++++- .../lib/src/generated/enum.gen.dart | 4 +- .../generated/event_channel_tests.gen.dart | 94 ++++-- .../src/generated/flutter_unittests.gen.dart | 16 +- .../lib/src/generated/message.gen.dart | 16 +- .../src/generated/non_null_fields.gen.dart | 17 +- .../lib/src/generated/null_fields.gen.dart | 13 +- .../com/example/test_plugin/CoreTests.gen.kt | 258 ++++++++++++++++- .../test_plugin/EventChannelTests.gen.kt | 159 +++++++++-- .../Sources/test_plugin/CoreTests.gen.swift | 267 +++++++++++++++--- .../test_plugin/EventChannelTests.gen.swift | 161 ++++++++--- packages/pigeon/pubspec.yaml | 2 +- packages/pigeon/test/dart_generator_test.dart | 67 +++++ .../pigeon/test/kotlin_generator_test.dart | 76 +++++ .../pigeon/test/swift_generator_test.dart | 78 +++++ 20 files changed, 1448 insertions(+), 226 deletions(-) diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index 2668bb0a9f7e..2fb0b2e10c2d 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,3 +1,10 @@ +## 26.1.9 + +* [swift] [kotlin] [dart] Optimizes data class equality and hashing. + * Avoids `toList()` and `encode()` calls to reduce object allocations during comparisons. + * Adds `deepEquals` and `deepHash` utilities for robust recursive handling of nested collections and arrays. + * [dart] Fixes `Object.hash` usage for single-field classes. + ## 26.1.8 * Makes some internal class constructors constant. diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index a065f95e0af7..7790fa13b956 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -357,6 +357,9 @@ class DartGenerator extends StructuredGenerator { Class classDefinition, { required String dartPackageName, }) { + final Iterable fields = getFieldsInSerializationOrder( + classDefinition, + ); indent.writeln('@override'); indent.writeln('// ignore: avoid_equals_and_hash_code_on_mutable_classes'); indent.writeScoped('bool operator ==(Object other) {', '}', () { @@ -370,13 +373,36 @@ class DartGenerator extends StructuredGenerator { indent.writeScoped('if (identical(this, other)) {', '}', () { indent.writeln('return true;'); }); - indent.writeln('return _deepEquals(encode(), other.encode());'); + if (fields.isEmpty) { + indent.writeln('return true;'); + } else { + final String comparisons = fields + .map( + (NamedType field) => + '_deepEquals(${field.name}, other.${field.name})', + ) + .join(' && '); + indent.writeln('return $comparisons;'); + } }); + indent.newln(); indent.writeln('@override'); indent.writeln('// ignore: avoid_equals_and_hash_code_on_mutable_classes'); - indent.writeln('int get hashCode => Object.hashAll(_toList())'); - indent.addln(';'); + if (fields.isEmpty) { + indent.writeln('int get hashCode => 0;'); + } else if (fields.length == 1) { + indent.writeln('int get hashCode => ${fields.first.name}.hashCode;'); + } else if (fields.length <= 20) { + final String argString = fields + .map((NamedType field) => field.name) + .join(', '); + indent.writeln('int get hashCode => Object.hash($argString);'); + } else { + indent.writeln( + 'int get hashCode => Object.hashAll([${fields.map((NamedType field) => field.name).join(', ')}]);', + ); + } } @override diff --git a/packages/pigeon/lib/src/generator_tools.dart b/packages/pigeon/lib/src/generator_tools.dart index e639480246b1..d1f962b1f981 100644 --- a/packages/pigeon/lib/src/generator_tools.dart +++ b/packages/pigeon/lib/src/generator_tools.dart @@ -15,7 +15,7 @@ import 'generator.dart'; /// The current version of pigeon. /// /// This must match the version in pubspec.yaml. -const String pigeonVersion = '26.1.8'; +const String pigeonVersion = '26.1.9'; /// Read all the content from [stdin] to a String. String readStdin() { diff --git a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart index 7df50a975990..cf69aaee747a 100644 --- a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart +++ b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart @@ -326,13 +326,43 @@ class KotlinGenerator extends StructuredGenerator { indent.writeScoped('if (this === other) {', '}', () { indent.writeln('return true'); }); - indent.write( - 'return ${_getUtilsClassName(generatorOptions)}.deepEquals(toList(), other.toList())', + final Iterable fields = getFieldsInSerializationOrder( + classDefinition, ); + if (fields.isEmpty) { + indent.writeln('return true'); + } else { + final String utils = _getUtilsClassName(generatorOptions); + final String comparisons = fields + .map( + (NamedType field) => + '$utils.deepEquals(this.${field.name}, other.${field.name})', + ) + .join(' && '); + indent.writeln('return $comparisons'); + } }); indent.newln(); - indent.writeln('override fun hashCode(): Int = toList().hashCode()'); + indent.writeScoped('override fun hashCode(): Int {', '}', () { + final Iterable fields = getFieldsInSerializationOrder( + classDefinition, + ); + if (fields.isEmpty) { + indent.writeln('return 0'); + } else { + final String utils = _getUtilsClassName(generatorOptions); + indent.writeln( + 'var result = $utils.deepHash(this.${fields.first.name})', + ); + for (final NamedType field in fields.skip(1)) { + indent.writeln( + 'result = 31 * result + $utils.deepHash(this.${field.name})', + ); + } + indent.writeln('return result'); + } + }); } void _writeDataClassSignature( @@ -1317,35 +1347,71 @@ if (wrapped == null) { void _writeDeepEquals(InternalKotlinOptions generatorOptions, Indent indent) { indent.format(''' fun deepEquals(a: Any?, b: Any?): Boolean { + if (a === b) { + return true + } if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is IntArray && b is IntArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is LongArray && b is LongArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + return a.contentEquals(b) + } + if (a is FloatArray && b is FloatArray) { + return a.contentEquals(b) } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } + return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } + a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { return a.size == b.size && a.all { - (b as Map).contains(it.key) && - deepEquals(it.value, b[it.key]) + (b as Map).contains(it.key) && + deepEquals(it.value, b[it.key]) } } return a == b } - '''); +'''); + } + + void _writeDeepHash(InternalKotlinOptions generatorOptions, Indent indent) { + indent.format(''' +fun deepHash(value: Any?): Int { + return when (value) { + null -> 0 + is ByteArray -> value.contentHashCode() + is IntArray -> value.contentHashCode() + is LongArray -> value.contentHashCode() + is DoubleArray -> value.contentHashCode() + is FloatArray -> value.contentHashCode() + is Array<*> -> value.contentDeepHashCode() + is List<*> -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is Map<*, *> -> { + var result = 0 + for (entry in value) { + result += (deepHash(entry.key) xor deepHash(entry.value)) + } + result + } + else -> value.hashCode() + } +} +'''); } @override @@ -1368,6 +1434,7 @@ fun deepEquals(a: Any?, b: Any?): Boolean { } if (root.classes.isNotEmpty) { _writeDeepEquals(generatorOptions, indent); + _writeDeepHash(generatorOptions, indent); } }, ); diff --git a/packages/pigeon/lib/src/swift/swift_generator.dart b/packages/pigeon/lib/src/swift/swift_generator.dart index 220f0ba8d6dd..4501cb9de0fc 100644 --- a/packages/pigeon/lib/src/swift/swift_generator.dart +++ b/packages/pigeon/lib/src/swift/swift_generator.dart @@ -666,16 +666,33 @@ if (wrapped == nil) { indent.writeln('return true'); }); } - indent.write( - 'return deepEquals${generatorOptions.fileSpecificClassNameComponent}(lhs.toList(), rhs.toList())', + final Iterable fields = getFieldsInSerializationOrder( + classDefinition, ); + if (fields.isEmpty) { + indent.writeln('return true'); + } else { + final String comparisons = fields + .map( + (NamedType field) => + 'deepEquals${generatorOptions.fileSpecificClassNameComponent ?? ''}(lhs.${field.name}, rhs.${field.name})', + ) + .join(' && '); + indent.writeln('return $comparisons'); + } }, ); + indent.newln(); indent.writeScoped('func hash(into hasher: inout Hasher) {', '}', () { - indent.writeln( - 'deepHash${generatorOptions.fileSpecificClassNameComponent}(value: toList(), hasher: &hasher)', + final Iterable fields = getFieldsInSerializationOrder( + classDefinition, ); + for (final NamedType field in fields) { + indent.writeln( + 'deepHash${generatorOptions.fileSpecificClassNameComponent ?? ''}(value: ${field.name}, hasher: &hasher)', + ); + } }); } @@ -1482,8 +1499,12 @@ private func nilOrValue(_ value: Any?) -> T? { } void _writeDeepEquals(InternalSwiftOptions generatorOptions, Indent indent) { + final String deepEqualsName = + 'deepEquals${generatorOptions.fileSpecificClassNameComponent ?? ''}'; + final String deepHashName = + 'deepHash${generatorOptions.fileSpecificClassNameComponent ?? ''}'; indent.format(''' -func deepEquals${generatorOptions.fileSpecificClassNameComponent}(_ lhs: Any?, _ rhs: Any?) -> Bool { +func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { let cleanLhs = nilOrValue(lhs) as Any? let cleanRhs = nilOrValue(rhs) as Any? switch (cleanLhs, cleanRhs) { @@ -1493,59 +1514,61 @@ func deepEquals${generatorOptions.fileSpecificClassNameComponent}(_ lhs: Any?, _ case (nil, _), (_, nil): return false - case is (Void, Void): + case (let lhs as AnyObject, let rhs as AnyObject) where lhs === rhs: return true - case let (cleanLhsHashable, cleanRhsHashable) as (AnyHashable, AnyHashable): - return cleanLhsHashable == cleanRhsHashable + case is (Void, Void): + return true - case let (cleanLhsArray, cleanRhsArray) as ([Any?], [Any?]): - guard cleanLhsArray.count == cleanRhsArray.count else { return false } - for (index, element) in cleanLhsArray.enumerated() { - if !deepEquals${generatorOptions.fileSpecificClassNameComponent}(element, cleanRhsArray[index]) { + case (let lhsArray, let rhsArray) as ([Any?], [Any?]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !$deepEqualsName(element, rhsArray[index]) { return false } } return true - case let (cleanLhsDictionary, cleanRhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): - guard cleanLhsDictionary.count == cleanRhsDictionary.count else { return false } - for (key, cleanLhsValue) in cleanLhsDictionary { - guard cleanRhsDictionary.index(forKey: key) != nil else { return false } - if !deepEquals${generatorOptions.fileSpecificClassNameComponent}(cleanLhsValue, cleanRhsDictionary[key]!) { + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): + guard lhsDictionary.count == rhsDictionary.count else { return false } + for (key, lhsValue) in lhsDictionary { + guard let rhsValue = rhsDictionary[key] else { return false } + if !$deepEqualsName(lhsValue, rhsValue) { return false } } return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): + return lhsHashable == rhsHashable + default: - // Any other type shouldn't be able to be used with pigeon. File an issue if you find this to be untrue. return false } } -func deepHash${generatorOptions.fileSpecificClassNameComponent}(value: Any?, hasher: inout Hasher) { - if let valueList = value as? [AnyHashable] { - for item in valueList { deepHash${generatorOptions.fileSpecificClassNameComponent}(value: item, hasher: &hasher) } - return - } - - if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { - hasher.combine(key) - deepHash${generatorOptions.fileSpecificClassNameComponent}(value: valueDict[key]!, hasher: &hasher) +func $deepHashName(value: Any?, hasher: inout Hasher) { + let cleanValue = nilOrValue(value) as Any? + if let cleanValue = cleanValue { + if let valueList = cleanValue as? [Any?] { + for item in valueList { + $deepHashName(value: item, hasher: &hasher) + } + } else if let valueDict = cleanValue as? [AnyHashable: Any?] { + for key in valueDict.keys.sorted(by: { String(describing: \$0) < String(describing: \$1) }) { + hasher.combine(key) + $deepHashName(value: valueDict[key]!, hasher: &hasher) + } + } else if let hashableValue = cleanValue as? AnyHashable { + hasher.combine(hashableValue) + } else { + hasher.combine(String(describing: cleanValue)) } - return - } - - if let hashableValue = value as? AnyHashable { - hasher.combine(hashableValue.hashValue) + } else { + hasher.combine(0) } - - return hasher.combine(String(describing: value)) } - - '''); +'''); } @override diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 89ec15910ddc..2508193e6d43 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -82,12 +82,12 @@ class UnusedClass { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(aField, other.aField); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => aField.hashCode; } /// A class containing all supported types. @@ -261,12 +261,68 @@ class AllTypes { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(aBool, other.aBool) && + _deepEquals(anInt, other.anInt) && + _deepEquals(anInt64, other.anInt64) && + _deepEquals(aDouble, other.aDouble) && + _deepEquals(aByteArray, other.aByteArray) && + _deepEquals(a4ByteArray, other.a4ByteArray) && + _deepEquals(a8ByteArray, other.a8ByteArray) && + _deepEquals(aFloatArray, other.aFloatArray) && + _deepEquals(anEnum, other.anEnum) && + _deepEquals(anotherEnum, other.anotherEnum) && + _deepEquals(aString, other.aString) && + _deepEquals(anObject, other.anObject) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll([ + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + ]); } /// A class containing all supported nullable types. @@ -459,12 +515,74 @@ class AllNullableTypes { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(aNullableBool, other.aNullableBool) && + _deepEquals(aNullableInt, other.aNullableInt) && + _deepEquals(aNullableInt64, other.aNullableInt64) && + _deepEquals(aNullableDouble, other.aNullableDouble) && + _deepEquals(aNullableByteArray, other.aNullableByteArray) && + _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && + _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && + _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && + _deepEquals(aNullableEnum, other.aNullableEnum) && + _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && + _deepEquals(aNullableString, other.aNullableString) && + _deepEquals(aNullableObject, other.aNullableObject) && + _deepEquals(allNullableTypes, other.allNullableTypes) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(recursiveClassList, other.recursiveClassList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap) && + _deepEquals(recursiveClassMap, other.recursiveClassMap); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll([ + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap, + ]); } /// The primary purpose for this class is to ensure coverage of Swift structs @@ -643,12 +761,68 @@ class AllNullableTypesWithoutRecursion { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(aNullableBool, other.aNullableBool) && + _deepEquals(aNullableInt, other.aNullableInt) && + _deepEquals(aNullableInt64, other.aNullableInt64) && + _deepEquals(aNullableDouble, other.aNullableDouble) && + _deepEquals(aNullableByteArray, other.aNullableByteArray) && + _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && + _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && + _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && + _deepEquals(aNullableEnum, other.aNullableEnum) && + _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && + _deepEquals(aNullableString, other.aNullableString) && + _deepEquals(aNullableObject, other.aNullableObject) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll([ + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + ]); } /// A class for testing nested class handling. @@ -722,12 +896,29 @@ class AllClassesWrapper { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(allNullableTypes, other.allNullableTypes) && + _deepEquals( + allNullableTypesWithoutRecursion, + other.allNullableTypesWithoutRecursion, + ) && + _deepEquals(allTypes, other.allTypes) && + _deepEquals(classList, other.classList) && + _deepEquals(nullableClassList, other.nullableClassList) && + _deepEquals(classMap, other.classMap) && + _deepEquals(nullableClassMap, other.nullableClassMap); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash( + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + classList, + nullableClassList, + classMap, + nullableClassMap, + ); } /// A data class containing a List, used in unit tests. @@ -758,12 +949,12 @@ class TestMessage { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(testList, other.testList); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => testList.hashCode; } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 135222059e92..68b90fb01b65 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -95,12 +95,12 @@ class DataWithEnum { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(state, other.state); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => state.hashCode; } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index 8ad8dd6ba6c1..e95dda68592b 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -225,12 +225,74 @@ class EventAllNullableTypes { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(aNullableBool, other.aNullableBool) && + _deepEquals(aNullableInt, other.aNullableInt) && + _deepEquals(aNullableInt64, other.aNullableInt64) && + _deepEquals(aNullableDouble, other.aNullableDouble) && + _deepEquals(aNullableByteArray, other.aNullableByteArray) && + _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && + _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && + _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && + _deepEquals(aNullableEnum, other.aNullableEnum) && + _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && + _deepEquals(aNullableString, other.aNullableString) && + _deepEquals(aNullableObject, other.aNullableObject) && + _deepEquals(allNullableTypes, other.allNullableTypes) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(recursiveClassList, other.recursiveClassList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap) && + _deepEquals(recursiveClassMap, other.recursiveClassMap); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll([ + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap, + ]); } sealed class PlatformEvent {} @@ -262,12 +324,12 @@ class IntEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(value, other.value); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => value.hashCode; } class StringEvent extends PlatformEvent { @@ -297,12 +359,12 @@ class StringEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(value, other.value); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => value.hashCode; } class BoolEvent extends PlatformEvent { @@ -332,12 +394,12 @@ class BoolEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(value, other.value); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => value.hashCode; } class DoubleEvent extends PlatformEvent { @@ -367,12 +429,12 @@ class DoubleEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(value, other.value); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => value.hashCode; } class ObjectsEvent extends PlatformEvent { @@ -402,12 +464,12 @@ class ObjectsEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(value, other.value); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => value.hashCode; } class EnumEvent extends PlatformEvent { @@ -437,12 +499,12 @@ class EnumEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(value, other.value); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => value.hashCode; } class ClassEvent extends PlatformEvent { @@ -472,12 +534,12 @@ class ClassEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(value, other.value); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => value.hashCode; } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index 1ecd3eeebc57..b01d377761a9 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -64,12 +64,12 @@ class FlutterSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(query, other.query); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => query.hashCode; } class FlutterSearchReply { @@ -104,12 +104,12 @@ class FlutterSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(result, other.result) && _deepEquals(error, other.error); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash(result, error); } class FlutterSearchRequests { @@ -139,12 +139,12 @@ class FlutterSearchRequests { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(requests, other.requests); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => requests.hashCode; } class FlutterSearchReplies { @@ -174,12 +174,12 @@ class FlutterSearchReplies { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(replies, other.replies); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => replies.hashCode; } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 3ffec0e5340f..8acaadeece67 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -101,12 +101,14 @@ class MessageSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(query, other.query) && + _deepEquals(anInt, other.anInt) && + _deepEquals(aBool, other.aBool); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash(query, anInt, aBool); } /// This comment is to test class documentation comments. @@ -150,12 +152,14 @@ class MessageSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(result, other.result) && + _deepEquals(error, other.error) && + _deepEquals(state, other.state); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash(result, error, state); } /// This comment is to test class documentation comments. @@ -187,12 +191,12 @@ class MessageNested { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(request, other.request); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => request.hashCode; } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index bddbb24255c0..84581eb9e0b8 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -81,12 +81,12 @@ class NonNullFieldSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(query, other.query); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => query.hashCode; } class ExtraData { @@ -121,12 +121,13 @@ class ExtraData { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(detailA, other.detailA) && + _deepEquals(detailB, other.detailB); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash(detailA, detailB); } class NonNullFieldSearchReply { @@ -176,12 +177,16 @@ class NonNullFieldSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(result, other.result) && + _deepEquals(error, other.error) && + _deepEquals(indices, other.indices) && + _deepEquals(extraData, other.extraData) && + _deepEquals(type, other.type); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash(result, error, indices, extraData, type); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index ce7f5655afeb..01366879542a 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -85,12 +85,13 @@ class NullFieldsSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(query, other.query) && + _deepEquals(identifier, other.identifier); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash(query, identifier); } class NullFieldsSearchReply { @@ -140,12 +141,16 @@ class NullFieldsSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(result, other.result) && + _deepEquals(error, other.error) && + _deepEquals(indices, other.indices) && + _deepEquals(request, other.request) && + _deepEquals(type, other.type); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash(result, error, indices, request, type); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index fe73e18c0998..d7fe089dcfb1 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -39,6 +39,9 @@ private object CoreTestsPigeonUtils { } fun deepEquals(a: Any?, b: Any?): Boolean { + if (a === b) { + return true + } if (a is ByteArray && b is ByteArray) { return a.contentEquals(b) } @@ -51,8 +54,11 @@ private object CoreTestsPigeonUtils { if (a is DoubleArray && b is DoubleArray) { return a.contentEquals(b) } + if (a is FloatArray && b is FloatArray) { + return a.contentEquals(b) + } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } @@ -63,6 +69,33 @@ private object CoreTestsPigeonUtils { } return a == b } + + fun deepHash(value: Any?): Int { + return when (value) { + null -> 0 + is ByteArray -> value.contentHashCode() + is IntArray -> value.contentHashCode() + is LongArray -> value.contentHashCode() + is DoubleArray -> value.contentHashCode() + is FloatArray -> value.contentHashCode() + is Array<*> -> value.contentDeepHashCode() + is List<*> -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is Map<*, *> -> { + var result = 0 + for (entry in value) { + result += (deepHash(entry.key) xor deepHash(entry.value)) + } + result + } + else -> value.hashCode() + } + } } /** @@ -124,10 +157,13 @@ data class UnusedClass(val aField: Any? = null) { if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(toList(), other.toList()) + return CoreTestsPigeonUtils.deepEquals(this.aField, other.aField) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = CoreTestsPigeonUtils.deepHash(this.aField) + return result + } } /** @@ -267,10 +303,67 @@ data class AllTypes( if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(toList(), other.toList()) + return CoreTestsPigeonUtils.deepEquals(this.aBool, other.aBool) && + CoreTestsPigeonUtils.deepEquals(this.anInt, other.anInt) && + CoreTestsPigeonUtils.deepEquals(this.anInt64, other.anInt64) && + CoreTestsPigeonUtils.deepEquals(this.aDouble, other.aDouble) && + CoreTestsPigeonUtils.deepEquals(this.aByteArray, other.aByteArray) && + CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, other.a4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, other.a8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aFloatArray, other.aFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.anEnum, other.anEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherEnum, other.anotherEnum) && + CoreTestsPigeonUtils.deepEquals(this.aString, other.aString) && + CoreTestsPigeonUtils.deepEquals(this.anObject, other.anObject) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = CoreTestsPigeonUtils.deepHash(this.aBool) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anInt) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anInt64) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aDouble) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.a4ByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.a8ByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aFloatArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anEnum) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anotherEnum) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aString) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anObject) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.list) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.stringList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.intList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.doubleList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.boolList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.enumList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.objectList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.listList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.mapList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.map) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.stringMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.intMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.enumMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.objectMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.listMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.mapMap) + return result + } } /** @@ -422,10 +515,73 @@ data class AllNullableTypes( if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(toList(), other.toList()) + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && + CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = CoreTestsPigeonUtils.deepHash(this.aNullableBool) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableInt) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableInt64) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableDouble) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullable4ByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullable8ByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableFloatArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableEnum) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anotherNullableEnum) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableString) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableObject) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.allNullableTypes) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.list) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.stringList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.intList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.doubleList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.boolList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.enumList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.objectList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.listList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.mapList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.recursiveClassList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.map) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.stringMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.intMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.enumMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.objectMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.listMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.mapMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.recursiveClassMap) + return result + } } /** @@ -566,10 +722,67 @@ data class AllNullableTypesWithoutRecursion( if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(toList(), other.toList()) + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = CoreTestsPigeonUtils.deepHash(this.aNullableBool) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableInt) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableInt64) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableDouble) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullable4ByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullable8ByteArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableFloatArray) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableEnum) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anotherNullableEnum) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableString) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableObject) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.list) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.stringList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.intList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.doubleList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.boolList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.enumList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.objectList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.listList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.mapList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.map) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.stringMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.intMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.enumMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.objectMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.listMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.mapMap) + return result + } } /** @@ -629,10 +842,26 @@ data class AllClassesWrapper( if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(toList(), other.toList()) + return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + CoreTestsPigeonUtils.deepEquals( + this.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && + CoreTestsPigeonUtils.deepEquals(this.allTypes, other.allTypes) && + CoreTestsPigeonUtils.deepEquals(this.classList, other.classList) && + CoreTestsPigeonUtils.deepEquals(this.nullableClassList, other.nullableClassList) && + CoreTestsPigeonUtils.deepEquals(this.classMap, other.classMap) && + CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, other.nullableClassMap) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = CoreTestsPigeonUtils.deepHash(this.allNullableTypes) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.allNullableTypesWithoutRecursion) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.allTypes) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.classList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.nullableClassList) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.classMap) + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.nullableClassMap) + return result + } } /** @@ -661,10 +890,13 @@ data class TestMessage(val testList: List? = null) { if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(toList(), other.toList()) + return CoreTestsPigeonUtils.deepEquals(this.testList, other.testList) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = CoreTestsPigeonUtils.deepHash(this.testList) + return result + } } private open class CoreTestsPigeonCodec : StandardMessageCodec() { diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt index a3f79976d792..5b5af2bacb1d 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt @@ -17,6 +17,9 @@ import java.nio.ByteBuffer private object EventChannelTestsPigeonUtils { fun deepEquals(a: Any?, b: Any?): Boolean { + if (a === b) { + return true + } if (a is ByteArray && b is ByteArray) { return a.contentEquals(b) } @@ -29,8 +32,11 @@ private object EventChannelTestsPigeonUtils { if (a is DoubleArray && b is DoubleArray) { return a.contentEquals(b) } + if (a is FloatArray && b is FloatArray) { + return a.contentEquals(b) + } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } @@ -41,6 +47,33 @@ private object EventChannelTestsPigeonUtils { } return a == b } + + fun deepHash(value: Any?): Int { + return when (value) { + null -> 0 + is ByteArray -> value.contentHashCode() + is IntArray -> value.contentHashCode() + is LongArray -> value.contentHashCode() + is DoubleArray -> value.contentHashCode() + is FloatArray -> value.contentHashCode() + is Array<*> -> value.contentDeepHashCode() + is List<*> -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is Map<*, *> -> { + var result = 0 + for (entry in value) { + result += (deepHash(entry.key) xor deepHash(entry.value)) + } + result + } + else -> value.hashCode() + } + } } /** @@ -229,10 +262,79 @@ data class EventAllNullableTypes( if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullableByteArray, other.aNullableByteArray) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullable4ByteArray, other.aNullable4ByteArray) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullable8ByteArray, other.aNullable8ByteArray) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullableFloatArray, other.aNullableFloatArray) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + EventChannelTestsPigeonUtils.deepEquals( + this.anotherNullableEnum, other.anotherNullableEnum) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + EventChannelTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + EventChannelTestsPigeonUtils.deepEquals(this.list, other.list) && + EventChannelTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + EventChannelTestsPigeonUtils.deepEquals(this.intList, other.intList) && + EventChannelTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + EventChannelTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + EventChannelTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + EventChannelTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + EventChannelTestsPigeonUtils.deepEquals(this.listList, other.listList) && + EventChannelTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + EventChannelTestsPigeonUtils.deepEquals( + this.recursiveClassList, other.recursiveClassList) && + EventChannelTestsPigeonUtils.deepEquals(this.map, other.map) && + EventChannelTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + EventChannelTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + EventChannelTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + EventChannelTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + EventChannelTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + EventChannelTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && + EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) + } + + override fun hashCode(): Int { + var result = EventChannelTestsPigeonUtils.deepHash(this.aNullableBool) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableInt) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableInt64) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableDouble) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableByteArray) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullable4ByteArray) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullable8ByteArray) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableFloatArray) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableEnum) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.anotherNullableEnum) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableString) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableObject) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.allNullableTypes) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.list) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.stringList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.intList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.doubleList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.boolList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.enumList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.objectList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.listList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.mapList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.recursiveClassList) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.map) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.stringMap) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.intMap) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.enumMap) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.objectMap) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.listMap) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.mapMap) + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.recursiveClassMap) + return result } - - override fun hashCode(): Int = toList().hashCode() } /** @@ -262,10 +364,13 @@ data class IntEvent(val value: Long) : PlatformEvent() { if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelTestsPigeonUtils.deepHash(this.value) + return result + } } /** Generated class from Pigeon that represents data sent in messages. */ @@ -290,10 +395,13 @@ data class StringEvent(val value: String) : PlatformEvent() { if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelTestsPigeonUtils.deepHash(this.value) + return result + } } /** Generated class from Pigeon that represents data sent in messages. */ @@ -318,10 +426,13 @@ data class BoolEvent(val value: Boolean) : PlatformEvent() { if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelTestsPigeonUtils.deepHash(this.value) + return result + } } /** Generated class from Pigeon that represents data sent in messages. */ @@ -346,10 +457,13 @@ data class DoubleEvent(val value: Double) : PlatformEvent() { if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelTestsPigeonUtils.deepHash(this.value) + return result + } } /** Generated class from Pigeon that represents data sent in messages. */ @@ -374,10 +488,13 @@ data class ObjectsEvent(val value: Any) : PlatformEvent() { if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelTestsPigeonUtils.deepHash(this.value) + return result + } } /** Generated class from Pigeon that represents data sent in messages. */ @@ -402,10 +519,13 @@ data class EnumEvent(val value: EventEnum) : PlatformEvent() { if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelTestsPigeonUtils.deepHash(this.value) + return result + } } /** Generated class from Pigeon that represents data sent in messages. */ @@ -430,10 +550,13 @@ data class ClassEvent(val value: EventAllNullableTypes) : PlatformEvent() { if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelTestsPigeonUtils.deepHash(this.value) + return result + } } private open class EventChannelTestsPigeonCodec : StandardMessageCodec() { diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index ddea768974b8..3e33878265bc 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -84,56 +84,59 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { case (nil, _), (_, nil): return false - case is (Void, Void): + case (let lhs as AnyObject, let rhs as AnyObject) where lhs === rhs: return true - case let (cleanLhsHashable, cleanRhsHashable) as (AnyHashable, AnyHashable): - return cleanLhsHashable == cleanRhsHashable + case is (Void, Void): + return true - case let (cleanLhsArray, cleanRhsArray) as ([Any?], [Any?]): - guard cleanLhsArray.count == cleanRhsArray.count else { return false } - for (index, element) in cleanLhsArray.enumerated() { - if !deepEqualsCoreTests(element, cleanRhsArray[index]) { + case (let lhsArray, let rhsArray) as ([Any?], [Any?]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsCoreTests(element, rhsArray[index]) { return false } } return true - case let (cleanLhsDictionary, cleanRhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): - guard cleanLhsDictionary.count == cleanRhsDictionary.count else { return false } - for (key, cleanLhsValue) in cleanLhsDictionary { - guard cleanRhsDictionary.index(forKey: key) != nil else { return false } - if !deepEqualsCoreTests(cleanLhsValue, cleanRhsDictionary[key]!) { + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): + guard lhsDictionary.count == rhsDictionary.count else { return false } + for (key, lhsValue) in lhsDictionary { + guard let rhsValue = rhsDictionary[key] else { return false } + if !deepEqualsCoreTests(lhsValue, rhsValue) { return false } } return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): + return lhsHashable == rhsHashable + default: - // Any other type shouldn't be able to be used with pigeon. File an issue if you find this to be untrue. return false } } func deepHashCoreTests(value: Any?, hasher: inout Hasher) { - if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashCoreTests(value: item, hasher: &hasher) } - return - } - - if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { - hasher.combine(key) - deepHashCoreTests(value: valueDict[key]!, hasher: &hasher) + let cleanValue = nilOrValue(value) as Any? + if let cleanValue = cleanValue { + if let valueList = cleanValue as? [Any?] { + for item in valueList { + deepHashCoreTests(value: item, hasher: &hasher) + } + } else if let valueDict = cleanValue as? [AnyHashable: Any?] { + for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { + hasher.combine(key) + deepHashCoreTests(value: valueDict[key]!, hasher: &hasher) + } + } else if let hashableValue = cleanValue as? AnyHashable { + hasher.combine(hashableValue) + } else { + hasher.combine(String(describing: cleanValue)) } - return - } - - if let hashableValue = value as? AnyHashable { - hasher.combine(hashableValue.hashValue) + } else { + hasher.combine(0) } - - return hasher.combine(String(describing: value)) } enum AnEnum: Int { @@ -166,10 +169,11 @@ struct UnusedClass: Hashable { ] } static func == (lhs: UnusedClass, rhs: UnusedClass) -> Bool { - return deepEqualsCoreTests(lhs.toList(), rhs.toList()) + return deepEqualsCoreTests(lhs.aField, rhs.aField) } + func hash(into hasher: inout Hasher) { - deepHashCoreTests(value: toList(), hasher: &hasher) + deepHashCoreTests(value: aField, hasher: &hasher) } } @@ -301,10 +305,62 @@ struct AllTypes: Hashable { ] } static func == (lhs: AllTypes, rhs: AllTypes) -> Bool { - return deepEqualsCoreTests(lhs.toList(), rhs.toList()) + return deepEqualsCoreTests(lhs.aBool, rhs.aBool) && deepEqualsCoreTests(lhs.anInt, rhs.anInt) + && deepEqualsCoreTests(lhs.anInt64, rhs.anInt64) + && deepEqualsCoreTests(lhs.aDouble, rhs.aDouble) + && deepEqualsCoreTests(lhs.aByteArray, rhs.aByteArray) + && deepEqualsCoreTests(lhs.a4ByteArray, rhs.a4ByteArray) + && deepEqualsCoreTests(lhs.a8ByteArray, rhs.a8ByteArray) + && deepEqualsCoreTests(lhs.aFloatArray, rhs.aFloatArray) + && deepEqualsCoreTests(lhs.anEnum, rhs.anEnum) + && deepEqualsCoreTests(lhs.anotherEnum, rhs.anotherEnum) + && deepEqualsCoreTests(lhs.aString, rhs.aString) + && deepEqualsCoreTests(lhs.anObject, rhs.anObject) && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) + && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) } + func hash(into hasher: inout Hasher) { - deepHashCoreTests(value: toList(), hasher: &hasher) + deepHashCoreTests(value: aBool, hasher: &hasher) + deepHashCoreTests(value: anInt, hasher: &hasher) + deepHashCoreTests(value: anInt64, hasher: &hasher) + deepHashCoreTests(value: aDouble, hasher: &hasher) + deepHashCoreTests(value: aByteArray, hasher: &hasher) + deepHashCoreTests(value: a4ByteArray, hasher: &hasher) + deepHashCoreTests(value: a8ByteArray, hasher: &hasher) + deepHashCoreTests(value: aFloatArray, hasher: &hasher) + deepHashCoreTests(value: anEnum, hasher: &hasher) + deepHashCoreTests(value: anotherEnum, hasher: &hasher) + deepHashCoreTests(value: aString, hasher: &hasher) + deepHashCoreTests(value: anObject, hasher: &hasher) + deepHashCoreTests(value: list, hasher: &hasher) + deepHashCoreTests(value: stringList, hasher: &hasher) + deepHashCoreTests(value: intList, hasher: &hasher) + deepHashCoreTests(value: doubleList, hasher: &hasher) + deepHashCoreTests(value: boolList, hasher: &hasher) + deepHashCoreTests(value: enumList, hasher: &hasher) + deepHashCoreTests(value: objectList, hasher: &hasher) + deepHashCoreTests(value: listList, hasher: &hasher) + deepHashCoreTests(value: mapList, hasher: &hasher) + deepHashCoreTests(value: map, hasher: &hasher) + deepHashCoreTests(value: stringMap, hasher: &hasher) + deepHashCoreTests(value: intMap, hasher: &hasher) + deepHashCoreTests(value: enumMap, hasher: &hasher) + deepHashCoreTests(value: objectMap, hasher: &hasher) + deepHashCoreTests(value: listMap, hasher: &hasher) + deepHashCoreTests(value: mapMap, hasher: &hasher) } } @@ -516,10 +572,70 @@ class AllNullableTypes: Hashable { if lhs === rhs { return true } - return deepEqualsCoreTests(lhs.toList(), rhs.toList()) + return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) + && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) + && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) + && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) + && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) + && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) + && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) + && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) + && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) + && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) + && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) + && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) + && deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) + && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) + && deepEqualsCoreTests(lhs.recursiveClassList, rhs.recursiveClassList) + && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + && deepEqualsCoreTests(lhs.recursiveClassMap, rhs.recursiveClassMap) } + func hash(into hasher: inout Hasher) { - deepHashCoreTests(value: toList(), hasher: &hasher) + deepHashCoreTests(value: aNullableBool, hasher: &hasher) + deepHashCoreTests(value: aNullableInt, hasher: &hasher) + deepHashCoreTests(value: aNullableInt64, hasher: &hasher) + deepHashCoreTests(value: aNullableDouble, hasher: &hasher) + deepHashCoreTests(value: aNullableByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullable4ByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullable8ByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullableFloatArray, hasher: &hasher) + deepHashCoreTests(value: aNullableEnum, hasher: &hasher) + deepHashCoreTests(value: anotherNullableEnum, hasher: &hasher) + deepHashCoreTests(value: aNullableString, hasher: &hasher) + deepHashCoreTests(value: aNullableObject, hasher: &hasher) + deepHashCoreTests(value: allNullableTypes, hasher: &hasher) + deepHashCoreTests(value: list, hasher: &hasher) + deepHashCoreTests(value: stringList, hasher: &hasher) + deepHashCoreTests(value: intList, hasher: &hasher) + deepHashCoreTests(value: doubleList, hasher: &hasher) + deepHashCoreTests(value: boolList, hasher: &hasher) + deepHashCoreTests(value: enumList, hasher: &hasher) + deepHashCoreTests(value: objectList, hasher: &hasher) + deepHashCoreTests(value: listList, hasher: &hasher) + deepHashCoreTests(value: mapList, hasher: &hasher) + deepHashCoreTests(value: recursiveClassList, hasher: &hasher) + deepHashCoreTests(value: map, hasher: &hasher) + deepHashCoreTests(value: stringMap, hasher: &hasher) + deepHashCoreTests(value: intMap, hasher: &hasher) + deepHashCoreTests(value: enumMap, hasher: &hasher) + deepHashCoreTests(value: objectMap, hasher: &hasher) + deepHashCoreTests(value: listMap, hasher: &hasher) + deepHashCoreTests(value: mapMap, hasher: &hasher) + deepHashCoreTests(value: recursiveClassMap, hasher: &hasher) } } @@ -655,10 +771,64 @@ struct AllNullableTypesWithoutRecursion: Hashable { static func == (lhs: AllNullableTypesWithoutRecursion, rhs: AllNullableTypesWithoutRecursion) -> Bool { - return deepEqualsCoreTests(lhs.toList(), rhs.toList()) + return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) + && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) + && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) + && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) + && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) + && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) + && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) + && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) + && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) + && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) + && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) + && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) + && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) + && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) } + func hash(into hasher: inout Hasher) { - deepHashCoreTests(value: toList(), hasher: &hasher) + deepHashCoreTests(value: aNullableBool, hasher: &hasher) + deepHashCoreTests(value: aNullableInt, hasher: &hasher) + deepHashCoreTests(value: aNullableInt64, hasher: &hasher) + deepHashCoreTests(value: aNullableDouble, hasher: &hasher) + deepHashCoreTests(value: aNullableByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullable4ByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullable8ByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullableFloatArray, hasher: &hasher) + deepHashCoreTests(value: aNullableEnum, hasher: &hasher) + deepHashCoreTests(value: anotherNullableEnum, hasher: &hasher) + deepHashCoreTests(value: aNullableString, hasher: &hasher) + deepHashCoreTests(value: aNullableObject, hasher: &hasher) + deepHashCoreTests(value: list, hasher: &hasher) + deepHashCoreTests(value: stringList, hasher: &hasher) + deepHashCoreTests(value: intList, hasher: &hasher) + deepHashCoreTests(value: doubleList, hasher: &hasher) + deepHashCoreTests(value: boolList, hasher: &hasher) + deepHashCoreTests(value: enumList, hasher: &hasher) + deepHashCoreTests(value: objectList, hasher: &hasher) + deepHashCoreTests(value: listList, hasher: &hasher) + deepHashCoreTests(value: mapList, hasher: &hasher) + deepHashCoreTests(value: map, hasher: &hasher) + deepHashCoreTests(value: stringMap, hasher: &hasher) + deepHashCoreTests(value: intMap, hasher: &hasher) + deepHashCoreTests(value: enumMap, hasher: &hasher) + deepHashCoreTests(value: objectMap, hasher: &hasher) + deepHashCoreTests(value: listMap, hasher: &hasher) + deepHashCoreTests(value: mapMap, hasher: &hasher) } } @@ -712,10 +882,24 @@ struct AllClassesWrapper: Hashable { ] } static func == (lhs: AllClassesWrapper, rhs: AllClassesWrapper) -> Bool { - return deepEqualsCoreTests(lhs.toList(), rhs.toList()) + return deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) + && deepEqualsCoreTests( + lhs.allNullableTypesWithoutRecursion, rhs.allNullableTypesWithoutRecursion) + && deepEqualsCoreTests(lhs.allTypes, rhs.allTypes) + && deepEqualsCoreTests(lhs.classList, rhs.classList) + && deepEqualsCoreTests(lhs.nullableClassList, rhs.nullableClassList) + && deepEqualsCoreTests(lhs.classMap, rhs.classMap) + && deepEqualsCoreTests(lhs.nullableClassMap, rhs.nullableClassMap) } + func hash(into hasher: inout Hasher) { - deepHashCoreTests(value: toList(), hasher: &hasher) + deepHashCoreTests(value: allNullableTypes, hasher: &hasher) + deepHashCoreTests(value: allNullableTypesWithoutRecursion, hasher: &hasher) + deepHashCoreTests(value: allTypes, hasher: &hasher) + deepHashCoreTests(value: classList, hasher: &hasher) + deepHashCoreTests(value: nullableClassList, hasher: &hasher) + deepHashCoreTests(value: classMap, hasher: &hasher) + deepHashCoreTests(value: nullableClassMap, hasher: &hasher) } } @@ -739,10 +923,11 @@ struct TestMessage: Hashable { ] } static func == (lhs: TestMessage, rhs: TestMessage) -> Bool { - return deepEqualsCoreTests(lhs.toList(), rhs.toList()) + return deepEqualsCoreTests(lhs.testList, rhs.testList) } + func hash(into hasher: inout Hasher) { - deepHashCoreTests(value: toList(), hasher: &hasher) + deepHashCoreTests(value: testList, hasher: &hasher) } } diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift index 6eeace16d903..570a6d4b3fc9 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift @@ -52,56 +52,59 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { case (nil, _), (_, nil): return false - case is (Void, Void): + case (let lhs as AnyObject, let rhs as AnyObject) where lhs === rhs: return true - case let (cleanLhsHashable, cleanRhsHashable) as (AnyHashable, AnyHashable): - return cleanLhsHashable == cleanRhsHashable + case is (Void, Void): + return true - case let (cleanLhsArray, cleanRhsArray) as ([Any?], [Any?]): - guard cleanLhsArray.count == cleanRhsArray.count else { return false } - for (index, element) in cleanLhsArray.enumerated() { - if !deepEqualsEventChannelTests(element, cleanRhsArray[index]) { + case (let lhsArray, let rhsArray) as ([Any?], [Any?]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsEventChannelTests(element, rhsArray[index]) { return false } } return true - case let (cleanLhsDictionary, cleanRhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): - guard cleanLhsDictionary.count == cleanRhsDictionary.count else { return false } - for (key, cleanLhsValue) in cleanLhsDictionary { - guard cleanRhsDictionary.index(forKey: key) != nil else { return false } - if !deepEqualsEventChannelTests(cleanLhsValue, cleanRhsDictionary[key]!) { + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): + guard lhsDictionary.count == rhsDictionary.count else { return false } + for (key, lhsValue) in lhsDictionary { + guard let rhsValue = rhsDictionary[key] else { return false } + if !deepEqualsEventChannelTests(lhsValue, rhsValue) { return false } } return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): + return lhsHashable == rhsHashable + default: - // Any other type shouldn't be able to be used with pigeon. File an issue if you find this to be untrue. return false } } func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { - if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashEventChannelTests(value: item, hasher: &hasher) } - return - } - - if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { - hasher.combine(key) - deepHashEventChannelTests(value: valueDict[key]!, hasher: &hasher) + let cleanValue = nilOrValue(value) as Any? + if let cleanValue = cleanValue { + if let valueList = cleanValue as? [Any?] { + for item in valueList { + deepHashEventChannelTests(value: item, hasher: &hasher) + } + } else if let valueDict = cleanValue as? [AnyHashable: Any?] { + for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { + hasher.combine(key) + deepHashEventChannelTests(value: valueDict[key]!, hasher: &hasher) + } + } else if let hashableValue = cleanValue as? AnyHashable { + hasher.combine(hashableValue) + } else { + hasher.combine(String(describing: cleanValue)) } - return + } else { + hasher.combine(0) } - - if let hashableValue = value as? AnyHashable { - hasher.combine(hashableValue.hashValue) - } - - return hasher.combine(String(describing: value)) } enum EventEnum: Int { @@ -324,10 +327,71 @@ class EventAllNullableTypes: Hashable { if lhs === rhs { return true } - return deepEqualsEventChannelTests(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelTests(lhs.aNullableBool, rhs.aNullableBool) + && deepEqualsEventChannelTests(lhs.aNullableInt, rhs.aNullableInt) + && deepEqualsEventChannelTests(lhs.aNullableInt64, rhs.aNullableInt64) + && deepEqualsEventChannelTests(lhs.aNullableDouble, rhs.aNullableDouble) + && deepEqualsEventChannelTests(lhs.aNullableByteArray, rhs.aNullableByteArray) + && deepEqualsEventChannelTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) + && deepEqualsEventChannelTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) + && deepEqualsEventChannelTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) + && deepEqualsEventChannelTests(lhs.aNullableEnum, rhs.aNullableEnum) + && deepEqualsEventChannelTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) + && deepEqualsEventChannelTests(lhs.aNullableString, rhs.aNullableString) + && deepEqualsEventChannelTests(lhs.aNullableObject, rhs.aNullableObject) + && deepEqualsEventChannelTests(lhs.allNullableTypes, rhs.allNullableTypes) + && deepEqualsEventChannelTests(lhs.list, rhs.list) + && deepEqualsEventChannelTests(lhs.stringList, rhs.stringList) + && deepEqualsEventChannelTests(lhs.intList, rhs.intList) + && deepEqualsEventChannelTests(lhs.doubleList, rhs.doubleList) + && deepEqualsEventChannelTests(lhs.boolList, rhs.boolList) + && deepEqualsEventChannelTests(lhs.enumList, rhs.enumList) + && deepEqualsEventChannelTests(lhs.objectList, rhs.objectList) + && deepEqualsEventChannelTests(lhs.listList, rhs.listList) + && deepEqualsEventChannelTests(lhs.mapList, rhs.mapList) + && deepEqualsEventChannelTests(lhs.recursiveClassList, rhs.recursiveClassList) + && deepEqualsEventChannelTests(lhs.map, rhs.map) + && deepEqualsEventChannelTests(lhs.stringMap, rhs.stringMap) + && deepEqualsEventChannelTests(lhs.intMap, rhs.intMap) + && deepEqualsEventChannelTests(lhs.enumMap, rhs.enumMap) + && deepEqualsEventChannelTests(lhs.objectMap, rhs.objectMap) + && deepEqualsEventChannelTests(lhs.listMap, rhs.listMap) + && deepEqualsEventChannelTests(lhs.mapMap, rhs.mapMap) + && deepEqualsEventChannelTests(lhs.recursiveClassMap, rhs.recursiveClassMap) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelTests(value: toList(), hasher: &hasher) + deepHashEventChannelTests(value: aNullableBool, hasher: &hasher) + deepHashEventChannelTests(value: aNullableInt, hasher: &hasher) + deepHashEventChannelTests(value: aNullableInt64, hasher: &hasher) + deepHashEventChannelTests(value: aNullableDouble, hasher: &hasher) + deepHashEventChannelTests(value: aNullableByteArray, hasher: &hasher) + deepHashEventChannelTests(value: aNullable4ByteArray, hasher: &hasher) + deepHashEventChannelTests(value: aNullable8ByteArray, hasher: &hasher) + deepHashEventChannelTests(value: aNullableFloatArray, hasher: &hasher) + deepHashEventChannelTests(value: aNullableEnum, hasher: &hasher) + deepHashEventChannelTests(value: anotherNullableEnum, hasher: &hasher) + deepHashEventChannelTests(value: aNullableString, hasher: &hasher) + deepHashEventChannelTests(value: aNullableObject, hasher: &hasher) + deepHashEventChannelTests(value: allNullableTypes, hasher: &hasher) + deepHashEventChannelTests(value: list, hasher: &hasher) + deepHashEventChannelTests(value: stringList, hasher: &hasher) + deepHashEventChannelTests(value: intList, hasher: &hasher) + deepHashEventChannelTests(value: doubleList, hasher: &hasher) + deepHashEventChannelTests(value: boolList, hasher: &hasher) + deepHashEventChannelTests(value: enumList, hasher: &hasher) + deepHashEventChannelTests(value: objectList, hasher: &hasher) + deepHashEventChannelTests(value: listList, hasher: &hasher) + deepHashEventChannelTests(value: mapList, hasher: &hasher) + deepHashEventChannelTests(value: recursiveClassList, hasher: &hasher) + deepHashEventChannelTests(value: map, hasher: &hasher) + deepHashEventChannelTests(value: stringMap, hasher: &hasher) + deepHashEventChannelTests(value: intMap, hasher: &hasher) + deepHashEventChannelTests(value: enumMap, hasher: &hasher) + deepHashEventChannelTests(value: objectMap, hasher: &hasher) + deepHashEventChannelTests(value: listMap, hasher: &hasher) + deepHashEventChannelTests(value: mapMap, hasher: &hasher) + deepHashEventChannelTests(value: recursiveClassMap, hasher: &hasher) } } @@ -355,10 +419,11 @@ struct IntEvent: PlatformEvent { ] } static func == (lhs: IntEvent, rhs: IntEvent) -> Bool { - return deepEqualsEventChannelTests(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelTests(lhs.value, rhs.value) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelTests(value: toList(), hasher: &hasher) + deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -380,10 +445,11 @@ struct StringEvent: PlatformEvent { ] } static func == (lhs: StringEvent, rhs: StringEvent) -> Bool { - return deepEqualsEventChannelTests(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelTests(lhs.value, rhs.value) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelTests(value: toList(), hasher: &hasher) + deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -405,10 +471,11 @@ struct BoolEvent: PlatformEvent { ] } static func == (lhs: BoolEvent, rhs: BoolEvent) -> Bool { - return deepEqualsEventChannelTests(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelTests(lhs.value, rhs.value) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelTests(value: toList(), hasher: &hasher) + deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -430,10 +497,11 @@ struct DoubleEvent: PlatformEvent { ] } static func == (lhs: DoubleEvent, rhs: DoubleEvent) -> Bool { - return deepEqualsEventChannelTests(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelTests(lhs.value, rhs.value) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelTests(value: toList(), hasher: &hasher) + deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -455,10 +523,11 @@ struct ObjectsEvent: PlatformEvent { ] } static func == (lhs: ObjectsEvent, rhs: ObjectsEvent) -> Bool { - return deepEqualsEventChannelTests(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelTests(lhs.value, rhs.value) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelTests(value: toList(), hasher: &hasher) + deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -480,10 +549,11 @@ struct EnumEvent: PlatformEvent { ] } static func == (lhs: EnumEvent, rhs: EnumEvent) -> Bool { - return deepEqualsEventChannelTests(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelTests(lhs.value, rhs.value) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelTests(value: toList(), hasher: &hasher) + deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -505,10 +575,11 @@ struct ClassEvent: PlatformEvent { ] } static func == (lhs: ClassEvent, rhs: ClassEvent) -> Bool { - return deepEqualsEventChannelTests(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelTests(lhs.value, rhs.value) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelTests(value: toList(), hasher: &hasher) + deepHashEventChannelTests(value: value, hasher: &hasher) } } diff --git a/packages/pigeon/pubspec.yaml b/packages/pigeon/pubspec.yaml index a2b22e26f34c..ede8e75399ec 100644 --- a/packages/pigeon/pubspec.yaml +++ b/packages/pigeon/pubspec.yaml @@ -2,7 +2,7 @@ name: pigeon description: Code generator tool to make communication between Flutter and the host platform type-safe and easier. repository: https://github.com/flutter/packages/tree/main/packages/pigeon issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+pigeon%22 -version: 26.1.8 # This must match the version in lib/src/generator_tools.dart +version: 26.1.9 # This must match the version in lib/src/generator_tools.dart environment: sdk: ^3.9.0 diff --git a/packages/pigeon/test/dart_generator_test.dart b/packages/pigeon/test/dart_generator_test.dart index 32b587a5503a..032d06526fe3 100644 --- a/packages/pigeon/test/dart_generator_test.dart +++ b/packages/pigeon/test/dart_generator_test.dart @@ -2085,4 +2085,71 @@ name: foobar expect(code, contains('buffer.putUint8(4);')); expect(code, contains('buffer.putInt64(value);')); }); + + test('data class equality', () { + final classDefinition = Class( + name: 'Foobar', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: true), + name: 'field1', + ), + ], + ); + final root = Root( + apis: [], + classes: [classDefinition], + enums: [], + ); + final sink = StringBuffer(); + const generator = DartGenerator(); + generator.generate( + const InternalDartOptions(), + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('bool operator ==(Object other) {')); + expect( + code, + contains('other is! Foobar || other.runtimeType != runtimeType'), + ); + expect(code, contains('_deepEquals(field1, other.field1)')); + expect(code, contains('int get hashCode => field1.hashCode;')); + }); + + test('data class equality multi-field', () { + final classDefinition = Class( + name: 'Foobar', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: true), + name: 'field1', + ), + NamedType( + type: const TypeDeclaration(baseName: 'String', isNullable: true), + name: 'field2', + ), + ], + ); + final root = Root( + apis: [], + classes: [classDefinition], + enums: [], + ); + final sink = StringBuffer(); + const generator = DartGenerator(); + generator.generate( + const InternalDartOptions(), + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('bool operator ==(Object other) {')); + expect(code, contains('_deepEquals(field1, other.field1) &&')); + expect(code, contains('_deepEquals(field2, other.field2)')); + expect(code, contains('int get hashCode => Object.hash(field1, field2);')); + }); } diff --git a/packages/pigeon/test/kotlin_generator_test.dart b/packages/pigeon/test/kotlin_generator_test.dart index 10e5193dae96..96093258b9b5 100644 --- a/packages/pigeon/test/kotlin_generator_test.dart +++ b/packages/pigeon/test/kotlin_generator_test.dart @@ -2027,4 +2027,80 @@ void main() { // There should be only one occurrence of 'is Foo' in the block expect(count, 1); }); + + test('data class equality', () { + final classDefinition = Class( + name: 'Foobar', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: true), + name: 'field1', + ), + ], + ); + final root = Root( + apis: [], + classes: [classDefinition], + enums: [], + ); + final sink = StringBuffer(); + const kotlinOptions = InternalKotlinOptions(kotlinOut: ''); + const generator = KotlinGenerator(); + generator.generate( + kotlinOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('override fun equals(other: Any?): Boolean {')); + expect(code, contains('PigeonUtils.deepEquals(this.field1, other.field1)')); + expect(code, contains('override fun hashCode(): Int {')); + expect(code, contains('var result = PigeonUtils.deepHash(this.field1)')); + expect(code, contains('return result')); + }); + + test('data class equality multi-field', () { + final classDefinition = Class( + name: 'Foobar', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: true), + name: 'field1', + ), + NamedType( + type: const TypeDeclaration(baseName: 'String', isNullable: true), + name: 'field2', + ), + ], + ); + final root = Root( + apis: [], + classes: [classDefinition], + enums: [], + ); + final sink = StringBuffer(); + const kotlinOptions = InternalKotlinOptions(kotlinOut: ''); + const generator = KotlinGenerator(); + generator.generate( + kotlinOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('override fun equals(other: Any?): Boolean {')); + expect( + code, + contains( + 'PigeonUtils.deepEquals(this.field1, other.field1) && PigeonUtils.deepEquals(this.field2, other.field2)', + ), + ); + expect(code, contains('override fun hashCode(): Int {')); + expect(code, contains('var result = PigeonUtils.deepHash(this.field1)')); + expect( + code, + contains('result = 31 * result + PigeonUtils.deepHash(this.field2)'), + ); + }); } diff --git a/packages/pigeon/test/swift_generator_test.dart b/packages/pigeon/test/swift_generator_test.dart index c91f09e9976b..6c2c2f12d61e 100644 --- a/packages/pigeon/test/swift_generator_test.dart +++ b/packages/pigeon/test/swift_generator_test.dart @@ -1785,4 +1785,82 @@ void main() { ), ); }); + + test('data class equality', () { + final classDefinition = Class( + name: 'Foobar', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: true), + name: 'field1', + ), + ], + ); + final root = Root( + apis: [], + classes: [classDefinition], + enums: [], + ); + final sink = StringBuffer(); + const swiftOptions = InternalSwiftOptions(swiftOut: ''); + const generator = SwiftGenerator(); + generator.generate( + swiftOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect( + code, + contains('static func == (lhs: Foobar, rhs: Foobar) -> Bool {'), + ); + expect(code, contains('deepEquals(lhs.field1, rhs.field1)')); + expect(code, contains('func hash(into hasher: inout Hasher) {')); + expect(code, contains('deepHash(value: field1, hasher: &hasher)')); + }); + + test('data class equality multi-field', () { + final classDefinition = Class( + name: 'Foobar', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: true), + name: 'field1', + ), + NamedType( + type: const TypeDeclaration(baseName: 'String', isNullable: true), + name: 'field2', + ), + ], + ); + final root = Root( + apis: [], + classes: [classDefinition], + enums: [], + ); + final sink = StringBuffer(); + const swiftOptions = InternalSwiftOptions(swiftOut: ''); + const generator = SwiftGenerator(); + generator.generate( + swiftOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect( + code, + contains('static func == (lhs: Foobar, rhs: Foobar) -> Bool {'), + ); + expect( + code, + contains( + 'deepEquals(lhs.field1, rhs.field1) && deepEquals(lhs.field2, rhs.field2)', + ), + ); + expect(code, contains('func hash(into hasher: inout Hasher) {')); + expect(code, contains('deepHash(value: field1, hasher: &hasher)')); + expect(code, contains('deepHash(value: field2, hasher: &hasher)')); + }); } From 9861c0047ac80667c8d9e61e6e0e283f6ea5d9aa Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Fri, 27 Feb 2026 18:22:31 -0800 Subject: [PATCH 02/33] analyze this --- packages/pigeon/lib/src/swift/swift_generator.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pigeon/lib/src/swift/swift_generator.dart b/packages/pigeon/lib/src/swift/swift_generator.dart index 4501cb9de0fc..4a7ed8500feb 100644 --- a/packages/pigeon/lib/src/swift/swift_generator.dart +++ b/packages/pigeon/lib/src/swift/swift_generator.dart @@ -688,7 +688,7 @@ if (wrapped == nil) { final Iterable fields = getFieldsInSerializationOrder( classDefinition, ); - for (final NamedType field in fields) { + for (final field in fields) { indent.writeln( 'deepHash${generatorOptions.fileSpecificClassNameComponent ?? ''}(value: ${field.name}, hasher: &hasher)', ); @@ -1499,9 +1499,9 @@ private func nilOrValue(_ value: Any?) -> T? { } void _writeDeepEquals(InternalSwiftOptions generatorOptions, Indent indent) { - final String deepEqualsName = + final deepEqualsName = 'deepEquals${generatorOptions.fileSpecificClassNameComponent ?? ''}'; - final String deepHashName = + final deepHashName = 'deepHash${generatorOptions.fileSpecificClassNameComponent ?? ''}'; indent.format(''' func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { From 11daedda66b58feb459809bfdf247b13b15c9174 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 2 Mar 2026 10:51:17 -0800 Subject: [PATCH 03/33] format --- .../EventChannelMessages.g.kt | 49 +++++++++++-- .../flutter/pigeon_example_app/Messages.g.kt | 48 ++++++++++++- .../ios/Runner/EventChannelMessages.g.swift | 71 ++++++++++--------- .../example/app/ios/Runner/Messages.g.swift | 71 +++++++++++-------- .../app/lib/src/event_channel_messages.g.dart | 8 +-- .../example/app/lib/src/messages.g.dart | 7 +- 6 files changed, 176 insertions(+), 78 deletions(-) diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt index e524f5d5b0cf..adca828f9f7b 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt @@ -14,6 +14,9 @@ import java.nio.ByteBuffer private object EventChannelMessagesPigeonUtils { fun deepEquals(a: Any?, b: Any?): Boolean { + if (a === b) { + return true + } if (a is ByteArray && b is ByteArray) { return a.contentEquals(b) } @@ -26,8 +29,11 @@ private object EventChannelMessagesPigeonUtils { if (a is DoubleArray && b is DoubleArray) { return a.contentEquals(b) } + if (a is FloatArray && b is FloatArray) { + return a.contentEquals(b) + } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } @@ -38,6 +44,33 @@ private object EventChannelMessagesPigeonUtils { } return a == b } + + fun deepHash(value: Any?): Int { + return when (value) { + null -> 0 + is ByteArray -> value.contentHashCode() + is IntArray -> value.contentHashCode() + is LongArray -> value.contentHashCode() + is DoubleArray -> value.contentHashCode() + is FloatArray -> value.contentHashCode() + is Array<*> -> value.contentDeepHashCode() + is List<*> -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is Map<*, *> -> { + var result = 0 + for (entry in value) { + result += (deepHash(entry.key) xor deepHash(entry.value)) + } + result + } + else -> value.hashCode() + } + } } /** @@ -67,10 +100,13 @@ data class IntEvent(val data: Long) : PlatformEvent() { if (this === other) { return true } - return EventChannelMessagesPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelMessagesPigeonUtils.deepEquals(this.data, other.data) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelMessagesPigeonUtils.deepHash(this.data) + return result + } } /** Generated class from Pigeon that represents data sent in messages. */ @@ -95,10 +131,13 @@ data class StringEvent(val data: String) : PlatformEvent() { if (this === other) { return true } - return EventChannelMessagesPigeonUtils.deepEquals(toList(), other.toList()) + return EventChannelMessagesPigeonUtils.deepEquals(this.data, other.data) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = EventChannelMessagesPigeonUtils.deepHash(this.data) + return result + } } private open class EventChannelMessagesPigeonCodec : StandardMessageCodec() { diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index 87f4ef1acf12..19a150c13271 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -36,6 +36,9 @@ private object MessagesPigeonUtils { } fun deepEquals(a: Any?, b: Any?): Boolean { + if (a === b) { + return true + } if (a is ByteArray && b is ByteArray) { return a.contentEquals(b) } @@ -48,8 +51,11 @@ private object MessagesPigeonUtils { if (a is DoubleArray && b is DoubleArray) { return a.contentEquals(b) } + if (a is FloatArray && b is FloatArray) { + return a.contentEquals(b) + } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } @@ -60,6 +66,33 @@ private object MessagesPigeonUtils { } return a == b } + + fun deepHash(value: Any?): Int { + return when (value) { + null -> 0 + is ByteArray -> value.contentHashCode() + is IntArray -> value.contentHashCode() + is LongArray -> value.contentHashCode() + is DoubleArray -> value.contentHashCode() + is FloatArray -> value.contentHashCode() + is Array<*> -> value.contentDeepHashCode() + is List<*> -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is Map<*, *> -> { + var result = 0 + for (entry in value) { + result += (deepHash(entry.key) xor deepHash(entry.value)) + } + result + } + else -> value.hashCode() + } + } } /** @@ -119,10 +152,19 @@ data class MessageData( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + return MessagesPigeonUtils.deepEquals(this.name, other.name) && + MessagesPigeonUtils.deepEquals(this.description, other.description) && + MessagesPigeonUtils.deepEquals(this.code, other.code) && + MessagesPigeonUtils.deepEquals(this.data, other.data) } - override fun hashCode(): Int = toList().hashCode() + override fun hashCode(): Int { + var result = MessagesPigeonUtils.deepHash(this.name) + result = 31 * result + MessagesPigeonUtils.deepHash(this.description) + result = 31 * result + MessagesPigeonUtils.deepHash(this.code) + result = 31 * result + MessagesPigeonUtils.deepHash(this.data) + return result + } } private open class MessagesPigeonCodec : StandardMessageCodec() { diff --git a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift index 027453c3951e..34ffcedeaf4b 100644 --- a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift @@ -33,56 +33,59 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { case (nil, _), (_, nil): return false - case is (Void, Void): + case (let lhs as AnyObject, let rhs as AnyObject) where lhs === rhs: return true - case let (cleanLhsHashable, cleanRhsHashable) as (AnyHashable, AnyHashable): - return cleanLhsHashable == cleanRhsHashable + case is (Void, Void): + return true - case let (cleanLhsArray, cleanRhsArray) as ([Any?], [Any?]): - guard cleanLhsArray.count == cleanRhsArray.count else { return false } - for (index, element) in cleanLhsArray.enumerated() { - if !deepEqualsEventChannelMessages(element, cleanRhsArray[index]) { + case (let lhsArray, let rhsArray) as ([Any?], [Any?]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsEventChannelMessages(element, rhsArray[index]) { return false } } return true - case let (cleanLhsDictionary, cleanRhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): - guard cleanLhsDictionary.count == cleanRhsDictionary.count else { return false } - for (key, cleanLhsValue) in cleanLhsDictionary { - guard cleanRhsDictionary.index(forKey: key) != nil else { return false } - if !deepEqualsEventChannelMessages(cleanLhsValue, cleanRhsDictionary[key]!) { + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): + guard lhsDictionary.count == rhsDictionary.count else { return false } + for (key, lhsValue) in lhsDictionary { + guard let rhsValue = rhsDictionary[key] else { return false } + if !deepEqualsEventChannelMessages(lhsValue, rhsValue) { return false } } return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): + return lhsHashable == rhsHashable + default: - // Any other type shouldn't be able to be used with pigeon. File an issue if you find this to be untrue. return false } } func deepHashEventChannelMessages(value: Any?, hasher: inout Hasher) { - if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashEventChannelMessages(value: item, hasher: &hasher) } - return - } - - if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { - hasher.combine(key) - deepHashEventChannelMessages(value: valueDict[key]!, hasher: &hasher) + let cleanValue = nilOrValue(value) as Any? + if let cleanValue = cleanValue { + if let valueList = cleanValue as? [Any?] { + for item in valueList { + deepHashEventChannelMessages(value: item, hasher: &hasher) + } + } else if let valueDict = cleanValue as? [AnyHashable: Any?] { + for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { + hasher.combine(key) + deepHashEventChannelMessages(value: valueDict[key]!, hasher: &hasher) + } + } else if let hashableValue = cleanValue as? AnyHashable { + hasher.combine(hashableValue) + } else { + hasher.combine(String(describing: cleanValue)) } - return - } - - if let hashableValue = value as? AnyHashable { - hasher.combine(hashableValue.hashValue) + } else { + hasher.combine(0) } - - return hasher.combine(String(describing: value)) } /// Generated class from Pigeon that represents data sent in messages. @@ -109,10 +112,11 @@ struct IntEvent: PlatformEvent { ] } static func == (lhs: IntEvent, rhs: IntEvent) -> Bool { - return deepEqualsEventChannelMessages(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelMessages(lhs.data, rhs.data) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelMessages(value: toList(), hasher: &hasher) + deepHashEventChannelMessages(value: data, hasher: &hasher) } } @@ -134,10 +138,11 @@ struct StringEvent: PlatformEvent { ] } static func == (lhs: StringEvent, rhs: StringEvent) -> Bool { - return deepEqualsEventChannelMessages(lhs.toList(), rhs.toList()) + return deepEqualsEventChannelMessages(lhs.data, rhs.data) } + func hash(into hasher: inout Hasher) { - deepHashEventChannelMessages(value: toList(), hasher: &hasher) + deepHashEventChannelMessages(value: data, hasher: &hasher) } } diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index 46c3e23598ef..89b92804f32f 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -83,56 +83,59 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { case (nil, _), (_, nil): return false - case is (Void, Void): + case (let lhs as AnyObject, let rhs as AnyObject) where lhs === rhs: return true - case let (cleanLhsHashable, cleanRhsHashable) as (AnyHashable, AnyHashable): - return cleanLhsHashable == cleanRhsHashable + case is (Void, Void): + return true - case let (cleanLhsArray, cleanRhsArray) as ([Any?], [Any?]): - guard cleanLhsArray.count == cleanRhsArray.count else { return false } - for (index, element) in cleanLhsArray.enumerated() { - if !deepEqualsMessages(element, cleanRhsArray[index]) { + case (let lhsArray, let rhsArray) as ([Any?], [Any?]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsMessages(element, rhsArray[index]) { return false } } return true - case let (cleanLhsDictionary, cleanRhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): - guard cleanLhsDictionary.count == cleanRhsDictionary.count else { return false } - for (key, cleanLhsValue) in cleanLhsDictionary { - guard cleanRhsDictionary.index(forKey: key) != nil else { return false } - if !deepEqualsMessages(cleanLhsValue, cleanRhsDictionary[key]!) { + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): + guard lhsDictionary.count == rhsDictionary.count else { return false } + for (key, lhsValue) in lhsDictionary { + guard let rhsValue = rhsDictionary[key] else { return false } + if !deepEqualsMessages(lhsValue, rhsValue) { return false } } return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): + return lhsHashable == rhsHashable + default: - // Any other type shouldn't be able to be used with pigeon. File an issue if you find this to be untrue. return false } } func deepHashMessages(value: Any?, hasher: inout Hasher) { - if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashMessages(value: item, hasher: &hasher) } - return - } - - if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { - hasher.combine(key) - deepHashMessages(value: valueDict[key]!, hasher: &hasher) + let cleanValue = nilOrValue(value) as Any? + if let cleanValue = cleanValue { + if let valueList = cleanValue as? [Any?] { + for item in valueList { + deepHashMessages(value: item, hasher: &hasher) + } + } else if let valueDict = cleanValue as? [AnyHashable: Any?] { + for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { + hasher.combine(key) + deepHashMessages(value: valueDict[key]!, hasher: &hasher) + } + } else if let hashableValue = cleanValue as? AnyHashable { + hasher.combine(hashableValue) + } else { + hasher.combine(String(describing: cleanValue)) } - return + } else { + hasher.combine(0) } - - if let hashableValue = value as? AnyHashable { - hasher.combine(hashableValue.hashValue) - } - - return hasher.combine(String(describing: value)) } enum Code: Int { @@ -170,10 +173,16 @@ struct MessageData: Hashable { ] } static func == (lhs: MessageData, rhs: MessageData) -> Bool { - return deepEqualsMessages(lhs.toList(), rhs.toList()) + return deepEqualsMessages(lhs.name, rhs.name) + && deepEqualsMessages(lhs.description, rhs.description) + && deepEqualsMessages(lhs.code, rhs.code) && deepEqualsMessages(lhs.data, rhs.data) } + func hash(into hasher: inout Hasher) { - deepHashMessages(value: toList(), hasher: &hasher) + deepHashMessages(value: name, hasher: &hasher) + deepHashMessages(value: description, hasher: &hasher) + deepHashMessages(value: code, hasher: &hasher) + deepHashMessages(value: data, hasher: &hasher) } } diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 5c7f5c6b31b5..92c8e5e837c7 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -58,12 +58,12 @@ class IntEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(data, other.data); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => data.hashCode; } class StringEvent extends PlatformEvent { @@ -93,12 +93,12 @@ class StringEvent extends PlatformEvent { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(data, other.data); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => data.hashCode; } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index d120ea68dafb..6f4d86d1a980 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -95,12 +95,15 @@ class MessageData { if (identical(this, other)) { return true; } - return _deepEquals(encode(), other.encode()); + return _deepEquals(name, other.name) && + _deepEquals(description, other.description) && + _deepEquals(code, other.code) && + _deepEquals(data, other.data); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hash(name, description, code, data); } class _PigeonCodec extends StandardMessageCodec { From e197fc051b0851433b630fbe16b3c5598d7a0295 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 2 Mar 2026 18:50:57 -0800 Subject: [PATCH 04/33] less repeating, and less listing --- .../pigeon/lib/src/dart/dart_generator.dart | 22 ++--- .../lib/src/generated/core_tests.gen.dart | 96 +------------------ .../generated/event_channel_tests.gen.dart | 34 +------ 3 files changed, 12 insertions(+), 140 deletions(-) diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index 7790fa13b956..b38c49fc7628 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -389,20 +389,14 @@ class DartGenerator extends StructuredGenerator { indent.newln(); indent.writeln('@override'); indent.writeln('// ignore: avoid_equals_and_hash_code_on_mutable_classes'); - if (fields.isEmpty) { - indent.writeln('int get hashCode => 0;'); - } else if (fields.length == 1) { - indent.writeln('int get hashCode => ${fields.first.name}.hashCode;'); - } else if (fields.length <= 20) { - final String argString = fields - .map((NamedType field) => field.name) - .join(', '); - indent.writeln('int get hashCode => Object.hash($argString);'); - } else { - indent.writeln( - 'int get hashCode => Object.hashAll([${fields.map((NamedType field) => field.name).join(', ')}]);', - ); - } + final String hashCodeValue = switch (fields.length) { + 0 => '0', + 1 => '${fields.first.name}.hashCode', + <= 20 => + 'Object.hash(${fields.map((NamedType field) => field.name).join(', ')})', + _ => 'Object.hashAll(_toList())', + }; + indent.writeln('int get hashCode => $hashCodeValue;'); } @override diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 2508193e6d43..80ed21de3752 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -293,36 +293,7 @@ class AllTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll([ - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - ]); + int get hashCode => Object.hashAll(_toList()); } /// A class containing all supported nullable types. @@ -550,39 +521,7 @@ class AllNullableTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll([ - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap, - ]); + int get hashCode => Object.hashAll(_toList()); } /// The primary purpose for this class is to ensure coverage of Swift structs @@ -793,36 +732,7 @@ class AllNullableTypesWithoutRecursion { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll([ - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - ]); + int get hashCode => Object.hashAll(_toList()); } /// A class for testing nested class handling. diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index e95dda68592b..d6e57cf4a2cb 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -260,39 +260,7 @@ class EventAllNullableTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll([ - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap, - ]); + int get hashCode => Object.hashAll(_toList()); } sealed class PlatformEvent {} From cbf40963f6632c52f65535faf5b210fd4bb73610 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 2 Mar 2026 19:05:48 -0800 Subject: [PATCH 05/33] allow individual class types to not have colliding hashes --- packages/pigeon/lib/src/dart/dart_generator.dart | 9 ++++----- packages/pigeon/test/dart_generator_test.dart | 10 ++++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index b38c49fc7628..93b9140f0c48 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -390,11 +390,10 @@ class DartGenerator extends StructuredGenerator { indent.writeln('@override'); indent.writeln('// ignore: avoid_equals_and_hash_code_on_mutable_classes'); final String hashCodeValue = switch (fields.length) { - 0 => '0', - 1 => '${fields.first.name}.hashCode', - <= 20 => - 'Object.hash(${fields.map((NamedType field) => field.name).join(', ')})', - _ => 'Object.hashAll(_toList())', + 0 => 'runtimeType.hashCode', + < 20 => + 'Object.hash(runtimeType, ${fields.map((NamedType field) => field.name).join(', ')})', + _ => 'Object.hashAll([runtimeType, ..._toList()])', }; indent.writeln('int get hashCode => $hashCodeValue;'); } diff --git a/packages/pigeon/test/dart_generator_test.dart b/packages/pigeon/test/dart_generator_test.dart index 032d06526fe3..83d10d81520c 100644 --- a/packages/pigeon/test/dart_generator_test.dart +++ b/packages/pigeon/test/dart_generator_test.dart @@ -2116,7 +2116,10 @@ name: foobar contains('other is! Foobar || other.runtimeType != runtimeType'), ); expect(code, contains('_deepEquals(field1, other.field1)')); - expect(code, contains('int get hashCode => field1.hashCode;')); + expect( + code, + contains('int get hashCode => Object.hash(runtimeType, field1);'), + ); }); test('data class equality multi-field', () { @@ -2150,6 +2153,9 @@ name: foobar expect(code, contains('bool operator ==(Object other) {')); expect(code, contains('_deepEquals(field1, other.field1) &&')); expect(code, contains('_deepEquals(field2, other.field2)')); - expect(code, contains('int get hashCode => Object.hash(field1, field2);')); + expect( + code, + contains('int get hashCode => Object.hash(runtimeType, field1, field2);'), + ); }); } From 935aa477ec541af26106784fe403fedfa38a1a34 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 2 Mar 2026 19:22:31 -0800 Subject: [PATCH 06/33] improve deep equals for non-collections --- .../app/lib/src/event_channel_messages.g.dart | 7 ++++--- .../example/app/lib/src/messages.g.dart | 5 +++-- .../pigeon/lib/src/dart/dart_generator.dart | 3 ++- .../lib/src/generated/core_tests.gen.dart | 14 ++++++++------ .../lib/src/generated/enum.gen.dart | 5 +++-- .../generated/event_channel_tests.gen.dart | 19 ++++++++++--------- .../src/generated/flutter_unittests.gen.dart | 11 ++++++----- .../lib/src/generated/message.gen.dart | 9 +++++---- .../src/generated/non_null_fields.gen.dart | 10 ++++++---- .../lib/src/generated/null_fields.gen.dart | 8 +++++--- 10 files changed, 52 insertions(+), 39 deletions(-) diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 92c8e5e837c7..73637a82de50 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -12,6 +12,7 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -26,7 +27,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } sealed class PlatformEvent {} @@ -63,7 +64,7 @@ class IntEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => data.hashCode; + int get hashCode => Object.hash(runtimeType, data); } class StringEvent extends PlatformEvent { @@ -98,7 +99,7 @@ class StringEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => data.hashCode; + int get hashCode => Object.hash(runtimeType, data); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index 6f4d86d1a980..44922bb2ecb4 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -33,6 +33,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -47,7 +48,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } enum Code { one, two } @@ -103,7 +104,7 @@ class MessageData { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(name, description, code, data); + int get hashCode => Object.hash(runtimeType, name, description, code, data); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index 93b9140f0c48..dded384662b4 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -1177,6 +1177,7 @@ final BinaryMessenger? ${varNamePrefix}binaryMessenger; void _writeDeepEquals(Indent indent) { indent.format(r''' bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed @@ -1187,7 +1188,7 @@ bool _deepEquals(Object? a, Object? b) { (b as Map).containsKey(entry.key) && _deepEquals(entry.value, b[entry.key])); } - return a == b; + return false; } '''); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 80ed21de3752..89fb79ca4a2b 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -34,6 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -48,7 +49,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } enum AnEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } @@ -87,7 +88,7 @@ class UnusedClass { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => aField.hashCode; + int get hashCode => Object.hash(runtimeType, aField); } /// A class containing all supported types. @@ -293,7 +294,7 @@ class AllTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll([runtimeType, ..._toList()]); } /// A class containing all supported nullable types. @@ -521,7 +522,7 @@ class AllNullableTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll([runtimeType, ..._toList()]); } /// The primary purpose for this class is to ensure coverage of Swift structs @@ -732,7 +733,7 @@ class AllNullableTypesWithoutRecursion { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll([runtimeType, ..._toList()]); } /// A class for testing nested class handling. @@ -821,6 +822,7 @@ class AllClassesWrapper { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes int get hashCode => Object.hash( + runtimeType, allNullableTypes, allNullableTypesWithoutRecursion, allTypes, @@ -864,7 +866,7 @@ class TestMessage { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => testList.hashCode; + int get hashCode => Object.hash(runtimeType, testList); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 68b90fb01b65..8e763b07d569 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -34,6 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -48,7 +49,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } /// This comment is to test enum documentation comments. @@ -100,7 +101,7 @@ class DataWithEnum { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => state.hashCode; + int get hashCode => Object.hash(runtimeType, state); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index d6e57cf4a2cb..1a47d9214c50 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -13,6 +13,7 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -27,7 +28,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } enum EventEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } @@ -260,7 +261,7 @@ class EventAllNullableTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll([runtimeType, ..._toList()]); } sealed class PlatformEvent {} @@ -297,7 +298,7 @@ class IntEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => value.hashCode; + int get hashCode => Object.hash(runtimeType, value); } class StringEvent extends PlatformEvent { @@ -332,7 +333,7 @@ class StringEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => value.hashCode; + int get hashCode => Object.hash(runtimeType, value); } class BoolEvent extends PlatformEvent { @@ -367,7 +368,7 @@ class BoolEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => value.hashCode; + int get hashCode => Object.hash(runtimeType, value); } class DoubleEvent extends PlatformEvent { @@ -402,7 +403,7 @@ class DoubleEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => value.hashCode; + int get hashCode => Object.hash(runtimeType, value); } class ObjectsEvent extends PlatformEvent { @@ -437,7 +438,7 @@ class ObjectsEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => value.hashCode; + int get hashCode => Object.hash(runtimeType, value); } class EnumEvent extends PlatformEvent { @@ -472,7 +473,7 @@ class EnumEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => value.hashCode; + int get hashCode => Object.hash(runtimeType, value); } class ClassEvent extends PlatformEvent { @@ -507,7 +508,7 @@ class ClassEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => value.hashCode; + int get hashCode => Object.hash(runtimeType, value); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index b01d377761a9..b25f5de5dde2 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -20,6 +20,7 @@ PlatformException _createConnectionError(String channelName) { } bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -34,7 +35,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } class FlutterSearchRequest { @@ -69,7 +70,7 @@ class FlutterSearchRequest { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => query.hashCode; + int get hashCode => Object.hash(runtimeType, query); } class FlutterSearchReply { @@ -109,7 +110,7 @@ class FlutterSearchReply { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(result, error); + int get hashCode => Object.hash(runtimeType, result, error); } class FlutterSearchRequests { @@ -144,7 +145,7 @@ class FlutterSearchRequests { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => requests.hashCode; + int get hashCode => Object.hash(runtimeType, requests); } class FlutterSearchReplies { @@ -179,7 +180,7 @@ class FlutterSearchReplies { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => replies.hashCode; + int get hashCode => Object.hash(runtimeType, replies); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 8acaadeece67..eb432c929e82 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -34,6 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -48,7 +49,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } /// This comment is to test enum documentation comments. @@ -108,7 +109,7 @@ class MessageSearchRequest { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(query, anInt, aBool); + int get hashCode => Object.hash(runtimeType, query, anInt, aBool); } /// This comment is to test class documentation comments. @@ -159,7 +160,7 @@ class MessageSearchReply { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(result, error, state); + int get hashCode => Object.hash(runtimeType, result, error, state); } /// This comment is to test class documentation comments. @@ -196,7 +197,7 @@ class MessageNested { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => request.hashCode; + int get hashCode => Object.hash(runtimeType, request); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index 84581eb9e0b8..6343916d0b88 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -34,6 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -48,7 +49,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } enum ReplyType { success, error } @@ -86,7 +87,7 @@ class NonNullFieldSearchRequest { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => query.hashCode; + int get hashCode => Object.hash(runtimeType, query); } class ExtraData { @@ -127,7 +128,7 @@ class ExtraData { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(detailA, detailB); + int get hashCode => Object.hash(runtimeType, detailA, detailB); } class NonNullFieldSearchReply { @@ -186,7 +187,8 @@ class NonNullFieldSearchReply { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(result, error, indices, extraData, type); + int get hashCode => + Object.hash(runtimeType, result, error, indices, extraData, type); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 01366879542a..3e29f02b97a2 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -34,6 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { + if (a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -48,7 +49,7 @@ bool _deepEquals(Object? a, Object? b) { _deepEquals(entry.value, b[entry.key]), ); } - return a == b; + return false; } enum NullFieldsSearchReplyType { success, failure } @@ -91,7 +92,7 @@ class NullFieldsSearchRequest { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(query, identifier); + int get hashCode => Object.hash(runtimeType, query, identifier); } class NullFieldsSearchReply { @@ -150,7 +151,8 @@ class NullFieldsSearchReply { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(result, error, indices, request, type); + int get hashCode => + Object.hash(runtimeType, result, error, indices, request, type); } class _PigeonCodec extends StandardMessageCodec { From 4e9541ff82708d493da2acc79d2b2c9a99132b02 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 2 Mar 2026 19:29:15 -0800 Subject: [PATCH 07/33] allowing for NaN or other cases where identical is better --- packages/pigeon/lib/src/dart/dart_generator.dart | 2 +- .../lib/src/generated/core_tests.gen.dart | 2 +- .../shared_test_plugin_code/lib/src/generated/enum.gen.dart | 2 +- .../lib/src/generated/event_channel_tests.gen.dart | 2 +- .../lib/src/generated/flutter_unittests.gen.dart | 2 +- .../shared_test_plugin_code/lib/src/generated/message.gen.dart | 2 +- .../lib/src/generated/non_null_fields.gen.dart | 2 +- .../lib/src/generated/null_fields.gen.dart | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index dded384662b4..a8fdafd2ba60 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -1177,7 +1177,7 @@ final BinaryMessenger? ${varNamePrefix}binaryMessenger; void _writeDeepEquals(Indent indent) { indent.format(r''' bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 89fb79ca4a2b..d73b88bd4c3c 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -34,7 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 8e763b07d569..096935946299 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -34,7 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index 1a47d9214c50..4edd3eed039a 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -13,7 +13,7 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index b25f5de5dde2..2e3852d83265 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -20,7 +20,7 @@ PlatformException _createConnectionError(String channelName) { } bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index eb432c929e82..3ab405375384 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -34,7 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index 6343916d0b88..652bfa396886 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -34,7 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 3e29f02b97a2..189dfcb8aaa9 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -34,7 +34,7 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( From f30b44c4530d02591914d0d7d33a637f5e0b88a6 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 11:27:47 -0800 Subject: [PATCH 08/33] more tests, add other languages, unify behavior across platforms --- packages/pigeon/CHANGELOG.md | 7 +- .../java/io/flutter/plugins/Messages.java | 103 +- .../EventChannelMessages.g.kt | 16 +- .../flutter/pigeon_example_app/Messages.g.kt | 14 +- .../ios/Runner/EventChannelMessages.g.swift | 15 +- .../example/app/ios/Runner/Messages.g.swift | 13 +- .../app/lib/src/event_channel_messages.g.dart | 22 +- .../example/app/lib/src/messages.g.dart | 20 +- .../example/app/macos/Runner/messages.g.h | 2 + .../example/app/macos/Runner/messages.g.m | 96 + .../example/app/windows/runner/messages.g.cpp | 56 + .../example/app/windows/runner/messages.g.h | 2 + packages/pigeon/lib/core_tests.gen.dart | 7504 +++++++++++++ .../pigeon/lib/src/cpp/cpp_generator.dart | 77 + .../pigeon/lib/src/dart/dart_generator.dart | 31 +- .../pigeon/lib/src/java/java_generator.dart | 186 +- .../lib/src/kotlin/kotlin_generator.dart | 30 +- .../pigeon/lib/src/objc/objc_generator.dart | 153 + .../pigeon/lib/src/swift/swift_generator.dart | 17 +- .../CoreTests.java | 508 +- .../AllDatatypesTest.java | 46 + .../CoreTests.gen.m | 350 + .../CoreTests.gen.h | 12 + .../ios/Flutter/AppFrameworkInfo.plist | 2 - .../example/ios/Podfile | 2 +- .../ios/Runner.xcodeproj/project.pbxproj | 6 +- .../ios/RunnerTests/AllDatatypesTest.m | 67 +- .../ios/RunnerTests/NonNullFieldsTest.m | 10 + .../lib/src/generated/core_tests.gen.dart | 37 +- .../lib/src/generated/enum.gen.dart | 18 +- .../generated/event_channel_tests.gen.dart | 32 +- .../src/generated/flutter_unittests.gen.dart | 24 +- .../lib/src/generated/message.gen.dart | 22 +- .../src/generated/non_null_fields.gen.dart | 23 +- .../lib/src/generated/null_fields.gen.dart | 21 +- .../test/equality_test.dart | 66 + .../test/non_null_fields_test.dart | 10 + .../com/example/test_plugin/CoreTests.java | 9695 +++++++++++++++++ .../com/example/test_plugin/CoreTests.gen.kt | 236 +- .../test_plugin/EventChannelTests.gen.kt | 129 +- .../example/test_plugin/AllDatatypesTest.kt | 42 + .../example/test_plugin/NonNullFieldsTests.kt | 11 + .../Sources/test_plugin/CoreTests.gen.swift | 33 +- .../test_plugin/EventChannelTests.gen.swift | 39 +- .../test_plugin/ProxyApiTests.gen.swift | 2 +- .../ios/Flutter/AppFrameworkInfo.plist | 2 - .../test_plugin/example/ios/Podfile | 2 +- .../ios/Runner.xcodeproj/project.pbxproj | 24 +- .../ios/RunnerTests/AllDatatypesTests.swift | 87 + .../ios/RunnerTests/NonNullFieldsTest.swift | 11 + .../test_plugin/example/macos/Podfile | 2 +- .../macos/Runner.xcodeproj/project.pbxproj | 24 +- .../test_plugin/ios/Classes/CoreTests.gen.h | 1123 ++ .../test_plugin/ios/Classes/CoreTests.gen.m | 6705 ++++++++++++ .../ios/Classes/CoreTests.gen.swift | 6151 +++++++++++ .../windows/pigeon/core_tests.gen.cpp | 188 + .../windows/pigeon/core_tests.gen.h | 12 + .../windows/test/equality_test.cpp | 54 + .../windows/test/non_null_fields_test.cpp | 9 + .../windows/test/null_fields_test.cpp | 30 + packages/pigeon/test/cpp_generator_test.dart | 116 + packages/pigeon/test/dart_generator_test.dart | 8 +- packages/pigeon/test/java_generator_test.dart | 32 + .../pigeon/test/kotlin_generator_test.dart | 20 +- packages/pigeon/test/objc_generator_test.dart | 66 + 65 files changed, 33958 insertions(+), 515 deletions(-) create mode 100644 packages/pigeon/lib/core_tests.gen.dart create mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart create mode 100644 packages/pigeon/platform_tests/test_plugin/android/src/main/java/com/example/test_plugin/CoreTests.java create mode 100644 packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.h create mode 100644 packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.m create mode 100644 packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift create mode 100644 packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index 2fb0b2e10c2d..a8fe349ddbf0 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,9 +1,14 @@ ## 26.1.9 -* [swift] [kotlin] [dart] Optimizes data class equality and hashing. +* [swift] [kotlin] [dart] [java] [objc] [cpp] Optimizes and improves data class equality and hashing. * Avoids `toList()` and `encode()` calls to reduce object allocations during comparisons. * Adds `deepEquals` and `deepHash` utilities for robust recursive handling of nested collections and arrays. + * Handles `NaN` correctly in equality and hashing across all platforms. * [dart] Fixes `Object.hash` usage for single-field classes. + * [dart] Fixes `Map` hashing to be order-independent. + * [kotlin] Fixes compilation error in `equals` method. + * [objc] Fixes build failure when helper functions are unused. + * [cpp] Adds `` include for `std::isnan` support. ## 26.1.8 diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index 799d468cfb1e..89f98f614ca5 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -19,14 +19,104 @@ import java.lang.annotation.Target; import java.nio.ByteBuffer; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; -import java.util.Objects; /** Generated class from Pigeon. */ @SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) public class Messages { + private static boolean pigeonDeepEquals(Object a, Object b) { + if (a == b) { + return true; + } + if (a == null || b == null) { + return false; + } + if (a instanceof byte[] && b instanceof byte[]) { + return Arrays.equals((byte[]) a, (byte[]) b); + } + if (a instanceof int[] && b instanceof int[]) { + return Arrays.equals((int[]) a, (int[]) b); + } + if (a instanceof long[] && b instanceof long[]) { + return Arrays.equals((long[]) a, (long[]) b); + } + if (a instanceof double[] && b instanceof double[]) { + return Arrays.equals((double[]) a, (double[]) b); + } + if (a instanceof List && b instanceof List) { + List listA = (List) a; + List listB = (List) b; + if (listA.size() != listB.size()) { + return false; + } + for (int i = 0; i < listA.size(); i++) { + if (!pigeonDeepEquals(listA.get(i), listB.get(i))) { + return false; + } + } + return true; + } + if (a instanceof Map && b instanceof Map) { + Map mapA = (Map) a; + Map mapB = (Map) b; + if (mapA.size() != mapB.size()) { + return false; + } + for (Object key : mapA.keySet()) { + if (!mapB.containsKey(key)) { + return false; + } + if (!pigeonDeepEquals(mapA.get(key), mapB.get(key))) { + return false; + } + } + return true; + } + return a.equals(b); + } + + private static int pigeonDeepHashCode(Object value) { + if (value == null) { + return 0; + } + if (value instanceof byte[]) { + return Arrays.hashCode((byte[]) value); + } + if (value instanceof int[]) { + return Arrays.hashCode((int[]) value); + } + if (value instanceof long[]) { + return Arrays.hashCode((long[]) value); + } + if (value instanceof double[]) { + return Arrays.hashCode((double[]) value); + } + if (value instanceof List) { + int result = 1; + for (Object item : (List) value) { + result = 31 * result + pigeonDeepHashCode(item); + } + return result; + } + if (value instanceof Map) { + int result = 0; + for (Map.Entry entry : ((Map) value).entrySet()) { + result += (pigeonDeepHashCode(entry.getKey()) ^ pigeonDeepHashCode(entry.getValue())); + } + return result; + } + if (value instanceof Object[]) { + int result = 1; + for (Object item : (Object[]) value) { + result = 31 * result + pigeonDeepHashCode(item); + } + return result; + } + return value.hashCode(); + } /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ public static class FlutterError extends RuntimeException { @@ -142,15 +232,16 @@ public boolean equals(Object o) { return false; } MessageData that = (MessageData) o; - return Objects.equals(name, that.name) - && Objects.equals(description, that.description) - && code.equals(that.code) - && data.equals(that.data); + return pigeonDeepEquals(name, that.name) + && pigeonDeepEquals(description, that.description) + && pigeonDeepEquals(code, that.code) + && pigeonDeepEquals(data, that.data); } @Override public int hashCode() { - return Objects.hash(name, description, code, data); + Object[] fields = new Object[] {getClass(), name, description, code, data}; + return pigeonDeepHashCode(fields); } public static final class Builder { diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt index adca828f9f7b..97b66fcbd5dc 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt @@ -94,17 +94,19 @@ data class IntEvent(val data: Long) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is IntEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelMessagesPigeonUtils.deepEquals(this.data, other.data) + val otherActual = other as IntEvent + return EventChannelMessagesPigeonUtils.deepEquals(this.data, otherActual.data) } override fun hashCode(): Int { - var result = EventChannelMessagesPigeonUtils.deepHash(this.data) + var result = javaClass.hashCode() + result = 31 * result + EventChannelMessagesPigeonUtils.deepHash(this.data) return result } } @@ -125,17 +127,19 @@ data class StringEvent(val data: String) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is StringEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelMessagesPigeonUtils.deepEquals(this.data, other.data) + val otherActual = other as StringEvent + return EventChannelMessagesPigeonUtils.deepEquals(this.data, otherActual.data) } override fun hashCode(): Int { - var result = EventChannelMessagesPigeonUtils.deepHash(this.data) + var result = javaClass.hashCode() + result = 31 * result + EventChannelMessagesPigeonUtils.deepHash(this.data) return result } } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index 19a150c13271..e7847ddd394c 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -146,20 +146,22 @@ data class MessageData( } override fun equals(other: Any?): Boolean { - if (other !is MessageData) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(this.name, other.name) && - MessagesPigeonUtils.deepEquals(this.description, other.description) && - MessagesPigeonUtils.deepEquals(this.code, other.code) && - MessagesPigeonUtils.deepEquals(this.data, other.data) + val otherActual = other as MessageData + return MessagesPigeonUtils.deepEquals(this.name, otherActual.name) && + MessagesPigeonUtils.deepEquals(this.description, otherActual.description) && + MessagesPigeonUtils.deepEquals(this.code, otherActual.code) && + MessagesPigeonUtils.deepEquals(this.data, otherActual.data) } override fun hashCode(): Int { - var result = MessagesPigeonUtils.deepHash(this.name) + var result = javaClass.hashCode() + result = 31 * result + MessagesPigeonUtils.deepHash(this.name) result = 31 * result + MessagesPigeonUtils.deepHash(this.description) result = 31 * result + MessagesPigeonUtils.deepHash(this.code) result = 31 * result + MessagesPigeonUtils.deepHash(this.data) diff --git a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift index 34ffcedeaf4b..0f6ab0a5f586 100644 --- a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift @@ -58,6 +58,9 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: + return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -69,7 +72,9 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashEventChannelMessages(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let valueList = cleanValue as? [Any?] { + if let doubleValue = cleanValue as? Double, doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashEventChannelMessages(value: item, hasher: &hasher) } @@ -112,10 +117,14 @@ struct IntEvent: PlatformEvent { ] } static func == (lhs: IntEvent, rhs: IntEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelMessages(lhs.data, rhs.data) } func hash(into hasher: inout Hasher) { + hasher.combine("IntEvent") deepHashEventChannelMessages(value: data, hasher: &hasher) } } @@ -138,10 +147,14 @@ struct StringEvent: PlatformEvent { ] } static func == (lhs: StringEvent, rhs: StringEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelMessages(lhs.data, rhs.data) } func hash(into hasher: inout Hasher) { + hasher.combine("StringEvent") deepHashEventChannelMessages(value: data, hasher: &hasher) } } diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index 89b92804f32f..c4bfdcd4f9a6 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -53,7 +53,7 @@ private func wrapError(_ error: Any) -> [Any?] { } return [ "\(error)", - "\(type(of: error))", + "\(Swift.type(of: error))", "Stacktrace: \(Thread.callStackSymbols)", ] } @@ -108,6 +108,9 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: + return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -119,7 +122,9 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashMessages(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let valueList = cleanValue as? [Any?] { + if let doubleValue = cleanValue as? Double, doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashMessages(value: item, hasher: &hasher) } @@ -173,12 +178,16 @@ struct MessageData: Hashable { ] } static func == (lhs: MessageData, rhs: MessageData) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsMessages(lhs.name, rhs.name) && deepEqualsMessages(lhs.description, rhs.description) && deepEqualsMessages(lhs.code, rhs.code) && deepEqualsMessages(lhs.data, rhs.data) } func hash(into hasher: inout Hasher) { + hasher.combine("MessageData") deepHashMessages(value: name, hasher: &hasher) deepHashMessages(value: description, hasher: &hasher) deepHashMessages(value: code, hasher: &hasher) diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 73637a82de50..8056799344da 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -12,7 +12,8 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -30,6 +31,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + sealed class PlatformEvent {} class IntEvent extends PlatformEvent { @@ -64,7 +80,7 @@ class IntEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, data); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class StringEvent extends PlatformEvent { @@ -99,7 +115,7 @@ class StringEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, data); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index 44922bb2ecb4..93c9309e8e94 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -33,7 +33,8 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (a == b) return true; + if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -51,6 +52,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + enum Code { one, two } class MessageData { @@ -104,7 +120,7 @@ class MessageData { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, name, description, code, data); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.h b/packages/pigeon/example/app/macos/Runner/messages.g.h index c44b9361e8b9..edc7a438db7e 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.h +++ b/packages/pigeon/example/app/macos/Runner/messages.g.h @@ -37,6 +37,8 @@ typedef NS_ENUM(NSUInteger, PGNCode) { @property(nonatomic, copy, nullable) NSString *description; @property(nonatomic, assign) PGNCode code; @property(nonatomic, copy) NSDictionary *data; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; @end /// The codec used by all APIs. diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index 3e3bc65265ae..5118345564e1 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -12,6 +12,81 @@ @import Flutter; #endif +static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) __attribute__((unused)); +static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { + if (a == b) { + return YES; + } + if (a == nil || b == nil) { + return NO; + } + if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { + NSNumber *na = (NSNumber *)a; + NSNumber *nb = (NSNumber *)b; + if (isnan(na.doubleValue) && isnan(nb.doubleValue)) { + return YES; + } + } + if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { + NSArray *arrayA = (NSArray *)a; + NSArray *arrayB = (NSArray *)b; + if (arrayA.count != arrayB.count) { + return NO; + } + for (NSUInteger i = 0; i < arrayA.count; i++) { + if (!FLTPigeonDeepEquals(arrayA[i], arrayB[i])) { + return NO; + } + } + return YES; + } + if ([a isKindOfClass:[NSDictionary class]] && [b isKindOfClass:[NSDictionary class]]) { + NSDictionary *dictA = (NSDictionary *)a; + NSDictionary *dictB = (NSDictionary *)b; + if (dictA.count != dictB.count) { + return NO; + } + for (id key in dictA) { + id valueA = dictA[key]; + id valueB = dictB[key]; + if (!FLTPigeonDeepEquals(valueA, valueB)) { + return NO; + } + } + return YES; + } + return [a isEqual:b]; +} + +static NSUInteger FLTPigeonDeepHash(id _Nullable value) __attribute__((unused)); +static NSUInteger FLTPigeonDeepHash(id _Nullable value) { + if (value == nil) { + return 0; + } + if ([value isKindOfClass:[NSNumber class]]) { + NSNumber *n = (NSNumber *)value; + if (isnan(n.doubleValue)) { + return (NSUInteger)0x7FF8000000000000; + } + } + if ([value isKindOfClass:[NSArray class]]) { + NSUInteger result = 1; + for (id item in (NSArray *)value) { + result = result * 31 + FLTPigeonDeepHash(item); + } + return result; + } + if ([value isKindOfClass:[NSDictionary class]]) { + NSUInteger result = 0; + NSDictionary *dict = (NSDictionary *)value; + for (id key in dict) { + result += (FLTPigeonDeepHash(key) ^ FLTPigeonDeepHash(dict[key])); + } + return result; + } + return [value hash]; +} + static NSArray *wrapResult(id result, FlutterError *error) { if (error) { return @[ @@ -83,6 +158,27 @@ + (nullable PGNMessageData *)nullableFromList:(NSArray *)list { self.data ?: [NSNull null], ]; } +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + PGNMessageData *other = (PGNMessageData *)object; + return FLTPigeonDeepEquals(self.name, other.name) && + FLTPigeonDeepEquals(self.description, other.description) && self.code == other.code && + FLTPigeonDeepEquals(self.data, other.data); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.name); + result = result * 31 + FLTPigeonDeepHash(self.description); + result = result * 31 + @(self.code).hash; + result = result * 31 + FLTPigeonDeepHash(self.data); + return result; +} @end @interface PGNMessagesPigeonCodecReader : FlutterStandardReader diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index 755efbc8570b..363f345c812d 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -13,6 +13,7 @@ #include #include +#include #include #include #include @@ -31,6 +32,54 @@ FlutterError CreateConnectionError(const std::string channel_name) { EncodableValue("")); } +template +bool PigeonInternalDeepEquals(const T& a, const T& b) { + return a == b; +} + +template +bool PigeonInternalDeepEquals(const std::vector& a, + const std::vector& b) { + if (a.size() != b.size()) return false; + for (size_t i = 0; i < a.size(); ++i) { + if (!PigeonInternalDeepEquals(a[i], b[i])) return false; + } + return true; +} + +template +bool PigeonInternalDeepEquals(const std::map& a, + const std::map& b) { + if (a.size() != b.size()) return false; + for (const auto& kv : a) { + auto it = b.find(kv.first); + if (it == b.end()) return false; + if (!PigeonInternalDeepEquals(kv.second, it->second)) return false; + } + return true; +} + +inline bool PigeonInternalDeepEquals(const double& a, const double& b) { + return a == b || (std::isnan(a) && std::isnan(b)); +} + +template +bool PigeonInternalDeepEquals(const std::optional& a, + const std::optional& b) { + if (!a && !b) return true; + if (!a || !b) return false; + return PigeonInternalDeepEquals(*a, *b); +} + +inline bool PigeonInternalDeepEquals(const flutter::EncodableValue& a, + const flutter::EncodableValue& b) { + if (a.type() == b.type() && + a.type() == flutter::EncodableValue::Type::kDouble) { + return PigeonInternalDeepEquals(std::get(a), std::get(b)); + } + return a == b; +} + // MessageData MessageData::MessageData(const Code& code, const EncodableMap& data) @@ -102,6 +151,13 @@ MessageData MessageData::FromEncodableList(const EncodableList& list) { return decoded; } +bool MessageData::operator==(const MessageData& other) const { + return PigeonInternalDeepEquals(name_, other.name_) && + PigeonInternalDeepEquals(description_, other.description_) && + PigeonInternalDeepEquals(code_, other.code_) && + PigeonInternalDeepEquals(data_, other.data_); +} + PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( diff --git a/packages/pigeon/example/app/windows/runner/messages.g.h b/packages/pigeon/example/app/windows/runner/messages.g.h index c56c0d1cf171..22bf1a4e344c 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.h +++ b/packages/pigeon/example/app/windows/runner/messages.g.h @@ -85,6 +85,8 @@ class MessageData { const flutter::EncodableMap& data() const; void set_data(const flutter::EncodableMap& value_arg); + bool operator==(const MessageData& other) const; + private: static MessageData FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; diff --git a/packages/pigeon/lib/core_tests.gen.dart b/packages/pigeon/lib/core_tests.gen.dart new file mode 100644 index 000000000000..485b24ac280e --- /dev/null +++ b/packages/pigeon/lib/core_tests.gen.dart @@ -0,0 +1,7504 @@ +// Autogenerated from Pigeon (v26.1.9), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, omit_obvious_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +PlatformException _createConnectionError(String channelName) { + return PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel: "$channelName".', + ); +} + +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { + if (empty) { + return []; + } + if (error == null) { + return [result]; + } + return [error.code, error.message, error.details]; +} + +bool _deepEquals(Object? a, Object? b) { + if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (a is List && b is List) { + return a.length == b.length && + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); + } + if (a is Map && b is Map) { + return a.length == b.length && + a.entries.every( + (MapEntry entry) => + (b as Map).containsKey(entry.key) && + _deepEquals(entry.value, b[entry.key]), + ); + } + return false; +} + +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + return Object.hashAll( + value.entries.map( + (MapEntry entry) => + Object.hash(_deepHash(entry.key), _deepHash(entry.value)), + ), + ); + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + +enum AnEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } + +enum AnotherEnum { justInCase } + +class UnusedClass { + UnusedClass({this.aField}); + + Object? aField; + + List _toList() { + return [aField]; + } + + Object encode() { + return _toList(); + } + + static UnusedClass decode(Object result) { + result as List; + return UnusedClass(aField: result[0]); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! UnusedClass || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(aField, other.aField); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// A class containing all supported types. +class AllTypes { + AllTypes({ + this.aBool = false, + this.anInt = 0, + this.anInt64 = 0, + this.aDouble = 0, + required this.aByteArray, + required this.a4ByteArray, + required this.a8ByteArray, + required this.aFloatArray, + this.anEnum = AnEnum.one, + this.anotherEnum = AnotherEnum.justInCase, + this.aString = '', + this.anObject = 0, + required this.list, + required this.stringList, + required this.intList, + required this.doubleList, + required this.boolList, + required this.enumList, + required this.objectList, + required this.listList, + required this.mapList, + required this.map, + required this.stringMap, + required this.intMap, + required this.enumMap, + required this.objectMap, + required this.listMap, + required this.mapMap, + }); + + bool aBool; + + int anInt; + + int anInt64; + + double aDouble; + + Uint8List aByteArray; + + Int32List a4ByteArray; + + Int64List a8ByteArray; + + Float64List aFloatArray; + + AnEnum anEnum; + + AnotherEnum anotherEnum; + + String aString; + + Object anObject; + + List list; + + List stringList; + + List intList; + + List doubleList; + + List boolList; + + List enumList; + + List objectList; + + List> listList; + + List> mapList; + + Map map; + + Map stringMap; + + Map intMap; + + Map enumMap; + + Map objectMap; + + Map> listMap; + + Map> mapMap; + + List _toList() { + return [ + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + ]; + } + + Object encode() { + return _toList(); + } + + static AllTypes decode(Object result) { + result as List; + return AllTypes( + aBool: result[0]! as bool, + anInt: result[1]! as int, + anInt64: result[2]! as int, + aDouble: result[3]! as double, + aByteArray: result[4]! as Uint8List, + a4ByteArray: result[5]! as Int32List, + a8ByteArray: result[6]! as Int64List, + aFloatArray: result[7]! as Float64List, + anEnum: result[8]! as AnEnum, + anotherEnum: result[9]! as AnotherEnum, + aString: result[10]! as String, + anObject: result[11]!, + list: result[12]! as List, + stringList: (result[13] as List?)!.cast(), + intList: (result[14] as List?)!.cast(), + doubleList: (result[15] as List?)!.cast(), + boolList: (result[16] as List?)!.cast(), + enumList: (result[17] as List?)!.cast(), + objectList: (result[18] as List?)!.cast(), + listList: (result[19] as List?)!.cast>(), + mapList: (result[20] as List?)!.cast>(), + map: result[21]! as Map, + stringMap: (result[22] as Map?)!.cast(), + intMap: (result[23] as Map?)!.cast(), + enumMap: (result[24] as Map?)!.cast(), + objectMap: (result[25] as Map?)!.cast(), + listMap: (result[26] as Map?)! + .cast>(), + mapMap: (result[27] as Map?)! + .cast>(), + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! AllTypes || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(aBool, other.aBool) && + _deepEquals(anInt, other.anInt) && + _deepEquals(anInt64, other.anInt64) && + _deepEquals(aDouble, other.aDouble) && + _deepEquals(aByteArray, other.aByteArray) && + _deepEquals(a4ByteArray, other.a4ByteArray) && + _deepEquals(a8ByteArray, other.a8ByteArray) && + _deepEquals(aFloatArray, other.aFloatArray) && + _deepEquals(anEnum, other.anEnum) && + _deepEquals(anotherEnum, other.anotherEnum) && + _deepEquals(aString, other.aString) && + _deepEquals(anObject, other.anObject) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// A class containing all supported nullable types. +class AllNullableTypes { + AllNullableTypes({ + this.aNullableBool, + this.aNullableInt, + this.aNullableInt64, + this.aNullableDouble, + this.aNullableByteArray, + this.aNullable4ByteArray, + this.aNullable8ByteArray, + this.aNullableFloatArray, + this.aNullableEnum, + this.anotherNullableEnum, + this.aNullableString, + this.aNullableObject, + this.allNullableTypes, + this.list, + this.stringList, + this.intList, + this.doubleList, + this.boolList, + this.enumList, + this.objectList, + this.listList, + this.mapList, + this.recursiveClassList, + this.map, + this.stringMap, + this.intMap, + this.enumMap, + this.objectMap, + this.listMap, + this.mapMap, + this.recursiveClassMap, + }); + + bool? aNullableBool; + + int? aNullableInt; + + int? aNullableInt64; + + double? aNullableDouble; + + Uint8List? aNullableByteArray; + + Int32List? aNullable4ByteArray; + + Int64List? aNullable8ByteArray; + + Float64List? aNullableFloatArray; + + AnEnum? aNullableEnum; + + AnotherEnum? anotherNullableEnum; + + String? aNullableString; + + Object? aNullableObject; + + AllNullableTypes? allNullableTypes; + + List? list; + + List? stringList; + + List? intList; + + List? doubleList; + + List? boolList; + + List? enumList; + + List? objectList; + + List?>? listList; + + List?>? mapList; + + List? recursiveClassList; + + Map? map; + + Map? stringMap; + + Map? intMap; + + Map? enumMap; + + Map? objectMap; + + Map?>? listMap; + + Map?>? mapMap; + + Map? recursiveClassMap; + + List _toList() { + return [ + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap, + ]; + } + + Object encode() { + return _toList(); + } + + static AllNullableTypes decode(Object result) { + result as List; + return AllNullableTypes( + aNullableBool: result[0] as bool?, + aNullableInt: result[1] as int?, + aNullableInt64: result[2] as int?, + aNullableDouble: result[3] as double?, + aNullableByteArray: result[4] as Uint8List?, + aNullable4ByteArray: result[5] as Int32List?, + aNullable8ByteArray: result[6] as Int64List?, + aNullableFloatArray: result[7] as Float64List?, + aNullableEnum: result[8] as AnEnum?, + anotherNullableEnum: result[9] as AnotherEnum?, + aNullableString: result[10] as String?, + aNullableObject: result[11], + allNullableTypes: result[12] as AllNullableTypes?, + list: result[13] as List?, + stringList: (result[14] as List?)?.cast(), + intList: (result[15] as List?)?.cast(), + doubleList: (result[16] as List?)?.cast(), + boolList: (result[17] as List?)?.cast(), + enumList: (result[18] as List?)?.cast(), + objectList: (result[19] as List?)?.cast(), + listList: (result[20] as List?)?.cast?>(), + mapList: (result[21] as List?)?.cast?>(), + recursiveClassList: (result[22] as List?) + ?.cast(), + map: result[23] as Map?, + stringMap: (result[24] as Map?) + ?.cast(), + intMap: (result[25] as Map?)?.cast(), + enumMap: (result[26] as Map?)?.cast(), + objectMap: (result[27] as Map?) + ?.cast(), + listMap: (result[28] as Map?) + ?.cast?>(), + mapMap: (result[29] as Map?) + ?.cast?>(), + recursiveClassMap: (result[30] as Map?) + ?.cast(), + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! AllNullableTypes || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(aNullableBool, other.aNullableBool) && + _deepEquals(aNullableInt, other.aNullableInt) && + _deepEquals(aNullableInt64, other.aNullableInt64) && + _deepEquals(aNullableDouble, other.aNullableDouble) && + _deepEquals(aNullableByteArray, other.aNullableByteArray) && + _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && + _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && + _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && + _deepEquals(aNullableEnum, other.aNullableEnum) && + _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && + _deepEquals(aNullableString, other.aNullableString) && + _deepEquals(aNullableObject, other.aNullableObject) && + _deepEquals(allNullableTypes, other.allNullableTypes) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(recursiveClassList, other.recursiveClassList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap) && + _deepEquals(recursiveClassMap, other.recursiveClassMap); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// The primary purpose for this class is to ensure coverage of Swift structs +/// with nullable items, as the primary [AllNullableTypes] class is being used to +/// test Swift classes. +class AllNullableTypesWithoutRecursion { + AllNullableTypesWithoutRecursion({ + this.aNullableBool, + this.aNullableInt, + this.aNullableInt64, + this.aNullableDouble, + this.aNullableByteArray, + this.aNullable4ByteArray, + this.aNullable8ByteArray, + this.aNullableFloatArray, + this.aNullableEnum, + this.anotherNullableEnum, + this.aNullableString, + this.aNullableObject, + this.list, + this.stringList, + this.intList, + this.doubleList, + this.boolList, + this.enumList, + this.objectList, + this.listList, + this.mapList, + this.map, + this.stringMap, + this.intMap, + this.enumMap, + this.objectMap, + this.listMap, + this.mapMap, + }); + + bool? aNullableBool; + + int? aNullableInt; + + int? aNullableInt64; + + double? aNullableDouble; + + Uint8List? aNullableByteArray; + + Int32List? aNullable4ByteArray; + + Int64List? aNullable8ByteArray; + + Float64List? aNullableFloatArray; + + AnEnum? aNullableEnum; + + AnotherEnum? anotherNullableEnum; + + String? aNullableString; + + Object? aNullableObject; + + List? list; + + List? stringList; + + List? intList; + + List? doubleList; + + List? boolList; + + List? enumList; + + List? objectList; + + List?>? listList; + + List?>? mapList; + + Map? map; + + Map? stringMap; + + Map? intMap; + + Map? enumMap; + + Map? objectMap; + + Map?>? listMap; + + Map?>? mapMap; + + List _toList() { + return [ + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + ]; + } + + Object encode() { + return _toList(); + } + + static AllNullableTypesWithoutRecursion decode(Object result) { + result as List; + return AllNullableTypesWithoutRecursion( + aNullableBool: result[0] as bool?, + aNullableInt: result[1] as int?, + aNullableInt64: result[2] as int?, + aNullableDouble: result[3] as double?, + aNullableByteArray: result[4] as Uint8List?, + aNullable4ByteArray: result[5] as Int32List?, + aNullable8ByteArray: result[6] as Int64List?, + aNullableFloatArray: result[7] as Float64List?, + aNullableEnum: result[8] as AnEnum?, + anotherNullableEnum: result[9] as AnotherEnum?, + aNullableString: result[10] as String?, + aNullableObject: result[11], + list: result[12] as List?, + stringList: (result[13] as List?)?.cast(), + intList: (result[14] as List?)?.cast(), + doubleList: (result[15] as List?)?.cast(), + boolList: (result[16] as List?)?.cast(), + enumList: (result[17] as List?)?.cast(), + objectList: (result[18] as List?)?.cast(), + listList: (result[19] as List?)?.cast?>(), + mapList: (result[20] as List?)?.cast?>(), + map: result[21] as Map?, + stringMap: (result[22] as Map?) + ?.cast(), + intMap: (result[23] as Map?)?.cast(), + enumMap: (result[24] as Map?)?.cast(), + objectMap: (result[25] as Map?) + ?.cast(), + listMap: (result[26] as Map?) + ?.cast?>(), + mapMap: (result[27] as Map?) + ?.cast?>(), + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! AllNullableTypesWithoutRecursion || + other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(aNullableBool, other.aNullableBool) && + _deepEquals(aNullableInt, other.aNullableInt) && + _deepEquals(aNullableInt64, other.aNullableInt64) && + _deepEquals(aNullableDouble, other.aNullableDouble) && + _deepEquals(aNullableByteArray, other.aNullableByteArray) && + _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && + _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && + _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && + _deepEquals(aNullableEnum, other.aNullableEnum) && + _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && + _deepEquals(aNullableString, other.aNullableString) && + _deepEquals(aNullableObject, other.aNullableObject) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// A class for testing nested class handling. +/// +/// This is needed to test nested nullable and non-nullable classes, +/// `AllNullableTypes` is non-nullable here as it is easier to instantiate +/// than `AllTypes` when testing doesn't require both (ie. testing null classes). +class AllClassesWrapper { + AllClassesWrapper({ + required this.allNullableTypes, + this.allNullableTypesWithoutRecursion, + this.allTypes, + required this.classList, + this.nullableClassList, + required this.classMap, + this.nullableClassMap, + }); + + AllNullableTypes allNullableTypes; + + AllNullableTypesWithoutRecursion? allNullableTypesWithoutRecursion; + + AllTypes? allTypes; + + List classList; + + List? nullableClassList; + + Map classMap; + + Map? nullableClassMap; + + List _toList() { + return [ + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + classList, + nullableClassList, + classMap, + nullableClassMap, + ]; + } + + Object encode() { + return _toList(); + } + + static AllClassesWrapper decode(Object result) { + result as List; + return AllClassesWrapper( + allNullableTypes: result[0]! as AllNullableTypes, + allNullableTypesWithoutRecursion: + result[1] as AllNullableTypesWithoutRecursion?, + allTypes: result[2] as AllTypes?, + classList: (result[3] as List?)!.cast(), + nullableClassList: (result[4] as List?) + ?.cast(), + classMap: (result[5] as Map?)!.cast(), + nullableClassMap: (result[6] as Map?) + ?.cast(), + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! AllClassesWrapper || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(allNullableTypes, other.allNullableTypes) && + _deepEquals( + allNullableTypesWithoutRecursion, + other.allNullableTypesWithoutRecursion, + ) && + _deepEquals(allTypes, other.allTypes) && + _deepEquals(classList, other.classList) && + _deepEquals(nullableClassList, other.nullableClassList) && + _deepEquals(classMap, other.classMap) && + _deepEquals(nullableClassMap, other.nullableClassMap); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// A data class containing a List, used in unit tests. +class TestMessage { + TestMessage({this.testList}); + + List? testList; + + List _toList() { + return [testList]; + } + + Object encode() { + return _toList(); + } + + static TestMessage decode(Object result) { + result as List; + return TestMessage(testList: result[0] as List?); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! TestMessage || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(testList, other.testList); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +class _PigeonCodec extends StandardMessageCodec { + const _PigeonCodec(); + @override + void writeValue(WriteBuffer buffer, Object? value) { + if (value is int) { + buffer.putUint8(4); + buffer.putInt64(value); + } else if (value is AnEnum) { + buffer.putUint8(129); + writeValue(buffer, value.index); + } else if (value is AnotherEnum) { + buffer.putUint8(130); + writeValue(buffer, value.index); + } else if (value is UnusedClass) { + buffer.putUint8(131); + writeValue(buffer, value.encode()); + } else if (value is AllTypes) { + buffer.putUint8(132); + writeValue(buffer, value.encode()); + } else if (value is AllNullableTypes) { + buffer.putUint8(133); + writeValue(buffer, value.encode()); + } else if (value is AllNullableTypesWithoutRecursion) { + buffer.putUint8(134); + writeValue(buffer, value.encode()); + } else if (value is AllClassesWrapper) { + buffer.putUint8(135); + writeValue(buffer, value.encode()); + } else if (value is TestMessage) { + buffer.putUint8(136); + writeValue(buffer, value.encode()); + } else { + super.writeValue(buffer, value); + } + } + + @override + Object? readValueOfType(int type, ReadBuffer buffer) { + switch (type) { + case 129: + final value = readValue(buffer) as int?; + return value == null ? null : AnEnum.values[value]; + case 130: + final value = readValue(buffer) as int?; + return value == null ? null : AnotherEnum.values[value]; + case 131: + return UnusedClass.decode(readValue(buffer)!); + case 132: + return AllTypes.decode(readValue(buffer)!); + case 133: + return AllNullableTypes.decode(readValue(buffer)!); + case 134: + return AllNullableTypesWithoutRecursion.decode(readValue(buffer)!); + case 135: + return AllClassesWrapper.decode(readValue(buffer)!); + case 136: + return TestMessage.decode(readValue(buffer)!); + default: + return super.readValueOfType(type, buffer); + } + } +} + +/// The core interface that each host language plugin must implement in +/// platform_test integration tests. +class HostIntegrationCoreApi { + /// Constructor for [HostIntegrationCoreApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + HostIntegrationCoreApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + final BinaryMessenger? pigeonVar_binaryMessenger; + + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + final String pigeonVar_messageChannelSuffix; + + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic calling. + Future noop() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + /// Returns the passed object, to test serialization and deserialization. + Future echoAllTypes(AllTypes everything) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllTypes?)!; + } + } + + /// Returns an error, to test error handling. + Future throwError() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return pigeonVar_replyList[0]; + } + } + + /// Returns an error from a void function, to test error handling. + Future throwErrorFromVoid() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + /// Returns a Flutter error, to test error handling. + Future throwFlutterError() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return pigeonVar_replyList[0]; + } + } + + /// Returns passed in int. + Future echoInt(int anInt) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as int?)!; + } + } + + /// Returns passed in double. + Future echoDouble(double aDouble) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as double?)!; + } + } + + /// Returns the passed in boolean. + Future echoBool(bool aBool) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + /// Returns the passed in string. + Future echoString(String aString) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as String?)!; + } + } + + /// Returns the passed in Uint8List. + Future echoUint8List(Uint8List aUint8List) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aUint8List], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Uint8List?)!; + } + } + + /// Returns the passed in generic Object. + Future echoObject(Object anObject) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anObject], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return pigeonVar_replyList[0]!; + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future> echoList(List list) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)!.cast(); + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future> echoEnumList(List enumList) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)!.cast(); + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future> echoClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)! + .cast(); + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future> echoNonNullEnumList(List enumList) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)!.cast(); + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future> echoNonNullClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoMap(Map map) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoIntMap(Map intMap) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoNonNullStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoNonNullIntMap(Map intMap) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoNonNullEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future> echoNonNullClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed class to test nested class serialization and deserialization. + Future echoClassWrapper(AllClassesWrapper wrapper) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [wrapper], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllClassesWrapper?)!; + } + } + + /// Returns the passed enum to test serialization and deserialization. + Future echoEnum(AnEnum anEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AnEnum?)!; + } + } + + /// Returns the passed enum to test serialization and deserialization. + Future echoAnotherEnum(AnotherEnum anotherEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AnotherEnum?)!; + } + } + + /// Returns the default string. + Future echoNamedDefaultString({String aString = 'default'}) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as String?)!; + } + } + + /// Returns passed in double. + Future echoOptionalDefaultDouble([double aDouble = 3.14]) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as double?)!; + } + } + + /// Returns passed in int. + Future echoRequiredInt({required int anInt}) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as int?)!; + } + } + + /// Returns the passed object, to test serialization and deserialization. + Future echoAllNullableTypes( + AllNullableTypes? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypes?); + } + } + + /// Returns the passed object, to test serialization and deserialization. + Future + echoAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); + } + } + + /// Returns the inner `aString` value from the wrapped object, to test + /// sending of nested objects. + Future extractNestedNullableString(AllClassesWrapper wrapper) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [wrapper], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as String?); + } + } + + /// Returns the inner `aString` value from the wrapped object, to test + /// sending of nested objects. + Future createNestedNullableString( + String? nullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [nullableString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllClassesWrapper?)!; + } + } + + /// Returns passed in arguments of multiple types. + Future sendMultipleNullableTypes( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool, aNullableInt, aNullableString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypes?)!; + } + } + + /// Returns passed in arguments of multiple types. + Future + sendMultipleNullableTypesWithoutRecursion( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool, aNullableInt, aNullableString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?)!; + } + } + + /// Returns passed in int. + Future echoNullableInt(int? aNullableInt) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableInt], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as int?); + } + } + + /// Returns passed in double. + Future echoNullableDouble(double? aNullableDouble) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableDouble], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as double?); + } + } + + /// Returns the passed in boolean. + Future echoNullableBool(bool? aNullableBool) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as bool?); + } + } + + /// Returns the passed in string. + Future echoNullableString(String? aNullableString) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as String?); + } + } + + /// Returns the passed in Uint8List. + Future echoNullableUint8List( + Uint8List? aNullableUint8List, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableUint8List], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Uint8List?); + } + } + + /// Returns the passed in generic Object. + Future echoNullableObject(Object? aNullableObject) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableObject], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return pigeonVar_replyList[0]; + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future?> echoNullableList(List? aNullableList) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?)?.cast(); + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future?> echoNullableEnumList(List? enumList) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?)?.cast(); + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future?> echoNullableClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?) + ?.cast(); + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future?> echoNullableNonNullEnumList( + List? enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?)?.cast(); + } + } + + /// Returns the passed list, to test serialization and deserialization. + Future?> echoNullableNonNullClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableMap( + Map? map, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableIntMap(Map? intMap) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableNonNullStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableNonNullIntMap( + Map? intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableNonNullEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test serialization and deserialization. + Future?> echoNullableNonNullClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future echoNullableEnum(AnEnum? anEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AnEnum?); + } + } + + Future echoAnotherNullableEnum(AnotherEnum? anotherEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AnotherEnum?); + } + } + + /// Returns passed in int. + Future echoOptionalNullableInt([int? aNullableInt]) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableInt], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as int?); + } + } + + /// Returns the passed in string. + Future echoNamedNullableString({String? aNullableString}) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as String?); + } + } + + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic asynchronous calling. + Future noopAsync() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + /// Returns passed in int asynchronously. + Future echoAsyncInt(int anInt) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as int?)!; + } + } + + /// Returns passed in double asynchronously. + Future echoAsyncDouble(double aDouble) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as double?)!; + } + } + + /// Returns the passed in boolean asynchronously. + Future echoAsyncBool(bool aBool) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + /// Returns the passed string asynchronously. + Future echoAsyncString(String aString) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as String?)!; + } + } + + /// Returns the passed in Uint8List asynchronously. + Future echoAsyncUint8List(Uint8List aUint8List) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aUint8List], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Uint8List?)!; + } + } + + /// Returns the passed in generic Object asynchronously. + Future echoAsyncObject(Object anObject) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anObject], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return pigeonVar_replyList[0]!; + } + } + + /// Returns the passed list, to test asynchronous serialization and deserialization. + Future> echoAsyncList(List list) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)!.cast(); + } + } + + /// Returns the passed list, to test asynchronous serialization and deserialization. + Future> echoAsyncEnumList(List enumList) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)!.cast(); + } + } + + /// Returns the passed list, to test asynchronous serialization and deserialization. + Future> echoAsyncClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)! + .cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future> echoAsyncMap(Map map) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future> echoAsyncStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future> echoAsyncIntMap(Map intMap) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future> echoAsyncEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future> echoAsyncClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + /// Returns the passed enum, to test asynchronous serialization and deserialization. + Future echoAsyncEnum(AnEnum anEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AnEnum?)!; + } + } + + /// Returns the passed enum, to test asynchronous serialization and deserialization. + Future echoAnotherAsyncEnum(AnotherEnum anotherEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AnotherEnum?)!; + } + } + + /// Responds with an error from an async function returning a value. + Future throwAsyncError() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return pigeonVar_replyList[0]; + } + } + + /// Responds with an error from an async void function. + Future throwAsyncErrorFromVoid() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + /// Responds with a Flutter error from an async function returning a value. + Future throwAsyncFlutterError() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return pigeonVar_replyList[0]; + } + } + + /// Returns the passed object, to test async serialization and deserialization. + Future echoAsyncAllTypes(AllTypes everything) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllTypes?)!; + } + } + + /// Returns the passed object, to test serialization and deserialization. + Future echoAsyncNullableAllNullableTypes( + AllNullableTypes? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypes?); + } + } + + /// Returns the passed object, to test serialization and deserialization. + Future + echoAsyncNullableAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); + } + } + + /// Returns passed in int asynchronously. + Future echoAsyncNullableInt(int? anInt) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as int?); + } + } + + /// Returns passed in double asynchronously. + Future echoAsyncNullableDouble(double? aDouble) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as double?); + } + } + + /// Returns the passed in boolean asynchronously. + Future echoAsyncNullableBool(bool? aBool) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as bool?); + } + } + + /// Returns the passed string asynchronously. + Future echoAsyncNullableString(String? aString) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as String?); + } + } + + /// Returns the passed in Uint8List asynchronously. + Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aUint8List], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Uint8List?); + } + } + + /// Returns the passed in generic Object asynchronously. + Future echoAsyncNullableObject(Object? anObject) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anObject], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return pigeonVar_replyList[0]; + } + } + + /// Returns the passed list, to test asynchronous serialization and deserialization. + Future?> echoAsyncNullableList(List? list) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?)?.cast(); + } + } + + /// Returns the passed list, to test asynchronous serialization and deserialization. + Future?> echoAsyncNullableEnumList( + List? enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?)?.cast(); + } + } + + /// Returns the passed list, to test asynchronous serialization and deserialization. + Future?> echoAsyncNullableClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?) + ?.cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future?> echoAsyncNullableMap( + Map? map, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future?> echoAsyncNullableStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future?> echoAsyncNullableIntMap( + Map? intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future?> echoAsyncNullableEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed map, to test asynchronous serialization and deserialization. + Future?> echoAsyncNullableClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + /// Returns the passed enum, to test asynchronous serialization and deserialization. + Future echoAsyncNullableEnum(AnEnum? anEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AnEnum?); + } + } + + /// Returns the passed enum, to test asynchronous serialization and deserialization. + Future echoAnotherAsyncNullableEnum( + AnotherEnum? anotherEnum, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AnotherEnum?); + } + } + + /// Returns true if the handler is run on a main thread, which should be + /// true since there is no TaskQueue annotation. + Future defaultIsMainThread() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.defaultIsMainThread$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + /// Returns true if the handler is run on a non-main thread, which should be + /// true for any platform with TaskQueue support. + Future taskQueueIsBackgroundThread() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.taskQueueIsBackgroundThread$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + Future callFlutterNoop() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future callFlutterThrowError() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return pigeonVar_replyList[0]; + } + } + + Future callFlutterThrowErrorFromVoid() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future callFlutterEchoAllTypes(AllTypes everything) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllTypes?)!; + } + } + + Future callFlutterEchoAllNullableTypes( + AllNullableTypes? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypes?); + } + } + + Future callFlutterSendMultipleNullableTypes( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool, aNullableInt, aNullableString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypes?)!; + } + } + + Future + callFlutterEchoAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); + } + } + + Future + callFlutterSendMultipleNullableTypesWithoutRecursion( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool, aNullableInt, aNullableString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?)!; + } + } + + Future callFlutterEchoBool(bool aBool) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + Future callFlutterEchoInt(int anInt) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as int?)!; + } + } + + Future callFlutterEchoDouble(double aDouble) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as double?)!; + } + } + + Future callFlutterEchoString(String aString) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as String?)!; + } + } + + Future callFlutterEchoUint8List(Uint8List list) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Uint8List?)!; + } + } + + Future> callFlutterEchoList(List list) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)!.cast(); + } + } + + Future> callFlutterEchoEnumList(List enumList) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)!.cast(); + } + } + + Future> callFlutterEchoClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)! + .cast(); + } + } + + Future> callFlutterEchoNonNullEnumList( + List enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)!.cast(); + } + } + + Future> callFlutterEchoNonNullClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as List?)! + .cast(); + } + } + + Future> callFlutterEchoMap( + Map map, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future> callFlutterEchoStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future> callFlutterEchoIntMap(Map intMap) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future> callFlutterEchoEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future> callFlutterEchoClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future> callFlutterEchoNonNullStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future> callFlutterEchoNonNullIntMap( + Map intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future> callFlutterEchoNonNullEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future> callFlutterEchoNonNullClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as Map?)! + .cast(); + } + } + + Future callFlutterEchoEnum(AnEnum anEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AnEnum?)!; + } + } + + Future callFlutterEchoAnotherEnum( + AnotherEnum anotherEnum, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as AnotherEnum?)!; + } + } + + Future callFlutterEchoNullableBool(bool? aBool) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as bool?); + } + } + + Future callFlutterEchoNullableInt(int? anInt) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as int?); + } + } + + Future callFlutterEchoNullableDouble(double? aDouble) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as double?); + } + } + + Future callFlutterEchoNullableString(String? aString) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as String?); + } + } + + Future callFlutterEchoNullableUint8List(Uint8List? list) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Uint8List?); + } + } + + Future?> callFlutterEchoNullableList( + List? list, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?)?.cast(); + } + } + + Future?> callFlutterEchoNullableEnumList( + List? enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?)?.cast(); + } + } + + Future?> callFlutterEchoNullableClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableNonNullEnumList( + List? enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?)?.cast(); + } + } + + Future?> callFlutterEchoNullableNonNullClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as List?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableMap( + Map? map, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableIntMap( + Map? intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableNonNullStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableNonNullIntMap( + Map? intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableNonNullEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future?> callFlutterEchoNullableNonNullClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as Map?) + ?.cast(); + } + } + + Future callFlutterEchoNullableEnum(AnEnum? anEnum) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AnEnum?); + } + } + + Future callFlutterEchoAnotherNullableEnum( + AnotherEnum? anotherEnum, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return (pigeonVar_replyList[0] as AnotherEnum?); + } + } + + Future callFlutterSmallApiEchoString(String aString) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as String?)!; + } + } +} + +/// The core interface that the Dart platform_test code implements for host +/// integration tests to call into. +abstract class FlutterIntegrationCoreApi { + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic calling. + void noop(); + + /// Responds with an error from an async function returning a value. + Object? throwError(); + + /// Responds with an error from an async void function. + void throwErrorFromVoid(); + + /// Returns the passed object, to test serialization and deserialization. + AllTypes echoAllTypes(AllTypes everything); + + /// Returns the passed object, to test serialization and deserialization. + AllNullableTypes? echoAllNullableTypes(AllNullableTypes? everything); + + /// Returns passed in arguments of multiple types. + /// + /// Tests multiple-arity FlutterApi handling. + AllNullableTypes sendMultipleNullableTypes( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ); + + /// Returns the passed object, to test serialization and deserialization. + AllNullableTypesWithoutRecursion? echoAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? everything, + ); + + /// Returns passed in arguments of multiple types. + /// + /// Tests multiple-arity FlutterApi handling. + AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ); + + /// Returns the passed boolean, to test serialization and deserialization. + bool echoBool(bool aBool); + + /// Returns the passed int, to test serialization and deserialization. + int echoInt(int anInt); + + /// Returns the passed double, to test serialization and deserialization. + double echoDouble(double aDouble); + + /// Returns the passed string, to test serialization and deserialization. + String echoString(String aString); + + /// Returns the passed byte list, to test serialization and deserialization. + Uint8List echoUint8List(Uint8List list); + + /// Returns the passed list, to test serialization and deserialization. + List echoList(List list); + + /// Returns the passed list, to test serialization and deserialization. + List echoEnumList(List enumList); + + /// Returns the passed list, to test serialization and deserialization. + List echoClassList(List classList); + + /// Returns the passed list, to test serialization and deserialization. + List echoNonNullEnumList(List enumList); + + /// Returns the passed list, to test serialization and deserialization. + List echoNonNullClassList(List classList); + + /// Returns the passed map, to test serialization and deserialization. + Map echoMap(Map map); + + /// Returns the passed map, to test serialization and deserialization. + Map echoStringMap(Map stringMap); + + /// Returns the passed map, to test serialization and deserialization. + Map echoIntMap(Map intMap); + + /// Returns the passed map, to test serialization and deserialization. + Map echoEnumMap(Map enumMap); + + /// Returns the passed map, to test serialization and deserialization. + Map echoClassMap( + Map classMap, + ); + + /// Returns the passed map, to test serialization and deserialization. + Map echoNonNullStringMap(Map stringMap); + + /// Returns the passed map, to test serialization and deserialization. + Map echoNonNullIntMap(Map intMap); + + /// Returns the passed map, to test serialization and deserialization. + Map echoNonNullEnumMap(Map enumMap); + + /// Returns the passed map, to test serialization and deserialization. + Map echoNonNullClassMap( + Map classMap, + ); + + /// Returns the passed enum to test serialization and deserialization. + AnEnum echoEnum(AnEnum anEnum); + + /// Returns the passed enum to test serialization and deserialization. + AnotherEnum echoAnotherEnum(AnotherEnum anotherEnum); + + /// Returns the passed boolean, to test serialization and deserialization. + bool? echoNullableBool(bool? aBool); + + /// Returns the passed int, to test serialization and deserialization. + int? echoNullableInt(int? anInt); + + /// Returns the passed double, to test serialization and deserialization. + double? echoNullableDouble(double? aDouble); + + /// Returns the passed string, to test serialization and deserialization. + String? echoNullableString(String? aString); + + /// Returns the passed byte list, to test serialization and deserialization. + Uint8List? echoNullableUint8List(Uint8List? list); + + /// Returns the passed list, to test serialization and deserialization. + List? echoNullableList(List? list); + + /// Returns the passed list, to test serialization and deserialization. + List? echoNullableEnumList(List? enumList); + + /// Returns the passed list, to test serialization and deserialization. + List? echoNullableClassList( + List? classList, + ); + + /// Returns the passed list, to test serialization and deserialization. + List? echoNullableNonNullEnumList(List? enumList); + + /// Returns the passed list, to test serialization and deserialization. + List? echoNullableNonNullClassList( + List? classList, + ); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableMap(Map? map); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableStringMap( + Map? stringMap, + ); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableIntMap(Map? intMap); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableEnumMap(Map? enumMap); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableClassMap( + Map? classMap, + ); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableNonNullStringMap( + Map? stringMap, + ); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableNonNullIntMap(Map? intMap); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableNonNullEnumMap(Map? enumMap); + + /// Returns the passed map, to test serialization and deserialization. + Map? echoNullableNonNullClassMap( + Map? classMap, + ); + + /// Returns the passed enum to test serialization and deserialization. + AnEnum? echoNullableEnum(AnEnum? anEnum); + + /// Returns the passed enum to test serialization and deserialization. + AnotherEnum? echoAnotherNullableEnum(AnotherEnum? anotherEnum); + + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic asynchronous calling. + Future noopAsync(); + + /// Returns the passed in generic Object asynchronously. + Future echoAsyncString(String aString); + + static void setUp( + FlutterIntegrationCoreApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noop$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + api.noop(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final Object? output = api.throwError(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + api.throwErrorFromVoid(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes was null.', + ); + final List args = (message as List?)!; + final AllTypes? arg_everything = (args[0] as AllTypes?); + assert( + arg_everything != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes was null, expected non-null AllTypes.', + ); + try { + final AllTypes output = api.echoAllTypes(arg_everything!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes was null.', + ); + final List args = (message as List?)!; + final AllNullableTypes? arg_everything = + (args[0] as AllNullableTypes?); + try { + final AllNullableTypes? output = api.echoAllNullableTypes( + arg_everything, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.', + ); + final List args = (message as List?)!; + final bool? arg_aNullableBool = (args[0] as bool?); + final int? arg_aNullableInt = (args[1] as int?); + final String? arg_aNullableString = (args[2] as String?); + try { + final AllNullableTypes output = api.sendMultipleNullableTypes( + arg_aNullableBool, + arg_aNullableInt, + arg_aNullableString, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.', + ); + final List args = (message as List?)!; + final AllNullableTypesWithoutRecursion? arg_everything = + (args[0] as AllNullableTypesWithoutRecursion?); + try { + final AllNullableTypesWithoutRecursion? output = api + .echoAllNullableTypesWithoutRecursion(arg_everything); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.', + ); + final List args = (message as List?)!; + final bool? arg_aNullableBool = (args[0] as bool?); + final int? arg_aNullableInt = (args[1] as int?); + final String? arg_aNullableString = (args[2] as String?); + try { + final AllNullableTypesWithoutRecursion output = api + .sendMultipleNullableTypesWithoutRecursion( + arg_aNullableBool, + arg_aNullableInt, + arg_aNullableString, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool was null.', + ); + final List args = (message as List?)!; + final bool? arg_aBool = (args[0] as bool?); + assert( + arg_aBool != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool was null, expected non-null bool.', + ); + try { + final bool output = api.echoBool(arg_aBool!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt was null.', + ); + final List args = (message as List?)!; + final int? arg_anInt = (args[0] as int?); + assert( + arg_anInt != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt was null, expected non-null int.', + ); + try { + final int output = api.echoInt(arg_anInt!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble was null.', + ); + final List args = (message as List?)!; + final double? arg_aDouble = (args[0] as double?); + assert( + arg_aDouble != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble was null, expected non-null double.', + ); + try { + final double output = api.echoDouble(arg_aDouble!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString was null.', + ); + final List args = (message as List?)!; + final String? arg_aString = (args[0] as String?); + assert( + arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString was null, expected non-null String.', + ); + try { + final String output = api.echoString(arg_aString!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List was null.', + ); + final List args = (message as List?)!; + final Uint8List? arg_list = (args[0] as Uint8List?); + assert( + arg_list != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List was null, expected non-null Uint8List.', + ); + try { + final Uint8List output = api.echoUint8List(arg_list!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList was null.', + ); + final List args = (message as List?)!; + final List? arg_list = (args[0] as List?) + ?.cast(); + assert( + arg_list != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList was null, expected non-null List.', + ); + try { + final List output = api.echoList(arg_list!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList was null.', + ); + final List args = (message as List?)!; + final List? arg_enumList = (args[0] as List?) + ?.cast(); + assert( + arg_enumList != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList was null, expected non-null List.', + ); + try { + final List output = api.echoEnumList(arg_enumList!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList was null.', + ); + final List args = (message as List?)!; + final List? arg_classList = + (args[0] as List?)?.cast(); + assert( + arg_classList != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList was null, expected non-null List.', + ); + try { + final List output = api.echoClassList( + arg_classList!, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList was null.', + ); + final List args = (message as List?)!; + final List? arg_enumList = (args[0] as List?) + ?.cast(); + assert( + arg_enumList != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList was null, expected non-null List.', + ); + try { + final List output = api.echoNonNullEnumList(arg_enumList!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList was null.', + ); + final List args = (message as List?)!; + final List? arg_classList = + (args[0] as List?)?.cast(); + assert( + arg_classList != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList was null, expected non-null List.', + ); + try { + final List output = api.echoNonNullClassList( + arg_classList!, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_map = + (args[0] as Map?)?.cast(); + assert( + arg_map != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoMap(arg_map!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_stringMap = + (args[0] as Map?)?.cast(); + assert( + arg_stringMap != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoStringMap( + arg_stringMap!, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_intMap = + (args[0] as Map?)?.cast(); + assert( + arg_intMap != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoIntMap(arg_intMap!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_enumMap = + (args[0] as Map?)?.cast(); + assert( + arg_enumMap != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoEnumMap(arg_enumMap!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_classMap = + (args[0] as Map?) + ?.cast(); + assert( + arg_classMap != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoClassMap( + arg_classMap!, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_stringMap = + (args[0] as Map?)?.cast(); + assert( + arg_stringMap != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoNonNullStringMap( + arg_stringMap!, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_intMap = (args[0] as Map?) + ?.cast(); + assert( + arg_intMap != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoNonNullIntMap(arg_intMap!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_enumMap = + (args[0] as Map?)?.cast(); + assert( + arg_enumMap != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoNonNullEnumMap( + arg_enumMap!, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_classMap = + (args[0] as Map?) + ?.cast(); + assert( + arg_classMap != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap was null, expected non-null Map.', + ); + try { + final Map output = api.echoNonNullClassMap( + arg_classMap!, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum was null.', + ); + final List args = (message as List?)!; + final AnEnum? arg_anEnum = (args[0] as AnEnum?); + assert( + arg_anEnum != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum was null, expected non-null AnEnum.', + ); + try { + final AnEnum output = api.echoEnum(arg_anEnum!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum was null.', + ); + final List args = (message as List?)!; + final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); + assert( + arg_anotherEnum != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum was null, expected non-null AnotherEnum.', + ); + try { + final AnotherEnum output = api.echoAnotherEnum(arg_anotherEnum!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool was null.', + ); + final List args = (message as List?)!; + final bool? arg_aBool = (args[0] as bool?); + try { + final bool? output = api.echoNullableBool(arg_aBool); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt was null.', + ); + final List args = (message as List?)!; + final int? arg_anInt = (args[0] as int?); + try { + final int? output = api.echoNullableInt(arg_anInt); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble was null.', + ); + final List args = (message as List?)!; + final double? arg_aDouble = (args[0] as double?); + try { + final double? output = api.echoNullableDouble(arg_aDouble); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString was null.', + ); + final List args = (message as List?)!; + final String? arg_aString = (args[0] as String?); + try { + final String? output = api.echoNullableString(arg_aString); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List was null.', + ); + final List args = (message as List?)!; + final Uint8List? arg_list = (args[0] as Uint8List?); + try { + final Uint8List? output = api.echoNullableUint8List(arg_list); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList was null.', + ); + final List args = (message as List?)!; + final List? arg_list = (args[0] as List?) + ?.cast(); + try { + final List? output = api.echoNullableList(arg_list); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList was null.', + ); + final List args = (message as List?)!; + final List? arg_enumList = (args[0] as List?) + ?.cast(); + try { + final List? output = api.echoNullableEnumList( + arg_enumList, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList was null.', + ); + final List args = (message as List?)!; + final List? arg_classList = + (args[0] as List?)?.cast(); + try { + final List? output = api.echoNullableClassList( + arg_classList, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList was null.', + ); + final List args = (message as List?)!; + final List? arg_enumList = (args[0] as List?) + ?.cast(); + try { + final List? output = api.echoNullableNonNullEnumList( + arg_enumList, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList was null.', + ); + final List args = (message as List?)!; + final List? arg_classList = + (args[0] as List?)?.cast(); + try { + final List? output = api + .echoNullableNonNullClassList(arg_classList); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_map = + (args[0] as Map?)?.cast(); + try { + final Map? output = api.echoNullableMap(arg_map); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_stringMap = + (args[0] as Map?)?.cast(); + try { + final Map? output = api.echoNullableStringMap( + arg_stringMap, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_intMap = + (args[0] as Map?)?.cast(); + try { + final Map? output = api.echoNullableIntMap(arg_intMap); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_enumMap = + (args[0] as Map?)?.cast(); + try { + final Map? output = api.echoNullableEnumMap( + arg_enumMap, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_classMap = + (args[0] as Map?) + ?.cast(); + try { + final Map? output = api + .echoNullableClassMap(arg_classMap); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_stringMap = + (args[0] as Map?)?.cast(); + try { + final Map? output = api + .echoNullableNonNullStringMap(arg_stringMap); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_intMap = (args[0] as Map?) + ?.cast(); + try { + final Map? output = api.echoNullableNonNullIntMap( + arg_intMap, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_enumMap = + (args[0] as Map?)?.cast(); + try { + final Map? output = api.echoNullableNonNullEnumMap( + arg_enumMap, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap was null.', + ); + final List args = (message as List?)!; + final Map? arg_classMap = + (args[0] as Map?) + ?.cast(); + try { + final Map? output = api + .echoNullableNonNullClassMap(arg_classMap); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum was null.', + ); + final List args = (message as List?)!; + final AnEnum? arg_anEnum = (args[0] as AnEnum?); + try { + final AnEnum? output = api.echoNullableEnum(arg_anEnum); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.', + ); + final List args = (message as List?)!; + final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); + try { + final AnotherEnum? output = api.echoAnotherNullableEnum( + arg_anotherEnum, + ); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + await api.noopAsync(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString was null.', + ); + final List args = (message as List?)!; + final String? arg_aString = (args[0] as String?); + assert( + arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString was null, expected non-null String.', + ); + try { + final String output = await api.echoAsyncString(arg_aString!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + } +} + +/// An API that can be implemented for minimal, compile-only tests. +class HostTrivialApi { + /// Constructor for [HostTrivialApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + HostTrivialApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + final BinaryMessenger? pigeonVar_binaryMessenger; + + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + final String pigeonVar_messageChannelSuffix; + + Future noop() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } +} + +/// A simple API implemented in some unit tests. +class HostSmallApi { + /// Constructor for [HostSmallApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + HostSmallApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + final BinaryMessenger? pigeonVar_binaryMessenger; + + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + final String pigeonVar_messageChannelSuffix; + + Future echo(String aString) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as String?)!; + } + } + + Future voidVoid() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } +} + +/// A simple API called in some unit tests. +abstract class FlutterSmallApi { + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + TestMessage echoWrappedList(TestMessage msg); + + String echoString(String aString); + + static void setUp( + FlutterSmallApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList was null.', + ); + final List args = (message as List?)!; + final TestMessage? arg_msg = (args[0] as TestMessage?); + assert( + arg_msg != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList was null, expected non-null TestMessage.', + ); + try { + final TestMessage output = api.echoWrappedList(arg_msg!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString was null.', + ); + final List args = (message as List?)!; + final String? arg_aString = (args[0] as String?); + assert( + arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString was null, expected non-null String.', + ); + try { + final String output = api.echoString(arg_aString!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + } +} diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 9708198f6cd8..407fe44468b8 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -459,6 +459,14 @@ class CppHeaderGenerator extends StructuredGenerator { } indent.newln(); } + + _writeFunctionDeclaration( + indent, + 'operator==', + returnType: 'bool', + parameters: ['const ${classDefinition.name}& other'], + isConst: true, + ); }); _writeAccessBlock(indent, _ClassAccess.private, () { @@ -937,6 +945,7 @@ class CppSourceGenerator extends StructuredGenerator { ]); indent.newln(); _writeSystemHeaderIncludeBlock(indent, [ + 'cmath', 'map', 'string', 'optional', @@ -988,6 +997,7 @@ class CppSourceGenerator extends StructuredGenerator { EncodableValue(""));'''); }, ); + _writeDeepEquals(indent); } @override @@ -1052,6 +1062,73 @@ class CppSourceGenerator extends StructuredGenerator { classDefinition, dartPackageName: dartPackageName, ); + + _writeFunctionDefinition( + indent, + 'operator==', + scope: classDefinition.name, + returnType: 'bool', + parameters: ['const ${classDefinition.name}& other'], + isConst: true, + body: () { + final Iterable checks = orderedFields.map((NamedType field) { + final String name = _makeInstanceVariableName(field); + return 'PigeonInternalDeepEquals($name, other.$name)'; + }); + if (checks.isEmpty) { + indent.writeln('return true;'); + } else { + indent.writeln('return ${checks.join(' && ')};'); + } + }, + ); + } + + void _writeDeepEquals(Indent indent) { + indent.format(''' +template +bool PigeonInternalDeepEquals(const T& a, const T& b) { + return a == b; +} + +template +bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) { + if (a.size() != b.size()) return false; + for (size_t i = 0; i < a.size(); ++i) { + if (!PigeonInternalDeepEquals(a[i], b[i])) return false; + } + return true; +} + +template +bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { + if (a.size() != b.size()) return false; + for (const auto& kv : a) { + auto it = b.find(kv.first); + if (it == b.end()) return false; + if (!PigeonInternalDeepEquals(kv.second, it->second)) return false; + } + return true; +} + +inline bool PigeonInternalDeepEquals(const double& a, const double& b) { + return a == b || (std::isnan(a) && std::isnan(b)); +} + +template +bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& b) { + if (!a && !b) return true; + if (!a || !b) return false; + return PigeonInternalDeepEquals(*a, *b); +} + +inline bool PigeonInternalDeepEquals(const flutter::EncodableValue& a, const flutter::EncodableValue& b) { + if (a.type() == b.type() && a.type() == flutter::EncodableValue::Type::kDouble) { + return PigeonInternalDeepEquals(std::get(a), std::get(b)); + } + return a == b; +} +'''); } @override diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index a8fdafd2ba60..9ea73454c093 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -389,13 +389,9 @@ class DartGenerator extends StructuredGenerator { indent.newln(); indent.writeln('@override'); indent.writeln('// ignore: avoid_equals_and_hash_code_on_mutable_classes'); - final String hashCodeValue = switch (fields.length) { - 0 => 'runtimeType.hashCode', - < 20 => - 'Object.hash(runtimeType, ${fields.map((NamedType field) => field.name).join(', ')})', - _ => 'Object.hashAll([runtimeType, ..._toList()])', - }; - indent.writeln('int get hashCode => $hashCodeValue;'); + indent.writeln( + 'int get hashCode => _deepHash([runtimeType, ..._toList()]);', + ); } @override @@ -1144,6 +1140,7 @@ final BinaryMessenger? ${varNamePrefix}binaryMessenger; } if (root.classes.isNotEmpty) { _writeDeepEquals(indent); + _writeDeepHash(indent); } if (root.containsProxyApi) { proxy_api_helper.writeProxyApiPigeonOverrides( @@ -1178,6 +1175,7 @@ final BinaryMessenger? ${varNamePrefix}binaryMessenger; indent.format(r''' bool _deepEquals(Object? a, Object? b) { if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed @@ -1193,6 +1191,25 @@ bool _deepEquals(Object? a, Object? b) { '''); } + void _writeDeepHash(Indent indent) { + indent.format(r''' +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} +'''); + } + void _writeCreateConnectionError(Indent indent) { indent.newln(); indent.format(''' diff --git a/packages/pigeon/lib/src/java/java_generator.dart b/packages/pigeon/lib/src/java/java_generator.dart index 2f08bc3a0c61..bc621bdd1fb9 100644 --- a/packages/pigeon/lib/src/java/java_generator.dart +++ b/packages/pigeon/lib/src/java/java_generator.dart @@ -206,6 +206,8 @@ class JavaGenerator extends StructuredGenerator { } indent.writeln('public class ${generatorOptions.className!} {'); indent.inc(); + _writeDeepEquals(indent); + _writeDeepHashCode(indent); } @override @@ -381,13 +383,7 @@ class JavaGenerator extends StructuredGenerator { final Iterable checks = classDefinition.fields.map(( NamedType field, ) { - // Objects.equals only does pointer equality for array types. - if (_javaTypeIsArray(field.type)) { - return 'Arrays.equals(${field.name}, that.${field.name})'; - } - return field.type.isNullable - ? 'Objects.equals(${field.name}, that.${field.name})' - : '${field.name}.equals(that.${field.name})'; + return 'pigeonDeepEquals(${field.name}, that.${field.name})'; }); indent.writeln('return ${checks.join(' && ')};'); }); @@ -396,36 +392,160 @@ class JavaGenerator extends StructuredGenerator { // Implement hashCode(). indent.writeln('@Override'); indent.writeScoped('public int hashCode() {', '}', () { - // As with equalty checks, arrays need special handling. - final Iterable arrayFieldNames = classDefinition.fields - .where((NamedType field) => _javaTypeIsArray(field.type)) - .map((NamedType field) => field.name); - final Iterable nonArrayFieldNames = classDefinition.fields - .where((NamedType field) => !_javaTypeIsArray(field.type)) - .map((NamedType field) => field.name); - final nonArrayHashValue = nonArrayFieldNames.isNotEmpty - ? 'Objects.hash(${nonArrayFieldNames.join(', ')})' - : '0'; - - if (arrayFieldNames.isEmpty) { - // Return directly if there are no array variables, to avoid redundant - // variable lint warnings. - indent.writeln('return $nonArrayHashValue;'); + final Iterable fieldNames = classDefinition.fields.map( + (NamedType field) => field.name, + ); + if (fieldNames.isEmpty) { + indent.writeln('return Objects.hash(getClass());'); } else { - const resultVar = '${varNamePrefix}result'; - indent.writeln('int $resultVar = $nonArrayHashValue;'); - // Manually mix in the Arrays.hashCode values. - for (final name in arrayFieldNames) { - indent.writeln( - '$resultVar = 31 * $resultVar + Arrays.hashCode($name);', - ); - } - indent.writeln('return $resultVar;'); + indent.writeln( + 'Object[] fields = new Object[] {getClass(), ${fieldNames.join(', ')}};', + ); + indent.writeln('return pigeonDeepHashCode(fields);'); } }); indent.newln(); } + void _writeDeepEquals(Indent indent) { + indent.writeScoped( + 'private static boolean pigeonDeepEquals(Object a, Object b) {', + '}', + () { + indent.writeln('if (a == b) { return true; }'); + indent.writeln('if (a == null || b == null) { return false; }'); + indent.writeScoped( + 'if (a instanceof byte[] && b instanceof byte[]) {', + '}', + () { + indent.writeln('return Arrays.equals((byte[]) a, (byte[]) b);'); + }, + ); + indent.writeScoped( + 'if (a instanceof int[] && b instanceof int[]) {', + '}', + () { + indent.writeln('return Arrays.equals((int[]) a, (int[]) b);'); + }, + ); + indent.writeScoped( + 'if (a instanceof long[] && b instanceof long[]) {', + '}', + () { + indent.writeln('return Arrays.equals((long[]) a, (long[]) b);'); + }, + ); + indent.writeScoped( + 'if (a instanceof double[] && b instanceof double[]) {', + '}', + () { + indent.writeln('return Arrays.equals((double[]) a, (double[]) b);'); + }, + ); + indent.writeScoped( + 'if (a instanceof List && b instanceof List) {', + '}', + () { + indent.writeln('List listA = (List) a;'); + indent.writeln('List listB = (List) b;'); + indent.writeln( + 'if (listA.size() != listB.size()) { return false; }', + ); + indent.writeScoped( + 'for (int i = 0; i < listA.size(); i++) {', + '}', + () { + indent.writeScoped( + 'if (!pigeonDeepEquals(listA.get(i), listB.get(i))) {', + '}', + () { + indent.writeln('return false;'); + }, + ); + }, + ); + indent.writeln('return true;'); + }, + ); + indent.writeScoped( + 'if (a instanceof Map && b instanceof Map) {', + '}', + () { + indent.writeln('Map mapA = (Map) a;'); + indent.writeln('Map mapB = (Map) b;'); + indent.writeln('if (mapA.size() != mapB.size()) { return false; }'); + indent.writeScoped('for (Object key : mapA.keySet()) {', '}', () { + indent.writeScoped('if (!mapB.containsKey(key)) {', '}', () { + indent.writeln('return false;'); + }); + indent.writeScoped( + 'if (!pigeonDeepEquals(mapA.get(key), mapB.get(key))) {', + '}', + () { + indent.writeln('return false;'); + }, + ); + }); + indent.writeln('return true;'); + }, + ); + indent.writeln('return a.equals(b);'); + }, + ); + indent.newln(); + } + + void _writeDeepHashCode(Indent indent) { + indent.writeScoped( + 'private static int pigeonDeepHashCode(Object value) {', + '}', + () { + indent.writeln('if (value == null) { return 0; }'); + indent.writeScoped('if (value instanceof byte[]) {', '}', () { + indent.writeln('return Arrays.hashCode((byte[]) value);'); + }); + indent.writeScoped('if (value instanceof int[]) {', '}', () { + indent.writeln('return Arrays.hashCode((int[]) value);'); + }); + indent.writeScoped('if (value instanceof long[]) {', '}', () { + indent.writeln('return Arrays.hashCode((long[]) value);'); + }); + indent.writeScoped('if (value instanceof double[]) {', '}', () { + indent.writeln('return Arrays.hashCode((double[]) value);'); + }); + indent.writeScoped('if (value instanceof List) {', '}', () { + indent.writeln('int result = 1;'); + indent.writeScoped('for (Object item : (List) value) {', '}', () { + indent.writeln('result = 31 * result + pigeonDeepHashCode(item);'); + }); + indent.writeln('return result;'); + }); + indent.writeScoped('if (value instanceof Map) {', '}', () { + indent.writeln('int result = 0;'); + indent.writeScoped( + 'for (Map.Entry entry : ((Map) value).entrySet()) {', + '}', + () { + indent.writeln( + 'result += (pigeonDeepHashCode(entry.getKey()) ^ pigeonDeepHashCode(entry.getValue()));', + ); + }, + ); + indent.writeln('return result;'); + }); + indent.writeScoped('if (value instanceof Object[]) {', '}', () { + indent.writeln('int result = 1;'); + indent.writeScoped('for (Object item : (Object[]) value) {', '}', () { + indent.writeln('result = 31 * result + pigeonDeepHashCode(item);'); + }); + indent.writeln('return result;'); + }); + indent.writeln('return value.hashCode();'); + }, + ); + indent.newln(); + } + void _writeClassBuilder( InternalJavaOptions generatorOptions, Root root, @@ -1370,10 +1490,6 @@ String _javaTypeForBuiltinGenericDartType( } } -bool _javaTypeIsArray(TypeDeclaration type) { - return _javaTypeForBuiltinDartType(type)?.endsWith('[]') ?? false; -} - String? _javaTypeForBuiltinDartType(TypeDeclaration type) { const javaTypeForDartTypeMap = { 'bool': 'Boolean', diff --git a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart index cf69aaee747a..4eb7b2c02b00 100644 --- a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart +++ b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart @@ -320,12 +320,18 @@ class KotlinGenerator extends StructuredGenerator { required String dartPackageName, }) { indent.writeScoped('override fun equals(other: Any?): Boolean {', '}', () { - indent.writeScoped('if (other !is ${classDefinition.name}) {', '}', () { - indent.writeln('return false'); - }); + indent.writeScoped( + 'if (other == null || other.javaClass != javaClass) {', + '}', + () { + indent.writeln('return false'); + }, + ); indent.writeScoped('if (this === other) {', '}', () { indent.writeln('return true'); }); + + indent.writeln('val otherActual = other as ${classDefinition.name}'); final Iterable fields = getFieldsInSerializationOrder( classDefinition, ); @@ -336,7 +342,7 @@ class KotlinGenerator extends StructuredGenerator { final String comparisons = fields .map( (NamedType field) => - '$utils.deepEquals(this.${field.name}, other.${field.name})', + '$utils.deepEquals(this.${field.name}, otherActual.${field.name})', ) .join(' && '); indent.writeln('return $comparisons'); @@ -348,20 +354,14 @@ class KotlinGenerator extends StructuredGenerator { final Iterable fields = getFieldsInSerializationOrder( classDefinition, ); - if (fields.isEmpty) { - indent.writeln('return 0'); - } else { - final String utils = _getUtilsClassName(generatorOptions); + final String utils = _getUtilsClassName(generatorOptions); + indent.writeln('var result = javaClass.hashCode()'); + for (final NamedType field in fields) { indent.writeln( - 'var result = $utils.deepHash(this.${fields.first.name})', + 'result = 31 * result + $utils.deepHash(this.${field.name})', ); - for (final NamedType field in fields.skip(1)) { - indent.writeln( - 'result = 31 * result + $utils.deepHash(this.${field.name})', - ); - } - indent.writeln('return result'); } + indent.writeln('return result'); }); } diff --git a/packages/pigeon/lib/src/objc/objc_generator.dart b/packages/pigeon/lib/src/objc/objc_generator.dart index e76459a19dc9..c6fc61a7e50e 100644 --- a/packages/pigeon/lib/src/objc/objc_generator.dart +++ b/packages/pigeon/lib/src/objc/objc_generator.dart @@ -518,6 +518,8 @@ class ObjcSourceGenerator extends StructuredGenerator { indent.writeln('@import Flutter;'); indent.writeln('#endif'); indent.newln(); + _writeDeepEquals(indent); + _writeDeepHash(indent); } @override @@ -614,10 +616,76 @@ class ObjcSourceGenerator extends StructuredGenerator { classDefinition, dartPackageName: dartPackageName, ); + _writeObjcEquality(generatorOptions, indent, classDefinition); indent.writeln('@end'); indent.newln(); } + void _writeObjcEquality( + InternalObjcOptions generatorOptions, + Indent indent, + Class classDefinition, + ) { + final String className = _className( + generatorOptions.prefix, + classDefinition.name, + ); + indent.write('- (BOOL)isEqual:(id)object '); + indent.addScoped('{', '}', () { + indent.writeScoped('if (self == object) {', '}', () { + indent.writeln('return YES;'); + }); + indent.writeScoped( + 'if (![object isKindOfClass:[self class]]) {', + '}', + () { + indent.writeln('return NO;'); + }, + ); + indent.writeln('$className *other = ($className *)object;'); + final Iterable checks = classDefinition.fields.map(( + NamedType field, + ) { + final String name = field.name; + if (_usesPrimitive(field.type)) { + if (field.type.baseName == 'double') { + return '(self.$name == other.$name || (isnan(self.$name) && isnan(other.$name)))'; + } + return 'self.$name == other.$name'; + } else { + return 'FLTPigeonDeepEquals(self.$name, other.$name)'; + } + }); + if (checks.isEmpty) { + indent.writeln('return YES;'); + } else { + indent.writeln('return ${checks.join(' && ')};'); + } + }); + indent.newln(); + indent.write('- (NSUInteger)hash '); + indent.addScoped('{', '}', () { + indent.writeln('NSUInteger result = [self class].hash;'); + for (final NamedType field in classDefinition.fields) { + final String name = field.name; + if (_usesPrimitive(field.type)) { + if (field.type.baseName == 'double') { + indent.writeln( + 'result = result * 31 + (isnan(self.$name) ? (NSUInteger)0x7FF8000000000000 : @(self.$name).hash);', + ); + } else { + indent.writeln('result = result * 31 + @(self.$name).hash;'); + } + } else { + indent.writeln( + 'result = result * 31 + FLTPigeonDeepHash(self.$name);', + ); + } + } + indent.writeln('return result;'); + }); + } + @override void writeClassEncode( InternalObjcOptions generatorOptions, @@ -1601,6 +1669,89 @@ const Map _objcTypeForNonNullableDartTypeMap = 'Object': _ObjcType(baseName: 'id'), }; +void _writeDeepEquals(Indent indent) { + indent.format(''' +static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) __attribute__((unused)); +static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { + if (a == b) { + return YES; + } + if (a == nil || b == nil) { + return NO; + } + if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { + NSNumber *na = (NSNumber *)a; + NSNumber *nb = (NSNumber *)b; + if (isnan(na.doubleValue) && isnan(nb.doubleValue)) { + return YES; + } + } + if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { + NSArray *arrayA = (NSArray *)a; + NSArray *arrayB = (NSArray *)b; + if (arrayA.count != arrayB.count) { + return NO; + } + for (NSUInteger i = 0; i < arrayA.count; i++) { + if (!FLTPigeonDeepEquals(arrayA[i], arrayB[i])) { + return NO; + } + } + return YES; + } + if ([a isKindOfClass:[NSDictionary class]] && [b isKindOfClass:[NSDictionary class]]) { + NSDictionary *dictA = (NSDictionary *)a; + NSDictionary *dictB = (NSDictionary *)b; + if (dictA.count != dictB.count) { + return NO; + } + for (id key in dictA) { + id valueA = dictA[key]; + id valueB = dictB[key]; + if (!FLTPigeonDeepEquals(valueA, valueB)) { + return NO; + } + } + return YES; + } + return [a isEqual:b]; +} +'''); +} + +void _writeDeepHash(Indent indent) { + indent.format(''' +static NSUInteger FLTPigeonDeepHash(id _Nullable value) __attribute__((unused)); +static NSUInteger FLTPigeonDeepHash(id _Nullable value) { + if (value == nil) { + return 0; + } + if ([value isKindOfClass:[NSNumber class]]) { + NSNumber *n = (NSNumber *)value; + if (isnan(n.doubleValue)) { + return (NSUInteger)0x7FF8000000000000; + } + } + if ([value isKindOfClass:[NSArray class]]) { + NSUInteger result = 1; + for (id item in (NSArray *)value) { + result = result * 31 + FLTPigeonDeepHash(item); + } + return result; + } + if ([value isKindOfClass:[NSDictionary class]]) { + NSUInteger result = 0; + NSDictionary *dict = (NSDictionary *)value; + for (id key in dict) { + result += (FLTPigeonDeepHash(key) ^ FLTPigeonDeepHash(dict[key])); + } + return result; + } + return [value hash]; +} +'''); +} + bool _usesPrimitive(TypeDeclaration type) { // Only non-nullable types are unboxed. if (!type.isNullable) { @@ -2005,6 +2156,8 @@ void _writeDataClassDeclaration( '@property(nonatomic, $propertyType$nullability) $fieldType ${field.name};', ); } + indent.writeln('- (BOOL)isEqual:(id)object;'); + indent.writeln('- (NSUInteger)hash;'); indent.writeln('@end'); indent.newln(); } diff --git a/packages/pigeon/lib/src/swift/swift_generator.dart b/packages/pigeon/lib/src/swift/swift_generator.dart index 4a7ed8500feb..36c37cd9be16 100644 --- a/packages/pigeon/lib/src/swift/swift_generator.dart +++ b/packages/pigeon/lib/src/swift/swift_generator.dart @@ -661,6 +661,13 @@ if (wrapped == nil) { 'static func == (lhs: ${classDefinition.name}, rhs: ${classDefinition.name}) -> Bool {', '}', () { + indent.writeScoped( + 'if Swift.type(of: lhs) != Swift.type(of: rhs) {', + '}', + () { + indent.writeln('return false'); + }, + ); if (classDefinition.isSwiftClass) { indent.writeScoped('if (lhs === rhs) {', '}', () { indent.writeln('return true'); @@ -685,6 +692,7 @@ if (wrapped == nil) { indent.newln(); indent.writeScoped('func hash(into hasher: inout Hasher) {', '}', () { + indent.writeln('hasher.combine("${classDefinition.name}")'); final Iterable fields = getFieldsInSerializationOrder( classDefinition, ); @@ -1466,7 +1474,7 @@ if (wrapped == nil) { indent.write('return '); indent.addScoped('[', ']', () { indent.writeln(r'"\(error)",'); - indent.writeln(r'"\(type(of: error))",'); + indent.writeln(r'"\(Swift.type(of: error))",'); indent.writeln(r'"Stacktrace: \(Thread.callStackSymbols)",'); }); }); @@ -1539,6 +1547,9 @@ func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: + return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -1550,7 +1561,9 @@ func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { func $deepHashName(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let valueList = cleanValue as? [Any?] { + if let doubleValue = cleanValue as? Double, doubleValue.isNaN { + hasher.combine(0x7FF8000000000000) + } else if let valueList = cleanValue as? [Any?] { for item in valueList { $deepHashName(value: item, hasher: &hasher) } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index 66e0f3516fa4..41f2dd0bd548 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -26,11 +26,100 @@ import java.util.Collections; import java.util.List; import java.util.Map; -import java.util.Objects; /** Generated class from Pigeon. */ @SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) public class CoreTests { + private static boolean pigeonDeepEquals(Object a, Object b) { + if (a == b) { + return true; + } + if (a == null || b == null) { + return false; + } + if (a instanceof byte[] && b instanceof byte[]) { + return Arrays.equals((byte[]) a, (byte[]) b); + } + if (a instanceof int[] && b instanceof int[]) { + return Arrays.equals((int[]) a, (int[]) b); + } + if (a instanceof long[] && b instanceof long[]) { + return Arrays.equals((long[]) a, (long[]) b); + } + if (a instanceof double[] && b instanceof double[]) { + return Arrays.equals((double[]) a, (double[]) b); + } + if (a instanceof List && b instanceof List) { + List listA = (List) a; + List listB = (List) b; + if (listA.size() != listB.size()) { + return false; + } + for (int i = 0; i < listA.size(); i++) { + if (!pigeonDeepEquals(listA.get(i), listB.get(i))) { + return false; + } + } + return true; + } + if (a instanceof Map && b instanceof Map) { + Map mapA = (Map) a; + Map mapB = (Map) b; + if (mapA.size() != mapB.size()) { + return false; + } + for (Object key : mapA.keySet()) { + if (!mapB.containsKey(key)) { + return false; + } + if (!pigeonDeepEquals(mapA.get(key), mapB.get(key))) { + return false; + } + } + return true; + } + return a.equals(b); + } + + private static int pigeonDeepHashCode(Object value) { + if (value == null) { + return 0; + } + if (value instanceof byte[]) { + return Arrays.hashCode((byte[]) value); + } + if (value instanceof int[]) { + return Arrays.hashCode((int[]) value); + } + if (value instanceof long[]) { + return Arrays.hashCode((long[]) value); + } + if (value instanceof double[]) { + return Arrays.hashCode((double[]) value); + } + if (value instanceof List) { + int result = 1; + for (Object item : (List) value) { + result = 31 * result + pigeonDeepHashCode(item); + } + return result; + } + if (value instanceof Map) { + int result = 0; + for (Map.Entry entry : ((Map) value).entrySet()) { + result += (pigeonDeepHashCode(entry.getKey()) ^ pigeonDeepHashCode(entry.getValue())); + } + return result; + } + if (value instanceof Object[]) { + int result = 1; + for (Object item : (Object[]) value) { + result = 31 * result + pigeonDeepHashCode(item); + } + return result; + } + return value.hashCode(); + } /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ public static class FlutterError extends RuntimeException { @@ -120,12 +209,13 @@ public boolean equals(Object o) { return false; } UnusedClass that = (UnusedClass) o; - return Objects.equals(aField, that.aField); + return pigeonDeepEquals(aField, that.aField); } @Override public int hashCode() { - return Objects.hash(aField); + Object[] fields = new Object[] {getClass(), aField}; + return pigeonDeepHashCode(fields); } public static final class Builder { @@ -542,69 +632,71 @@ public boolean equals(Object o) { return false; } AllTypes that = (AllTypes) o; - return aBool.equals(that.aBool) - && anInt.equals(that.anInt) - && anInt64.equals(that.anInt64) - && aDouble.equals(that.aDouble) - && Arrays.equals(aByteArray, that.aByteArray) - && Arrays.equals(a4ByteArray, that.a4ByteArray) - && Arrays.equals(a8ByteArray, that.a8ByteArray) - && Arrays.equals(aFloatArray, that.aFloatArray) - && anEnum.equals(that.anEnum) - && anotherEnum.equals(that.anotherEnum) - && aString.equals(that.aString) - && anObject.equals(that.anObject) - && list.equals(that.list) - && stringList.equals(that.stringList) - && intList.equals(that.intList) - && doubleList.equals(that.doubleList) - && boolList.equals(that.boolList) - && enumList.equals(that.enumList) - && objectList.equals(that.objectList) - && listList.equals(that.listList) - && mapList.equals(that.mapList) - && map.equals(that.map) - && stringMap.equals(that.stringMap) - && intMap.equals(that.intMap) - && enumMap.equals(that.enumMap) - && objectMap.equals(that.objectMap) - && listMap.equals(that.listMap) - && mapMap.equals(that.mapMap); + return pigeonDeepEquals(aBool, that.aBool) + && pigeonDeepEquals(anInt, that.anInt) + && pigeonDeepEquals(anInt64, that.anInt64) + && pigeonDeepEquals(aDouble, that.aDouble) + && pigeonDeepEquals(aByteArray, that.aByteArray) + && pigeonDeepEquals(a4ByteArray, that.a4ByteArray) + && pigeonDeepEquals(a8ByteArray, that.a8ByteArray) + && pigeonDeepEquals(aFloatArray, that.aFloatArray) + && pigeonDeepEquals(anEnum, that.anEnum) + && pigeonDeepEquals(anotherEnum, that.anotherEnum) + && pigeonDeepEquals(aString, that.aString) + && pigeonDeepEquals(anObject, that.anObject) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap); } @Override public int hashCode() { - int pigeonVar_result = - Objects.hash( - aBool, - anInt, - anInt64, - aDouble, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(a4ByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(a8ByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aFloatArray); - return pigeonVar_result; + Object[] fields = + new Object[] { + getClass(), + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap + }; + return pigeonDeepHashCode(fields); } public static final class Builder { @@ -1288,75 +1380,77 @@ public boolean equals(Object o) { return false; } AllNullableTypes that = (AllNullableTypes) o; - return Objects.equals(aNullableBool, that.aNullableBool) - && Objects.equals(aNullableInt, that.aNullableInt) - && Objects.equals(aNullableInt64, that.aNullableInt64) - && Objects.equals(aNullableDouble, that.aNullableDouble) - && Arrays.equals(aNullableByteArray, that.aNullableByteArray) - && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) - && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) - && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) - && Objects.equals(aNullableEnum, that.aNullableEnum) - && Objects.equals(anotherNullableEnum, that.anotherNullableEnum) - && Objects.equals(aNullableString, that.aNullableString) - && Objects.equals(aNullableObject, that.aNullableObject) - && Objects.equals(allNullableTypes, that.allNullableTypes) - && Objects.equals(list, that.list) - && Objects.equals(stringList, that.stringList) - && Objects.equals(intList, that.intList) - && Objects.equals(doubleList, that.doubleList) - && Objects.equals(boolList, that.boolList) - && Objects.equals(enumList, that.enumList) - && Objects.equals(objectList, that.objectList) - && Objects.equals(listList, that.listList) - && Objects.equals(mapList, that.mapList) - && Objects.equals(recursiveClassList, that.recursiveClassList) - && Objects.equals(map, that.map) - && Objects.equals(stringMap, that.stringMap) - && Objects.equals(intMap, that.intMap) - && Objects.equals(enumMap, that.enumMap) - && Objects.equals(objectMap, that.objectMap) - && Objects.equals(listMap, that.listMap) - && Objects.equals(mapMap, that.mapMap) - && Objects.equals(recursiveClassMap, that.recursiveClassMap); + return pigeonDeepEquals(aNullableBool, that.aNullableBool) + && pigeonDeepEquals(aNullableInt, that.aNullableInt) + && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) + && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) + && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) + && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) + && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) + && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) + && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) + && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) + && pigeonDeepEquals(aNullableString, that.aNullableString) + && pigeonDeepEquals(aNullableObject, that.aNullableObject) + && pigeonDeepEquals(allNullableTypes, that.allNullableTypes) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(recursiveClassList, that.recursiveClassList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap) + && pigeonDeepEquals(recursiveClassMap, that.recursiveClassMap); } @Override public int hashCode() { - int pigeonVar_result = - Objects.hash( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullableByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullable4ByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullable8ByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullableFloatArray); - return pigeonVar_result; + Object[] fields = + new Object[] { + getClass(), + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap + }; + return pigeonDeepHashCode(fields); } public static final class Builder { @@ -2048,69 +2142,71 @@ public boolean equals(Object o) { return false; } AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; - return Objects.equals(aNullableBool, that.aNullableBool) - && Objects.equals(aNullableInt, that.aNullableInt) - && Objects.equals(aNullableInt64, that.aNullableInt64) - && Objects.equals(aNullableDouble, that.aNullableDouble) - && Arrays.equals(aNullableByteArray, that.aNullableByteArray) - && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) - && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) - && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) - && Objects.equals(aNullableEnum, that.aNullableEnum) - && Objects.equals(anotherNullableEnum, that.anotherNullableEnum) - && Objects.equals(aNullableString, that.aNullableString) - && Objects.equals(aNullableObject, that.aNullableObject) - && Objects.equals(list, that.list) - && Objects.equals(stringList, that.stringList) - && Objects.equals(intList, that.intList) - && Objects.equals(doubleList, that.doubleList) - && Objects.equals(boolList, that.boolList) - && Objects.equals(enumList, that.enumList) - && Objects.equals(objectList, that.objectList) - && Objects.equals(listList, that.listList) - && Objects.equals(mapList, that.mapList) - && Objects.equals(map, that.map) - && Objects.equals(stringMap, that.stringMap) - && Objects.equals(intMap, that.intMap) - && Objects.equals(enumMap, that.enumMap) - && Objects.equals(objectMap, that.objectMap) - && Objects.equals(listMap, that.listMap) - && Objects.equals(mapMap, that.mapMap); + return pigeonDeepEquals(aNullableBool, that.aNullableBool) + && pigeonDeepEquals(aNullableInt, that.aNullableInt) + && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) + && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) + && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) + && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) + && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) + && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) + && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) + && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) + && pigeonDeepEquals(aNullableString, that.aNullableString) + && pigeonDeepEquals(aNullableObject, that.aNullableObject) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap); } @Override public int hashCode() { - int pigeonVar_result = - Objects.hash( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullableByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullable4ByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullable8ByteArray); - pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullableFloatArray); - return pigeonVar_result; + Object[] fields = + new Object[] { + getClass(), + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap + }; + return pigeonDeepHashCode(fields); } public static final class Builder { @@ -2573,25 +2669,30 @@ public boolean equals(Object o) { return false; } AllClassesWrapper that = (AllClassesWrapper) o; - return allNullableTypes.equals(that.allNullableTypes) - && Objects.equals(allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) - && Objects.equals(allTypes, that.allTypes) - && classList.equals(that.classList) - && Objects.equals(nullableClassList, that.nullableClassList) - && classMap.equals(that.classMap) - && Objects.equals(nullableClassMap, that.nullableClassMap); + return pigeonDeepEquals(allNullableTypes, that.allNullableTypes) + && pigeonDeepEquals( + allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) + && pigeonDeepEquals(allTypes, that.allTypes) + && pigeonDeepEquals(classList, that.classList) + && pigeonDeepEquals(nullableClassList, that.nullableClassList) + && pigeonDeepEquals(classMap, that.classMap) + && pigeonDeepEquals(nullableClassMap, that.nullableClassMap); } @Override public int hashCode() { - return Objects.hash( - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap); + Object[] fields = + new Object[] { + getClass(), + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + classList, + nullableClassList, + classMap, + nullableClassMap + }; + return pigeonDeepHashCode(fields); } public static final class Builder { @@ -2728,12 +2829,13 @@ public boolean equals(Object o) { return false; } TestMessage that = (TestMessage) o; - return Objects.equals(testList, that.testList); + return pigeonDeepEquals(testList, that.testList); } @Override public int hashCode() { - return Objects.hash(testList); + Object[] fields = new Object[] {getClass(), testList}; + return pigeonDeepHashCode(fields); } public static final class Builder { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java index 1fb1e451dbbb..e698a84122f7 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java @@ -266,4 +266,50 @@ public void error(Throwable error) { }); assertTrue(didCall[0]); } + + @Test + public void equalityWithNaN() { + AllNullableTypes withNaN = + new AllNullableTypes.Builder().setANullableDouble(Double.NaN).build(); + AllNullableTypes withAnotherNaN = + new AllNullableTypes.Builder().setANullableDouble(Double.NaN).build(); + assertEquals(withNaN, withAnotherNaN); + assertEquals(withNaN.hashCode(), withAnotherNaN.hashCode()); + } + + @Test + public void crossTypeEquality() { + AllNullableTypes a = new AllNullableTypes.Builder().setANullableInt(1L).build(); + CoreTests.AllNullableTypesWithoutRecursion b = + new CoreTests.AllNullableTypesWithoutRecursion.Builder().setANullableInt(1L).build(); + assertNotEquals(a, b); + assertNotEquals(b, a); + } + + @Test + public void zeroEquality() { + AllNullableTypes a = new AllNullableTypes.Builder().setANullableDouble(0.0).build(); + AllNullableTypes b = new AllNullableTypes.Builder().setANullableDouble(-0.0).build(); + + // Double Distinguishes 0.0 and -0.0 + assertNotEquals(a, b); + assertNotEquals(a.hashCode(), b.hashCode()); + } + + @Test + public void nestedByteArrayEquality() { + byte[] data = new byte[] {1, 2, 3}; + List list1 = new ArrayList<>(); + list1.add(data); + AllNullableTypes a = new AllNullableTypes.Builder().setList(list1).build(); + + List list2 = new ArrayList<>(); + list2.add(new byte[] {1, 2, 3}); + AllNullableTypes b = new AllNullableTypes.Builder().setList(list2).build(); + + // List.equals calls Object.equals on elements. byte[] identity check will fail. + // This is a known issue we should decide if we want to fix. + assertEquals(a, b); + assertEquals(a.hashCode(), b.hashCode()); + } } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index 38bd8f4a417f..1f9a50de75fb 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -13,6 +13,81 @@ @import Flutter; #endif +static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) __attribute__((unused)); +static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { + if (a == b) { + return YES; + } + if (a == nil || b == nil) { + return NO; + } + if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { + NSNumber *na = (NSNumber *)a; + NSNumber *nb = (NSNumber *)b; + if (isnan(na.doubleValue) && isnan(nb.doubleValue)) { + return YES; + } + } + if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { + NSArray *arrayA = (NSArray *)a; + NSArray *arrayB = (NSArray *)b; + if (arrayA.count != arrayB.count) { + return NO; + } + for (NSUInteger i = 0; i < arrayA.count; i++) { + if (!FLTPigeonDeepEquals(arrayA[i], arrayB[i])) { + return NO; + } + } + return YES; + } + if ([a isKindOfClass:[NSDictionary class]] && [b isKindOfClass:[NSDictionary class]]) { + NSDictionary *dictA = (NSDictionary *)a; + NSDictionary *dictB = (NSDictionary *)b; + if (dictA.count != dictB.count) { + return NO; + } + for (id key in dictA) { + id valueA = dictA[key]; + id valueB = dictB[key]; + if (!FLTPigeonDeepEquals(valueA, valueB)) { + return NO; + } + } + return YES; + } + return [a isEqual:b]; +} + +static NSUInteger FLTPigeonDeepHash(id _Nullable value) __attribute__((unused)); +static NSUInteger FLTPigeonDeepHash(id _Nullable value) { + if (value == nil) { + return 0; + } + if ([value isKindOfClass:[NSNumber class]]) { + NSNumber *n = (NSNumber *)value; + if (isnan(n.doubleValue)) { + return (NSUInteger)0x7FF8000000000000; + } + } + if ([value isKindOfClass:[NSArray class]]) { + NSUInteger result = 1; + for (id item in (NSArray *)value) { + result = result * 31 + FLTPigeonDeepHash(item); + } + return result; + } + if ([value isKindOfClass:[NSDictionary class]]) { + NSUInteger result = 0; + NSDictionary *dict = (NSDictionary *)value; + for (id key in dict) { + result += (FLTPigeonDeepHash(key) ^ FLTPigeonDeepHash(dict[key])); + } + return result; + } + return [value hash]; +} + static NSArray *wrapResult(id result, FlutterError *error) { if (error) { return @[ @@ -111,6 +186,22 @@ + (nullable FLTUnusedClass *)nullableFromList:(NSArray *)list { self.aField ?: [NSNull null], ]; } +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + FLTUnusedClass *other = (FLTUnusedClass *)object; + return FLTPigeonDeepEquals(self.aField, other.aField); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.aField); + return result; +} @end @implementation FLTAllTypes @@ -242,6 +333,74 @@ + (nullable FLTAllTypes *)nullableFromList:(NSArray *)list { self.mapMap ?: [NSNull null], ]; } +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + FLTAllTypes *other = (FLTAllTypes *)object; + return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && + (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && + FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && + FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && + FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && + FLTPigeonDeepEquals(self.aFloatArray, other.aFloatArray) && self.anEnum == other.anEnum && + self.anotherEnum == other.anotherEnum && + FLTPigeonDeepEquals(self.aString, other.aString) && + FLTPigeonDeepEquals(self.anObject, other.anObject) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + @(self.aBool).hash; + result = result * 31 + @(self.anInt).hash; + result = result * 31 + @(self.anInt64).hash; + result = + result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); + result = result * 31 + FLTPigeonDeepHash(self.aByteArray); + result = result * 31 + FLTPigeonDeepHash(self.a4ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.a8ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aFloatArray); + result = result * 31 + @(self.anEnum).hash; + result = result * 31 + @(self.anotherEnum).hash; + result = result * 31 + FLTPigeonDeepHash(self.aString); + result = result * 31 + FLTPigeonDeepHash(self.anObject); + result = result * 31 + FLTPigeonDeepHash(self.list); + result = result * 31 + FLTPigeonDeepHash(self.stringList); + result = result * 31 + FLTPigeonDeepHash(self.intList); + result = result * 31 + FLTPigeonDeepHash(self.doubleList); + result = result * 31 + FLTPigeonDeepHash(self.boolList); + result = result * 31 + FLTPigeonDeepHash(self.enumList); + result = result * 31 + FLTPigeonDeepHash(self.objectList); + result = result * 31 + FLTPigeonDeepHash(self.listList); + result = result * 31 + FLTPigeonDeepHash(self.mapList); + result = result * 31 + FLTPigeonDeepHash(self.map); + result = result * 31 + FLTPigeonDeepHash(self.stringMap); + result = result * 31 + FLTPigeonDeepHash(self.intMap); + result = result * 31 + FLTPigeonDeepHash(self.enumMap); + result = result * 31 + FLTPigeonDeepHash(self.objectMap); + result = result * 31 + FLTPigeonDeepHash(self.listMap); + result = result * 31 + FLTPigeonDeepHash(self.mapMap); + return result; +} @end @implementation FLTAllNullableTypes @@ -385,6 +544,82 @@ + (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list { self.recursiveClassMap ?: [NSNull null], ]; } +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + FLTAllNullableTypes *other = (FLTAllNullableTypes *)object; + return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && + FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && + FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && + FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && + FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && + FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && + FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && + FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && + FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && + FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && + FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && + FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && + FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.recursiveClassList, other.recursiveClassList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap) && + FLTPigeonDeepEquals(self.recursiveClassMap, other.recursiveClassMap); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.aNullableBool); + result = result * 31 + FLTPigeonDeepHash(self.aNullableInt); + result = result * 31 + FLTPigeonDeepHash(self.aNullableInt64); + result = result * 31 + FLTPigeonDeepHash(self.aNullableDouble); + result = result * 31 + FLTPigeonDeepHash(self.aNullableByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullable4ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullable8ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullableFloatArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullableEnum); + result = result * 31 + FLTPigeonDeepHash(self.anotherNullableEnum); + result = result * 31 + FLTPigeonDeepHash(self.aNullableString); + result = result * 31 + FLTPigeonDeepHash(self.aNullableObject); + result = result * 31 + FLTPigeonDeepHash(self.allNullableTypes); + result = result * 31 + FLTPigeonDeepHash(self.list); + result = result * 31 + FLTPigeonDeepHash(self.stringList); + result = result * 31 + FLTPigeonDeepHash(self.intList); + result = result * 31 + FLTPigeonDeepHash(self.doubleList); + result = result * 31 + FLTPigeonDeepHash(self.boolList); + result = result * 31 + FLTPigeonDeepHash(self.enumList); + result = result * 31 + FLTPigeonDeepHash(self.objectList); + result = result * 31 + FLTPigeonDeepHash(self.listList); + result = result * 31 + FLTPigeonDeepHash(self.mapList); + result = result * 31 + FLTPigeonDeepHash(self.recursiveClassList); + result = result * 31 + FLTPigeonDeepHash(self.map); + result = result * 31 + FLTPigeonDeepHash(self.stringMap); + result = result * 31 + FLTPigeonDeepHash(self.intMap); + result = result * 31 + FLTPigeonDeepHash(self.enumMap); + result = result * 31 + FLTPigeonDeepHash(self.objectMap); + result = result * 31 + FLTPigeonDeepHash(self.listMap); + result = result * 31 + FLTPigeonDeepHash(self.mapMap); + result = result * 31 + FLTPigeonDeepHash(self.recursiveClassMap); + return result; +} @end @implementation FLTAllNullableTypesWithoutRecursion @@ -517,6 +752,76 @@ + (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray self.mapMap ?: [NSNull null], ]; } +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + FLTAllNullableTypesWithoutRecursion *other = (FLTAllNullableTypesWithoutRecursion *)object; + return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && + FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && + FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && + FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && + FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && + FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && + FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && + FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && + FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && + FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && + FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && + FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.aNullableBool); + result = result * 31 + FLTPigeonDeepHash(self.aNullableInt); + result = result * 31 + FLTPigeonDeepHash(self.aNullableInt64); + result = result * 31 + FLTPigeonDeepHash(self.aNullableDouble); + result = result * 31 + FLTPigeonDeepHash(self.aNullableByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullable4ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullable8ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullableFloatArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullableEnum); + result = result * 31 + FLTPigeonDeepHash(self.anotherNullableEnum); + result = result * 31 + FLTPigeonDeepHash(self.aNullableString); + result = result * 31 + FLTPigeonDeepHash(self.aNullableObject); + result = result * 31 + FLTPigeonDeepHash(self.list); + result = result * 31 + FLTPigeonDeepHash(self.stringList); + result = result * 31 + FLTPigeonDeepHash(self.intList); + result = result * 31 + FLTPigeonDeepHash(self.doubleList); + result = result * 31 + FLTPigeonDeepHash(self.boolList); + result = result * 31 + FLTPigeonDeepHash(self.enumList); + result = result * 31 + FLTPigeonDeepHash(self.objectList); + result = result * 31 + FLTPigeonDeepHash(self.listList); + result = result * 31 + FLTPigeonDeepHash(self.mapList); + result = result * 31 + FLTPigeonDeepHash(self.map); + result = result * 31 + FLTPigeonDeepHash(self.stringMap); + result = result * 31 + FLTPigeonDeepHash(self.intMap); + result = result * 31 + FLTPigeonDeepHash(self.enumMap); + result = result * 31 + FLTPigeonDeepHash(self.objectMap); + result = result * 31 + FLTPigeonDeepHash(self.listMap); + result = result * 31 + FLTPigeonDeepHash(self.mapMap); + return result; +} @end @implementation FLTAllClassesWrapper @@ -567,6 +872,35 @@ + (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list { self.nullableClassMap ?: [NSNull null], ]; } +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + FLTAllClassesWrapper *other = (FLTAllClassesWrapper *)object; + return FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && + FLTPigeonDeepEquals(self.allNullableTypesWithoutRecursion, + other.allNullableTypesWithoutRecursion) && + FLTPigeonDeepEquals(self.allTypes, other.allTypes) && + FLTPigeonDeepEquals(self.classList, other.classList) && + FLTPigeonDeepEquals(self.nullableClassList, other.nullableClassList) && + FLTPigeonDeepEquals(self.classMap, other.classMap) && + FLTPigeonDeepEquals(self.nullableClassMap, other.nullableClassMap); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.allNullableTypes); + result = result * 31 + FLTPigeonDeepHash(self.allNullableTypesWithoutRecursion); + result = result * 31 + FLTPigeonDeepHash(self.allTypes); + result = result * 31 + FLTPigeonDeepHash(self.classList); + result = result * 31 + FLTPigeonDeepHash(self.nullableClassList); + result = result * 31 + FLTPigeonDeepHash(self.classMap); + result = result * 31 + FLTPigeonDeepHash(self.nullableClassMap); + return result; +} @end @implementation FLTTestMessage @@ -588,6 +922,22 @@ + (nullable FLTTestMessage *)nullableFromList:(NSArray *)list { self.testList ?: [NSNull null], ]; } +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + FLTTestMessage *other = (FLTTestMessage *)object; + return FLTPigeonDeepEquals(self.testList, other.testList); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.testList); + return result; +} @end @interface FLTCoreTestsPigeonCodecReader : FlutterStandardReader diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h index 83f632d43b3b..f9e257f06ce3 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h @@ -48,6 +48,8 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @interface FLTUnusedClass : NSObject + (instancetype)makeWithAField:(nullable id)aField; @property(nonatomic, strong, nullable) id aField; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; @end /// A class containing all supported types. @@ -110,6 +112,8 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy) NSDictionary *objectMap; @property(nonatomic, copy) NSDictionary *> *listMap; @property(nonatomic, copy) NSDictionary *> *mapMap; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; @end /// A class containing all supported nullable types. @@ -179,6 +183,8 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy, nullable) NSDictionary *> *mapMap; @property(nonatomic, copy, nullable) NSDictionary *recursiveClassMap; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; @end /// The primary purpose for this class is to ensure coverage of Swift structs @@ -242,6 +248,8 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy, nullable) NSDictionary *objectMap; @property(nonatomic, copy, nullable) NSDictionary *> *listMap; @property(nonatomic, copy, nullable) NSDictionary *> *mapMap; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; @end /// A class for testing nested class handling. @@ -274,12 +282,16 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy) NSDictionary *classMap; @property(nonatomic, copy, nullable) NSDictionary *nullableClassMap; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; @end /// A data class containing a List, used in unit tests. @interface FLTTestMessage : NSObject + (instancetype)makeWithTestList:(nullable NSArray *)testList; @property(nonatomic, copy, nullable) NSArray *testList; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; @end /// The codec used by all APIs. diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Flutter/AppFrameworkInfo.plist b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Flutter/AppFrameworkInfo.plist index 7c5696400627..391a902b2beb 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Flutter/AppFrameworkInfo.plist +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Flutter/AppFrameworkInfo.plist @@ -20,7 +20,5 @@ ???? CFBundleVersion 1.0 - MinimumOSVersion - 12.0 diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Podfile b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Podfile index 92473fdf5b67..797861ae71c7 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Podfile +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '12.0' +# platform :ios, '13.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Runner.xcodeproj/project.pbxproj b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Runner.xcodeproj/project.pbxproj index 25d767028d45..4b6c92e87802 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Runner.xcodeproj/project.pbxproj @@ -506,7 +506,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -625,7 +625,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -674,7 +674,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m index ddef818e0c5a..b6618f523182 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m @@ -114,8 +114,71 @@ - (void)testAllEquals { [self waitForExpectations:@[ expectation ] timeout:1.0]; } -- (void)unusedClassesExist { - XCTAssert([[FLTUnusedClass alloc] init] != nil); +- (void)testEquality { + FLTAllNullableTypes *everything1 = [[FLTAllNullableTypes alloc] init]; + everything1.aNullableBool = @NO; + everything1.aNullableInt = @(1); + everything1.aNullableString = @"123"; + + FLTAllNullableTypes *everything2 = [[FLTAllNullableTypes alloc] init]; + everything2.aNullableBool = @NO; + everything2.aNullableInt = @(1); + everything2.aNullableString = @"123"; + + FLTAllNullableTypes *everything3 = [[FLTAllNullableTypes alloc] init]; + everything3.aNullableBool = @YES; + + XCTAssertEqualObjects(everything1, everything2); + XCTAssertNotEqualObjects(everything1, everything3); + XCTAssertEqual(everything1.hash, everything2.hash); +} + +- (void)testNaNEquality { + FLTAllNullableTypes *everything1 = [[FLTAllNullableTypes alloc] init]; + everything1.aNullableDouble = @(NAN); + + FLTAllNullableTypes *everything2 = [[FLTAllNullableTypes alloc] init]; + everything2.aNullableDouble = @(NAN); + + XCTAssertEqualObjects(everything1, everything2); + XCTAssertEqual(everything1.hash, everything2.hash); +} + +- (void)testCrossTypeEquality { + FLTAllNullableTypes *a = [[FLTAllNullableTypes alloc] init]; + a.aNullableInt = @(1); + + FLTAllNullableTypesWithoutRecursion *b = [[FLTAllNullableTypesWithoutRecursion alloc] init]; + b.aNullableInt = @(1); + + XCTAssertNotEqualObjects(a, b); + XCTAssertNotEqualObjects(b, a); +} + +- (void)testZeroEquality { + FLTAllNullableTypes *a = [[FLTAllNullableTypes alloc] init]; + a.aNullableDouble = @(0.0); + + FLTAllNullableTypes *b = [[FLTAllNullableTypes alloc] init]; + b.aNullableDouble = @(-0.0); + + // NSNumber Distinguishes 0.0 and -0.0 + XCTAssertNotEqualObjects(a, b); + XCTAssertNotEqual(a.hash, b.hash); +} + +- (void)testNestedNaNEquality { + FLTAllNullableTypes *a = [[FLTAllNullableTypes alloc] init]; + a.aNullableDouble = @(nan("")); + a.doubleList = @[ @(nan("")) ]; + + FLTAllNullableTypes *b = [[FLTAllNullableTypes alloc] init]; + b.aNullableDouble = @(nan("")); + b.doubleList = @[ @(nan("")) ]; + + // If this fails, Objective-C needs a deepEquals helper too. + XCTAssertEqualObjects(a, b); + XCTAssertEqual(a.hash, b.hash); } @end diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/NonNullFieldsTest.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/NonNullFieldsTest.m index 573bb994f91c..cd0369996a01 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/NonNullFieldsTest.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/NonNullFieldsTest.m @@ -22,4 +22,14 @@ - (void)testMake { XCTAssertEqualObjects(@"hello", request.query); } +- (void)testEquality { + NonNullFieldSearchRequest *request1 = [NonNullFieldSearchRequest makeWithQuery:@"hello"]; + NonNullFieldSearchRequest *request2 = [NonNullFieldSearchRequest makeWithQuery:@"hello"]; + NonNullFieldSearchRequest *request3 = [NonNullFieldSearchRequest makeWithQuery:@"world"]; + + XCTAssertEqualObjects(request1, request2); + XCTAssertNotEqualObjects(request1, request3); + XCTAssertEqual(request1.hash, request2.hash); +} + @end diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index d73b88bd4c3c..1729703aacaa 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -35,6 +35,7 @@ List wrapResponse({ bool _deepEquals(Object? a, Object? b) { if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -52,6 +53,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + enum AnEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } enum AnotherEnum { justInCase } @@ -88,7 +104,7 @@ class UnusedClass { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, aField); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } /// A class containing all supported types. @@ -294,7 +310,7 @@ class AllTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll([runtimeType, ..._toList()]); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } /// A class containing all supported nullable types. @@ -522,7 +538,7 @@ class AllNullableTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll([runtimeType, ..._toList()]); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } /// The primary purpose for this class is to ensure coverage of Swift structs @@ -733,7 +749,7 @@ class AllNullableTypesWithoutRecursion { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll([runtimeType, ..._toList()]); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } /// A class for testing nested class handling. @@ -821,16 +837,7 @@ class AllClassesWrapper { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash( - runtimeType, - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap, - ); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } /// A data class containing a List, used in unit tests. @@ -866,7 +873,7 @@ class TestMessage { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, testList); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 096935946299..6404088fcd8d 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -35,6 +35,7 @@ List wrapResponse({ bool _deepEquals(Object? a, Object? b) { if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -52,6 +53,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + /// This comment is to test enum documentation comments. enum EnumState { /// This comment is to test enum member (Pending) documentation comments. @@ -101,7 +117,7 @@ class DataWithEnum { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, state); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index 4edd3eed039a..34f07443403e 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -14,6 +14,7 @@ import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -31,6 +32,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + enum EventEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } enum AnotherEventEnum { justInCase } @@ -261,7 +277,7 @@ class EventAllNullableTypes { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll([runtimeType, ..._toList()]); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } sealed class PlatformEvent {} @@ -298,7 +314,7 @@ class IntEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class StringEvent extends PlatformEvent { @@ -333,7 +349,7 @@ class StringEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class BoolEvent extends PlatformEvent { @@ -368,7 +384,7 @@ class BoolEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class DoubleEvent extends PlatformEvent { @@ -403,7 +419,7 @@ class DoubleEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class ObjectsEvent extends PlatformEvent { @@ -438,7 +454,7 @@ class ObjectsEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class EnumEvent extends PlatformEvent { @@ -473,7 +489,7 @@ class EnumEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class ClassEvent extends PlatformEvent { @@ -508,7 +524,7 @@ class ClassEvent extends PlatformEvent { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index 2e3852d83265..a0ee7fd2316b 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -21,6 +21,7 @@ PlatformException _createConnectionError(String channelName) { bool _deepEquals(Object? a, Object? b) { if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -38,6 +39,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + class FlutterSearchRequest { FlutterSearchRequest({this.query}); @@ -70,7 +86,7 @@ class FlutterSearchRequest { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, query); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class FlutterSearchReply { @@ -110,7 +126,7 @@ class FlutterSearchReply { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, result, error); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class FlutterSearchRequests { @@ -145,7 +161,7 @@ class FlutterSearchRequests { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, requests); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class FlutterSearchReplies { @@ -180,7 +196,7 @@ class FlutterSearchReplies { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, replies); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 3ab405375384..97448c77e899 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -35,6 +35,7 @@ List wrapResponse({ bool _deepEquals(Object? a, Object? b) { if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -52,6 +53,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + /// This comment is to test enum documentation comments. /// /// This comment also tests multiple line comments. @@ -109,7 +125,7 @@ class MessageSearchRequest { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, query, anInt, aBool); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } /// This comment is to test class documentation comments. @@ -160,7 +176,7 @@ class MessageSearchReply { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, result, error, state); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } /// This comment is to test class documentation comments. @@ -197,7 +213,7 @@ class MessageNested { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, request); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index 652bfa396886..286f17b99c1f 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -35,6 +35,7 @@ List wrapResponse({ bool _deepEquals(Object? a, Object? b) { if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -52,6 +53,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + enum ReplyType { success, error } class NonNullFieldSearchRequest { @@ -87,7 +103,7 @@ class NonNullFieldSearchRequest { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, query); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class ExtraData { @@ -128,7 +144,7 @@ class ExtraData { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, detailA, detailB); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class NonNullFieldSearchReply { @@ -187,8 +203,7 @@ class NonNullFieldSearchReply { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => - Object.hash(runtimeType, result, error, indices, extraData, type); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 189dfcb8aaa9..33c1a5ff8cfa 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -35,6 +35,7 @@ List wrapResponse({ bool _deepEquals(Object? a, Object? b) { if (identical(a, b) || a == b) return true; + if (a is double && b is double && a.isNaN && b.isNaN) return true; if (a is List && b is List) { return a.length == b.length && a.indexed.every( @@ -52,6 +53,21 @@ bool _deepEquals(Object? a, Object? b) { return false; } +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } else if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + } + return result; + } else if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + return value.hashCode; +} + enum NullFieldsSearchReplyType { success, failure } class NullFieldsSearchRequest { @@ -92,7 +108,7 @@ class NullFieldsSearchRequest { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hash(runtimeType, query, identifier); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class NullFieldsSearchReply { @@ -151,8 +167,7 @@ class NullFieldsSearchReply { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => - Object.hash(runtimeType, result, error, indices, request, type); + int get hashCode => _deepHash([runtimeType, ..._toList()]); } class _PigeonCodec extends StandardMessageCodec { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart new file mode 100644 index 000000000000..ad15e5e53d9c --- /dev/null +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart @@ -0,0 +1,66 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:shared_test_plugin_code/src/generated/core_tests.gen.dart'; + +void main() { + test('NaN equality', () { + final list = [double.nan]; + final map = {1: double.nan}; + final all1 = AllNullableTypes( + aNullableDouble: double.nan, + doubleList: list, + recursiveClassList: [ + AllNullableTypes(aNullableDouble: double.nan), + ], + map: map, + ); + final all2 = AllNullableTypes( + aNullableDouble: double.nan, + doubleList: list, + recursiveClassList: [ + AllNullableTypes(aNullableDouble: double.nan), + ], + map: map, + ); + + print('all1 == all2: ${all1 == all2}'); + print('all1.hashCode: ${all1.hashCode}'); + print('all2.hashCode: ${all2.hashCode}'); + expect(all1, all2); + expect(all1.hashCode, all2.hashCode); + }); + + test('Nested collection equality', () { + final all1 = AllNullableTypes( + listList: >[ + [1, 2], + ], + mapMap: >{ + 1: {'a': 'b'}, + }, + ); + final all2 = AllNullableTypes( + listList: >[ + [1, 2], + ], + mapMap: >{ + 1: {'a': 'b'}, + }, + ); + + expect(all1, all2); + expect(all1.hashCode, all2.hashCode); + }); + + test('Cross-type equality returns false', () { + final a = AllNullableTypes(aNullableInt: 1); + final b = AllNullableTypesWithoutRecursion(aNullableInt: 1); + // ignore: unrelated_type_equality_checks + expect(a == b, isFalse); + // ignore: unrelated_type_equality_checks + expect(b == a, isFalse); + }); +} diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/non_null_fields_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/non_null_fields_test.dart index 6e051d13e5ac..b802327644b4 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/non_null_fields_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/non_null_fields_test.dart @@ -10,4 +10,14 @@ void main() { final request = NonNullFieldSearchRequest(query: 'what?'); expect(request.query, 'what?'); }); + + test('test equality', () { + final request1 = NonNullFieldSearchRequest(query: 'hello'); + final request2 = NonNullFieldSearchRequest(query: 'hello'); + final request3 = NonNullFieldSearchRequest(query: 'world'); + + expect(request1, request2); + expect(request1, isNot(request3)); + expect(request1.hashCode, request2.hashCode); + }); } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/java/com/example/test_plugin/CoreTests.java b/packages/pigeon/platform_tests/test_plugin/android/src/main/java/com/example/test_plugin/CoreTests.java new file mode 100644 index 000000000000..fd44f0e792ee --- /dev/null +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/java/com/example/test_plugin/CoreTests.java @@ -0,0 +1,9695 @@ +// Autogenerated from Pigeon (v26.1.9), do not edit directly. +// See also: https://pub.dev/packages/pigeon + +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.RetentionPolicy.CLASS; + +import android.util.Log; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import io.flutter.plugin.common.BasicMessageChannel; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.MessageCodec; +import io.flutter.plugin.common.StandardMessageCodec; +import java.io.ByteArrayOutputStream; +import java.lang.annotation.Retention; +import java.lang.annotation.Target; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +/** Generated class from Pigeon. */ +@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) +public class CoreTests { + private static boolean pigeonDeepEquals(Object a, Object b) { + if (a == b) { + return true; + } + if (a == null || b == null) { + return false; + } + if (a instanceof byte[] && b instanceof byte[]) { + return Arrays.equals((byte[]) a, (byte[]) b); + } + if (a instanceof int[] && b instanceof int[]) { + return Arrays.equals((int[]) a, (int[]) b); + } + if (a instanceof long[] && b instanceof long[]) { + return Arrays.equals((long[]) a, (long[]) b); + } + if (a instanceof double[] && b instanceof double[]) { + return Arrays.equals((double[]) a, (double[]) b); + } + if (a instanceof List && b instanceof List) { + List listA = (List) a; + List listB = (List) b; + if (listA.size() != listB.size()) { + return false; + } + for (int i = 0; i < listA.size(); i++) { + if (!pigeonDeepEquals(listA.get(i), listB.get(i))) { + return false; + } + } + return true; + } + if (a instanceof Map && b instanceof Map) { + Map mapA = (Map) a; + Map mapB = (Map) b; + if (mapA.size() != mapB.size()) { + return false; + } + for (Object key : mapA.keySet()) { + if (!mapB.containsKey(key)) { + return false; + } + if (!pigeonDeepEquals(mapA.get(key), mapB.get(key))) { + return false; + } + } + return true; + } + return a.equals(b); + } + + private static int pigeonDeepHashCode(Object value) { + if (value == null) { + return 0; + } + if (value instanceof byte[]) { + return Arrays.hashCode((byte[]) value); + } + if (value instanceof int[]) { + return Arrays.hashCode((int[]) value); + } + if (value instanceof long[]) { + return Arrays.hashCode((long[]) value); + } + if (value instanceof double[]) { + return Arrays.hashCode((double[]) value); + } + if (value instanceof List) { + int result = 1; + for (Object item : (List) value) { + result = 31 * result + pigeonDeepHashCode(item); + } + return result; + } + if (value instanceof Map) { + int result = 0; + for (Map.Entry entry : ((Map) value).entrySet()) { + result += (pigeonDeepHashCode(entry.getKey()) ^ pigeonDeepHashCode(entry.getValue())); + } + return result; + } + if (value instanceof Object[]) { + int result = 1; + for (Object item : (Object[]) value) { + result = 31 * result + pigeonDeepHashCode(item); + } + return result; + } + return value.hashCode(); + } + + /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ + public static class FlutterError extends RuntimeException { + + /** The error code. */ + public final String code; + + /** The error details. Must be a datatype supported by the api codec. */ + public final Object details; + + public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) { + super(message); + this.code = code; + this.details = details; + } + } + + @NonNull + protected static ArrayList wrapError(@NonNull Throwable exception) { + ArrayList errorList = new ArrayList<>(3); + if (exception instanceof FlutterError) { + FlutterError error = (FlutterError) exception; + errorList.add(error.code); + errorList.add(error.getMessage()); + errorList.add(error.details); + } else { + errorList.add(exception.toString()); + errorList.add(exception.getClass().getSimpleName()); + errorList.add( + "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); + } + return errorList; + } + + @NonNull + protected static FlutterError createConnectionError(@NonNull String channelName) { + return new FlutterError( + "channel-error", "Unable to establish connection on channel: " + channelName + ".", ""); + } + + @Target(METHOD) + @Retention(CLASS) + @interface CanIgnoreReturnValue {} + + public enum AnEnum { + ONE(0), + TWO(1), + THREE(2), + FORTY_TWO(3), + FOUR_HUNDRED_TWENTY_TWO(4); + + final int index; + + AnEnum(final int index) { + this.index = index; + } + } + + public enum AnotherEnum { + JUST_IN_CASE(0); + + final int index; + + AnotherEnum(final int index) { + this.index = index; + } + } + + /** Generated class from Pigeon that represents data sent in messages. */ + public static final class UnusedClass { + private @Nullable Object aField; + + public @Nullable Object getAField() { + return aField; + } + + public void setAField(@Nullable Object setterArg) { + this.aField = setterArg; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnusedClass that = (UnusedClass) o; + return pigeonDeepEquals(aField, that.aField); + } + + @Override + public int hashCode() { + Object[] fields = new Object[] {getClass(), aField}; + return pigeonDeepHashCode(fields); + } + + public static final class Builder { + + private @Nullable Object aField; + + @CanIgnoreReturnValue + public @NonNull Builder setAField(@Nullable Object setterArg) { + this.aField = setterArg; + return this; + } + + public @NonNull UnusedClass build() { + UnusedClass pigeonReturn = new UnusedClass(); + pigeonReturn.setAField(aField); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(1); + toListResult.add(aField); + return toListResult; + } + + static @NonNull UnusedClass fromList(@NonNull ArrayList pigeonVar_list) { + UnusedClass pigeonResult = new UnusedClass(); + Object aField = pigeonVar_list.get(0); + pigeonResult.setAField(aField); + return pigeonResult; + } + } + + /** + * A class containing all supported types. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllTypes { + private @NonNull Boolean aBool; + + public @NonNull Boolean getABool() { + return aBool; + } + + public void setABool(@NonNull Boolean setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aBool\" is null."); + } + this.aBool = setterArg; + } + + private @NonNull Long anInt; + + public @NonNull Long getAnInt() { + return anInt; + } + + public void setAnInt(@NonNull Long setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anInt\" is null."); + } + this.anInt = setterArg; + } + + private @NonNull Long anInt64; + + public @NonNull Long getAnInt64() { + return anInt64; + } + + public void setAnInt64(@NonNull Long setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anInt64\" is null."); + } + this.anInt64 = setterArg; + } + + private @NonNull Double aDouble; + + public @NonNull Double getADouble() { + return aDouble; + } + + public void setADouble(@NonNull Double setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aDouble\" is null."); + } + this.aDouble = setterArg; + } + + private @NonNull byte[] aByteArray; + + public @NonNull byte[] getAByteArray() { + return aByteArray; + } + + public void setAByteArray(@NonNull byte[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aByteArray\" is null."); + } + this.aByteArray = setterArg; + } + + private @NonNull int[] a4ByteArray; + + public @NonNull int[] getA4ByteArray() { + return a4ByteArray; + } + + public void setA4ByteArray(@NonNull int[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"a4ByteArray\" is null."); + } + this.a4ByteArray = setterArg; + } + + private @NonNull long[] a8ByteArray; + + public @NonNull long[] getA8ByteArray() { + return a8ByteArray; + } + + public void setA8ByteArray(@NonNull long[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"a8ByteArray\" is null."); + } + this.a8ByteArray = setterArg; + } + + private @NonNull double[] aFloatArray; + + public @NonNull double[] getAFloatArray() { + return aFloatArray; + } + + public void setAFloatArray(@NonNull double[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aFloatArray\" is null."); + } + this.aFloatArray = setterArg; + } + + private @NonNull AnEnum anEnum; + + public @NonNull AnEnum getAnEnum() { + return anEnum; + } + + public void setAnEnum(@NonNull AnEnum setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anEnum\" is null."); + } + this.anEnum = setterArg; + } + + private @NonNull AnotherEnum anotherEnum; + + public @NonNull AnotherEnum getAnotherEnum() { + return anotherEnum; + } + + public void setAnotherEnum(@NonNull AnotherEnum setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anotherEnum\" is null."); + } + this.anotherEnum = setterArg; + } + + private @NonNull String aString; + + public @NonNull String getAString() { + return aString; + } + + public void setAString(@NonNull String setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aString\" is null."); + } + this.aString = setterArg; + } + + private @NonNull Object anObject; + + public @NonNull Object getAnObject() { + return anObject; + } + + public void setAnObject(@NonNull Object setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anObject\" is null."); + } + this.anObject = setterArg; + } + + private @NonNull List list; + + public @NonNull List getList() { + return list; + } + + public void setList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"list\" is null."); + } + this.list = setterArg; + } + + private @NonNull List stringList; + + public @NonNull List getStringList() { + return stringList; + } + + public void setStringList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"stringList\" is null."); + } + this.stringList = setterArg; + } + + private @NonNull List intList; + + public @NonNull List getIntList() { + return intList; + } + + public void setIntList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"intList\" is null."); + } + this.intList = setterArg; + } + + private @NonNull List doubleList; + + public @NonNull List getDoubleList() { + return doubleList; + } + + public void setDoubleList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"doubleList\" is null."); + } + this.doubleList = setterArg; + } + + private @NonNull List boolList; + + public @NonNull List getBoolList() { + return boolList; + } + + public void setBoolList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"boolList\" is null."); + } + this.boolList = setterArg; + } + + private @NonNull List enumList; + + public @NonNull List getEnumList() { + return enumList; + } + + public void setEnumList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"enumList\" is null."); + } + this.enumList = setterArg; + } + + private @NonNull List objectList; + + public @NonNull List getObjectList() { + return objectList; + } + + public void setObjectList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"objectList\" is null."); + } + this.objectList = setterArg; + } + + private @NonNull List> listList; + + public @NonNull List> getListList() { + return listList; + } + + public void setListList(@NonNull List> setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"listList\" is null."); + } + this.listList = setterArg; + } + + private @NonNull List> mapList; + + public @NonNull List> getMapList() { + return mapList; + } + + public void setMapList(@NonNull List> setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"mapList\" is null."); + } + this.mapList = setterArg; + } + + private @NonNull Map map; + + public @NonNull Map getMap() { + return map; + } + + public void setMap(@NonNull Map setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"map\" is null."); + } + this.map = setterArg; + } + + private @NonNull Map stringMap; + + public @NonNull Map getStringMap() { + return stringMap; + } + + public void setStringMap(@NonNull Map setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"stringMap\" is null."); + } + this.stringMap = setterArg; + } + + private @NonNull Map intMap; + + public @NonNull Map getIntMap() { + return intMap; + } + + public void setIntMap(@NonNull Map setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"intMap\" is null."); + } + this.intMap = setterArg; + } + + private @NonNull Map enumMap; + + public @NonNull Map getEnumMap() { + return enumMap; + } + + public void setEnumMap(@NonNull Map setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"enumMap\" is null."); + } + this.enumMap = setterArg; + } + + private @NonNull Map objectMap; + + public @NonNull Map getObjectMap() { + return objectMap; + } + + public void setObjectMap(@NonNull Map setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"objectMap\" is null."); + } + this.objectMap = setterArg; + } + + private @NonNull Map> listMap; + + public @NonNull Map> getListMap() { + return listMap; + } + + public void setListMap(@NonNull Map> setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"listMap\" is null."); + } + this.listMap = setterArg; + } + + private @NonNull Map> mapMap; + + public @NonNull Map> getMapMap() { + return mapMap; + } + + public void setMapMap(@NonNull Map> setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"mapMap\" is null."); + } + this.mapMap = setterArg; + } + + /** Constructor is non-public to enforce null safety; use Builder. */ + AllTypes() {} + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllTypes that = (AllTypes) o; + return pigeonDeepEquals(aBool, that.aBool) + && pigeonDeepEquals(anInt, that.anInt) + && pigeonDeepEquals(anInt64, that.anInt64) + && pigeonDeepEquals(aDouble, that.aDouble) + && pigeonDeepEquals(aByteArray, that.aByteArray) + && pigeonDeepEquals(a4ByteArray, that.a4ByteArray) + && pigeonDeepEquals(a8ByteArray, that.a8ByteArray) + && pigeonDeepEquals(aFloatArray, that.aFloatArray) + && pigeonDeepEquals(anEnum, that.anEnum) + && pigeonDeepEquals(anotherEnum, that.anotherEnum) + && pigeonDeepEquals(aString, that.aString) + && pigeonDeepEquals(anObject, that.anObject) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap); + } + + @Override + public int hashCode() { + Object[] fields = + new Object[] { + getClass(), + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap + }; + return pigeonDeepHashCode(fields); + } + + public static final class Builder { + + private @Nullable Boolean aBool; + + @CanIgnoreReturnValue + public @NonNull Builder setABool(@NonNull Boolean setterArg) { + this.aBool = setterArg; + return this; + } + + private @Nullable Long anInt; + + @CanIgnoreReturnValue + public @NonNull Builder setAnInt(@NonNull Long setterArg) { + this.anInt = setterArg; + return this; + } + + private @Nullable Long anInt64; + + @CanIgnoreReturnValue + public @NonNull Builder setAnInt64(@NonNull Long setterArg) { + this.anInt64 = setterArg; + return this; + } + + private @Nullable Double aDouble; + + @CanIgnoreReturnValue + public @NonNull Builder setADouble(@NonNull Double setterArg) { + this.aDouble = setterArg; + return this; + } + + private @Nullable byte[] aByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setAByteArray(@NonNull byte[] setterArg) { + this.aByteArray = setterArg; + return this; + } + + private @Nullable int[] a4ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setA4ByteArray(@NonNull int[] setterArg) { + this.a4ByteArray = setterArg; + return this; + } + + private @Nullable long[] a8ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setA8ByteArray(@NonNull long[] setterArg) { + this.a8ByteArray = setterArg; + return this; + } + + private @Nullable double[] aFloatArray; + + @CanIgnoreReturnValue + public @NonNull Builder setAFloatArray(@NonNull double[] setterArg) { + this.aFloatArray = setterArg; + return this; + } + + private @Nullable AnEnum anEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setAnEnum(@NonNull AnEnum setterArg) { + this.anEnum = setterArg; + return this; + } + + private @Nullable AnotherEnum anotherEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setAnotherEnum(@NonNull AnotherEnum setterArg) { + this.anotherEnum = setterArg; + return this; + } + + private @Nullable String aString; + + @CanIgnoreReturnValue + public @NonNull Builder setAString(@NonNull String setterArg) { + this.aString = setterArg; + return this; + } + + private @Nullable Object anObject; + + @CanIgnoreReturnValue + public @NonNull Builder setAnObject(@NonNull Object setterArg) { + this.anObject = setterArg; + return this; + } + + private @Nullable List list; + + @CanIgnoreReturnValue + public @NonNull Builder setList(@NonNull List setterArg) { + this.list = setterArg; + return this; + } + + private @Nullable List stringList; + + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@NonNull List setterArg) { + this.stringList = setterArg; + return this; + } + + private @Nullable List intList; + + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@NonNull List setterArg) { + this.intList = setterArg; + return this; + } + + private @Nullable List doubleList; + + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@NonNull List setterArg) { + this.doubleList = setterArg; + return this; + } + + private @Nullable List boolList; + + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@NonNull List setterArg) { + this.boolList = setterArg; + return this; + } + + private @Nullable List enumList; + + @CanIgnoreReturnValue + public @NonNull Builder setEnumList(@NonNull List setterArg) { + this.enumList = setterArg; + return this; + } + + private @Nullable List objectList; + + @CanIgnoreReturnValue + public @NonNull Builder setObjectList(@NonNull List setterArg) { + this.objectList = setterArg; + return this; + } + + private @Nullable List> listList; + + @CanIgnoreReturnValue + public @NonNull Builder setListList(@NonNull List> setterArg) { + this.listList = setterArg; + return this; + } + + private @Nullable List> mapList; + + @CanIgnoreReturnValue + public @NonNull Builder setMapList(@NonNull List> setterArg) { + this.mapList = setterArg; + return this; + } + + private @Nullable Map map; + + @CanIgnoreReturnValue + public @NonNull Builder setMap(@NonNull Map setterArg) { + this.map = setterArg; + return this; + } + + private @Nullable Map stringMap; + + @CanIgnoreReturnValue + public @NonNull Builder setStringMap(@NonNull Map setterArg) { + this.stringMap = setterArg; + return this; + } + + private @Nullable Map intMap; + + @CanIgnoreReturnValue + public @NonNull Builder setIntMap(@NonNull Map setterArg) { + this.intMap = setterArg; + return this; + } + + private @Nullable Map enumMap; + + @CanIgnoreReturnValue + public @NonNull Builder setEnumMap(@NonNull Map setterArg) { + this.enumMap = setterArg; + return this; + } + + private @Nullable Map objectMap; + + @CanIgnoreReturnValue + public @NonNull Builder setObjectMap(@NonNull Map setterArg) { + this.objectMap = setterArg; + return this; + } + + private @Nullable Map> listMap; + + @CanIgnoreReturnValue + public @NonNull Builder setListMap(@NonNull Map> setterArg) { + this.listMap = setterArg; + return this; + } + + private @Nullable Map> mapMap; + + @CanIgnoreReturnValue + public @NonNull Builder setMapMap(@NonNull Map> setterArg) { + this.mapMap = setterArg; + return this; + } + + public @NonNull AllTypes build() { + AllTypes pigeonReturn = new AllTypes(); + pigeonReturn.setABool(aBool); + pigeonReturn.setAnInt(anInt); + pigeonReturn.setAnInt64(anInt64); + pigeonReturn.setADouble(aDouble); + pigeonReturn.setAByteArray(aByteArray); + pigeonReturn.setA4ByteArray(a4ByteArray); + pigeonReturn.setA8ByteArray(a8ByteArray); + pigeonReturn.setAFloatArray(aFloatArray); + pigeonReturn.setAnEnum(anEnum); + pigeonReturn.setAnotherEnum(anotherEnum); + pigeonReturn.setAString(aString); + pigeonReturn.setAnObject(anObject); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setEnumList(enumList); + pigeonReturn.setObjectList(objectList); + pigeonReturn.setListList(listList); + pigeonReturn.setMapList(mapList); + pigeonReturn.setMap(map); + pigeonReturn.setStringMap(stringMap); + pigeonReturn.setIntMap(intMap); + pigeonReturn.setEnumMap(enumMap); + pigeonReturn.setObjectMap(objectMap); + pigeonReturn.setListMap(listMap); + pigeonReturn.setMapMap(mapMap); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(28); + toListResult.add(aBool); + toListResult.add(anInt); + toListResult.add(anInt64); + toListResult.add(aDouble); + toListResult.add(aByteArray); + toListResult.add(a4ByteArray); + toListResult.add(a8ByteArray); + toListResult.add(aFloatArray); + toListResult.add(anEnum); + toListResult.add(anotherEnum); + toListResult.add(aString); + toListResult.add(anObject); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(enumList); + toListResult.add(objectList); + toListResult.add(listList); + toListResult.add(mapList); + toListResult.add(map); + toListResult.add(stringMap); + toListResult.add(intMap); + toListResult.add(enumMap); + toListResult.add(objectMap); + toListResult.add(listMap); + toListResult.add(mapMap); + return toListResult; + } + + static @NonNull AllTypes fromList(@NonNull ArrayList pigeonVar_list) { + AllTypes pigeonResult = new AllTypes(); + Object aBool = pigeonVar_list.get(0); + pigeonResult.setABool((Boolean) aBool); + Object anInt = pigeonVar_list.get(1); + pigeonResult.setAnInt((Long) anInt); + Object anInt64 = pigeonVar_list.get(2); + pigeonResult.setAnInt64((Long) anInt64); + Object aDouble = pigeonVar_list.get(3); + pigeonResult.setADouble((Double) aDouble); + Object aByteArray = pigeonVar_list.get(4); + pigeonResult.setAByteArray((byte[]) aByteArray); + Object a4ByteArray = pigeonVar_list.get(5); + pigeonResult.setA4ByteArray((int[]) a4ByteArray); + Object a8ByteArray = pigeonVar_list.get(6); + pigeonResult.setA8ByteArray((long[]) a8ByteArray); + Object aFloatArray = pigeonVar_list.get(7); + pigeonResult.setAFloatArray((double[]) aFloatArray); + Object anEnum = pigeonVar_list.get(8); + pigeonResult.setAnEnum((AnEnum) anEnum); + Object anotherEnum = pigeonVar_list.get(9); + pigeonResult.setAnotherEnum((AnotherEnum) anotherEnum); + Object aString = pigeonVar_list.get(10); + pigeonResult.setAString((String) aString); + Object anObject = pigeonVar_list.get(11); + pigeonResult.setAnObject(anObject); + Object list = pigeonVar_list.get(12); + pigeonResult.setList((List) list); + Object stringList = pigeonVar_list.get(13); + pigeonResult.setStringList((List) stringList); + Object intList = pigeonVar_list.get(14); + pigeonResult.setIntList((List) intList); + Object doubleList = pigeonVar_list.get(15); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = pigeonVar_list.get(16); + pigeonResult.setBoolList((List) boolList); + Object enumList = pigeonVar_list.get(17); + pigeonResult.setEnumList((List) enumList); + Object objectList = pigeonVar_list.get(18); + pigeonResult.setObjectList((List) objectList); + Object listList = pigeonVar_list.get(19); + pigeonResult.setListList((List>) listList); + Object mapList = pigeonVar_list.get(20); + pigeonResult.setMapList((List>) mapList); + Object map = pigeonVar_list.get(21); + pigeonResult.setMap((Map) map); + Object stringMap = pigeonVar_list.get(22); + pigeonResult.setStringMap((Map) stringMap); + Object intMap = pigeonVar_list.get(23); + pigeonResult.setIntMap((Map) intMap); + Object enumMap = pigeonVar_list.get(24); + pigeonResult.setEnumMap((Map) enumMap); + Object objectMap = pigeonVar_list.get(25); + pigeonResult.setObjectMap((Map) objectMap); + Object listMap = pigeonVar_list.get(26); + pigeonResult.setListMap((Map>) listMap); + Object mapMap = pigeonVar_list.get(27); + pigeonResult.setMapMap((Map>) mapMap); + return pigeonResult; + } + } + + /** + * A class containing all supported nullable types. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllNullableTypes { + private @Nullable Boolean aNullableBool; + + public @Nullable Boolean getANullableBool() { + return aNullableBool; + } + + public void setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + } + + private @Nullable Long aNullableInt; + + public @Nullable Long getANullableInt() { + return aNullableInt; + } + + public void setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + } + + private @Nullable Long aNullableInt64; + + public @Nullable Long getANullableInt64() { + return aNullableInt64; + } + + public void setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + } + + private @Nullable Double aNullableDouble; + + public @Nullable Double getANullableDouble() { + return aNullableDouble; + } + + public void setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + } + + private @Nullable byte[] aNullableByteArray; + + public @Nullable byte[] getANullableByteArray() { + return aNullableByteArray; + } + + public void setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + } + + private @Nullable int[] aNullable4ByteArray; + + public @Nullable int[] getANullable4ByteArray() { + return aNullable4ByteArray; + } + + public void setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + } + + private @Nullable long[] aNullable8ByteArray; + + public @Nullable long[] getANullable8ByteArray() { + return aNullable8ByteArray; + } + + public void setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + } + + private @Nullable double[] aNullableFloatArray; + + public @Nullable double[] getANullableFloatArray() { + return aNullableFloatArray; + } + + public void setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + } + + private @Nullable AnEnum aNullableEnum; + + public @Nullable AnEnum getANullableEnum() { + return aNullableEnum; + } + + public void setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + } + + private @Nullable AnotherEnum anotherNullableEnum; + + public @Nullable AnotherEnum getAnotherNullableEnum() { + return anotherNullableEnum; + } + + public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + } + + private @Nullable String aNullableString; + + public @Nullable String getANullableString() { + return aNullableString; + } + + public void setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + } + + private @Nullable Object aNullableObject; + + public @Nullable Object getANullableObject() { + return aNullableObject; + } + + public void setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + } + + private @Nullable AllNullableTypes allNullableTypes; + + public @Nullable AllNullableTypes getAllNullableTypes() { + return allNullableTypes; + } + + public void setAllNullableTypes(@Nullable AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; + } + + private @Nullable List list; + + public @Nullable List getList() { + return list; + } + + public void setList(@Nullable List setterArg) { + this.list = setterArg; + } + + private @Nullable List stringList; + + public @Nullable List getStringList() { + return stringList; + } + + public void setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + } + + private @Nullable List intList; + + public @Nullable List getIntList() { + return intList; + } + + public void setIntList(@Nullable List setterArg) { + this.intList = setterArg; + } + + private @Nullable List doubleList; + + public @Nullable List getDoubleList() { + return doubleList; + } + + public void setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + } + + private @Nullable List boolList; + + public @Nullable List getBoolList() { + return boolList; + } + + public void setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + } + + private @Nullable List enumList; + + public @Nullable List getEnumList() { + return enumList; + } + + public void setEnumList(@Nullable List setterArg) { + this.enumList = setterArg; + } + + private @Nullable List objectList; + + public @Nullable List getObjectList() { + return objectList; + } + + public void setObjectList(@Nullable List setterArg) { + this.objectList = setterArg; + } + + private @Nullable List> listList; + + public @Nullable List> getListList() { + return listList; + } + + public void setListList(@Nullable List> setterArg) { + this.listList = setterArg; + } + + private @Nullable List> mapList; + + public @Nullable List> getMapList() { + return mapList; + } + + public void setMapList(@Nullable List> setterArg) { + this.mapList = setterArg; + } + + private @Nullable List recursiveClassList; + + public @Nullable List getRecursiveClassList() { + return recursiveClassList; + } + + public void setRecursiveClassList(@Nullable List setterArg) { + this.recursiveClassList = setterArg; + } + + private @Nullable Map map; + + public @Nullable Map getMap() { + return map; + } + + public void setMap(@Nullable Map setterArg) { + this.map = setterArg; + } + + private @Nullable Map stringMap; + + public @Nullable Map getStringMap() { + return stringMap; + } + + public void setStringMap(@Nullable Map setterArg) { + this.stringMap = setterArg; + } + + private @Nullable Map intMap; + + public @Nullable Map getIntMap() { + return intMap; + } + + public void setIntMap(@Nullable Map setterArg) { + this.intMap = setterArg; + } + + private @Nullable Map enumMap; + + public @Nullable Map getEnumMap() { + return enumMap; + } + + public void setEnumMap(@Nullable Map setterArg) { + this.enumMap = setterArg; + } + + private @Nullable Map objectMap; + + public @Nullable Map getObjectMap() { + return objectMap; + } + + public void setObjectMap(@Nullable Map setterArg) { + this.objectMap = setterArg; + } + + private @Nullable Map> listMap; + + public @Nullable Map> getListMap() { + return listMap; + } + + public void setListMap(@Nullable Map> setterArg) { + this.listMap = setterArg; + } + + private @Nullable Map> mapMap; + + public @Nullable Map> getMapMap() { + return mapMap; + } + + public void setMapMap(@Nullable Map> setterArg) { + this.mapMap = setterArg; + } + + private @Nullable Map recursiveClassMap; + + public @Nullable Map getRecursiveClassMap() { + return recursiveClassMap; + } + + public void setRecursiveClassMap(@Nullable Map setterArg) { + this.recursiveClassMap = setterArg; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllNullableTypes that = (AllNullableTypes) o; + return pigeonDeepEquals(aNullableBool, that.aNullableBool) + && pigeonDeepEquals(aNullableInt, that.aNullableInt) + && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) + && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) + && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) + && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) + && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) + && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) + && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) + && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) + && pigeonDeepEquals(aNullableString, that.aNullableString) + && pigeonDeepEquals(aNullableObject, that.aNullableObject) + && pigeonDeepEquals(allNullableTypes, that.allNullableTypes) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(recursiveClassList, that.recursiveClassList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap) + && pigeonDeepEquals(recursiveClassMap, that.recursiveClassMap); + } + + @Override + public int hashCode() { + Object[] fields = + new Object[] { + getClass(), + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap + }; + return pigeonDeepHashCode(fields); + } + + public static final class Builder { + + private @Nullable Boolean aNullableBool; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + return this; + } + + private @Nullable Long aNullableInt; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + return this; + } + + private @Nullable Long aNullableInt64; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + return this; + } + + private @Nullable Double aNullableDouble; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + return this; + } + + private @Nullable byte[] aNullableByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + return this; + } + + private @Nullable int[] aNullable4ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + return this; + } + + private @Nullable long[] aNullable8ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + return this; + } + + private @Nullable double[] aNullableFloatArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + return this; + } + + private @Nullable AnEnum aNullableEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + return this; + } + + private @Nullable AnotherEnum anotherNullableEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + return this; + } + + private @Nullable String aNullableString; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + return this; + } + + private @Nullable Object aNullableObject; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + return this; + } + + private @Nullable AllNullableTypes allNullableTypes; + + @CanIgnoreReturnValue + public @NonNull Builder setAllNullableTypes(@Nullable AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; + return this; + } + + private @Nullable List list; + + @CanIgnoreReturnValue + public @NonNull Builder setList(@Nullable List setterArg) { + this.list = setterArg; + return this; + } + + private @Nullable List stringList; + + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + return this; + } + + private @Nullable List intList; + + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@Nullable List setterArg) { + this.intList = setterArg; + return this; + } + + private @Nullable List doubleList; + + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + return this; + } + + private @Nullable List boolList; + + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + return this; + } + + private @Nullable List enumList; + + @CanIgnoreReturnValue + public @NonNull Builder setEnumList(@Nullable List setterArg) { + this.enumList = setterArg; + return this; + } + + private @Nullable List objectList; + + @CanIgnoreReturnValue + public @NonNull Builder setObjectList(@Nullable List setterArg) { + this.objectList = setterArg; + return this; + } + + private @Nullable List> listList; + + @CanIgnoreReturnValue + public @NonNull Builder setListList(@Nullable List> setterArg) { + this.listList = setterArg; + return this; + } + + private @Nullable List> mapList; + + @CanIgnoreReturnValue + public @NonNull Builder setMapList(@Nullable List> setterArg) { + this.mapList = setterArg; + return this; + } + + private @Nullable List recursiveClassList; + + @CanIgnoreReturnValue + public @NonNull Builder setRecursiveClassList(@Nullable List setterArg) { + this.recursiveClassList = setterArg; + return this; + } + + private @Nullable Map map; + + @CanIgnoreReturnValue + public @NonNull Builder setMap(@Nullable Map setterArg) { + this.map = setterArg; + return this; + } + + private @Nullable Map stringMap; + + @CanIgnoreReturnValue + public @NonNull Builder setStringMap(@Nullable Map setterArg) { + this.stringMap = setterArg; + return this; + } + + private @Nullable Map intMap; + + @CanIgnoreReturnValue + public @NonNull Builder setIntMap(@Nullable Map setterArg) { + this.intMap = setterArg; + return this; + } + + private @Nullable Map enumMap; + + @CanIgnoreReturnValue + public @NonNull Builder setEnumMap(@Nullable Map setterArg) { + this.enumMap = setterArg; + return this; + } + + private @Nullable Map objectMap; + + @CanIgnoreReturnValue + public @NonNull Builder setObjectMap(@Nullable Map setterArg) { + this.objectMap = setterArg; + return this; + } + + private @Nullable Map> listMap; + + @CanIgnoreReturnValue + public @NonNull Builder setListMap(@Nullable Map> setterArg) { + this.listMap = setterArg; + return this; + } + + private @Nullable Map> mapMap; + + @CanIgnoreReturnValue + public @NonNull Builder setMapMap(@Nullable Map> setterArg) { + this.mapMap = setterArg; + return this; + } + + private @Nullable Map recursiveClassMap; + + @CanIgnoreReturnValue + public @NonNull Builder setRecursiveClassMap( + @Nullable Map setterArg) { + this.recursiveClassMap = setterArg; + return this; + } + + public @NonNull AllNullableTypes build() { + AllNullableTypes pigeonReturn = new AllNullableTypes(); + pigeonReturn.setANullableBool(aNullableBool); + pigeonReturn.setANullableInt(aNullableInt); + pigeonReturn.setANullableInt64(aNullableInt64); + pigeonReturn.setANullableDouble(aNullableDouble); + pigeonReturn.setANullableByteArray(aNullableByteArray); + pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); + pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); + pigeonReturn.setANullableFloatArray(aNullableFloatArray); + pigeonReturn.setANullableEnum(aNullableEnum); + pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); + pigeonReturn.setANullableString(aNullableString); + pigeonReturn.setANullableObject(aNullableObject); + pigeonReturn.setAllNullableTypes(allNullableTypes); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setEnumList(enumList); + pigeonReturn.setObjectList(objectList); + pigeonReturn.setListList(listList); + pigeonReturn.setMapList(mapList); + pigeonReturn.setRecursiveClassList(recursiveClassList); + pigeonReturn.setMap(map); + pigeonReturn.setStringMap(stringMap); + pigeonReturn.setIntMap(intMap); + pigeonReturn.setEnumMap(enumMap); + pigeonReturn.setObjectMap(objectMap); + pigeonReturn.setListMap(listMap); + pigeonReturn.setMapMap(mapMap); + pigeonReturn.setRecursiveClassMap(recursiveClassMap); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(31); + toListResult.add(aNullableBool); + toListResult.add(aNullableInt); + toListResult.add(aNullableInt64); + toListResult.add(aNullableDouble); + toListResult.add(aNullableByteArray); + toListResult.add(aNullable4ByteArray); + toListResult.add(aNullable8ByteArray); + toListResult.add(aNullableFloatArray); + toListResult.add(aNullableEnum); + toListResult.add(anotherNullableEnum); + toListResult.add(aNullableString); + toListResult.add(aNullableObject); + toListResult.add(allNullableTypes); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(enumList); + toListResult.add(objectList); + toListResult.add(listList); + toListResult.add(mapList); + toListResult.add(recursiveClassList); + toListResult.add(map); + toListResult.add(stringMap); + toListResult.add(intMap); + toListResult.add(enumMap); + toListResult.add(objectMap); + toListResult.add(listMap); + toListResult.add(mapMap); + toListResult.add(recursiveClassMap); + return toListResult; + } + + static @NonNull AllNullableTypes fromList(@NonNull ArrayList pigeonVar_list) { + AllNullableTypes pigeonResult = new AllNullableTypes(); + Object aNullableBool = pigeonVar_list.get(0); + pigeonResult.setANullableBool((Boolean) aNullableBool); + Object aNullableInt = pigeonVar_list.get(1); + pigeonResult.setANullableInt((Long) aNullableInt); + Object aNullableInt64 = pigeonVar_list.get(2); + pigeonResult.setANullableInt64((Long) aNullableInt64); + Object aNullableDouble = pigeonVar_list.get(3); + pigeonResult.setANullableDouble((Double) aNullableDouble); + Object aNullableByteArray = pigeonVar_list.get(4); + pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); + Object aNullable4ByteArray = pigeonVar_list.get(5); + pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); + Object aNullable8ByteArray = pigeonVar_list.get(6); + pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); + Object aNullableFloatArray = pigeonVar_list.get(7); + pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); + Object aNullableEnum = pigeonVar_list.get(8); + pigeonResult.setANullableEnum((AnEnum) aNullableEnum); + Object anotherNullableEnum = pigeonVar_list.get(9); + pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); + Object aNullableString = pigeonVar_list.get(10); + pigeonResult.setANullableString((String) aNullableString); + Object aNullableObject = pigeonVar_list.get(11); + pigeonResult.setANullableObject(aNullableObject); + Object allNullableTypes = pigeonVar_list.get(12); + pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); + Object list = pigeonVar_list.get(13); + pigeonResult.setList((List) list); + Object stringList = pigeonVar_list.get(14); + pigeonResult.setStringList((List) stringList); + Object intList = pigeonVar_list.get(15); + pigeonResult.setIntList((List) intList); + Object doubleList = pigeonVar_list.get(16); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = pigeonVar_list.get(17); + pigeonResult.setBoolList((List) boolList); + Object enumList = pigeonVar_list.get(18); + pigeonResult.setEnumList((List) enumList); + Object objectList = pigeonVar_list.get(19); + pigeonResult.setObjectList((List) objectList); + Object listList = pigeonVar_list.get(20); + pigeonResult.setListList((List>) listList); + Object mapList = pigeonVar_list.get(21); + pigeonResult.setMapList((List>) mapList); + Object recursiveClassList = pigeonVar_list.get(22); + pigeonResult.setRecursiveClassList((List) recursiveClassList); + Object map = pigeonVar_list.get(23); + pigeonResult.setMap((Map) map); + Object stringMap = pigeonVar_list.get(24); + pigeonResult.setStringMap((Map) stringMap); + Object intMap = pigeonVar_list.get(25); + pigeonResult.setIntMap((Map) intMap); + Object enumMap = pigeonVar_list.get(26); + pigeonResult.setEnumMap((Map) enumMap); + Object objectMap = pigeonVar_list.get(27); + pigeonResult.setObjectMap((Map) objectMap); + Object listMap = pigeonVar_list.get(28); + pigeonResult.setListMap((Map>) listMap); + Object mapMap = pigeonVar_list.get(29); + pigeonResult.setMapMap((Map>) mapMap); + Object recursiveClassMap = pigeonVar_list.get(30); + pigeonResult.setRecursiveClassMap((Map) recursiveClassMap); + return pigeonResult; + } + } + + /** + * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, + * as the primary [AllNullableTypes] class is being used to test Swift classes. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllNullableTypesWithoutRecursion { + private @Nullable Boolean aNullableBool; + + public @Nullable Boolean getANullableBool() { + return aNullableBool; + } + + public void setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + } + + private @Nullable Long aNullableInt; + + public @Nullable Long getANullableInt() { + return aNullableInt; + } + + public void setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + } + + private @Nullable Long aNullableInt64; + + public @Nullable Long getANullableInt64() { + return aNullableInt64; + } + + public void setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + } + + private @Nullable Double aNullableDouble; + + public @Nullable Double getANullableDouble() { + return aNullableDouble; + } + + public void setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + } + + private @Nullable byte[] aNullableByteArray; + + public @Nullable byte[] getANullableByteArray() { + return aNullableByteArray; + } + + public void setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + } + + private @Nullable int[] aNullable4ByteArray; + + public @Nullable int[] getANullable4ByteArray() { + return aNullable4ByteArray; + } + + public void setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + } + + private @Nullable long[] aNullable8ByteArray; + + public @Nullable long[] getANullable8ByteArray() { + return aNullable8ByteArray; + } + + public void setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + } + + private @Nullable double[] aNullableFloatArray; + + public @Nullable double[] getANullableFloatArray() { + return aNullableFloatArray; + } + + public void setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + } + + private @Nullable AnEnum aNullableEnum; + + public @Nullable AnEnum getANullableEnum() { + return aNullableEnum; + } + + public void setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + } + + private @Nullable AnotherEnum anotherNullableEnum; + + public @Nullable AnotherEnum getAnotherNullableEnum() { + return anotherNullableEnum; + } + + public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + } + + private @Nullable String aNullableString; + + public @Nullable String getANullableString() { + return aNullableString; + } + + public void setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + } + + private @Nullable Object aNullableObject; + + public @Nullable Object getANullableObject() { + return aNullableObject; + } + + public void setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + } + + private @Nullable List list; + + public @Nullable List getList() { + return list; + } + + public void setList(@Nullable List setterArg) { + this.list = setterArg; + } + + private @Nullable List stringList; + + public @Nullable List getStringList() { + return stringList; + } + + public void setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + } + + private @Nullable List intList; + + public @Nullable List getIntList() { + return intList; + } + + public void setIntList(@Nullable List setterArg) { + this.intList = setterArg; + } + + private @Nullable List doubleList; + + public @Nullable List getDoubleList() { + return doubleList; + } + + public void setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + } + + private @Nullable List boolList; + + public @Nullable List getBoolList() { + return boolList; + } + + public void setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + } + + private @Nullable List enumList; + + public @Nullable List getEnumList() { + return enumList; + } + + public void setEnumList(@Nullable List setterArg) { + this.enumList = setterArg; + } + + private @Nullable List objectList; + + public @Nullable List getObjectList() { + return objectList; + } + + public void setObjectList(@Nullable List setterArg) { + this.objectList = setterArg; + } + + private @Nullable List> listList; + + public @Nullable List> getListList() { + return listList; + } + + public void setListList(@Nullable List> setterArg) { + this.listList = setterArg; + } + + private @Nullable List> mapList; + + public @Nullable List> getMapList() { + return mapList; + } + + public void setMapList(@Nullable List> setterArg) { + this.mapList = setterArg; + } + + private @Nullable Map map; + + public @Nullable Map getMap() { + return map; + } + + public void setMap(@Nullable Map setterArg) { + this.map = setterArg; + } + + private @Nullable Map stringMap; + + public @Nullable Map getStringMap() { + return stringMap; + } + + public void setStringMap(@Nullable Map setterArg) { + this.stringMap = setterArg; + } + + private @Nullable Map intMap; + + public @Nullable Map getIntMap() { + return intMap; + } + + public void setIntMap(@Nullable Map setterArg) { + this.intMap = setterArg; + } + + private @Nullable Map enumMap; + + public @Nullable Map getEnumMap() { + return enumMap; + } + + public void setEnumMap(@Nullable Map setterArg) { + this.enumMap = setterArg; + } + + private @Nullable Map objectMap; + + public @Nullable Map getObjectMap() { + return objectMap; + } + + public void setObjectMap(@Nullable Map setterArg) { + this.objectMap = setterArg; + } + + private @Nullable Map> listMap; + + public @Nullable Map> getListMap() { + return listMap; + } + + public void setListMap(@Nullable Map> setterArg) { + this.listMap = setterArg; + } + + private @Nullable Map> mapMap; + + public @Nullable Map> getMapMap() { + return mapMap; + } + + public void setMapMap(@Nullable Map> setterArg) { + this.mapMap = setterArg; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; + return pigeonDeepEquals(aNullableBool, that.aNullableBool) + && pigeonDeepEquals(aNullableInt, that.aNullableInt) + && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) + && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) + && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) + && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) + && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) + && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) + && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) + && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) + && pigeonDeepEquals(aNullableString, that.aNullableString) + && pigeonDeepEquals(aNullableObject, that.aNullableObject) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap); + } + + @Override + public int hashCode() { + Object[] fields = + new Object[] { + getClass(), + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap + }; + return pigeonDeepHashCode(fields); + } + + public static final class Builder { + + private @Nullable Boolean aNullableBool; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + return this; + } + + private @Nullable Long aNullableInt; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + return this; + } + + private @Nullable Long aNullableInt64; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + return this; + } + + private @Nullable Double aNullableDouble; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + return this; + } + + private @Nullable byte[] aNullableByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + return this; + } + + private @Nullable int[] aNullable4ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + return this; + } + + private @Nullable long[] aNullable8ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + return this; + } + + private @Nullable double[] aNullableFloatArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + return this; + } + + private @Nullable AnEnum aNullableEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + return this; + } + + private @Nullable AnotherEnum anotherNullableEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + return this; + } + + private @Nullable String aNullableString; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + return this; + } + + private @Nullable Object aNullableObject; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + return this; + } + + private @Nullable List list; + + @CanIgnoreReturnValue + public @NonNull Builder setList(@Nullable List setterArg) { + this.list = setterArg; + return this; + } + + private @Nullable List stringList; + + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + return this; + } + + private @Nullable List intList; + + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@Nullable List setterArg) { + this.intList = setterArg; + return this; + } + + private @Nullable List doubleList; + + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + return this; + } + + private @Nullable List boolList; + + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + return this; + } + + private @Nullable List enumList; + + @CanIgnoreReturnValue + public @NonNull Builder setEnumList(@Nullable List setterArg) { + this.enumList = setterArg; + return this; + } + + private @Nullable List objectList; + + @CanIgnoreReturnValue + public @NonNull Builder setObjectList(@Nullable List setterArg) { + this.objectList = setterArg; + return this; + } + + private @Nullable List> listList; + + @CanIgnoreReturnValue + public @NonNull Builder setListList(@Nullable List> setterArg) { + this.listList = setterArg; + return this; + } + + private @Nullable List> mapList; + + @CanIgnoreReturnValue + public @NonNull Builder setMapList(@Nullable List> setterArg) { + this.mapList = setterArg; + return this; + } + + private @Nullable Map map; + + @CanIgnoreReturnValue + public @NonNull Builder setMap(@Nullable Map setterArg) { + this.map = setterArg; + return this; + } + + private @Nullable Map stringMap; + + @CanIgnoreReturnValue + public @NonNull Builder setStringMap(@Nullable Map setterArg) { + this.stringMap = setterArg; + return this; + } + + private @Nullable Map intMap; + + @CanIgnoreReturnValue + public @NonNull Builder setIntMap(@Nullable Map setterArg) { + this.intMap = setterArg; + return this; + } + + private @Nullable Map enumMap; + + @CanIgnoreReturnValue + public @NonNull Builder setEnumMap(@Nullable Map setterArg) { + this.enumMap = setterArg; + return this; + } + + private @Nullable Map objectMap; + + @CanIgnoreReturnValue + public @NonNull Builder setObjectMap(@Nullable Map setterArg) { + this.objectMap = setterArg; + return this; + } + + private @Nullable Map> listMap; + + @CanIgnoreReturnValue + public @NonNull Builder setListMap(@Nullable Map> setterArg) { + this.listMap = setterArg; + return this; + } + + private @Nullable Map> mapMap; + + @CanIgnoreReturnValue + public @NonNull Builder setMapMap(@Nullable Map> setterArg) { + this.mapMap = setterArg; + return this; + } + + public @NonNull AllNullableTypesWithoutRecursion build() { + AllNullableTypesWithoutRecursion pigeonReturn = new AllNullableTypesWithoutRecursion(); + pigeonReturn.setANullableBool(aNullableBool); + pigeonReturn.setANullableInt(aNullableInt); + pigeonReturn.setANullableInt64(aNullableInt64); + pigeonReturn.setANullableDouble(aNullableDouble); + pigeonReturn.setANullableByteArray(aNullableByteArray); + pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); + pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); + pigeonReturn.setANullableFloatArray(aNullableFloatArray); + pigeonReturn.setANullableEnum(aNullableEnum); + pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); + pigeonReturn.setANullableString(aNullableString); + pigeonReturn.setANullableObject(aNullableObject); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setEnumList(enumList); + pigeonReturn.setObjectList(objectList); + pigeonReturn.setListList(listList); + pigeonReturn.setMapList(mapList); + pigeonReturn.setMap(map); + pigeonReturn.setStringMap(stringMap); + pigeonReturn.setIntMap(intMap); + pigeonReturn.setEnumMap(enumMap); + pigeonReturn.setObjectMap(objectMap); + pigeonReturn.setListMap(listMap); + pigeonReturn.setMapMap(mapMap); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(28); + toListResult.add(aNullableBool); + toListResult.add(aNullableInt); + toListResult.add(aNullableInt64); + toListResult.add(aNullableDouble); + toListResult.add(aNullableByteArray); + toListResult.add(aNullable4ByteArray); + toListResult.add(aNullable8ByteArray); + toListResult.add(aNullableFloatArray); + toListResult.add(aNullableEnum); + toListResult.add(anotherNullableEnum); + toListResult.add(aNullableString); + toListResult.add(aNullableObject); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(enumList); + toListResult.add(objectList); + toListResult.add(listList); + toListResult.add(mapList); + toListResult.add(map); + toListResult.add(stringMap); + toListResult.add(intMap); + toListResult.add(enumMap); + toListResult.add(objectMap); + toListResult.add(listMap); + toListResult.add(mapMap); + return toListResult; + } + + static @NonNull AllNullableTypesWithoutRecursion fromList( + @NonNull ArrayList pigeonVar_list) { + AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); + Object aNullableBool = pigeonVar_list.get(0); + pigeonResult.setANullableBool((Boolean) aNullableBool); + Object aNullableInt = pigeonVar_list.get(1); + pigeonResult.setANullableInt((Long) aNullableInt); + Object aNullableInt64 = pigeonVar_list.get(2); + pigeonResult.setANullableInt64((Long) aNullableInt64); + Object aNullableDouble = pigeonVar_list.get(3); + pigeonResult.setANullableDouble((Double) aNullableDouble); + Object aNullableByteArray = pigeonVar_list.get(4); + pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); + Object aNullable4ByteArray = pigeonVar_list.get(5); + pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); + Object aNullable8ByteArray = pigeonVar_list.get(6); + pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); + Object aNullableFloatArray = pigeonVar_list.get(7); + pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); + Object aNullableEnum = pigeonVar_list.get(8); + pigeonResult.setANullableEnum((AnEnum) aNullableEnum); + Object anotherNullableEnum = pigeonVar_list.get(9); + pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); + Object aNullableString = pigeonVar_list.get(10); + pigeonResult.setANullableString((String) aNullableString); + Object aNullableObject = pigeonVar_list.get(11); + pigeonResult.setANullableObject(aNullableObject); + Object list = pigeonVar_list.get(12); + pigeonResult.setList((List) list); + Object stringList = pigeonVar_list.get(13); + pigeonResult.setStringList((List) stringList); + Object intList = pigeonVar_list.get(14); + pigeonResult.setIntList((List) intList); + Object doubleList = pigeonVar_list.get(15); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = pigeonVar_list.get(16); + pigeonResult.setBoolList((List) boolList); + Object enumList = pigeonVar_list.get(17); + pigeonResult.setEnumList((List) enumList); + Object objectList = pigeonVar_list.get(18); + pigeonResult.setObjectList((List) objectList); + Object listList = pigeonVar_list.get(19); + pigeonResult.setListList((List>) listList); + Object mapList = pigeonVar_list.get(20); + pigeonResult.setMapList((List>) mapList); + Object map = pigeonVar_list.get(21); + pigeonResult.setMap((Map) map); + Object stringMap = pigeonVar_list.get(22); + pigeonResult.setStringMap((Map) stringMap); + Object intMap = pigeonVar_list.get(23); + pigeonResult.setIntMap((Map) intMap); + Object enumMap = pigeonVar_list.get(24); + pigeonResult.setEnumMap((Map) enumMap); + Object objectMap = pigeonVar_list.get(25); + pigeonResult.setObjectMap((Map) objectMap); + Object listMap = pigeonVar_list.get(26); + pigeonResult.setListMap((Map>) listMap); + Object mapMap = pigeonVar_list.get(27); + pigeonResult.setMapMap((Map>) mapMap); + return pigeonResult; + } + } + + /** + * A class for testing nested class handling. + * + *

This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is + * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require + * both (ie. testing null classes). + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllClassesWrapper { + private @NonNull AllNullableTypes allNullableTypes; + + public @NonNull AllNullableTypes getAllNullableTypes() { + return allNullableTypes; + } + + public void setAllNullableTypes(@NonNull AllNullableTypes setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"allNullableTypes\" is null."); + } + this.allNullableTypes = setterArg; + } + + private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; + + public @Nullable AllNullableTypesWithoutRecursion getAllNullableTypesWithoutRecursion() { + return allNullableTypesWithoutRecursion; + } + + public void setAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion setterArg) { + this.allNullableTypesWithoutRecursion = setterArg; + } + + private @Nullable AllTypes allTypes; + + public @Nullable AllTypes getAllTypes() { + return allTypes; + } + + public void setAllTypes(@Nullable AllTypes setterArg) { + this.allTypes = setterArg; + } + + private @NonNull List classList; + + public @NonNull List getClassList() { + return classList; + } + + public void setClassList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"classList\" is null."); + } + this.classList = setterArg; + } + + private @Nullable List nullableClassList; + + public @Nullable List getNullableClassList() { + return nullableClassList; + } + + public void setNullableClassList(@Nullable List setterArg) { + this.nullableClassList = setterArg; + } + + private @NonNull Map classMap; + + public @NonNull Map getClassMap() { + return classMap; + } + + public void setClassMap(@NonNull Map setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"classMap\" is null."); + } + this.classMap = setterArg; + } + + private @Nullable Map nullableClassMap; + + public @Nullable Map getNullableClassMap() { + return nullableClassMap; + } + + public void setNullableClassMap( + @Nullable Map setterArg) { + this.nullableClassMap = setterArg; + } + + /** Constructor is non-public to enforce null safety; use Builder. */ + AllClassesWrapper() {} + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllClassesWrapper that = (AllClassesWrapper) o; + return pigeonDeepEquals(allNullableTypes, that.allNullableTypes) + && pigeonDeepEquals( + allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) + && pigeonDeepEquals(allTypes, that.allTypes) + && pigeonDeepEquals(classList, that.classList) + && pigeonDeepEquals(nullableClassList, that.nullableClassList) + && pigeonDeepEquals(classMap, that.classMap) + && pigeonDeepEquals(nullableClassMap, that.nullableClassMap); + } + + @Override + public int hashCode() { + Object[] fields = + new Object[] { + getClass(), + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + classList, + nullableClassList, + classMap, + nullableClassMap + }; + return pigeonDeepHashCode(fields); + } + + public static final class Builder { + + private @Nullable AllNullableTypes allNullableTypes; + + @CanIgnoreReturnValue + public @NonNull Builder setAllNullableTypes(@NonNull AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; + return this; + } + + private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; + + @CanIgnoreReturnValue + public @NonNull Builder setAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion setterArg) { + this.allNullableTypesWithoutRecursion = setterArg; + return this; + } + + private @Nullable AllTypes allTypes; + + @CanIgnoreReturnValue + public @NonNull Builder setAllTypes(@Nullable AllTypes setterArg) { + this.allTypes = setterArg; + return this; + } + + private @Nullable List classList; + + @CanIgnoreReturnValue + public @NonNull Builder setClassList(@NonNull List setterArg) { + this.classList = setterArg; + return this; + } + + private @Nullable List nullableClassList; + + @CanIgnoreReturnValue + public @NonNull Builder setNullableClassList( + @Nullable List setterArg) { + this.nullableClassList = setterArg; + return this; + } + + private @Nullable Map classMap; + + @CanIgnoreReturnValue + public @NonNull Builder setClassMap(@NonNull Map setterArg) { + this.classMap = setterArg; + return this; + } + + private @Nullable Map nullableClassMap; + + @CanIgnoreReturnValue + public @NonNull Builder setNullableClassMap( + @Nullable Map setterArg) { + this.nullableClassMap = setterArg; + return this; + } + + public @NonNull AllClassesWrapper build() { + AllClassesWrapper pigeonReturn = new AllClassesWrapper(); + pigeonReturn.setAllNullableTypes(allNullableTypes); + pigeonReturn.setAllNullableTypesWithoutRecursion(allNullableTypesWithoutRecursion); + pigeonReturn.setAllTypes(allTypes); + pigeonReturn.setClassList(classList); + pigeonReturn.setNullableClassList(nullableClassList); + pigeonReturn.setClassMap(classMap); + pigeonReturn.setNullableClassMap(nullableClassMap); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(7); + toListResult.add(allNullableTypes); + toListResult.add(allNullableTypesWithoutRecursion); + toListResult.add(allTypes); + toListResult.add(classList); + toListResult.add(nullableClassList); + toListResult.add(classMap); + toListResult.add(nullableClassMap); + return toListResult; + } + + static @NonNull AllClassesWrapper fromList(@NonNull ArrayList pigeonVar_list) { + AllClassesWrapper pigeonResult = new AllClassesWrapper(); + Object allNullableTypes = pigeonVar_list.get(0); + pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); + Object allNullableTypesWithoutRecursion = pigeonVar_list.get(1); + pigeonResult.setAllNullableTypesWithoutRecursion( + (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); + Object allTypes = pigeonVar_list.get(2); + pigeonResult.setAllTypes((AllTypes) allTypes); + Object classList = pigeonVar_list.get(3); + pigeonResult.setClassList((List) classList); + Object nullableClassList = pigeonVar_list.get(4); + pigeonResult.setNullableClassList((List) nullableClassList); + Object classMap = pigeonVar_list.get(5); + pigeonResult.setClassMap((Map) classMap); + Object nullableClassMap = pigeonVar_list.get(6); + pigeonResult.setNullableClassMap( + (Map) nullableClassMap); + return pigeonResult; + } + } + + /** + * A data class containing a List, used in unit tests. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class TestMessage { + private @Nullable List testList; + + public @Nullable List getTestList() { + return testList; + } + + public void setTestList(@Nullable List setterArg) { + this.testList = setterArg; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TestMessage that = (TestMessage) o; + return pigeonDeepEquals(testList, that.testList); + } + + @Override + public int hashCode() { + Object[] fields = new Object[] {getClass(), testList}; + return pigeonDeepHashCode(fields); + } + + public static final class Builder { + + private @Nullable List testList; + + @CanIgnoreReturnValue + public @NonNull Builder setTestList(@Nullable List setterArg) { + this.testList = setterArg; + return this; + } + + public @NonNull TestMessage build() { + TestMessage pigeonReturn = new TestMessage(); + pigeonReturn.setTestList(testList); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(1); + toListResult.add(testList); + return toListResult; + } + + static @NonNull TestMessage fromList(@NonNull ArrayList pigeonVar_list) { + TestMessage pigeonResult = new TestMessage(); + Object testList = pigeonVar_list.get(0); + pigeonResult.setTestList((List) testList); + return pigeonResult; + } + } + + private static class PigeonCodec extends StandardMessageCodec { + public static final PigeonCodec INSTANCE = new PigeonCodec(); + + private PigeonCodec() {} + + @Override + protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { + switch (type) { + case (byte) 129: + { + Object value = readValue(buffer); + return value == null ? null : AnEnum.values()[((Long) value).intValue()]; + } + case (byte) 130: + { + Object value = readValue(buffer); + return value == null ? null : AnotherEnum.values()[((Long) value).intValue()]; + } + case (byte) 131: + return UnusedClass.fromList((ArrayList) readValue(buffer)); + case (byte) 132: + return AllTypes.fromList((ArrayList) readValue(buffer)); + case (byte) 133: + return AllNullableTypes.fromList((ArrayList) readValue(buffer)); + case (byte) 134: + return AllNullableTypesWithoutRecursion.fromList((ArrayList) readValue(buffer)); + case (byte) 135: + return AllClassesWrapper.fromList((ArrayList) readValue(buffer)); + case (byte) 136: + return TestMessage.fromList((ArrayList) readValue(buffer)); + default: + return super.readValueOfType(type, buffer); + } + } + + @Override + protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { + if (value instanceof AnEnum) { + stream.write(129); + writeValue(stream, value == null ? null : ((AnEnum) value).index); + } else if (value instanceof AnotherEnum) { + stream.write(130); + writeValue(stream, value == null ? null : ((AnotherEnum) value).index); + } else if (value instanceof UnusedClass) { + stream.write(131); + writeValue(stream, ((UnusedClass) value).toList()); + } else if (value instanceof AllTypes) { + stream.write(132); + writeValue(stream, ((AllTypes) value).toList()); + } else if (value instanceof AllNullableTypes) { + stream.write(133); + writeValue(stream, ((AllNullableTypes) value).toList()); + } else if (value instanceof AllNullableTypesWithoutRecursion) { + stream.write(134); + writeValue(stream, ((AllNullableTypesWithoutRecursion) value).toList()); + } else if (value instanceof AllClassesWrapper) { + stream.write(135); + writeValue(stream, ((AllClassesWrapper) value).toList()); + } else if (value instanceof TestMessage) { + stream.write(136); + writeValue(stream, ((TestMessage) value).toList()); + } else { + super.writeValue(stream, value); + } + } + } + + /** Asynchronous error handling return type for non-nullable API method returns. */ + public interface Result { + /** Success case callback method for handling returns. */ + void success(@NonNull T result); + + /** Failure case callback method for handling errors. */ + void error(@NonNull Throwable error); + } + /** Asynchronous error handling return type for nullable API method returns. */ + public interface NullableResult { + /** Success case callback method for handling returns. */ + void success(@Nullable T result); + + /** Failure case callback method for handling errors. */ + void error(@NonNull Throwable error); + } + /** Asynchronous error handling return type for void API method returns. */ + public interface VoidResult { + /** Success case callback method for handling returns. */ + void success(); + + /** Failure case callback method for handling errors. */ + void error(@NonNull Throwable error); + } + /** + * The core interface that each host language plugin must implement in platform_test integration + * tests. + * + *

Generated interface from Pigeon that represents a handler of messages from Flutter. + */ + public interface HostIntegrationCoreApi { + /** + * A no-op function taking no arguments and returning no value, to sanity test basic calling. + */ + void noop(); + /** Returns the passed object, to test serialization and deserialization. */ + @NonNull + AllTypes echoAllTypes(@NonNull AllTypes everything); + /** Returns an error, to test error handling. */ + @Nullable + Object throwError(); + /** Returns an error from a void function, to test error handling. */ + void throwErrorFromVoid(); + /** Returns a Flutter error, to test error handling. */ + @Nullable + Object throwFlutterError(); + /** Returns passed in int. */ + @NonNull + Long echoInt(@NonNull Long anInt); + /** Returns passed in double. */ + @NonNull + Double echoDouble(@NonNull Double aDouble); + /** Returns the passed in boolean. */ + @NonNull + Boolean echoBool(@NonNull Boolean aBool); + /** Returns the passed in string. */ + @NonNull + String echoString(@NonNull String aString); + /** Returns the passed in Uint8List. */ + @NonNull + byte[] echoUint8List(@NonNull byte[] aUint8List); + /** Returns the passed in generic Object. */ + @NonNull + Object echoObject(@NonNull Object anObject); + /** Returns the passed list, to test serialization and deserialization. */ + @NonNull + List echoList(@NonNull List list); + /** Returns the passed list, to test serialization and deserialization. */ + @NonNull + List echoEnumList(@NonNull List enumList); + /** Returns the passed list, to test serialization and deserialization. */ + @NonNull + List echoClassList(@NonNull List classList); + /** Returns the passed list, to test serialization and deserialization. */ + @NonNull + List echoNonNullEnumList(@NonNull List enumList); + /** Returns the passed list, to test serialization and deserialization. */ + @NonNull + List echoNonNullClassList(@NonNull List classList); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoMap(@NonNull Map map); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoStringMap(@NonNull Map stringMap); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoIntMap(@NonNull Map intMap); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoEnumMap(@NonNull Map enumMap); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoClassMap(@NonNull Map classMap); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoNonNullStringMap(@NonNull Map stringMap); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoNonNullIntMap(@NonNull Map intMap); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoNonNullEnumMap(@NonNull Map enumMap); + /** Returns the passed map, to test serialization and deserialization. */ + @NonNull + Map echoNonNullClassMap(@NonNull Map classMap); + /** Returns the passed class to test nested class serialization and deserialization. */ + @NonNull + AllClassesWrapper echoClassWrapper(@NonNull AllClassesWrapper wrapper); + /** Returns the passed enum to test serialization and deserialization. */ + @NonNull + AnEnum echoEnum(@NonNull AnEnum anEnum); + /** Returns the passed enum to test serialization and deserialization. */ + @NonNull + AnotherEnum echoAnotherEnum(@NonNull AnotherEnum anotherEnum); + /** Returns the default string. */ + @NonNull + String echoNamedDefaultString(@NonNull String aString); + /** Returns passed in double. */ + @NonNull + Double echoOptionalDefaultDouble(@NonNull Double aDouble); + /** Returns passed in int. */ + @NonNull + Long echoRequiredInt(@NonNull Long anInt); + /** Returns the passed object, to test serialization and deserialization. */ + @Nullable + AllNullableTypes echoAllNullableTypes(@Nullable AllNullableTypes everything); + /** Returns the passed object, to test serialization and deserialization. */ + @Nullable + AllNullableTypesWithoutRecursion echoAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion everything); + /** + * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. + */ + @Nullable + String extractNestedNullableString(@NonNull AllClassesWrapper wrapper); + /** + * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. + */ + @NonNull + AllClassesWrapper createNestedNullableString(@Nullable String nullableString); + /** Returns passed in arguments of multiple types. */ + @NonNull + AllNullableTypes sendMultipleNullableTypes( + @Nullable Boolean aNullableBool, + @Nullable Long aNullableInt, + @Nullable String aNullableString); + /** Returns passed in arguments of multiple types. */ + @NonNull + AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( + @Nullable Boolean aNullableBool, + @Nullable Long aNullableInt, + @Nullable String aNullableString); + /** Returns passed in int. */ + @Nullable + Long echoNullableInt(@Nullable Long aNullableInt); + /** Returns passed in double. */ + @Nullable + Double echoNullableDouble(@Nullable Double aNullableDouble); + /** Returns the passed in boolean. */ + @Nullable + Boolean echoNullableBool(@Nullable Boolean aNullableBool); + /** Returns the passed in string. */ + @Nullable + String echoNullableString(@Nullable String aNullableString); + /** Returns the passed in Uint8List. */ + @Nullable + byte[] echoNullableUint8List(@Nullable byte[] aNullableUint8List); + /** Returns the passed in generic Object. */ + @Nullable + Object echoNullableObject(@Nullable Object aNullableObject); + /** Returns the passed list, to test serialization and deserialization. */ + @Nullable + List echoNullableList(@Nullable List aNullableList); + /** Returns the passed list, to test serialization and deserialization. */ + @Nullable + List echoNullableEnumList(@Nullable List enumList); + /** Returns the passed list, to test serialization and deserialization. */ + @Nullable + List echoNullableClassList(@Nullable List classList); + /** Returns the passed list, to test serialization and deserialization. */ + @Nullable + List echoNullableNonNullEnumList(@Nullable List enumList); + /** Returns the passed list, to test serialization and deserialization. */ + @Nullable + List echoNullableNonNullClassList(@Nullable List classList); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableMap(@Nullable Map map); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableStringMap(@Nullable Map stringMap); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableIntMap(@Nullable Map intMap); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableEnumMap(@Nullable Map enumMap); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableClassMap( + @Nullable Map classMap); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableNonNullStringMap(@Nullable Map stringMap); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableNonNullIntMap(@Nullable Map intMap); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableNonNullEnumMap(@Nullable Map enumMap); + /** Returns the passed map, to test serialization and deserialization. */ + @Nullable + Map echoNullableNonNullClassMap( + @Nullable Map classMap); + + @Nullable + AnEnum echoNullableEnum(@Nullable AnEnum anEnum); + + @Nullable + AnotherEnum echoAnotherNullableEnum(@Nullable AnotherEnum anotherEnum); + /** Returns passed in int. */ + @Nullable + Long echoOptionalNullableInt(@Nullable Long aNullableInt); + /** Returns the passed in string. */ + @Nullable + String echoNamedNullableString(@Nullable String aNullableString); + /** + * A no-op function taking no arguments and returning no value, to sanity test basic + * asynchronous calling. + */ + void noopAsync(@NonNull VoidResult result); + /** Returns passed in int asynchronously. */ + void echoAsyncInt(@NonNull Long anInt, @NonNull Result result); + /** Returns passed in double asynchronously. */ + void echoAsyncDouble(@NonNull Double aDouble, @NonNull Result result); + /** Returns the passed in boolean asynchronously. */ + void echoAsyncBool(@NonNull Boolean aBool, @NonNull Result result); + /** Returns the passed string asynchronously. */ + void echoAsyncString(@NonNull String aString, @NonNull Result result); + /** Returns the passed in Uint8List asynchronously. */ + void echoAsyncUint8List(@NonNull byte[] aUint8List, @NonNull Result result); + /** Returns the passed in generic Object asynchronously. */ + void echoAsyncObject(@NonNull Object anObject, @NonNull Result result); + /** Returns the passed list, to test asynchronous serialization and deserialization. */ + void echoAsyncList(@NonNull List list, @NonNull Result> result); + /** Returns the passed list, to test asynchronous serialization and deserialization. */ + void echoAsyncEnumList(@NonNull List enumList, @NonNull Result> result); + /** Returns the passed list, to test asynchronous serialization and deserialization. */ + void echoAsyncClassList( + @NonNull List classList, @NonNull Result> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncMap( + @NonNull Map map, @NonNull Result> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncStringMap( + @NonNull Map stringMap, @NonNull Result> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncIntMap(@NonNull Map intMap, @NonNull Result> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncEnumMap( + @NonNull Map enumMap, @NonNull Result> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncClassMap( + @NonNull Map classMap, + @NonNull Result> result); + /** Returns the passed enum, to test asynchronous serialization and deserialization. */ + void echoAsyncEnum(@NonNull AnEnum anEnum, @NonNull Result result); + /** Returns the passed enum, to test asynchronous serialization and deserialization. */ + void echoAnotherAsyncEnum( + @NonNull AnotherEnum anotherEnum, @NonNull Result result); + /** Responds with an error from an async function returning a value. */ + void throwAsyncError(@NonNull NullableResult result); + /** Responds with an error from an async void function. */ + void throwAsyncErrorFromVoid(@NonNull VoidResult result); + /** Responds with a Flutter error from an async function returning a value. */ + void throwAsyncFlutterError(@NonNull NullableResult result); + /** Returns the passed object, to test async serialization and deserialization. */ + void echoAsyncAllTypes(@NonNull AllTypes everything, @NonNull Result result); + /** Returns the passed object, to test serialization and deserialization. */ + void echoAsyncNullableAllNullableTypes( + @Nullable AllNullableTypes everything, @NonNull NullableResult result); + /** Returns the passed object, to test serialization and deserialization. */ + void echoAsyncNullableAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion everything, + @NonNull NullableResult result); + /** Returns passed in int asynchronously. */ + void echoAsyncNullableInt(@Nullable Long anInt, @NonNull NullableResult result); + /** Returns passed in double asynchronously. */ + void echoAsyncNullableDouble(@Nullable Double aDouble, @NonNull NullableResult result); + /** Returns the passed in boolean asynchronously. */ + void echoAsyncNullableBool(@Nullable Boolean aBool, @NonNull NullableResult result); + /** Returns the passed string asynchronously. */ + void echoAsyncNullableString(@Nullable String aString, @NonNull NullableResult result); + /** Returns the passed in Uint8List asynchronously. */ + void echoAsyncNullableUint8List( + @Nullable byte[] aUint8List, @NonNull NullableResult result); + /** Returns the passed in generic Object asynchronously. */ + void echoAsyncNullableObject(@Nullable Object anObject, @NonNull NullableResult result); + /** Returns the passed list, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableList( + @Nullable List list, @NonNull NullableResult> result); + /** Returns the passed list, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableEnumList( + @Nullable List enumList, @NonNull NullableResult> result); + /** Returns the passed list, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableClassList( + @Nullable List classList, + @NonNull NullableResult> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableMap( + @Nullable Map map, @NonNull NullableResult> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableStringMap( + @Nullable Map stringMap, + @NonNull NullableResult> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableIntMap( + @Nullable Map intMap, @NonNull NullableResult> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableEnumMap( + @Nullable Map enumMap, @NonNull NullableResult> result); + /** Returns the passed map, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableClassMap( + @Nullable Map classMap, + @NonNull NullableResult> result); + /** Returns the passed enum, to test asynchronous serialization and deserialization. */ + void echoAsyncNullableEnum(@Nullable AnEnum anEnum, @NonNull NullableResult result); + /** Returns the passed enum, to test asynchronous serialization and deserialization. */ + void echoAnotherAsyncNullableEnum( + @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); + /** + * Returns true if the handler is run on a main thread, which should be true since there is no + * TaskQueue annotation. + */ + @NonNull + Boolean defaultIsMainThread(); + /** + * Returns true if the handler is run on a non-main thread, which should be true for any + * platform with TaskQueue support. + */ + @NonNull + Boolean taskQueueIsBackgroundThread(); + + void callFlutterNoop(@NonNull VoidResult result); + + void callFlutterThrowError(@NonNull NullableResult result); + + void callFlutterThrowErrorFromVoid(@NonNull VoidResult result); + + void callFlutterEchoAllTypes(@NonNull AllTypes everything, @NonNull Result result); + + void callFlutterEchoAllNullableTypes( + @Nullable AllNullableTypes everything, @NonNull NullableResult result); + + void callFlutterSendMultipleNullableTypes( + @Nullable Boolean aNullableBool, + @Nullable Long aNullableInt, + @Nullable String aNullableString, + @NonNull Result result); + + void callFlutterEchoAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion everything, + @NonNull NullableResult result); + + void callFlutterSendMultipleNullableTypesWithoutRecursion( + @Nullable Boolean aNullableBool, + @Nullable Long aNullableInt, + @Nullable String aNullableString, + @NonNull Result result); + + void callFlutterEchoBool(@NonNull Boolean aBool, @NonNull Result result); + + void callFlutterEchoInt(@NonNull Long anInt, @NonNull Result result); + + void callFlutterEchoDouble(@NonNull Double aDouble, @NonNull Result result); + + void callFlutterEchoString(@NonNull String aString, @NonNull Result result); + + void callFlutterEchoUint8List(@NonNull byte[] list, @NonNull Result result); + + void callFlutterEchoList(@NonNull List list, @NonNull Result> result); + + void callFlutterEchoEnumList( + @NonNull List enumList, @NonNull Result> result); + + void callFlutterEchoClassList( + @NonNull List classList, @NonNull Result> result); + + void callFlutterEchoNonNullEnumList( + @NonNull List enumList, @NonNull Result> result); + + void callFlutterEchoNonNullClassList( + @NonNull List classList, @NonNull Result> result); + + void callFlutterEchoMap( + @NonNull Map map, @NonNull Result> result); + + void callFlutterEchoStringMap( + @NonNull Map stringMap, @NonNull Result> result); + + void callFlutterEchoIntMap( + @NonNull Map intMap, @NonNull Result> result); + + void callFlutterEchoEnumMap( + @NonNull Map enumMap, @NonNull Result> result); + + void callFlutterEchoClassMap( + @NonNull Map classMap, + @NonNull Result> result); + + void callFlutterEchoNonNullStringMap( + @NonNull Map stringMap, @NonNull Result> result); + + void callFlutterEchoNonNullIntMap( + @NonNull Map intMap, @NonNull Result> result); + + void callFlutterEchoNonNullEnumMap( + @NonNull Map enumMap, @NonNull Result> result); + + void callFlutterEchoNonNullClassMap( + @NonNull Map classMap, + @NonNull Result> result); + + void callFlutterEchoEnum(@NonNull AnEnum anEnum, @NonNull Result result); + + void callFlutterEchoAnotherEnum( + @NonNull AnotherEnum anotherEnum, @NonNull Result result); + + void callFlutterEchoNullableBool( + @Nullable Boolean aBool, @NonNull NullableResult result); + + void callFlutterEchoNullableInt(@Nullable Long anInt, @NonNull NullableResult result); + + void callFlutterEchoNullableDouble( + @Nullable Double aDouble, @NonNull NullableResult result); + + void callFlutterEchoNullableString( + @Nullable String aString, @NonNull NullableResult result); + + void callFlutterEchoNullableUint8List( + @Nullable byte[] list, @NonNull NullableResult result); + + void callFlutterEchoNullableList( + @Nullable List list, @NonNull NullableResult> result); + + void callFlutterEchoNullableEnumList( + @Nullable List enumList, @NonNull NullableResult> result); + + void callFlutterEchoNullableClassList( + @Nullable List classList, + @NonNull NullableResult> result); + + void callFlutterEchoNullableNonNullEnumList( + @Nullable List enumList, @NonNull NullableResult> result); + + void callFlutterEchoNullableNonNullClassList( + @Nullable List classList, + @NonNull NullableResult> result); + + void callFlutterEchoNullableMap( + @Nullable Map map, @NonNull NullableResult> result); + + void callFlutterEchoNullableStringMap( + @Nullable Map stringMap, + @NonNull NullableResult> result); + + void callFlutterEchoNullableIntMap( + @Nullable Map intMap, @NonNull NullableResult> result); + + void callFlutterEchoNullableEnumMap( + @Nullable Map enumMap, @NonNull NullableResult> result); + + void callFlutterEchoNullableClassMap( + @Nullable Map classMap, + @NonNull NullableResult> result); + + void callFlutterEchoNullableNonNullStringMap( + @Nullable Map stringMap, + @NonNull NullableResult> result); + + void callFlutterEchoNullableNonNullIntMap( + @Nullable Map intMap, @NonNull NullableResult> result); + + void callFlutterEchoNullableNonNullEnumMap( + @Nullable Map enumMap, @NonNull NullableResult> result); + + void callFlutterEchoNullableNonNullClassMap( + @Nullable Map classMap, + @NonNull NullableResult> result); + + void callFlutterEchoNullableEnum( + @Nullable AnEnum anEnum, @NonNull NullableResult result); + + void callFlutterEchoAnotherNullableEnum( + @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); + + void callFlutterSmallApiEchoString(@NonNull String aString, @NonNull Result result); + + /** The codec used by HostIntegrationCoreApi. */ + static @NonNull MessageCodec getCodec() { + return PigeonCodec.INSTANCE; + } + /** + * Sets up an instance of `HostIntegrationCoreApi` to handle messages through the + * `binaryMessenger`. + */ + static void setUp( + @NonNull BinaryMessenger binaryMessenger, @Nullable HostIntegrationCoreApi api) { + setUp(binaryMessenger, "", api); + } + + static void setUp( + @NonNull BinaryMessenger binaryMessenger, + @NonNull String messageChannelSuffix, + @Nullable HostIntegrationCoreApi api) { + messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; + BinaryMessenger.TaskQueue taskQueue = binaryMessenger.makeBackgroundTaskQueue(); + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noop" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + try { + api.noop(); + wrapped.add(0, null); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllTypes" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllTypes everythingArg = (AllTypes) args.get(0); + try { + AllTypes output = api.echoAllTypes(everythingArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwError" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + try { + Object output = api.throwError(); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwErrorFromVoid" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + try { + api.throwErrorFromVoid(); + wrapped.add(0, null); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwFlutterError" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + try { + Object output = api.throwFlutterError(); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoInt" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Long anIntArg = (Long) args.get(0); + try { + Long output = api.echoInt(anIntArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoDouble" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Double aDoubleArg = (Double) args.get(0); + try { + Double output = api.echoDouble(aDoubleArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoBool" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aBoolArg = (Boolean) args.get(0); + try { + Boolean output = api.echoBool(aBoolArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aStringArg = (String) args.get(0); + try { + String output = api.echoString(aStringArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoUint8List" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + byte[] aUint8ListArg = (byte[]) args.get(0); + try { + byte[] output = api.echoUint8List(aUint8ListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoObject" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Object anObjectArg = args.get(0); + try { + Object output = api.echoObject(anObjectArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoList" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List listArg = (List) args.get(0); + try { + List output = api.echoList(listArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + try { + List output = api.echoEnumList(enumListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + try { + List output = api.echoClassList(classListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + try { + List output = api.echoNonNullEnumList(enumListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + try { + List output = api.echoNonNullClassList(classListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoMap" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map mapArg = (Map) args.get(0); + try { + Map output = api.echoMap(mapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + try { + Map output = api.echoStringMap(stringMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + try { + Map output = api.echoIntMap(intMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + try { + Map output = api.echoEnumMap(enumMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + try { + Map output = api.echoClassMap(classMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + try { + Map output = api.echoNonNullStringMap(stringMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + try { + Map output = api.echoNonNullIntMap(intMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + try { + Map output = api.echoNonNullEnumMap(enumMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + try { + Map output = api.echoNonNullClassMap(classMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassWrapper" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllClassesWrapper wrapperArg = (AllClassesWrapper) args.get(0); + try { + AllClassesWrapper output = api.echoClassWrapper(wrapperArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnum" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnEnum anEnumArg = (AnEnum) args.get(0); + try { + AnEnum output = api.echoEnum(anEnumArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + try { + AnotherEnum output = api.echoAnotherEnum(anotherEnumArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedDefaultString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aStringArg = (String) args.get(0); + try { + String output = api.echoNamedDefaultString(aStringArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalDefaultDouble" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Double aDoubleArg = (Double) args.get(0); + try { + Double output = api.echoOptionalDefaultDouble(aDoubleArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoRequiredInt" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Long anIntArg = (Long) args.get(0); + try { + Long output = api.echoRequiredInt(anIntArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypes" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); + try { + AllNullableTypes output = api.echoAllNullableTypes(everythingArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypesWithoutRecursion everythingArg = + (AllNullableTypesWithoutRecursion) args.get(0); + try { + AllNullableTypesWithoutRecursion output = + api.echoAllNullableTypesWithoutRecursion(everythingArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.extractNestedNullableString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllClassesWrapper wrapperArg = (AllClassesWrapper) args.get(0); + try { + String output = api.extractNestedNullableString(wrapperArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.createNestedNullableString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String nullableStringArg = (String) args.get(0); + try { + AllClassesWrapper output = api.createNestedNullableString(nullableStringArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypes" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aNullableBoolArg = (Boolean) args.get(0); + Long aNullableIntArg = (Long) args.get(1); + String aNullableStringArg = (String) args.get(2); + try { + AllNullableTypes output = + api.sendMultipleNullableTypes( + aNullableBoolArg, aNullableIntArg, aNullableStringArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aNullableBoolArg = (Boolean) args.get(0); + Long aNullableIntArg = (Long) args.get(1); + String aNullableStringArg = (String) args.get(2); + try { + AllNullableTypesWithoutRecursion output = + api.sendMultipleNullableTypesWithoutRecursion( + aNullableBoolArg, aNullableIntArg, aNullableStringArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableInt" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Long aNullableIntArg = (Long) args.get(0); + try { + Long output = api.echoNullableInt(aNullableIntArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableDouble" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Double aNullableDoubleArg = (Double) args.get(0); + try { + Double output = api.echoNullableDouble(aNullableDoubleArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableBool" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aNullableBoolArg = (Boolean) args.get(0); + try { + Boolean output = api.echoNullableBool(aNullableBoolArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aNullableStringArg = (String) args.get(0); + try { + String output = api.echoNullableString(aNullableStringArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableUint8List" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + byte[] aNullableUint8ListArg = (byte[]) args.get(0); + try { + byte[] output = api.echoNullableUint8List(aNullableUint8ListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableObject" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Object aNullableObjectArg = args.get(0); + try { + Object output = api.echoNullableObject(aNullableObjectArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List aNullableListArg = (List) args.get(0); + try { + List output = api.echoNullableList(aNullableListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + try { + List output = api.echoNullableEnumList(enumListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + try { + List output = api.echoNullableClassList(classListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + try { + List output = api.echoNullableNonNullEnumList(enumListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + try { + List output = api.echoNullableNonNullClassList(classListArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map mapArg = (Map) args.get(0); + try { + Map output = api.echoNullableMap(mapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + try { + Map output = api.echoNullableStringMap(stringMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + try { + Map output = api.echoNullableIntMap(intMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + try { + Map output = api.echoNullableEnumMap(enumMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + try { + Map output = api.echoNullableClassMap(classMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + try { + Map output = api.echoNullableNonNullStringMap(stringMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + try { + Map output = api.echoNullableNonNullIntMap(intMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + try { + Map output = api.echoNullableNonNullEnumMap(enumMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + try { + Map output = api.echoNullableNonNullClassMap(classMapArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnEnum anEnumArg = (AnEnum) args.get(0); + try { + AnEnum output = api.echoNullableEnum(anEnumArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + try { + AnotherEnum output = api.echoAnotherNullableEnum(anotherEnumArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalNullableInt" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Long aNullableIntArg = (Long) args.get(0); + try { + Long output = api.echoOptionalNullableInt(aNullableIntArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedNullableString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aNullableStringArg = (String) args.get(0); + try { + String output = api.echoNamedNullableString(aNullableStringArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noopAsync" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + VoidResult resultCallback = + new VoidResult() { + public void success() { + wrapped.add(0, null); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.noopAsync(resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncInt" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Long anIntArg = (Long) args.get(0); + Result resultCallback = + new Result() { + public void success(Long result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncInt(anIntArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncDouble" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Double aDoubleArg = (Double) args.get(0); + Result resultCallback = + new Result() { + public void success(Double result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncDouble(aDoubleArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncBool" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aBoolArg = (Boolean) args.get(0); + Result resultCallback = + new Result() { + public void success(Boolean result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncBool(aBoolArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aStringArg = (String) args.get(0); + Result resultCallback = + new Result() { + public void success(String result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncString(aStringArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncUint8List" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + byte[] aUint8ListArg = (byte[]) args.get(0); + Result resultCallback = + new Result() { + public void success(byte[] result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncUint8List(aUint8ListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncObject" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Object anObjectArg = args.get(0); + Result resultCallback = + new Result() { + public void success(Object result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncObject(anObjectArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List listArg = (List) args.get(0); + Result> resultCallback = + new Result>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncList(listArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + Result> resultCallback = + new Result>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncEnumList(enumListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + Result> resultCallback = + new Result>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncClassList(classListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map mapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncMap(mapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncStringMap(stringMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncIntMap(intMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncEnumMap(enumMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncClassMap(classMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnEnum anEnumArg = (AnEnum) args.get(0); + Result resultCallback = + new Result() { + public void success(AnEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncEnum(anEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + Result resultCallback = + new Result() { + public void success(AnotherEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAnotherAsyncEnum(anotherEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncError" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + NullableResult resultCallback = + new NullableResult() { + public void success(Object result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.throwAsyncError(resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncErrorFromVoid" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + VoidResult resultCallback = + new VoidResult() { + public void success() { + wrapped.add(0, null); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.throwAsyncErrorFromVoid(resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncFlutterError" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + NullableResult resultCallback = + new NullableResult() { + public void success(Object result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.throwAsyncFlutterError(resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncAllTypes" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllTypes everythingArg = (AllTypes) args.get(0); + Result resultCallback = + new Result() { + public void success(AllTypes result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncAllTypes(everythingArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AllNullableTypes result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableAllNullableTypes(everythingArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypesWithoutRecursion everythingArg = + (AllNullableTypesWithoutRecursion) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AllNullableTypesWithoutRecursion result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableAllNullableTypesWithoutRecursion( + everythingArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableInt" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Long anIntArg = (Long) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(Long result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableInt(anIntArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableDouble" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Double aDoubleArg = (Double) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(Double result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableDouble(aDoubleArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableBool" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aBoolArg = (Boolean) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(Boolean result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableBool(aBoolArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aStringArg = (String) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(String result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableString(aStringArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableUint8List" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + byte[] aUint8ListArg = (byte[]) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(byte[] result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableUint8List(aUint8ListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableObject" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Object anObjectArg = args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(Object result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableObject(anObjectArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List listArg = (List) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableList(listArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableEnumList(enumListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableClassList(classListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map mapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableMap(mapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableStringMap(stringMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableIntMap(intMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableEnumMap(enumMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableClassMap(classMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnEnum anEnumArg = (AnEnum) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AnEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAsyncNullableEnum(anEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AnotherEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAnotherAsyncNullableEnum(anotherEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.defaultIsMainThread" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + try { + Boolean output = api.defaultIsMainThread(); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.taskQueueIsBackgroundThread" + + messageChannelSuffix, + getCodec(), + taskQueue); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + try { + Boolean output = api.taskQueueIsBackgroundThread(); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterNoop" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + VoidResult resultCallback = + new VoidResult() { + public void success() { + wrapped.add(0, null); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterNoop(resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowError" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + NullableResult resultCallback = + new NullableResult() { + public void success(Object result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterThrowError(resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + VoidResult resultCallback = + new VoidResult() { + public void success() { + wrapped.add(0, null); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterThrowErrorFromVoid(resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllTypes" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllTypes everythingArg = (AllTypes) args.get(0); + Result resultCallback = + new Result() { + public void success(AllTypes result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoAllTypes(everythingArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AllNullableTypes result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoAllNullableTypes(everythingArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aNullableBoolArg = (Boolean) args.get(0); + Long aNullableIntArg = (Long) args.get(1); + String aNullableStringArg = (String) args.get(2); + Result resultCallback = + new Result() { + public void success(AllNullableTypes result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterSendMultipleNullableTypes( + aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypesWithoutRecursion everythingArg = + (AllNullableTypesWithoutRecursion) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AllNullableTypesWithoutRecursion result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoAllNullableTypesWithoutRecursion(everythingArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aNullableBoolArg = (Boolean) args.get(0); + Long aNullableIntArg = (Long) args.get(1); + String aNullableStringArg = (String) args.get(2); + Result resultCallback = + new Result() { + public void success(AllNullableTypesWithoutRecursion result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterSendMultipleNullableTypesWithoutRecursion( + aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoBool" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aBoolArg = (Boolean) args.get(0); + Result resultCallback = + new Result() { + public void success(Boolean result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoBool(aBoolArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoInt" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Long anIntArg = (Long) args.get(0); + Result resultCallback = + new Result() { + public void success(Long result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoInt(anIntArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoDouble" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Double aDoubleArg = (Double) args.get(0); + Result resultCallback = + new Result() { + public void success(Double result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoDouble(aDoubleArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aStringArg = (String) args.get(0); + Result resultCallback = + new Result() { + public void success(String result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoString(aStringArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoUint8List" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + byte[] listArg = (byte[]) args.get(0); + Result resultCallback = + new Result() { + public void success(byte[] result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoUint8List(listArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List listArg = (List) args.get(0); + Result> resultCallback = + new Result>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoList(listArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + Result> resultCallback = + new Result>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoEnumList(enumListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + Result> resultCallback = + new Result>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoClassList(classListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + Result> resultCallback = + new Result>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNonNullEnumList(enumListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + Result> resultCallback = + new Result>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNonNullClassList(classListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map mapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoMap(mapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoStringMap(stringMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoIntMap(intMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoEnumMap(enumMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoClassMap(classMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNonNullStringMap(stringMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNonNullIntMap(intMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNonNullEnumMap(enumMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + Result> resultCallback = + new Result>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNonNullClassMap(classMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnEnum anEnumArg = (AnEnum) args.get(0); + Result resultCallback = + new Result() { + public void success(AnEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoEnum(anEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + Result resultCallback = + new Result() { + public void success(AnotherEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoAnotherEnum(anotherEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableBool" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Boolean aBoolArg = (Boolean) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(Boolean result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableBool(aBoolArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableInt" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Long anIntArg = (Long) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(Long result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableInt(anIntArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableDouble" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Double aDoubleArg = (Double) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(Double result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableDouble(aDoubleArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aStringArg = (String) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(String result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableString(aStringArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableUint8List" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + byte[] listArg = (byte[]) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(byte[] result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableUint8List(listArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List listArg = (List) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableList(listArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableEnumList(enumListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableClassList(classListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List enumListArg = (List) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableNonNullEnumList(enumListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + List classListArg = (List) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(List result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableNonNullClassList(classListArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map mapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableMap(mapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableStringMap(stringMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableIntMap(intMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableEnumMap(enumMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableClassMap(classMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map stringMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableNonNullStringMap(stringMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map intMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableNonNullIntMap(intMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map enumMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableNonNullEnumMap(enumMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + Map classMapArg = (Map) args.get(0); + NullableResult> resultCallback = + new NullableResult>() { + public void success(Map result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableNonNullClassMap(classMapArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnEnum anEnumArg = (AnEnum) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AnEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoNullableEnum(anEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AnotherEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoAnotherNullableEnum(anotherEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSmallApiEchoString" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aStringArg = (String) args.get(0); + Result resultCallback = + new Result() { + public void success(String result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterSmallApiEchoString(aStringArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + } + } + /** + * The core interface that the Dart platform_test code implements for host integration tests to + * call into. + * + *

Generated class from Pigeon that represents Flutter messages that can be called from Java. + */ + public static class FlutterIntegrationCoreApi { + private final @NonNull BinaryMessenger binaryMessenger; + private final String messageChannelSuffix; + + public FlutterIntegrationCoreApi(@NonNull BinaryMessenger argBinaryMessenger) { + this(argBinaryMessenger, ""); + } + + public FlutterIntegrationCoreApi( + @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { + this.binaryMessenger = argBinaryMessenger; + this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; + } + + /** Public interface for sending reply. The codec used by FlutterIntegrationCoreApi. */ + static @NonNull MessageCodec getCodec() { + return PigeonCodec.INSTANCE; + } + /** + * A no-op function taking no arguments and returning no value, to sanity test basic calling. + */ + public void noop(@NonNull VoidResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noop" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + null, + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + result.success(); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Responds with an error from an async function returning a value. */ + public void throwError(@NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwError" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + null, + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Object output = listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Responds with an error from an async void function. */ + public void throwErrorFromVoid(@NonNull VoidResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwErrorFromVoid" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + null, + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + result.success(); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed object, to test serialization and deserialization. */ + public void echoAllTypes(@NonNull AllTypes everythingArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(everythingArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + AllTypes output = (AllTypes) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed object, to test serialization and deserialization. */ + public void echoAllNullableTypes( + @Nullable AllNullableTypes everythingArg, + @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(everythingArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + AllNullableTypes output = (AllNullableTypes) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** + * Returns passed in arguments of multiple types. + * + *

Tests multiple-arity FlutterApi handling. + */ + public void sendMultipleNullableTypes( + @Nullable Boolean aNullableBoolArg, + @Nullable Long aNullableIntArg, + @Nullable String aNullableStringArg, + @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + AllNullableTypes output = (AllNullableTypes) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed object, to test serialization and deserialization. */ + public void echoAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion everythingArg, + @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(everythingArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + AllNullableTypesWithoutRecursion output = + (AllNullableTypesWithoutRecursion) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** + * Returns passed in arguments of multiple types. + * + *

Tests multiple-arity FlutterApi handling. + */ + public void sendMultipleNullableTypesWithoutRecursion( + @Nullable Boolean aNullableBoolArg, + @Nullable Long aNullableIntArg, + @Nullable String aNullableStringArg, + @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + AllNullableTypesWithoutRecursion output = + (AllNullableTypesWithoutRecursion) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed boolean, to test serialization and deserialization. */ + public void echoBool(@NonNull Boolean aBoolArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(aBoolArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Boolean output = (Boolean) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed int, to test serialization and deserialization. */ + public void echoInt(@NonNull Long anIntArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(anIntArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Long output = (Long) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed double, to test serialization and deserialization. */ + public void echoDouble(@NonNull Double aDoubleArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(aDoubleArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Double output = (Double) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed string, to test serialization and deserialization. */ + public void echoString(@NonNull String aStringArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(aStringArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + String output = (String) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed byte list, to test serialization and deserialization. */ + public void echoUint8List(@NonNull byte[] listArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(listArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + byte[] output = (byte[]) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoList(@NonNull List listArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(listArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoEnumList( + @NonNull List enumListArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(enumListArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoClassList( + @NonNull List classListArg, + @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(classListArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoNonNullEnumList( + @NonNull List enumListArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(enumListArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoNonNullClassList( + @NonNull List classListArg, + @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(classListArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoMap( + @NonNull Map mapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(mapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoStringMap( + @NonNull Map stringMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(stringMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoIntMap( + @NonNull Map intMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(intMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoEnumMap( + @NonNull Map enumMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(enumMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoClassMap( + @NonNull Map classMapArg, + @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(classMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNonNullStringMap( + @NonNull Map stringMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(stringMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNonNullIntMap( + @NonNull Map intMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(intMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNonNullEnumMap( + @NonNull Map enumMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(enumMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNonNullClassMap( + @NonNull Map classMapArg, + @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(classMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed enum to test serialization and deserialization. */ + public void echoEnum(@NonNull AnEnum anEnumArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(anEnumArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + AnEnum output = (AnEnum) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed enum to test serialization and deserialization. */ + public void echoAnotherEnum( + @NonNull AnotherEnum anotherEnumArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(anotherEnumArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + AnotherEnum output = (AnotherEnum) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed boolean, to test serialization and deserialization. */ + public void echoNullableBool( + @Nullable Boolean aBoolArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(aBoolArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Boolean output = (Boolean) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed int, to test serialization and deserialization. */ + public void echoNullableInt(@Nullable Long anIntArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(anIntArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Long output = (Long) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed double, to test serialization and deserialization. */ + public void echoNullableDouble( + @Nullable Double aDoubleArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(aDoubleArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Double output = (Double) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed string, to test serialization and deserialization. */ + public void echoNullableString( + @Nullable String aStringArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(aStringArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + String output = (String) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed byte list, to test serialization and deserialization. */ + public void echoNullableUint8List( + @Nullable byte[] listArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(listArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + byte[] output = (byte[]) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoNullableList( + @Nullable List listArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(listArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoNullableEnumList( + @Nullable List enumListArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(enumListArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoNullableClassList( + @Nullable List classListArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(classListArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoNullableNonNullEnumList( + @Nullable List enumListArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(enumListArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed list, to test serialization and deserialization. */ + public void echoNullableNonNullClassList( + @Nullable List classListArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(classListArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + List output = (List) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableMap( + @Nullable Map mapArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(mapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableStringMap( + @Nullable Map stringMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(stringMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableIntMap( + @Nullable Map intMapArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(intMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableEnumMap( + @Nullable Map enumMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(enumMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableClassMap( + @Nullable Map classMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(classMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableNonNullStringMap( + @Nullable Map stringMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(stringMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableNonNullIntMap( + @Nullable Map intMapArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(intMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableNonNullEnumMap( + @Nullable Map enumMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(enumMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed map, to test serialization and deserialization. */ + public void echoNullableNonNullClassMap( + @Nullable Map classMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(classMapArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + Map output = (Map) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed enum to test serialization and deserialization. */ + public void echoNullableEnum( + @Nullable AnEnum anEnumArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(anEnumArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + AnEnum output = (AnEnum) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed enum to test serialization and deserialization. */ + public void echoAnotherNullableEnum( + @Nullable AnotherEnum anotherEnumArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(anotherEnumArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + AnotherEnum output = (AnotherEnum) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** + * A no-op function taking no arguments and returning no value, to sanity test basic + * asynchronous calling. + */ + public void noopAsync(@NonNull VoidResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noopAsync" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + null, + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + result.success(); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + /** Returns the passed in generic Object asynchronously. */ + public void echoAsyncString(@NonNull String aStringArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(aStringArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + String output = (String) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + } + /** + * An API that can be implemented for minimal, compile-only tests. + * + *

Generated interface from Pigeon that represents a handler of messages from Flutter. + */ + public interface HostTrivialApi { + + void noop(); + + /** The codec used by HostTrivialApi. */ + static @NonNull MessageCodec getCodec() { + return PigeonCodec.INSTANCE; + } + /** Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. */ + static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostTrivialApi api) { + setUp(binaryMessenger, "", api); + } + + static void setUp( + @NonNull BinaryMessenger binaryMessenger, + @NonNull String messageChannelSuffix, + @Nullable HostTrivialApi api) { + messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostTrivialApi.noop" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + try { + api.noop(); + wrapped.add(0, null); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + } + } + /** + * A simple API implemented in some unit tests. + * + *

Generated interface from Pigeon that represents a handler of messages from Flutter. + */ + public interface HostSmallApi { + + void echo(@NonNull String aString, @NonNull Result result); + + void voidVoid(@NonNull VoidResult result); + + /** The codec used by HostSmallApi. */ + static @NonNull MessageCodec getCodec() { + return PigeonCodec.INSTANCE; + } + /** Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. */ + static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostSmallApi api) { + setUp(binaryMessenger, "", api); + } + + static void setUp( + @NonNull BinaryMessenger binaryMessenger, + @NonNull String messageChannelSuffix, + @Nullable HostSmallApi api) { + messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostSmallApi.echo" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + String aStringArg = (String) args.get(0); + Result resultCallback = + new Result() { + public void success(String result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echo(aStringArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon.HostSmallApi.voidVoid" + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + VoidResult resultCallback = + new VoidResult() { + public void success() { + wrapped.add(0, null); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.voidVoid(resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } + } + } + /** + * A simple API called in some unit tests. + * + *

Generated class from Pigeon that represents Flutter messages that can be called from Java. + */ + public static class FlutterSmallApi { + private final @NonNull BinaryMessenger binaryMessenger; + private final String messageChannelSuffix; + + public FlutterSmallApi(@NonNull BinaryMessenger argBinaryMessenger) { + this(argBinaryMessenger, ""); + } + + public FlutterSmallApi( + @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { + this.binaryMessenger = argBinaryMessenger; + this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; + } + + /** Public interface for sending reply. The codec used by FlutterSmallApi. */ + static @NonNull MessageCodec getCodec() { + return PigeonCodec.INSTANCE; + } + + public void echoWrappedList(@NonNull TestMessage msgArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(msgArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + TestMessage output = (TestMessage) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + + public void echoString(@NonNull String aStringArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString" + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(aStringArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + String output = (String) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } + } +} diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index d7fe089dcfb1..3348ea9434e4 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -151,17 +151,19 @@ data class UnusedClass(val aField: Any? = null) { } override fun equals(other: Any?): Boolean { - if (other !is UnusedClass) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(this.aField, other.aField) + val otherActual = other as UnusedClass + return CoreTestsPigeonUtils.deepEquals(this.aField, otherActual.aField) } override fun hashCode(): Int { - var result = CoreTestsPigeonUtils.deepHash(this.aField) + var result = javaClass.hashCode() + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aField) return result } } @@ -297,44 +299,46 @@ data class AllTypes( } override fun equals(other: Any?): Boolean { - if (other !is AllTypes) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(this.aBool, other.aBool) && - CoreTestsPigeonUtils.deepEquals(this.anInt, other.anInt) && - CoreTestsPigeonUtils.deepEquals(this.anInt64, other.anInt64) && - CoreTestsPigeonUtils.deepEquals(this.aDouble, other.aDouble) && - CoreTestsPigeonUtils.deepEquals(this.aByteArray, other.aByteArray) && - CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, other.a4ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, other.a8ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aFloatArray, other.aFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.anEnum, other.anEnum) && - CoreTestsPigeonUtils.deepEquals(this.anotherEnum, other.anotherEnum) && - CoreTestsPigeonUtils.deepEquals(this.aString, other.aString) && - CoreTestsPigeonUtils.deepEquals(this.anObject, other.anObject) && - CoreTestsPigeonUtils.deepEquals(this.list, other.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && - CoreTestsPigeonUtils.deepEquals(this.map, other.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) + val otherActual = other as AllTypes + return CoreTestsPigeonUtils.deepEquals(this.aBool, otherActual.aBool) && + CoreTestsPigeonUtils.deepEquals(this.anInt, otherActual.anInt) && + CoreTestsPigeonUtils.deepEquals(this.anInt64, otherActual.anInt64) && + CoreTestsPigeonUtils.deepEquals(this.aDouble, otherActual.aDouble) && + CoreTestsPigeonUtils.deepEquals(this.aByteArray, otherActual.aByteArray) && + CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, otherActual.a4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, otherActual.a8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aFloatArray, otherActual.aFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.anEnum, otherActual.anEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherEnum, otherActual.anotherEnum) && + CoreTestsPigeonUtils.deepEquals(this.aString, otherActual.aString) && + CoreTestsPigeonUtils.deepEquals(this.anObject, otherActual.anObject) && + CoreTestsPigeonUtils.deepEquals(this.list, otherActual.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, otherActual.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, otherActual.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, otherActual.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, otherActual.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, otherActual.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, otherActual.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, otherActual.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, otherActual.mapList) && + CoreTestsPigeonUtils.deepEquals(this.map, otherActual.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, otherActual.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, otherActual.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, otherActual.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, otherActual.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, otherActual.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, otherActual.mapMap) } override fun hashCode(): Int { - var result = CoreTestsPigeonUtils.deepHash(this.aBool) + var result = javaClass.hashCode() + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aBool) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anInt) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.anInt64) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aDouble) @@ -509,47 +513,53 @@ data class AllNullableTypes( } override fun equals(other: Any?): Boolean { - if (other !is AllNullableTypes) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && - CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && - CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && - CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && - CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && - CoreTestsPigeonUtils.deepEquals(this.list, other.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && - CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && - CoreTestsPigeonUtils.deepEquals(this.map, other.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && - CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) + val otherActual = other as AllNullableTypes + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, otherActual.aNullableBool) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt, otherActual.aNullableInt) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, otherActual.aNullableInt64) && + CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, otherActual.aNullableDouble) && + CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, otherActual.aNullableByteArray) && + CoreTestsPigeonUtils.deepEquals( + this.aNullable4ByteArray, otherActual.aNullable4ByteArray) && + CoreTestsPigeonUtils.deepEquals( + this.aNullable8ByteArray, otherActual.aNullable8ByteArray) && + CoreTestsPigeonUtils.deepEquals( + this.aNullableFloatArray, otherActual.aNullableFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, otherActual.aNullableEnum) && + CoreTestsPigeonUtils.deepEquals( + this.anotherNullableEnum, otherActual.anotherNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.aNullableString, otherActual.aNullableString) && + CoreTestsPigeonUtils.deepEquals(this.aNullableObject, otherActual.aNullableObject) && + CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, otherActual.allNullableTypes) && + CoreTestsPigeonUtils.deepEquals(this.list, otherActual.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, otherActual.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, otherActual.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, otherActual.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, otherActual.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, otherActual.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, otherActual.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, otherActual.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, otherActual.mapList) && + CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, otherActual.recursiveClassList) && + CoreTestsPigeonUtils.deepEquals(this.map, otherActual.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, otherActual.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, otherActual.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, otherActual.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, otherActual.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, otherActual.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, otherActual.mapMap) && + CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, otherActual.recursiveClassMap) } override fun hashCode(): Int { - var result = CoreTestsPigeonUtils.deepHash(this.aNullableBool) + var result = javaClass.hashCode() + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableBool) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableInt) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableInt64) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableDouble) @@ -716,44 +726,50 @@ data class AllNullableTypesWithoutRecursion( } override fun equals(other: Any?): Boolean { - if (other !is AllNullableTypesWithoutRecursion) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && - CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && - CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && - CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && - CoreTestsPigeonUtils.deepEquals(this.list, other.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && - CoreTestsPigeonUtils.deepEquals(this.map, other.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) + val otherActual = other as AllNullableTypesWithoutRecursion + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, otherActual.aNullableBool) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt, otherActual.aNullableInt) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, otherActual.aNullableInt64) && + CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, otherActual.aNullableDouble) && + CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, otherActual.aNullableByteArray) && + CoreTestsPigeonUtils.deepEquals( + this.aNullable4ByteArray, otherActual.aNullable4ByteArray) && + CoreTestsPigeonUtils.deepEquals( + this.aNullable8ByteArray, otherActual.aNullable8ByteArray) && + CoreTestsPigeonUtils.deepEquals( + this.aNullableFloatArray, otherActual.aNullableFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, otherActual.aNullableEnum) && + CoreTestsPigeonUtils.deepEquals( + this.anotherNullableEnum, otherActual.anotherNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.aNullableString, otherActual.aNullableString) && + CoreTestsPigeonUtils.deepEquals(this.aNullableObject, otherActual.aNullableObject) && + CoreTestsPigeonUtils.deepEquals(this.list, otherActual.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, otherActual.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, otherActual.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, otherActual.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, otherActual.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, otherActual.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, otherActual.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, otherActual.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, otherActual.mapList) && + CoreTestsPigeonUtils.deepEquals(this.map, otherActual.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, otherActual.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, otherActual.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, otherActual.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, otherActual.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, otherActual.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, otherActual.mapMap) } override fun hashCode(): Int { - var result = CoreTestsPigeonUtils.deepHash(this.aNullableBool) + var result = javaClass.hashCode() + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableBool) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableInt) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableInt64) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.aNullableDouble) @@ -836,24 +852,26 @@ data class AllClassesWrapper( } override fun equals(other: Any?): Boolean { - if (other !is AllClassesWrapper) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + val otherActual = other as AllClassesWrapper + return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, otherActual.allNullableTypes) && CoreTestsPigeonUtils.deepEquals( - this.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && - CoreTestsPigeonUtils.deepEquals(this.allTypes, other.allTypes) && - CoreTestsPigeonUtils.deepEquals(this.classList, other.classList) && - CoreTestsPigeonUtils.deepEquals(this.nullableClassList, other.nullableClassList) && - CoreTestsPigeonUtils.deepEquals(this.classMap, other.classMap) && - CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, other.nullableClassMap) + this.allNullableTypesWithoutRecursion, otherActual.allNullableTypesWithoutRecursion) && + CoreTestsPigeonUtils.deepEquals(this.allTypes, otherActual.allTypes) && + CoreTestsPigeonUtils.deepEquals(this.classList, otherActual.classList) && + CoreTestsPigeonUtils.deepEquals(this.nullableClassList, otherActual.nullableClassList) && + CoreTestsPigeonUtils.deepEquals(this.classMap, otherActual.classMap) && + CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, otherActual.nullableClassMap) } override fun hashCode(): Int { - var result = CoreTestsPigeonUtils.deepHash(this.allNullableTypes) + var result = javaClass.hashCode() + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.allNullableTypes) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.allNullableTypesWithoutRecursion) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.allTypes) result = 31 * result + CoreTestsPigeonUtils.deepHash(this.classList) @@ -884,17 +902,19 @@ data class TestMessage(val testList: List? = null) { } override fun equals(other: Any?): Boolean { - if (other !is TestMessage) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return CoreTestsPigeonUtils.deepEquals(this.testList, other.testList) + val otherActual = other as TestMessage + return CoreTestsPigeonUtils.deepEquals(this.testList, otherActual.testList) } override fun hashCode(): Int { - var result = CoreTestsPigeonUtils.deepHash(this.testList) + var result = javaClass.hashCode() + result = 31 * result + CoreTestsPigeonUtils.deepHash(this.testList) return result } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt index 5b5af2bacb1d..a8db5f482dd9 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt @@ -256,53 +256,60 @@ data class EventAllNullableTypes( } override fun equals(other: Any?): Boolean { - if (other !is EventAllNullableTypes) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + val otherActual = other as EventAllNullableTypes + return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, otherActual.aNullableBool) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, otherActual.aNullableInt) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, otherActual.aNullableInt64) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullableByteArray, other.aNullableByteArray) && + this.aNullableDouble, otherActual.aNullableDouble) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullable4ByteArray, other.aNullable4ByteArray) && + this.aNullableByteArray, otherActual.aNullableByteArray) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullable8ByteArray, other.aNullable8ByteArray) && + this.aNullable4ByteArray, otherActual.aNullable4ByteArray) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullableFloatArray, other.aNullableFloatArray) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + this.aNullable8ByteArray, otherActual.aNullable8ByteArray) && EventChannelTestsPigeonUtils.deepEquals( - this.anotherNullableEnum, other.anotherNullableEnum) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && - EventChannelTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && - EventChannelTestsPigeonUtils.deepEquals(this.list, other.list) && - EventChannelTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && - EventChannelTestsPigeonUtils.deepEquals(this.intList, other.intList) && - EventChannelTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && - EventChannelTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && - EventChannelTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && - EventChannelTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && - EventChannelTestsPigeonUtils.deepEquals(this.listList, other.listList) && - EventChannelTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + this.aNullableFloatArray, otherActual.aNullableFloatArray) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, otherActual.aNullableEnum) && EventChannelTestsPigeonUtils.deepEquals( - this.recursiveClassList, other.recursiveClassList) && - EventChannelTestsPigeonUtils.deepEquals(this.map, other.map) && - EventChannelTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && - EventChannelTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && - EventChannelTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && - EventChannelTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && - EventChannelTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && - EventChannelTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && - EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) + this.anotherNullableEnum, otherActual.anotherNullableEnum) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullableString, otherActual.aNullableString) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullableObject, otherActual.aNullableObject) && + EventChannelTestsPigeonUtils.deepEquals( + this.allNullableTypes, otherActual.allNullableTypes) && + EventChannelTestsPigeonUtils.deepEquals(this.list, otherActual.list) && + EventChannelTestsPigeonUtils.deepEquals(this.stringList, otherActual.stringList) && + EventChannelTestsPigeonUtils.deepEquals(this.intList, otherActual.intList) && + EventChannelTestsPigeonUtils.deepEquals(this.doubleList, otherActual.doubleList) && + EventChannelTestsPigeonUtils.deepEquals(this.boolList, otherActual.boolList) && + EventChannelTestsPigeonUtils.deepEquals(this.enumList, otherActual.enumList) && + EventChannelTestsPigeonUtils.deepEquals(this.objectList, otherActual.objectList) && + EventChannelTestsPigeonUtils.deepEquals(this.listList, otherActual.listList) && + EventChannelTestsPigeonUtils.deepEquals(this.mapList, otherActual.mapList) && + EventChannelTestsPigeonUtils.deepEquals( + this.recursiveClassList, otherActual.recursiveClassList) && + EventChannelTestsPigeonUtils.deepEquals(this.map, otherActual.map) && + EventChannelTestsPigeonUtils.deepEquals(this.stringMap, otherActual.stringMap) && + EventChannelTestsPigeonUtils.deepEquals(this.intMap, otherActual.intMap) && + EventChannelTestsPigeonUtils.deepEquals(this.enumMap, otherActual.enumMap) && + EventChannelTestsPigeonUtils.deepEquals(this.objectMap, otherActual.objectMap) && + EventChannelTestsPigeonUtils.deepEquals(this.listMap, otherActual.listMap) && + EventChannelTestsPigeonUtils.deepEquals(this.mapMap, otherActual.mapMap) && + EventChannelTestsPigeonUtils.deepEquals( + this.recursiveClassMap, otherActual.recursiveClassMap) } override fun hashCode(): Int { - var result = EventChannelTestsPigeonUtils.deepHash(this.aNullableBool) + var result = javaClass.hashCode() + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableBool) result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableInt) result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableInt64) result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.aNullableDouble) @@ -358,17 +365,19 @@ data class IntEvent(val value: Long) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is IntEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) + val otherActual = other as IntEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) } override fun hashCode(): Int { - var result = EventChannelTestsPigeonUtils.deepHash(this.value) + var result = javaClass.hashCode() + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.value) return result } } @@ -389,17 +398,19 @@ data class StringEvent(val value: String) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is StringEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) + val otherActual = other as StringEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) } override fun hashCode(): Int { - var result = EventChannelTestsPigeonUtils.deepHash(this.value) + var result = javaClass.hashCode() + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.value) return result } } @@ -420,17 +431,19 @@ data class BoolEvent(val value: Boolean) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is BoolEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) + val otherActual = other as BoolEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) } override fun hashCode(): Int { - var result = EventChannelTestsPigeonUtils.deepHash(this.value) + var result = javaClass.hashCode() + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.value) return result } } @@ -451,17 +464,19 @@ data class DoubleEvent(val value: Double) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is DoubleEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) + val otherActual = other as DoubleEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) } override fun hashCode(): Int { - var result = EventChannelTestsPigeonUtils.deepHash(this.value) + var result = javaClass.hashCode() + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.value) return result } } @@ -482,17 +497,19 @@ data class ObjectsEvent(val value: Any) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is ObjectsEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) + val otherActual = other as ObjectsEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) } override fun hashCode(): Int { - var result = EventChannelTestsPigeonUtils.deepHash(this.value) + var result = javaClass.hashCode() + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.value) return result } } @@ -513,17 +530,19 @@ data class EnumEvent(val value: EventEnum) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is EnumEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) + val otherActual = other as EnumEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) } override fun hashCode(): Int { - var result = EventChannelTestsPigeonUtils.deepHash(this.value) + var result = javaClass.hashCode() + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.value) return result } } @@ -544,17 +563,19 @@ data class ClassEvent(val value: EventAllNullableTypes) : PlatformEvent() { } override fun equals(other: Any?): Boolean { - if (other !is ClassEvent) { + if (other == null || other.javaClass != javaClass) { return false } if (this === other) { return true } - return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) + val otherActual = other as ClassEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) } override fun hashCode(): Int { - var result = EventChannelTestsPigeonUtils.deepHash(this.value) + var result = javaClass.hashCode() + result = 31 * result + EventChannelTestsPigeonUtils.deepHash(this.value) return result } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt b/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt index e2f80062c6e2..687c8c4c1cb8 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt @@ -227,4 +227,46 @@ internal class AllDatatypesTest { val withDifferentMapInList = AllNullableTypes(list = matchingMapInList) assertEquals(withMapInList, withDifferentMapInList) } + + @Test + fun `equality method correctly identifies NaN matches`() { + val withNaN = AllNullableTypes(aNullableDouble = Double.NaN) + val withAnotherNaN = AllNullableTypes(aNullableDouble = Double.NaN) + assertEquals(withNaN, withAnotherNaN) + assertEquals(withNaN.hashCode(), withAnotherNaN.hashCode()) + } + + @Test + fun `cross-type equality returns false`() { + val a = AllNullableTypes(aNullableInt = 1) + val b = AllNullableTypesWithoutRecursion(aNullableInt = 1) + assertNotEquals(a, b) + assertNotEquals(b, a) + } + + @Test + fun `byteArray equality`() { + val a = AllNullableTypes(aNullableByteArray = byteArrayOf(1, 2, 3)) + val b = AllNullableTypes(aNullableByteArray = byteArrayOf(1, 2, 3)) + assertEquals(a, b) + assertEquals(a.hashCode(), b.hashCode()) + } + + @Test + fun `zero equality`() { + val a = AllNullableTypes(aNullableDouble = 0.0) + val b = AllNullableTypes(aNullableDouble = -0.0) + // In Kotlin/Java, boxed 0.0 and -0.0 are NOT equal. + // This is consistent with their different hash codes. + assertNotEquals(a, b) + assertNotEquals(a.hashCode(), b.hashCode()) + } + + @Test + fun `nested NaN equality`() { + val a = AllNullableTypes(doubleList = listOf(Double.NaN)) + val b = AllNullableTypes(doubleList = listOf(Double.NaN)) + assertEquals(a, b) + assertEquals(a.hashCode(), b.hashCode()) + } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/NonNullFieldsTests.kt b/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/NonNullFieldsTests.kt index e5e97394f18f..fad1532b0599 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/NonNullFieldsTests.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/NonNullFieldsTests.kt @@ -14,4 +14,15 @@ class NonNullFieldsTests { val request = NonNullFieldSearchRequest("hello") assertEquals("hello", request.query) } + + @Test + fun testEquality() { + val request1 = NonNullFieldSearchRequest("hello") + val request2 = NonNullFieldSearchRequest("hello") + val request3 = NonNullFieldSearchRequest("world") + + assertEquals(request1, request2) + assert(request1 != request3) + assertEquals(request1.hashCode(), request2.hashCode()) + } } diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index 3e33878265bc..f1b0d8f30089 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -54,7 +54,7 @@ private func wrapError(_ error: Any) -> [Any?] { } return [ "\(error)", - "\(type(of: error))", + "\(Swift.type(of: error))", "Stacktrace: \(Thread.callStackSymbols)", ] } @@ -109,6 +109,9 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: + return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -120,7 +123,9 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashCoreTests(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let valueList = cleanValue as? [Any?] { + if let doubleValue = cleanValue as? Double, doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashCoreTests(value: item, hasher: &hasher) } @@ -169,10 +174,14 @@ struct UnusedClass: Hashable { ] } static func == (lhs: UnusedClass, rhs: UnusedClass) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsCoreTests(lhs.aField, rhs.aField) } func hash(into hasher: inout Hasher) { + hasher.combine("UnusedClass") deepHashCoreTests(value: aField, hasher: &hasher) } } @@ -305,6 +314,9 @@ struct AllTypes: Hashable { ] } static func == (lhs: AllTypes, rhs: AllTypes) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsCoreTests(lhs.aBool, rhs.aBool) && deepEqualsCoreTests(lhs.anInt, rhs.anInt) && deepEqualsCoreTests(lhs.anInt64, rhs.anInt64) && deepEqualsCoreTests(lhs.aDouble, rhs.aDouble) @@ -333,6 +345,7 @@ struct AllTypes: Hashable { } func hash(into hasher: inout Hasher) { + hasher.combine("AllTypes") deepHashCoreTests(value: aBool, hasher: &hasher) deepHashCoreTests(value: anInt, hasher: &hasher) deepHashCoreTests(value: anInt64, hasher: &hasher) @@ -569,6 +582,9 @@ class AllNullableTypes: Hashable { ] } static func == (lhs: AllNullableTypes, rhs: AllNullableTypes) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } if lhs === rhs { return true } @@ -605,6 +621,7 @@ class AllNullableTypes: Hashable { } func hash(into hasher: inout Hasher) { + hasher.combine("AllNullableTypes") deepHashCoreTests(value: aNullableBool, hasher: &hasher) deepHashCoreTests(value: aNullableInt, hasher: &hasher) deepHashCoreTests(value: aNullableInt64, hasher: &hasher) @@ -771,6 +788,9 @@ struct AllNullableTypesWithoutRecursion: Hashable { static func == (lhs: AllNullableTypesWithoutRecursion, rhs: AllNullableTypesWithoutRecursion) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) @@ -801,6 +821,7 @@ struct AllNullableTypesWithoutRecursion: Hashable { } func hash(into hasher: inout Hasher) { + hasher.combine("AllNullableTypesWithoutRecursion") deepHashCoreTests(value: aNullableBool, hasher: &hasher) deepHashCoreTests(value: aNullableInt, hasher: &hasher) deepHashCoreTests(value: aNullableInt64, hasher: &hasher) @@ -882,6 +903,9 @@ struct AllClassesWrapper: Hashable { ] } static func == (lhs: AllClassesWrapper, rhs: AllClassesWrapper) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) && deepEqualsCoreTests( lhs.allNullableTypesWithoutRecursion, rhs.allNullableTypesWithoutRecursion) @@ -893,6 +917,7 @@ struct AllClassesWrapper: Hashable { } func hash(into hasher: inout Hasher) { + hasher.combine("AllClassesWrapper") deepHashCoreTests(value: allNullableTypes, hasher: &hasher) deepHashCoreTests(value: allNullableTypesWithoutRecursion, hasher: &hasher) deepHashCoreTests(value: allTypes, hasher: &hasher) @@ -923,10 +948,14 @@ struct TestMessage: Hashable { ] } static func == (lhs: TestMessage, rhs: TestMessage) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsCoreTests(lhs.testList, rhs.testList) } func hash(into hasher: inout Hasher) { + hasher.combine("TestMessage") deepHashCoreTests(value: testList, hasher: &hasher) } } diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift index 570a6d4b3fc9..baa5e76a7741 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift @@ -77,6 +77,9 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: + return true + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -88,7 +91,9 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let valueList = cleanValue as? [Any?] { + if let doubleValue = cleanValue as? Double, doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashEventChannelTests(value: item, hasher: &hasher) } @@ -324,6 +329,9 @@ class EventAllNullableTypes: Hashable { ] } static func == (lhs: EventAllNullableTypes, rhs: EventAllNullableTypes) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } if lhs === rhs { return true } @@ -361,6 +369,7 @@ class EventAllNullableTypes: Hashable { } func hash(into hasher: inout Hasher) { + hasher.combine("EventAllNullableTypes") deepHashEventChannelTests(value: aNullableBool, hasher: &hasher) deepHashEventChannelTests(value: aNullableInt, hasher: &hasher) deepHashEventChannelTests(value: aNullableInt64, hasher: &hasher) @@ -419,10 +428,14 @@ struct IntEvent: PlatformEvent { ] } static func == (lhs: IntEvent, rhs: IntEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelTests(lhs.value, rhs.value) } func hash(into hasher: inout Hasher) { + hasher.combine("IntEvent") deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -445,10 +458,14 @@ struct StringEvent: PlatformEvent { ] } static func == (lhs: StringEvent, rhs: StringEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelTests(lhs.value, rhs.value) } func hash(into hasher: inout Hasher) { + hasher.combine("StringEvent") deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -471,10 +488,14 @@ struct BoolEvent: PlatformEvent { ] } static func == (lhs: BoolEvent, rhs: BoolEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelTests(lhs.value, rhs.value) } func hash(into hasher: inout Hasher) { + hasher.combine("BoolEvent") deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -497,10 +518,14 @@ struct DoubleEvent: PlatformEvent { ] } static func == (lhs: DoubleEvent, rhs: DoubleEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelTests(lhs.value, rhs.value) } func hash(into hasher: inout Hasher) { + hasher.combine("DoubleEvent") deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -523,10 +548,14 @@ struct ObjectsEvent: PlatformEvent { ] } static func == (lhs: ObjectsEvent, rhs: ObjectsEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelTests(lhs.value, rhs.value) } func hash(into hasher: inout Hasher) { + hasher.combine("ObjectsEvent") deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -549,10 +578,14 @@ struct EnumEvent: PlatformEvent { ] } static func == (lhs: EnumEvent, rhs: EnumEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelTests(lhs.value, rhs.value) } func hash(into hasher: inout Hasher) { + hasher.combine("EnumEvent") deepHashEventChannelTests(value: value, hasher: &hasher) } } @@ -575,10 +608,14 @@ struct ClassEvent: PlatformEvent { ] } static func == (lhs: ClassEvent, rhs: ClassEvent) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } return deepEqualsEventChannelTests(lhs.value, rhs.value) } func hash(into hasher: inout Hasher) { + hasher.combine("ClassEvent") deepHashEventChannelTests(value: value, hasher: &hasher) } } diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift index 3e392185d448..5eb4b81803ad 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift @@ -54,7 +54,7 @@ private func wrapError(_ error: Any) -> [Any?] { } return [ "\(error)", - "\(type(of: error))", + "\(Swift.type(of: error))", "Stacktrace: \(Thread.callStackSymbols)", ] } diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist b/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist index 7c5696400627..391a902b2beb 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist @@ -20,7 +20,5 @@ ???? CFBundleVersion 1.0 - MinimumOSVersion - 12.0 diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/Podfile b/packages/pigeon/platform_tests/test_plugin/example/ios/Podfile index 6f5730c5fed8..c279c7bbb597 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/Podfile +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '12.0' +# platform :ios, '13.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/Runner.xcodeproj/project.pbxproj b/packages/pigeon/platform_tests/test_plugin/example/ios/Runner.xcodeproj/project.pbxproj index 149f3c3e0f15..a83f244a11b2 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/Runner.xcodeproj/project.pbxproj @@ -244,6 +244,7 @@ 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 9666F78578CD9027186AD333 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -381,6 +382,23 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; + 9666F78578CD9027186AD333 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -502,7 +520,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -629,7 +647,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -678,7 +696,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift index bd9ab4ae67e2..1d75d6e4b372 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift @@ -187,4 +187,91 @@ struct AllDatatypesTests { withMapInList == withMatchingMapInList, "Instances with equivalent nested maps in lists should be equal") } + + @Test + func equalityWithNaN() throws { + let list = [Double.nan] + let map: [Int64: Double?] = [1: Double.nan] + let a = AllNullableTypes( + aNullableDouble: Double.nan, + doubleList: list, + recursiveClassList: [AllNullableTypes(aNullableDouble: Double.nan)], + map: map + ) + let b = AllNullableTypes( + aNullableDouble: Double.nan, + doubleList: list, + recursiveClassList: [AllNullableTypes(aNullableDouble: Double.nan)], + map: map + ) + #expect(a == b) + } + + @Test + func hashWithNaN() throws { + let a = AllNullableTypes(aNullableDouble: Double.nan) + let b = AllNullableTypes(aNullableDouble: Double.nan) + + var hasherA = Hasher() + a.hash(into: &hasherA) + let hashA = hasherA.finalize() + + var hasherB = Hasher() + b.hash(into: &hasherB) + let hashB = hasherB.finalize() + + #expect(hashA == hashB) + } + + @Test + func structEquality() { + let a = AllNullableTypesWithoutRecursion(aNullableInt: 1) + let b = AllNullableTypesWithoutRecursion(aNullableInt: 1) + let c = AllNullableTypesWithoutRecursion(aNullableInt: 2) + #expect(a == b) + #expect(a != c) + } + + @Test + func crossTypeEquality() { + let a = AllNullableTypes(aNullableInt: 1) + let b = AllNullableTypesWithoutRecursion(aNullableInt: 1) + // They are different types, so they shouldn't be equal even if we cast to Any + let anyA: Any = a + let anyB: Any = b + #expect(!(anyA as? AllNullableTypesWithoutRecursion == b)) + #expect(!(anyB as? AllNullableTypes == a)) + } + + @Test + func typedDataEquality() { + let data1 = "1234".data(using: .utf8)! + let data2 = "1234".data(using: .utf8)! + // Ensure they are different instances in memory if possible, + // though Data in Swift is a value type. + // FlutterStandardTypedData is a class. + let a = AllNullableTypes(aNullableByteArray: FlutterStandardTypedData(bytes: data1)) + let b = AllNullableTypes(aNullableDouble: 1.0) // Just to change something + var c = a + c.aNullableByteArray = FlutterStandardTypedData(bytes: data2) + + #expect(a == c) + } + + @Test + func signedZeroEquality() { + let a = AllNullableTypes(aNullableDouble: 0.0) + let b = AllNullableTypes(aNullableDouble: -0.0) + #expect(a == b) + + var hasherA = Hasher() + a.hash(into: &hasherA) + let hashA = hasherA.finalize() + + var hasherB = Hasher() + b.hash(into: &hasherB) + let hashB = hasherB.finalize() + + #expect(hashA == hashB) + } } diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/NonNullFieldsTest.swift b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/NonNullFieldsTest.swift index 927117fa0874..bb06e1bbf2b2 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/NonNullFieldsTest.swift +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/NonNullFieldsTest.swift @@ -12,4 +12,15 @@ struct NonNullFieldsTests { let request = NonNullFieldSearchRequest(query: "hello") #expect(request.query == "hello") } + + @Test + func testEquality() { + let request1 = NonNullFieldSearchRequest(query: "hello") + let request2 = NonNullFieldSearchRequest(query: "hello") + let request3 = NonNullFieldSearchRequest(query: "world") + + #expect(request1 == request2) + #expect(request1 != request3) + #expect(request1.hashValue == request2.hashValue) + } } diff --git a/packages/pigeon/platform_tests/test_plugin/example/macos/Podfile b/packages/pigeon/platform_tests/test_plugin/example/macos/Podfile index 71619503cdb0..358b97d070ff 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/macos/Podfile +++ b/packages/pigeon/platform_tests/test_plugin/example/macos/Podfile @@ -1,4 +1,4 @@ -platform :osx, '10.14' +platform :osx, '10.15' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/packages/pigeon/platform_tests/test_plugin/example/macos/Runner.xcodeproj/project.pbxproj b/packages/pigeon/platform_tests/test_plugin/example/macos/Runner.xcodeproj/project.pbxproj index c1d1c99272a6..5fb21ee08793 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/macos/Runner.xcodeproj/project.pbxproj +++ b/packages/pigeon/platform_tests/test_plugin/example/macos/Runner.xcodeproj/project.pbxproj @@ -242,6 +242,7 @@ 33CC10EB2044A3C60003C045 /* Resources */, 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, + AF153DC2AC92265A939417A8 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -367,6 +368,23 @@ shellPath = /bin/sh; shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; }; + AF153DC2AC92265A939417A8 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; D30FEEB3988449C1EC3D1DBF /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -498,7 +516,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -622,7 +640,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -669,7 +687,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.h b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.h new file mode 100644 index 000000000000..c2de9d9a691e --- /dev/null +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.h @@ -0,0 +1,1123 @@ +// Autogenerated from Pigeon (v26.1.9), do not edit directly. +// See also: https://pub.dev/packages/pigeon + +@import Foundation; + +@protocol FlutterBinaryMessenger; +@protocol FlutterMessageCodec; +@class FlutterError; +@class FlutterStandardTypedData; + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSUInteger, AnEnum) { + AnEnumOne = 0, + AnEnumTwo = 1, + AnEnumThree = 2, + AnEnumFortyTwo = 3, + AnEnumFourHundredTwentyTwo = 4, +}; + +/// Wrapper for AnEnum to allow for nullability. +@interface AnEnumBox : NSObject +@property(nonatomic, assign) AnEnum value; +- (instancetype)initWithValue:(AnEnum)value; +@end + +typedef NS_ENUM(NSUInteger, AnotherEnum) { + AnotherEnumJustInCase = 0, +}; + +/// Wrapper for AnotherEnum to allow for nullability. +@interface AnotherEnumBox : NSObject +@property(nonatomic, assign) AnotherEnum value; +- (instancetype)initWithValue:(AnotherEnum)value; +@end + +@class UnusedClass; +@class AllTypes; +@class AllNullableTypes; +@class AllNullableTypesWithoutRecursion; +@class AllClassesWrapper; +@class TestMessage; + +@interface UnusedClass : NSObject ++ (instancetype)makeWithAField:(nullable id)aField; +@property(nonatomic, strong, nullable) id aField; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; +@end + +/// A class containing all supported types. +@interface AllTypes : NSObject +/// `init` unavailable to enforce nonnull fields, see the `make` class method. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)makeWithABool:(BOOL)aBool + anInt:(NSInteger)anInt + anInt64:(NSInteger)anInt64 + aDouble:(double)aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(AnEnum)anEnum + anotherEnum:(AnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id)anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + enumList:(NSArray *)enumList + objectList:(NSArray *)objectList + listList:(NSArray *> *)listList + mapList:(NSArray *> *)mapList + map:(NSDictionary *)map + stringMap:(NSDictionary *)stringMap + intMap:(NSDictionary *)intMap + enumMap:(NSDictionary *)enumMap + objectMap:(NSDictionary *)objectMap + listMap:(NSDictionary *> *)listMap + mapMap:(NSDictionary *> *)mapMap; +@property(nonatomic, assign) BOOL aBool; +@property(nonatomic, assign) NSInteger anInt; +@property(nonatomic, assign) NSInteger anInt64; +@property(nonatomic, assign) double aDouble; +@property(nonatomic, strong) FlutterStandardTypedData *aByteArray; +@property(nonatomic, strong) FlutterStandardTypedData *a4ByteArray; +@property(nonatomic, strong) FlutterStandardTypedData *a8ByteArray; +@property(nonatomic, strong) FlutterStandardTypedData *aFloatArray; +@property(nonatomic, assign) AnEnum anEnum; +@property(nonatomic, assign) AnotherEnum anotherEnum; +@property(nonatomic, copy) NSString *aString; +@property(nonatomic, strong) id anObject; +@property(nonatomic, copy) NSArray *list; +@property(nonatomic, copy) NSArray *stringList; +@property(nonatomic, copy) NSArray *intList; +@property(nonatomic, copy) NSArray *doubleList; +@property(nonatomic, copy) NSArray *boolList; +@property(nonatomic, copy) NSArray *enumList; +@property(nonatomic, copy) NSArray *objectList; +@property(nonatomic, copy) NSArray *> *listList; +@property(nonatomic, copy) NSArray *> *mapList; +@property(nonatomic, copy) NSDictionary *map; +@property(nonatomic, copy) NSDictionary *stringMap; +@property(nonatomic, copy) NSDictionary *intMap; +@property(nonatomic, copy) NSDictionary *enumMap; +@property(nonatomic, copy) NSDictionary *objectMap; +@property(nonatomic, copy) NSDictionary *> *listMap; +@property(nonatomic, copy) NSDictionary *> *mapMap; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; +@end + +/// A class containing all supported nullable types. +@interface AllNullableTypes : NSObject ++ (instancetype) + makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + allNullableTypes:(nullable AllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + recursiveClassList:(nullable NSArray *)recursiveClassList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap + recursiveClassMap: + (nullable NSDictionary *)recursiveClassMap; +@property(nonatomic, strong, nullable) NSNumber *aNullableBool; +@property(nonatomic, strong, nullable) NSNumber *aNullableInt; +@property(nonatomic, strong, nullable) NSNumber *aNullableInt64; +@property(nonatomic, strong, nullable) NSNumber *aNullableDouble; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable4ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable8ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableFloatArray; +@property(nonatomic, strong, nullable) AnEnumBox *aNullableEnum; +@property(nonatomic, strong, nullable) AnotherEnumBox *anotherNullableEnum; +@property(nonatomic, copy, nullable) NSString *aNullableString; +@property(nonatomic, strong, nullable) id aNullableObject; +@property(nonatomic, strong, nullable) AllNullableTypes *allNullableTypes; +@property(nonatomic, copy, nullable) NSArray *list; +@property(nonatomic, copy, nullable) NSArray *stringList; +@property(nonatomic, copy, nullable) NSArray *intList; +@property(nonatomic, copy, nullable) NSArray *doubleList; +@property(nonatomic, copy, nullable) NSArray *boolList; +@property(nonatomic, copy, nullable) NSArray *enumList; +@property(nonatomic, copy, nullable) NSArray *objectList; +@property(nonatomic, copy, nullable) NSArray *> *listList; +@property(nonatomic, copy, nullable) NSArray *> *mapList; +@property(nonatomic, copy, nullable) NSArray *recursiveClassList; +@property(nonatomic, copy, nullable) NSDictionary *map; +@property(nonatomic, copy, nullable) NSDictionary *stringMap; +@property(nonatomic, copy, nullable) NSDictionary *intMap; +@property(nonatomic, copy, nullable) NSDictionary *enumMap; +@property(nonatomic, copy, nullable) NSDictionary *objectMap; +@property(nonatomic, copy, nullable) NSDictionary *> *listMap; +@property(nonatomic, copy, nullable) NSDictionary *> *mapMap; +@property(nonatomic, copy, nullable) + NSDictionary *recursiveClassMap; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; +@end + +/// The primary purpose for this class is to ensure coverage of Swift structs +/// with nullable items, as the primary [AllNullableTypes] class is being used to +/// test Swift classes. +@interface AllNullableTypesWithoutRecursion : NSObject ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *) + mapMap; +@property(nonatomic, strong, nullable) NSNumber *aNullableBool; +@property(nonatomic, strong, nullable) NSNumber *aNullableInt; +@property(nonatomic, strong, nullable) NSNumber *aNullableInt64; +@property(nonatomic, strong, nullable) NSNumber *aNullableDouble; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable4ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable8ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableFloatArray; +@property(nonatomic, strong, nullable) AnEnumBox *aNullableEnum; +@property(nonatomic, strong, nullable) AnotherEnumBox *anotherNullableEnum; +@property(nonatomic, copy, nullable) NSString *aNullableString; +@property(nonatomic, strong, nullable) id aNullableObject; +@property(nonatomic, copy, nullable) NSArray *list; +@property(nonatomic, copy, nullable) NSArray *stringList; +@property(nonatomic, copy, nullable) NSArray *intList; +@property(nonatomic, copy, nullable) NSArray *doubleList; +@property(nonatomic, copy, nullable) NSArray *boolList; +@property(nonatomic, copy, nullable) NSArray *enumList; +@property(nonatomic, copy, nullable) NSArray *objectList; +@property(nonatomic, copy, nullable) NSArray *> *listList; +@property(nonatomic, copy, nullable) NSArray *> *mapList; +@property(nonatomic, copy, nullable) NSDictionary *map; +@property(nonatomic, copy, nullable) NSDictionary *stringMap; +@property(nonatomic, copy, nullable) NSDictionary *intMap; +@property(nonatomic, copy, nullable) NSDictionary *enumMap; +@property(nonatomic, copy, nullable) NSDictionary *objectMap; +@property(nonatomic, copy, nullable) NSDictionary *> *listMap; +@property(nonatomic, copy, nullable) NSDictionary *> *mapMap; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; +@end + +/// A class for testing nested class handling. +/// +/// This is needed to test nested nullable and non-nullable classes, +/// `AllNullableTypes` is non-nullable here as it is easier to instantiate +/// than `AllTypes` when testing doesn't require both (ie. testing null classes). +@interface AllClassesWrapper : NSObject +/// `init` unavailable to enforce nonnull fields, see the `make` class method. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype) + makeWithAllNullableTypes:(AllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion: + (nullable AllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable AllTypes *)allTypes + classList:(NSArray *)classList + nullableClassList: + (nullable NSArray *)nullableClassList + classMap:(NSDictionary *)classMap + nullableClassMap: + (nullable NSDictionary *) + nullableClassMap; +@property(nonatomic, strong) AllNullableTypes *allNullableTypes; +@property(nonatomic, strong, nullable) + AllNullableTypesWithoutRecursion *allNullableTypesWithoutRecursion; +@property(nonatomic, strong, nullable) AllTypes *allTypes; +@property(nonatomic, copy) NSArray *classList; +@property(nonatomic, copy, nullable) NSArray *nullableClassList; +@property(nonatomic, copy) NSDictionary *classMap; +@property(nonatomic, copy, nullable) + NSDictionary *nullableClassMap; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; +@end + +/// A data class containing a List, used in unit tests. +@interface TestMessage : NSObject ++ (instancetype)makeWithTestList:(nullable NSArray *)testList; +@property(nonatomic, copy, nullable) NSArray *testList; +- (BOOL)isEqual:(id)object; +- (NSUInteger)hash; +@end + +/// The codec used by all APIs. +NSObject *nullGetCoreTestsCodec(void); + +/// The core interface that each host language plugin must implement in +/// platform_test integration tests. +@protocol HostIntegrationCoreApi +/// A no-op function taking no arguments and returning no value, to sanity +/// test basic calling. +- (void)noopWithError:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed object, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable AllTypes *)echoAllTypes:(AllTypes *)everything + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns an error, to test error handling. +- (nullable id)throwErrorWithError:(FlutterError *_Nullable *_Nonnull)error; +/// Returns an error from a void function, to test error handling. +- (void)throwErrorFromVoidWithError:(FlutterError *_Nullable *_Nonnull)error; +/// Returns a Flutter error, to test error handling. +- (nullable id)throwFlutterErrorWithError:(FlutterError *_Nullable *_Nonnull)error; +/// Returns passed in int. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)echoInt:(NSInteger)anInt error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns passed in double. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)echoDouble:(double)aDouble error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in boolean. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)echoBool:(BOOL)aBool error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in string. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSString *)echoString:(NSString *)aString + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in Uint8List. +/// +/// @return `nil` only when `error != nil`. +- (nullable FlutterStandardTypedData *)echoUint8List:(FlutterStandardTypedData *)aUint8List + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in generic Object. +/// +/// @return `nil` only when `error != nil`. +- (nullable id)echoObject:(id)anObject error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSArray *)echoList:(NSArray *)list + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSArray *)echoEnumList:(NSArray *)enumList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSArray *)echoClassList:(NSArray *)classList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSArray *)echoNonNullEnumList:(NSArray *)enumList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSArray *) + echoNonNullClassList:(NSArray *)classList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *)echoMap:(NSDictionary *)map + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *) + echoStringMap:(NSDictionary *)stringMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *) + echoIntMap:(NSDictionary *)intMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *) + echoEnumMap:(NSDictionary *)enumMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *) + echoClassMap:(NSDictionary *)classMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *) + echoNonNullStringMap:(NSDictionary *)stringMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *) + echoNonNullIntMap:(NSDictionary *)intMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *) + echoNonNullEnumMap:(NSDictionary *)enumMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSDictionary *) + echoNonNullClassMap:(NSDictionary *)classMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed class to test nested class serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (nullable AllClassesWrapper *)echoClassWrapper:(AllClassesWrapper *)wrapper + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed enum to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (AnEnumBox *_Nullable)echoEnum:(AnEnum)anEnum error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed enum to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (AnotherEnumBox *_Nullable)echoAnotherEnum:(AnotherEnum)anotherEnum + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the default string. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSString *)echoNamedDefaultString:(NSString *)aString + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns passed in double. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)echoOptionalDefaultDouble:(double)aDouble + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns passed in int. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)echoRequiredInt:(NSInteger)anInt + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed object, to test serialization and deserialization. +- (nullable AllNullableTypes *)echoAllNullableTypes:(nullable AllNullableTypes *)everything + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed object, to test serialization and deserialization. +- (nullable AllNullableTypesWithoutRecursion *) + echoAllNullableTypesWithoutRecursion:(nullable AllNullableTypesWithoutRecursion *)everything + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the inner `aString` value from the wrapped object, to test +/// sending of nested objects. +- (nullable NSString *)extractNestedNullableStringFrom:(AllClassesWrapper *)wrapper + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the inner `aString` value from the wrapped object, to test +/// sending of nested objects. +/// +/// @return `nil` only when `error != nil`. +- (nullable AllClassesWrapper *) + createNestedObjectWithNullableString:(nullable NSString *)nullableString + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns passed in arguments of multiple types. +/// +/// @return `nil` only when `error != nil`. +- (nullable AllNullableTypes *)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + error:(FlutterError *_Nullable *_Nonnull) + error; +/// Returns passed in arguments of multiple types. +/// +/// @return `nil` only when `error != nil`. +- (nullable AllNullableTypesWithoutRecursion *) + sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns passed in int. +- (nullable NSNumber *)echoNullableInt:(nullable NSNumber *)aNullableInt + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns passed in double. +- (nullable NSNumber *)echoNullableDouble:(nullable NSNumber *)aNullableDouble + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in boolean. +- (nullable NSNumber *)echoNullableBool:(nullable NSNumber *)aNullableBool + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in string. +- (nullable NSString *)echoNullableString:(nullable NSString *)aNullableString + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in Uint8List. +- (nullable FlutterStandardTypedData *) + echoNullableUint8List:(nullable FlutterStandardTypedData *)aNullableUint8List + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in generic Object. +- (nullable id)echoNullableObject:(nullable id)aNullableObject + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +- (nullable NSArray *)echoNullableList:(nullable NSArray *)aNullableList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +- (nullable NSArray *)echoNullableEnumList:(nullable NSArray *)enumList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +- (nullable NSArray *) + echoNullableClassList:(nullable NSArray *)classList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +- (nullable NSArray *) + echoNullableNonNullEnumList:(nullable NSArray *)enumList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed list, to test serialization and deserialization. +- (nullable NSArray *) + echoNullableNonNullClassList:(nullable NSArray *)classList + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *)echoNullableMap:(nullable NSDictionary *)map + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *) + echoNullableStringMap:(nullable NSDictionary *)stringMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *) + echoNullableIntMap:(nullable NSDictionary *)intMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *) + echoNullableEnumMap:(nullable NSDictionary *)enumMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *) + echoNullableClassMap:(nullable NSDictionary *)classMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *) + echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *) + echoNullableNonNullIntMap:(nullable NSDictionary *)intMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *) + echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed map, to test serialization and deserialization. +- (nullable NSDictionary *) + echoNullableNonNullClassMap:(nullable NSDictionary *)classMap + error:(FlutterError *_Nullable *_Nonnull)error; +- (AnEnumBox *_Nullable)echoNullableEnum:(nullable AnEnumBox *)anEnumBoxed + error:(FlutterError *_Nullable *_Nonnull)error; +- (AnotherEnumBox *_Nullable)echoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns passed in int. +- (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt + error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed in string. +- (nullable NSString *)echoNamedNullableString:(nullable NSString *)aNullableString + error:(FlutterError *_Nullable *_Nonnull)error; +/// A no-op function taking no arguments and returning no value, to sanity +/// test basic asynchronous calling. +- (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; +/// Returns passed in int asynchronously. +- (void)echoAsyncInt:(NSInteger)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns passed in double asynchronously. +- (void)echoAsyncDouble:(double)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed in boolean asynchronously. +- (void)echoAsyncBool:(BOOL)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed string asynchronously. +- (void)echoAsyncString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed in Uint8List asynchronously. +- (void)echoAsyncUint8List:(FlutterStandardTypedData *)aUint8List + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed in generic Object asynchronously. +- (void)echoAsyncObject:(id)anObject + completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test asynchronous serialization and deserialization. +- (void)echoAsyncList:(NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test asynchronous serialization and deserialization. +- (void)echoAsyncEnumList:(NSArray *)enumList + completion: + (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test asynchronous serialization and deserialization. +- (void)echoAsyncClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncMap:(NSDictionary *)map + completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncClassMap:(NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed enum, to test asynchronous serialization and deserialization. +- (void)echoAsyncEnum:(AnEnum)anEnum + completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum, to test asynchronous serialization and deserialization. +- (void)echoAnotherAsyncEnum:(AnotherEnum)anotherEnum + completion: + (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Responds with an error from an async function returning a value. +- (void)throwAsyncErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +/// Responds with an error from an async void function. +- (void)throwAsyncErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; +/// Responds with a Flutter error from an async function returning a value. +- (void)throwAsyncFlutterErrorWithCompletion:(void (^)(id _Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed object, to test async serialization and deserialization. +- (void)echoAsyncAllTypes:(AllTypes *)everything + completion:(void (^)(AllTypes *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed object, to test serialization and deserialization. +- (void)echoAsyncNullableAllNullableTypes:(nullable AllNullableTypes *)everything + completion:(void (^)(AllNullableTypes *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed object, to test serialization and deserialization. +- (void)echoAsyncNullableAllNullableTypesWithoutRecursion: + (nullable AllNullableTypesWithoutRecursion *)everything + completion: + (void (^)( + AllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion; +/// Returns passed in int asynchronously. +- (void)echoAsyncNullableInt:(nullable NSNumber *)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns passed in double asynchronously. +- (void)echoAsyncNullableDouble:(nullable NSNumber *)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed in boolean asynchronously. +- (void)echoAsyncNullableBool:(nullable NSNumber *)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed string asynchronously. +- (void)echoAsyncNullableString:(nullable NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed in Uint8List asynchronously. +- (void)echoAsyncNullableUint8List:(nullable FlutterStandardTypedData *)aUint8List + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed in generic Object asynchronously. +- (void)echoAsyncNullableObject:(nullable id)anObject + completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableList:(nullable NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed list, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableMap:(nullable NSDictionary *)map + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableStringMap:(nullable NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableIntMap:(nullable NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableEnumMap:(nullable NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableClassMap:(nullable NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed enum, to test asynchronous serialization and deserialization. +- (void)echoAsyncNullableEnum:(nullable AnEnumBox *)anEnumBoxed + completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum, to test asynchronous serialization and deserialization. +- (void)echoAnotherAsyncNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; +/// Returns true if the handler is run on a main thread, which should be +/// true since there is no TaskQueue annotation. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)defaultIsMainThreadWithError:(FlutterError *_Nullable *_Nonnull)error; +/// Returns true if the handler is run on a non-main thread, which should be +/// true for any platform with TaskQueue support. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)taskQueueIsBackgroundThreadWithError: + (FlutterError *_Nullable *_Nonnull)error; +- (void)callFlutterNoopWithCompletion:(void (^)(FlutterError *_Nullable))completion; +- (void)callFlutterThrowErrorWithCompletion:(void (^)(id _Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterThrowErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; +- (void)callFlutterEchoAllTypes:(AllTypes *)everything + completion:(void (^)(AllTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAllNullableTypes:(nullable AllNullableTypes *)everything + completion:(void (^)(AllNullableTypes *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterSendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + completion:(void (^)(AllNullableTypes *_Nullable, + FlutterError *_Nullable))completion; +- (void) + callFlutterEchoAllNullableTypesWithoutRecursion: + (nullable AllNullableTypesWithoutRecursion *)everything + completion: + (void (^)(AllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion; +- (void) + callFlutterSendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + completion: + (void (^)(AllNullableTypesWithoutRecursion + *_Nullable, + FlutterError *_Nullable)) + completion; +- (void)callFlutterEchoBool:(BOOL)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoInt:(NSInteger)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoDouble:(double)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoUint8List:(FlutterStandardTypedData *)list + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoList:(NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnumList:(NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullEnumList:(NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoMap:(NSDictionary *)map + completion: + (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoClassMap:(NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullClassMap:(NSDictionary *)classMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnum:(AnEnum)anEnum + completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherEnum:(AnotherEnum)anotherEnum + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableBool:(nullable NSNumber *)aBool + completion: + (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableInt:(nullable NSNumber *)anInt + completion: + (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableDouble:(nullable NSNumber *)aDouble + completion: + (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableString:(nullable NSString *)aString + completion: + (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableUint8List:(nullable FlutterStandardTypedData *)list + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableList:(nullable NSArray *)list + completion: + (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableMap:(nullable NSDictionary *)map + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableStringMap:(nullable NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableIntMap:(nullable NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnumMap:(nullable NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableClassMap: + (nullable NSDictionary *)classMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullStringMap: + (nullable NSDictionary *)stringMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullIntMap:(nullable NSDictionary *)intMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullEnumMap: + (nullable NSDictionary *)enumMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullClassMap: + (nullable NSDictionary *)classMap + completion: + (void (^)( + NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnum:(nullable AnEnumBox *)anEnumBoxed + completion: + (void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterSmallApiEchoString:(NSString *)aString + completion: + (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +@end + +extern void SetUpHostIntegrationCoreApi(id binaryMessenger, + NSObject *_Nullable api); + +extern void SetUpHostIntegrationCoreApiWithSuffix(id binaryMessenger, + NSObject *_Nullable api, + NSString *messageChannelSuffix); + +/// The core interface that the Dart platform_test code implements for host +/// integration tests to call into. +@interface FlutterIntegrationCoreApi : NSObject +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger + messageChannelSuffix:(nullable NSString *)messageChannelSuffix; +/// A no-op function taking no arguments and returning no value, to sanity +/// test basic calling. +- (void)noopWithCompletion:(void (^)(FlutterError *_Nullable))completion; +/// Responds with an error from an async function returning a value. +- (void)throwErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +/// Responds with an error from an async void function. +- (void)throwErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; +/// Returns the passed object, to test serialization and deserialization. +- (void)echoAllTypes:(AllTypes *)everything + completion:(void (^)(AllTypes *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed object, to test serialization and deserialization. +- (void)echoAllNullableTypes:(nullable AllNullableTypes *)everything + completion: + (void (^)(AllNullableTypes *_Nullable, FlutterError *_Nullable))completion; +/// Returns passed in arguments of multiple types. +/// +/// Tests multiple-arity FlutterApi handling. +- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + completion:(void (^)(AllNullableTypes *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed object, to test serialization and deserialization. +- (void)echoAllNullableTypesWithoutRecursion:(nullable AllNullableTypesWithoutRecursion *)everything + completion:(void (^)(AllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion; +/// Returns passed in arguments of multiple types. +/// +/// Tests multiple-arity FlutterApi handling. +- (void) + sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + completion: + (void (^)(AllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed boolean, to test serialization and deserialization. +- (void)echoBool:(BOOL)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed int, to test serialization and deserialization. +- (void)echoInt:(NSInteger)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed double, to test serialization and deserialization. +- (void)echoDouble:(double)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed string, to test serialization and deserialization. +- (void)echoString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed byte list, to test serialization and deserialization. +- (void)echoUint8List:(FlutterStandardTypedData *)list + completion: + (void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoList:(NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoEnumList:(NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoNonNullEnumList:(NSArray *)enumList + completion: + (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoNonNullClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoMap:(NSDictionary *)map + completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoClassMap:(NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNonNullStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNonNullIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNonNullEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNonNullClassMap:(NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed enum to test serialization and deserialization. +- (void)echoEnum:(AnEnum)anEnum + completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum to test serialization and deserialization. +- (void)echoAnotherEnum:(AnotherEnum)anotherEnum + completion:(void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed boolean, to test serialization and deserialization. +- (void)echoNullableBool:(nullable NSNumber *)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed int, to test serialization and deserialization. +- (void)echoNullableInt:(nullable NSNumber *)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed double, to test serialization and deserialization. +- (void)echoNullableDouble:(nullable NSNumber *)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed string, to test serialization and deserialization. +- (void)echoNullableString:(nullable NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed byte list, to test serialization and deserialization. +- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)list + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoNullableList:(nullable NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoNullableEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoNullableClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoNullableNonNullEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed list, to test serialization and deserialization. +- (void)echoNullableNonNullClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNullableMap:(nullable NSDictionary *)map + completion: + (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNullableStringMap:(nullable NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNullableIntMap:(nullable NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNullableEnumMap:(nullable NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNullableClassMap:(nullable NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed map, to test serialization and deserialization. +- (void) + echoNullableNonNullClassMap:(nullable NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +/// Returns the passed enum to test serialization and deserialization. +- (void)echoNullableEnum:(nullable AnEnumBox *)anEnumBoxed + completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum to test serialization and deserialization. +- (void)echoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed + completion: + (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// A no-op function taking no arguments and returning no value, to sanity +/// test basic asynchronous calling. +- (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; +/// Returns the passed in generic Object asynchronously. +- (void)echoAsyncString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +@end + +/// An API that can be implemented for minimal, compile-only tests. +@protocol HostTrivialApi +- (void)noopWithError:(FlutterError *_Nullable *_Nonnull)error; +@end + +extern void SetUpHostTrivialApi(id binaryMessenger, + NSObject *_Nullable api); + +extern void SetUpHostTrivialApiWithSuffix(id binaryMessenger, + NSObject *_Nullable api, + NSString *messageChannelSuffix); + +/// A simple API implemented in some unit tests. +@protocol HostSmallApi +- (void)echoString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)voidVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; +@end + +extern void SetUpHostSmallApi(id binaryMessenger, + NSObject *_Nullable api); + +extern void SetUpHostSmallApiWithSuffix(id binaryMessenger, + NSObject *_Nullable api, + NSString *messageChannelSuffix); + +/// A simple API called in some unit tests. +@interface FlutterSmallApi : NSObject +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger + messageChannelSuffix:(nullable NSString *)messageChannelSuffix; +- (void)echoWrappedList:(TestMessage *)msg + completion:(void (^)(TestMessage *_Nullable, FlutterError *_Nullable))completion; +- (void)echoString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +@end + +NS_ASSUME_NONNULL_END diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.m new file mode 100644 index 000000000000..7a1e9c41b4ab --- /dev/null +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.m @@ -0,0 +1,6705 @@ +// Autogenerated from Pigeon (v26.1.9), do not edit directly. +// See also: https://pub.dev/packages/pigeon + +#import "CoreTests.gen.h" + +#if TARGET_OS_OSX +@import FlutterMacOS; +#else +@import Flutter; +#endif + +static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { + if (a == b) { + return YES; + } + if (a == nil || b == nil) { + return NO; + } + if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { + NSNumber *na = (NSNumber *)a; + NSNumber *nb = (NSNumber *)b; + if (isnan(na.doubleValue) && isnan(nb.doubleValue)) { + return YES; + } + } + if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { + NSArray *arrayA = (NSArray *)a; + NSArray *arrayB = (NSArray *)b; + if (arrayA.count != arrayB.count) { + return NO; + } + for (NSUInteger i = 0; i < arrayA.count; i++) { + if (!FLTPigeonDeepEquals(arrayA[i], arrayB[i])) { + return NO; + } + } + return YES; + } + if ([a isKindOfClass:[NSDictionary class]] && [b isKindOfClass:[NSDictionary class]]) { + NSDictionary *dictA = (NSDictionary *)a; + NSDictionary *dictB = (NSDictionary *)b; + if (dictA.count != dictB.count) { + return NO; + } + for (id key in dictA) { + id valueA = dictA[key]; + id valueB = dictB[key]; + if (!FLTPigeonDeepEquals(valueA, valueB)) { + return NO; + } + } + return YES; + } + return [a isEqual:b]; +} + +static NSUInteger FLTPigeonDeepHash(id _Nullable value) { + if (value == nil) { + return 0; + } + if ([value isKindOfClass:[NSNumber class]]) { + NSNumber *n = (NSNumber *)value; + if (isnan(n.doubleValue)) { + return (NSUInteger)0x7FF8000000000000; + } + } + if ([value isKindOfClass:[NSArray class]]) { + NSUInteger result = 1; + for (id item in (NSArray *)value) { + result = result * 31 + FLTPigeonDeepHash(item); + } + return result; + } + if ([value isKindOfClass:[NSDictionary class]]) { + NSUInteger result = 0; + NSDictionary *dict = (NSDictionary *)value; + for (id key in dict) { + result += (FLTPigeonDeepHash(key) ^ FLTPigeonDeepHash(dict[key])); + } + return result; + } + return [value hash]; +} + +static NSArray *wrapResult(id result, FlutterError *error) { + if (error) { + return @[ + error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] + ]; + } + return @[ result ?: [NSNull null] ]; +} + +static FlutterError *createConnectionError(NSString *channelName) { + return [FlutterError + errorWithCode:@"channel-error" + message:[NSString stringWithFormat:@"%@/%@/%@", + @"Unable to establish connection on channel: '", + channelName, @"'."] + details:@""]; +} + +static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { + id result = array[key]; + return (result == [NSNull null]) ? nil : result; +} + +@implementation AnEnumBox +- (instancetype)initWithValue:(AnEnum)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation AnotherEnumBox +- (instancetype)initWithValue:(AnotherEnum)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@interface UnusedClass () ++ (UnusedClass *)fromList:(NSArray *)list; ++ (nullable UnusedClass *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface AllTypes () ++ (AllTypes *)fromList:(NSArray *)list; ++ (nullable AllTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface AllNullableTypes () ++ (AllNullableTypes *)fromList:(NSArray *)list; ++ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface AllNullableTypesWithoutRecursion () ++ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; ++ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface AllClassesWrapper () ++ (AllClassesWrapper *)fromList:(NSArray *)list; ++ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface TestMessage () ++ (TestMessage *)fromList:(NSArray *)list; ++ (nullable TestMessage *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@implementation UnusedClass ++ (instancetype)makeWithAField:(nullable id)aField { + UnusedClass *pigeonResult = [[UnusedClass alloc] init]; + pigeonResult.aField = aField; + return pigeonResult; +} ++ (UnusedClass *)fromList:(NSArray *)list { + UnusedClass *pigeonResult = [[UnusedClass alloc] init]; + pigeonResult.aField = GetNullableObjectAtIndex(list, 0); + return pigeonResult; +} ++ (nullable UnusedClass *)nullableFromList:(NSArray *)list { + return (list) ? [UnusedClass fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aField ?: [NSNull null], + ]; +} +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + UnusedClass *other = (UnusedClass *)object; + return FLTPigeonDeepEquals(self.aField, other.aField); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.aField); + return result; +} +@end + +@implementation AllTypes ++ (instancetype)makeWithABool:(BOOL)aBool + anInt:(NSInteger)anInt + anInt64:(NSInteger)anInt64 + aDouble:(double)aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(AnEnum)anEnum + anotherEnum:(AnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id)anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + enumList:(NSArray *)enumList + objectList:(NSArray *)objectList + listList:(NSArray *> *)listList + mapList:(NSArray *> *)mapList + map:(NSDictionary *)map + stringMap:(NSDictionary *)stringMap + intMap:(NSDictionary *)intMap + enumMap:(NSDictionary *)enumMap + objectMap:(NSDictionary *)objectMap + listMap:(NSDictionary *> *)listMap + mapMap:(NSDictionary *> *)mapMap { + AllTypes *pigeonResult = [[AllTypes alloc] init]; + pigeonResult.aBool = aBool; + pigeonResult.anInt = anInt; + pigeonResult.anInt64 = anInt64; + pigeonResult.aDouble = aDouble; + pigeonResult.aByteArray = aByteArray; + pigeonResult.a4ByteArray = a4ByteArray; + pigeonResult.a8ByteArray = a8ByteArray; + pigeonResult.aFloatArray = aFloatArray; + pigeonResult.anEnum = anEnum; + pigeonResult.anotherEnum = anotherEnum; + pigeonResult.aString = aString; + pigeonResult.anObject = anObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.enumList = enumList; + pigeonResult.objectList = objectList; + pigeonResult.listList = listList; + pigeonResult.mapList = mapList; + pigeonResult.map = map; + pigeonResult.stringMap = stringMap; + pigeonResult.intMap = intMap; + pigeonResult.enumMap = enumMap; + pigeonResult.objectMap = objectMap; + pigeonResult.listMap = listMap; + pigeonResult.mapMap = mapMap; + return pigeonResult; +} ++ (AllTypes *)fromList:(NSArray *)list { + AllTypes *pigeonResult = [[AllTypes alloc] init]; + pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; + pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; + pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; + pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; + pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); + AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(list, 8); + pigeonResult.anEnum = boxedAnEnum.value; + AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(list, 9); + pigeonResult.anotherEnum = boxedAnotherEnum.value; + pigeonResult.aString = GetNullableObjectAtIndex(list, 10); + pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); + pigeonResult.list = GetNullableObjectAtIndex(list, 12); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); + pigeonResult.intList = GetNullableObjectAtIndex(list, 14); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); + pigeonResult.enumList = GetNullableObjectAtIndex(list, 17); + pigeonResult.objectList = GetNullableObjectAtIndex(list, 18); + pigeonResult.listList = GetNullableObjectAtIndex(list, 19); + pigeonResult.mapList = GetNullableObjectAtIndex(list, 20); + pigeonResult.map = GetNullableObjectAtIndex(list, 21); + pigeonResult.stringMap = GetNullableObjectAtIndex(list, 22); + pigeonResult.intMap = GetNullableObjectAtIndex(list, 23); + pigeonResult.enumMap = GetNullableObjectAtIndex(list, 24); + pigeonResult.objectMap = GetNullableObjectAtIndex(list, 25); + pigeonResult.listMap = GetNullableObjectAtIndex(list, 26); + pigeonResult.mapMap = GetNullableObjectAtIndex(list, 27); + return pigeonResult; +} ++ (nullable AllTypes *)nullableFromList:(NSArray *)list { + return (list) ? [AllTypes fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + @(self.aBool), + @(self.anInt), + @(self.anInt64), + @(self.aDouble), + self.aByteArray ?: [NSNull null], + self.a4ByteArray ?: [NSNull null], + self.a8ByteArray ?: [NSNull null], + self.aFloatArray ?: [NSNull null], + [[AnEnumBox alloc] initWithValue:self.anEnum], + [[AnotherEnumBox alloc] initWithValue:self.anotherEnum], + self.aString ?: [NSNull null], + self.anObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.enumList ?: [NSNull null], + self.objectList ?: [NSNull null], + self.listList ?: [NSNull null], + self.mapList ?: [NSNull null], + self.map ?: [NSNull null], + self.stringMap ?: [NSNull null], + self.intMap ?: [NSNull null], + self.enumMap ?: [NSNull null], + self.objectMap ?: [NSNull null], + self.listMap ?: [NSNull null], + self.mapMap ?: [NSNull null], + ]; +} +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + AllTypes *other = (AllTypes *)object; + return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && + (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && + FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && + FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && + FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && + FLTPigeonDeepEquals(self.aFloatArray, other.aFloatArray) && self.anEnum == other.anEnum && + self.anotherEnum == other.anotherEnum && + FLTPigeonDeepEquals(self.aString, other.aString) && + FLTPigeonDeepEquals(self.anObject, other.anObject) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + @(self.aBool).hash; + result = result * 31 + @(self.anInt).hash; + result = result * 31 + @(self.anInt64).hash; + result = + result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); + result = result * 31 + FLTPigeonDeepHash(self.aByteArray); + result = result * 31 + FLTPigeonDeepHash(self.a4ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.a8ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aFloatArray); + result = result * 31 + @(self.anEnum).hash; + result = result * 31 + @(self.anotherEnum).hash; + result = result * 31 + FLTPigeonDeepHash(self.aString); + result = result * 31 + FLTPigeonDeepHash(self.anObject); + result = result * 31 + FLTPigeonDeepHash(self.list); + result = result * 31 + FLTPigeonDeepHash(self.stringList); + result = result * 31 + FLTPigeonDeepHash(self.intList); + result = result * 31 + FLTPigeonDeepHash(self.doubleList); + result = result * 31 + FLTPigeonDeepHash(self.boolList); + result = result * 31 + FLTPigeonDeepHash(self.enumList); + result = result * 31 + FLTPigeonDeepHash(self.objectList); + result = result * 31 + FLTPigeonDeepHash(self.listList); + result = result * 31 + FLTPigeonDeepHash(self.mapList); + result = result * 31 + FLTPigeonDeepHash(self.map); + result = result * 31 + FLTPigeonDeepHash(self.stringMap); + result = result * 31 + FLTPigeonDeepHash(self.intMap); + result = result * 31 + FLTPigeonDeepHash(self.enumMap); + result = result * 31 + FLTPigeonDeepHash(self.objectMap); + result = result * 31 + FLTPigeonDeepHash(self.listMap); + result = result * 31 + FLTPigeonDeepHash(self.mapMap); + return result; +} +@end + +@implementation AllNullableTypes ++ (instancetype) + makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + allNullableTypes:(nullable AllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + recursiveClassList:(nullable NSArray *)recursiveClassList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap + recursiveClassMap: + (nullable NSDictionary *)recursiveClassMap { + AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.enumList = enumList; + pigeonResult.objectList = objectList; + pigeonResult.listList = listList; + pigeonResult.mapList = mapList; + pigeonResult.recursiveClassList = recursiveClassList; + pigeonResult.map = map; + pigeonResult.stringMap = stringMap; + pigeonResult.intMap = intMap; + pigeonResult.enumMap = enumMap; + pigeonResult.objectMap = objectMap; + pigeonResult.listMap = listMap; + pigeonResult.mapMap = mapMap; + pigeonResult.recursiveClassMap = recursiveClassMap; + return pigeonResult; +} ++ (AllNullableTypes *)fromList:(NSArray *)list { + AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 8); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 9); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 11); + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 12); + pigeonResult.list = GetNullableObjectAtIndex(list, 13); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 14); + pigeonResult.intList = GetNullableObjectAtIndex(list, 15); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 16); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 17); + pigeonResult.enumList = GetNullableObjectAtIndex(list, 18); + pigeonResult.objectList = GetNullableObjectAtIndex(list, 19); + pigeonResult.listList = GetNullableObjectAtIndex(list, 20); + pigeonResult.mapList = GetNullableObjectAtIndex(list, 21); + pigeonResult.recursiveClassList = GetNullableObjectAtIndex(list, 22); + pigeonResult.map = GetNullableObjectAtIndex(list, 23); + pigeonResult.stringMap = GetNullableObjectAtIndex(list, 24); + pigeonResult.intMap = GetNullableObjectAtIndex(list, 25); + pigeonResult.enumMap = GetNullableObjectAtIndex(list, 26); + pigeonResult.objectMap = GetNullableObjectAtIndex(list, 27); + pigeonResult.listMap = GetNullableObjectAtIndex(list, 28); + pigeonResult.mapMap = GetNullableObjectAtIndex(list, 29); + pigeonResult.recursiveClassMap = GetNullableObjectAtIndex(list, 30); + return pigeonResult; +} ++ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list { + return (list) ? [AllNullableTypes fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.allNullableTypes ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.enumList ?: [NSNull null], + self.objectList ?: [NSNull null], + self.listList ?: [NSNull null], + self.mapList ?: [NSNull null], + self.recursiveClassList ?: [NSNull null], + self.map ?: [NSNull null], + self.stringMap ?: [NSNull null], + self.intMap ?: [NSNull null], + self.enumMap ?: [NSNull null], + self.objectMap ?: [NSNull null], + self.listMap ?: [NSNull null], + self.mapMap ?: [NSNull null], + self.recursiveClassMap ?: [NSNull null], + ]; +} +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + AllNullableTypes *other = (AllNullableTypes *)object; + return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && + FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && + FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && + FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && + FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && + FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && + FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && + FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && + FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && + FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && + FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && + FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && + FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.recursiveClassList, other.recursiveClassList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap) && + FLTPigeonDeepEquals(self.recursiveClassMap, other.recursiveClassMap); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.aNullableBool); + result = result * 31 + FLTPigeonDeepHash(self.aNullableInt); + result = result * 31 + FLTPigeonDeepHash(self.aNullableInt64); + result = result * 31 + FLTPigeonDeepHash(self.aNullableDouble); + result = result * 31 + FLTPigeonDeepHash(self.aNullableByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullable4ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullable8ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullableFloatArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullableEnum); + result = result * 31 + FLTPigeonDeepHash(self.anotherNullableEnum); + result = result * 31 + FLTPigeonDeepHash(self.aNullableString); + result = result * 31 + FLTPigeonDeepHash(self.aNullableObject); + result = result * 31 + FLTPigeonDeepHash(self.allNullableTypes); + result = result * 31 + FLTPigeonDeepHash(self.list); + result = result * 31 + FLTPigeonDeepHash(self.stringList); + result = result * 31 + FLTPigeonDeepHash(self.intList); + result = result * 31 + FLTPigeonDeepHash(self.doubleList); + result = result * 31 + FLTPigeonDeepHash(self.boolList); + result = result * 31 + FLTPigeonDeepHash(self.enumList); + result = result * 31 + FLTPigeonDeepHash(self.objectList); + result = result * 31 + FLTPigeonDeepHash(self.listList); + result = result * 31 + FLTPigeonDeepHash(self.mapList); + result = result * 31 + FLTPigeonDeepHash(self.recursiveClassList); + result = result * 31 + FLTPigeonDeepHash(self.map); + result = result * 31 + FLTPigeonDeepHash(self.stringMap); + result = result * 31 + FLTPigeonDeepHash(self.intMap); + result = result * 31 + FLTPigeonDeepHash(self.enumMap); + result = result * 31 + FLTPigeonDeepHash(self.objectMap); + result = result * 31 + FLTPigeonDeepHash(self.listMap); + result = result * 31 + FLTPigeonDeepHash(self.mapMap); + result = result * 31 + FLTPigeonDeepHash(self.recursiveClassMap); + return result; +} +@end + +@implementation AllNullableTypesWithoutRecursion ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *) + mapMap { + AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.enumList = enumList; + pigeonResult.objectList = objectList; + pigeonResult.listList = listList; + pigeonResult.mapList = mapList; + pigeonResult.map = map; + pigeonResult.stringMap = stringMap; + pigeonResult.intMap = intMap; + pigeonResult.enumMap = enumMap; + pigeonResult.objectMap = objectMap; + pigeonResult.listMap = listMap; + pigeonResult.mapMap = mapMap; + return pigeonResult; +} ++ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { + AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 8); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 9); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 11); + pigeonResult.list = GetNullableObjectAtIndex(list, 12); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); + pigeonResult.intList = GetNullableObjectAtIndex(list, 14); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); + pigeonResult.enumList = GetNullableObjectAtIndex(list, 17); + pigeonResult.objectList = GetNullableObjectAtIndex(list, 18); + pigeonResult.listList = GetNullableObjectAtIndex(list, 19); + pigeonResult.mapList = GetNullableObjectAtIndex(list, 20); + pigeonResult.map = GetNullableObjectAtIndex(list, 21); + pigeonResult.stringMap = GetNullableObjectAtIndex(list, 22); + pigeonResult.intMap = GetNullableObjectAtIndex(list, 23); + pigeonResult.enumMap = GetNullableObjectAtIndex(list, 24); + pigeonResult.objectMap = GetNullableObjectAtIndex(list, 25); + pigeonResult.listMap = GetNullableObjectAtIndex(list, 26); + pigeonResult.mapMap = GetNullableObjectAtIndex(list, 27); + return pigeonResult; +} ++ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { + return (list) ? [AllNullableTypesWithoutRecursion fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.enumList ?: [NSNull null], + self.objectList ?: [NSNull null], + self.listList ?: [NSNull null], + self.mapList ?: [NSNull null], + self.map ?: [NSNull null], + self.stringMap ?: [NSNull null], + self.intMap ?: [NSNull null], + self.enumMap ?: [NSNull null], + self.objectMap ?: [NSNull null], + self.listMap ?: [NSNull null], + self.mapMap ?: [NSNull null], + ]; +} +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + AllNullableTypesWithoutRecursion *other = (AllNullableTypesWithoutRecursion *)object; + return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && + FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && + FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && + FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && + FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && + FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && + FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && + FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && + FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && + FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && + FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && + FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.aNullableBool); + result = result * 31 + FLTPigeonDeepHash(self.aNullableInt); + result = result * 31 + FLTPigeonDeepHash(self.aNullableInt64); + result = result * 31 + FLTPigeonDeepHash(self.aNullableDouble); + result = result * 31 + FLTPigeonDeepHash(self.aNullableByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullable4ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullable8ByteArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullableFloatArray); + result = result * 31 + FLTPigeonDeepHash(self.aNullableEnum); + result = result * 31 + FLTPigeonDeepHash(self.anotherNullableEnum); + result = result * 31 + FLTPigeonDeepHash(self.aNullableString); + result = result * 31 + FLTPigeonDeepHash(self.aNullableObject); + result = result * 31 + FLTPigeonDeepHash(self.list); + result = result * 31 + FLTPigeonDeepHash(self.stringList); + result = result * 31 + FLTPigeonDeepHash(self.intList); + result = result * 31 + FLTPigeonDeepHash(self.doubleList); + result = result * 31 + FLTPigeonDeepHash(self.boolList); + result = result * 31 + FLTPigeonDeepHash(self.enumList); + result = result * 31 + FLTPigeonDeepHash(self.objectList); + result = result * 31 + FLTPigeonDeepHash(self.listList); + result = result * 31 + FLTPigeonDeepHash(self.mapList); + result = result * 31 + FLTPigeonDeepHash(self.map); + result = result * 31 + FLTPigeonDeepHash(self.stringMap); + result = result * 31 + FLTPigeonDeepHash(self.intMap); + result = result * 31 + FLTPigeonDeepHash(self.enumMap); + result = result * 31 + FLTPigeonDeepHash(self.objectMap); + result = result * 31 + FLTPigeonDeepHash(self.listMap); + result = result * 31 + FLTPigeonDeepHash(self.mapMap); + return result; +} +@end + +@implementation AllClassesWrapper ++ (instancetype) + makeWithAllNullableTypes:(AllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion: + (nullable AllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable AllTypes *)allTypes + classList:(NSArray *)classList + nullableClassList: + (nullable NSArray *)nullableClassList + classMap:(NSDictionary *)classMap + nullableClassMap: + (nullable NSDictionary *) + nullableClassMap { + AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; + pigeonResult.allTypes = allTypes; + pigeonResult.classList = classList; + pigeonResult.nullableClassList = nullableClassList; + pigeonResult.classMap = classMap; + pigeonResult.nullableClassMap = nullableClassMap; + return pigeonResult; +} ++ (AllClassesWrapper *)fromList:(NSArray *)list { + AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); + pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); + pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); + pigeonResult.classList = GetNullableObjectAtIndex(list, 3); + pigeonResult.nullableClassList = GetNullableObjectAtIndex(list, 4); + pigeonResult.classMap = GetNullableObjectAtIndex(list, 5); + pigeonResult.nullableClassMap = GetNullableObjectAtIndex(list, 6); + return pigeonResult; +} ++ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list { + return (list) ? [AllClassesWrapper fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.allNullableTypes ?: [NSNull null], + self.allNullableTypesWithoutRecursion ?: [NSNull null], + self.allTypes ?: [NSNull null], + self.classList ?: [NSNull null], + self.nullableClassList ?: [NSNull null], + self.classMap ?: [NSNull null], + self.nullableClassMap ?: [NSNull null], + ]; +} +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + AllClassesWrapper *other = (AllClassesWrapper *)object; + return FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && + FLTPigeonDeepEquals(self.allNullableTypesWithoutRecursion, + other.allNullableTypesWithoutRecursion) && + FLTPigeonDeepEquals(self.allTypes, other.allTypes) && + FLTPigeonDeepEquals(self.classList, other.classList) && + FLTPigeonDeepEquals(self.nullableClassList, other.nullableClassList) && + FLTPigeonDeepEquals(self.classMap, other.classMap) && + FLTPigeonDeepEquals(self.nullableClassMap, other.nullableClassMap); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.allNullableTypes); + result = result * 31 + FLTPigeonDeepHash(self.allNullableTypesWithoutRecursion); + result = result * 31 + FLTPigeonDeepHash(self.allTypes); + result = result * 31 + FLTPigeonDeepHash(self.classList); + result = result * 31 + FLTPigeonDeepHash(self.nullableClassList); + result = result * 31 + FLTPigeonDeepHash(self.classMap); + result = result * 31 + FLTPigeonDeepHash(self.nullableClassMap); + return result; +} +@end + +@implementation TestMessage ++ (instancetype)makeWithTestList:(nullable NSArray *)testList { + TestMessage *pigeonResult = [[TestMessage alloc] init]; + pigeonResult.testList = testList; + return pigeonResult; +} ++ (TestMessage *)fromList:(NSArray *)list { + TestMessage *pigeonResult = [[TestMessage alloc] init]; + pigeonResult.testList = GetNullableObjectAtIndex(list, 0); + return pigeonResult; +} ++ (nullable TestMessage *)nullableFromList:(NSArray *)list { + return (list) ? [TestMessage fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.testList ?: [NSNull null], + ]; +} +- (BOOL)isEqual:(id)object { + if (self == object) { + return YES; + } + if (![object isKindOfClass:[self class]]) { + return NO; + } + TestMessage *other = (TestMessage *)object; + return FLTPigeonDeepEquals(self.testList, other.testList); +} + +- (NSUInteger)hash { + NSUInteger result = [self class].hash; + result = result * 31 + FLTPigeonDeepHash(self.testList); + return result; +} +@end + +@interface nullCoreTestsPigeonCodecReader : FlutterStandardReader +@end +@implementation nullCoreTestsPigeonCodecReader +- (nullable id)readValueOfType:(UInt8)type { + switch (type) { + case 129: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil ? nil + : [[AnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 130: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[AnotherEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 131: + return [UnusedClass fromList:[self readValue]]; + case 132: + return [AllTypes fromList:[self readValue]]; + case 133: + return [AllNullableTypes fromList:[self readValue]]; + case 134: + return [AllNullableTypesWithoutRecursion fromList:[self readValue]]; + case 135: + return [AllClassesWrapper fromList:[self readValue]]; + case 136: + return [TestMessage fromList:[self readValue]]; + default: + return [super readValueOfType:type]; + } +} +@end + +@interface nullCoreTestsPigeonCodecWriter : FlutterStandardWriter +@end +@implementation nullCoreTestsPigeonCodecWriter +- (void)writeValue:(id)value { + if ([value isKindOfClass:[AnEnumBox class]]) { + AnEnumBox *box = (AnEnumBox *)value; + [self writeByte:129]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[AnotherEnumBox class]]) { + AnotherEnumBox *box = (AnotherEnumBox *)value; + [self writeByte:130]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[UnusedClass class]]) { + [self writeByte:131]; + [self writeValue:[value toList]]; + } else if ([value isKindOfClass:[AllTypes class]]) { + [self writeByte:132]; + [self writeValue:[value toList]]; + } else if ([value isKindOfClass:[AllNullableTypes class]]) { + [self writeByte:133]; + [self writeValue:[value toList]]; + } else if ([value isKindOfClass:[AllNullableTypesWithoutRecursion class]]) { + [self writeByte:134]; + [self writeValue:[value toList]]; + } else if ([value isKindOfClass:[AllClassesWrapper class]]) { + [self writeByte:135]; + [self writeValue:[value toList]]; + } else if ([value isKindOfClass:[TestMessage class]]) { + [self writeByte:136]; + [self writeValue:[value toList]]; + } else { + [super writeValue:value]; + } +} +@end + +@interface nullCoreTestsPigeonCodecReaderWriter : FlutterStandardReaderWriter +@end +@implementation nullCoreTestsPigeonCodecReaderWriter +- (FlutterStandardWriter *)writerWithData:(NSMutableData *)data { + return [[nullCoreTestsPigeonCodecWriter alloc] initWithData:data]; +} +- (FlutterStandardReader *)readerWithData:(NSData *)data { + return [[nullCoreTestsPigeonCodecReader alloc] initWithData:data]; +} +@end + +NSObject *nullGetCoreTestsCodec(void) { + static FlutterStandardMessageCodec *sSharedObject = nil; + static dispatch_once_t sPred = 0; + dispatch_once(&sPred, ^{ + nullCoreTestsPigeonCodecReaderWriter *readerWriter = + [[nullCoreTestsPigeonCodecReaderWriter alloc] init]; + sSharedObject = [FlutterStandardMessageCodec codecWithReaderWriter:readerWriter]; + }); + return sSharedObject; +} +void SetUpHostIntegrationCoreApi(id binaryMessenger, + NSObject *api) { + SetUpHostIntegrationCoreApiWithSuffix(binaryMessenger, api, @""); +} + +void SetUpHostIntegrationCoreApiWithSuffix(id binaryMessenger, + NSObject *api, + NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 + ? [NSString stringWithFormat:@".%@", messageChannelSuffix] + : @""; +#if TARGET_OS_IOS + NSObject *taskQueue = [binaryMessenger makeBackgroundTaskQueue]; +#else + NSObject *taskQueue = nil; +#endif + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic calling. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noop", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(noopWithError:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(noopWithError:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + [api noopWithError:&error]; + callback(wrapResult(nil, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed object, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllTypes", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoAllTypes:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllTypes:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + AllTypes *output = [api echoAllTypes:arg_everything error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns an error, to test error handling. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwError", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(throwErrorWithError:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(throwErrorWithError:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + id output = [api throwErrorWithError:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns an error from a void function, to test error handling. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.throwErrorFromVoid", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(throwErrorFromVoidWithError:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwErrorFromVoidWithError:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + [api throwErrorFromVoidWithError:&error]; + callback(wrapResult(nil, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns a Flutter error, to test error handling. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.throwFlutterError", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(throwFlutterErrorWithError:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwFlutterErrorWithError:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + id output = [api throwFlutterErrorWithError:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in int. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoInt", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoInt:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoInt:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; + FlutterError *error; + NSNumber *output = [api echoInt:arg_anInt error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in double. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoDouble", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoDouble:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoDouble:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; + FlutterError *error; + NSNumber *output = [api echoDouble:arg_aDouble error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in boolean. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoBool", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoBool:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoBool:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; + FlutterError *error; + NSNumber *output = [api echoBool:arg_aBool error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in string. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoString:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoString:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aString = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSString *output = [api echoString:arg_aString error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in Uint8List. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoUint8List", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoUint8List:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoUint8List:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + FlutterStandardTypedData *output = [api echoUint8List:arg_aUint8List error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in generic Object. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoObject", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoObject:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoObject:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + id arg_anObject = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + id output = [api echoObject:arg_anObject error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_list = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoList:arg_list error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoEnumList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoEnumList:arg_enumList error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoClassList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoClassList:arg_classList error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNonNullEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNonNullEnumList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullEnumList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoNonNullEnumList:arg_enumList error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNonNullClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNonNullClassList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullClassList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoNonNullClassList:arg_classList error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoMap:arg_map error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoStringMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoStringMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoStringMap:arg_stringMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoIntMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoIntMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoIntMap:arg_intMap error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoEnumMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoEnumMap:arg_enumMap error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoClassMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoClassMap:arg_classMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNonNullStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNonNullStringMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullStringMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNonNullStringMap:arg_stringMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNonNullIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoNonNullIntMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullIntMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNonNullIntMap:arg_intMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNonNullEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNonNullEnumMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullEnumMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNonNullEnumMap:arg_enumMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNonNullClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNonNullClassMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullClassMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNonNullClassMap:arg_classMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed class to test nested class serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoClassWrapper", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoClassWrapper:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassWrapper:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllClassesWrapper *arg_wrapper = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + AllClassesWrapper *output = [api echoClassWrapper:arg_wrapper error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed enum to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoEnum:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnum:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); + AnEnum arg_anEnum = boxedAnEnum.value; + FlutterError *error; + AnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed enum to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoAnotherEnum:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherEnum:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); + AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; + FlutterError *error; + AnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the default string. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNamedDefaultString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNamedDefaultString:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNamedDefaultString:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aString = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSString *output = [api echoNamedDefaultString:arg_aString error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in double. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoOptionalDefaultDouble", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoOptionalDefaultDouble:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoOptionalDefaultDouble:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; + FlutterError *error; + NSNumber *output = [api echoOptionalDefaultDouble:arg_aDouble error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in int. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoRequiredInt", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoRequiredInt:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoRequiredInt:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; + FlutterError *error; + NSNumber *output = [api echoRequiredInt:arg_anInt error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed object, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAllNullableTypes", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAllNullableTypes:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAllNullableTypes:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + AllNullableTypes *output = [api echoAllNullableTypes:arg_everything error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed object, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAllNullableTypesWithoutRecursion", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAllNullableTypesWithoutRecursion:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAllNullableTypesWithoutRecursion:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + AllNullableTypesWithoutRecursion *output = + [api echoAllNullableTypesWithoutRecursion:arg_everything error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the inner `aString` value from the wrapped object, to test + /// sending of nested objects. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"extractNestedNullableString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(extractNestedNullableStringFrom:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(extractNestedNullableStringFrom:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllClassesWrapper *arg_wrapper = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSString *output = [api extractNestedNullableStringFrom:arg_wrapper error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the inner `aString` value from the wrapped object, to test + /// sending of nested objects. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"createNestedNullableString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(createNestedObjectWithNullableString:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(createNestedObjectWithNullableString:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_nullableString = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + AllClassesWrapper *output = [api createNestedObjectWithNullableString:arg_nullableString + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in arguments of multiple types. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"sendMultipleNullableTypes", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(sendMultipleNullableTypesABool: + anInt:aString:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(sendMultipleNullableTypesABool:anInt:aString:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); + NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); + NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); + FlutterError *error; + AllNullableTypes *output = [api sendMultipleNullableTypesABool:arg_aNullableBool + anInt:arg_aNullableInt + aString:arg_aNullableString + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in arguments of multiple types. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"sendMultipleNullableTypesWithoutRecursion", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector + (sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); + NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); + NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); + FlutterError *error; + AllNullableTypesWithoutRecursion *output = + [api sendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool + anInt:arg_aNullableInt + aString:arg_aNullableString + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in int. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableInt", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoNullableInt:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableInt:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSNumber *output = [api echoNullableInt:arg_aNullableInt error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in double. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableDouble", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableDouble:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableDouble:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aNullableDouble = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSNumber *output = [api echoNullableDouble:arg_aNullableDouble error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in boolean. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableBool", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoNullableBool:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableBool:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSNumber *output = [api echoNullableBool:arg_aNullableBool error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in string. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableString:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableString:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSString *output = [api echoNullableString:arg_aNullableString error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in Uint8List. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableUint8List", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableUint8List:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableUint8List:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FlutterStandardTypedData *arg_aNullableUint8List = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + FlutterStandardTypedData *output = [api echoNullableUint8List:arg_aNullableUint8List + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in generic Object. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableObject", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableObject:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableObject:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + id arg_aNullableObject = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + id output = [api echoNullableObject:arg_aNullableObject error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoNullableList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_aNullableList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoNullableList:arg_aNullableList error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableEnumList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableEnumList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoNullableEnumList:arg_enumList error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableClassList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableClassList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoNullableClassList:arg_classList + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoNullableNonNullEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullEnumList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoNullableNonNullEnumList:arg_enumList error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoNullableNonNullClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassList:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullClassList:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSArray *output = [api echoNullableNonNullClassList:arg_classList + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoNullableMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNullableMap:arg_map error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableStringMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableStringMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNullableStringMap:arg_stringMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableIntMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableIntMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNullableIntMap:arg_intMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableEnumMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableEnumMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNullableEnumMap:arg_enumMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableClassMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableClassMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = + [api echoNullableClassMap:arg_classMap error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoNullableNonNullStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullStringMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullStringMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = + [api echoNullableNonNullStringMap:arg_stringMap error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoNullableNonNullIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullIntMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullIntMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNullableNonNullIntMap:arg_intMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoNullableNonNullEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullEnumMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = [api echoNullableNonNullEnumMap:arg_enumMap + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoNullableNonNullClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassMap:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullClassMap:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSDictionary *output = + [api echoNullableNonNullClassMap:arg_classMap error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoNullableEnum:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableEnum:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + AnEnumBox *output = [api echoNullableEnum:arg_anEnum error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAnotherNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherNullableEnum:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherNullableEnum:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + AnotherEnumBox *output = [api echoAnotherNullableEnum:arg_anotherEnum error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in int. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoOptionalNullableInt", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoOptionalNullableInt:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoOptionalNullableInt:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSNumber *output = [api echoOptionalNullableInt:arg_aNullableInt error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in string. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoNamedNullableString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoNamedNullableString:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNamedNullableString:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSString *output = [api echoNamedNullableString:arg_aNullableString error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic asynchronous calling. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noopAsync", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(noopAsyncWithCompletion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(noopAsyncWithCompletion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + [api noopAsyncWithCompletion:^(FlutterError *_Nullable error) { + callback(wrapResult(nil, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in int asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncInt", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoAsyncInt:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncInt:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; + [api echoAsyncInt:arg_anInt + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in double asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncDouble", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncDouble:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncDouble:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; + [api echoAsyncDouble:arg_aDouble + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in boolean asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncBool", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncBool:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncBool:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; + [api echoAsyncBool:arg_aBool + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed string asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncString:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncString:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aString = GetNullableObjectAtIndex(args, 0); + [api echoAsyncString:arg_aString + completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in Uint8List asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncUint8List", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncUint8List:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncUint8List:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); + [api echoAsyncUint8List:arg_aUint8List + completion:^(FlutterStandardTypedData *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in generic Object asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncObject", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncObject:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncObject:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + id arg_anObject = GetNullableObjectAtIndex(args, 0); + [api echoAsyncObject:arg_anObject + completion:^(id _Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_list = GetNullableObjectAtIndex(args, 0); + [api echoAsyncList:arg_list + completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncEnumList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncEnumList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + [api echoAsyncEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncClassList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncClassList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + [api echoAsyncClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoAsyncMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); + [api echoAsyncMap:arg_map + completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncStringMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncStringMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncStringMap:arg_stringMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncIntMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncIntMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncEnumMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncEnumMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncEnumMap:arg_enumMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncClassMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncClassMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api echoAsyncClassMap:arg_classMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); + AnEnum arg_anEnum = boxedAnEnum.value; + [api echoAsyncEnum:arg_anEnum + completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAnotherAsyncEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherAsyncEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); + AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; + [api echoAnotherAsyncEnum:arg_anotherEnum + completion:^(AnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Responds with an error from an async function returning a value. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncError", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(throwAsyncErrorWithCompletion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwAsyncErrorWithCompletion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + [api throwAsyncErrorWithCompletion:^(id _Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Responds with an error from an async void function. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"throwAsyncErrorFromVoid", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(throwAsyncErrorFromVoidWithCompletion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwAsyncErrorFromVoidWithCompletion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + [api throwAsyncErrorFromVoidWithCompletion:^(FlutterError *_Nullable error) { + callback(wrapResult(nil, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Responds with a Flutter error from an async function returning a value. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.throwAsyncFlutterError", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(throwAsyncFlutterErrorWithCompletion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwAsyncFlutterErrorWithCompletion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + [api throwAsyncFlutterErrorWithCompletion:^(id _Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed object, to test async serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncAllTypes", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncAllTypes:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncAllTypes:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); + [api echoAsyncAllTypes:arg_everything + completion:^(AllTypes *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed object, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableAllNullableTypes", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableAllNullableTypes:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableAllNullableTypes:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableAllNullableTypes:arg_everything + completion:^(AllNullableTypes *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed object, to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableAllNullableTypesWithoutRecursion", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector + (echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableAllNullableTypesWithoutRecursion:arg_everything + completion:^(AllNullableTypesWithoutRecursion + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in int asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncNullableInt", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableInt:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableInt:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_anInt = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableInt:arg_anInt + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns passed in double asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableDouble", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableDouble:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableDouble:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aDouble = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableDouble:arg_aDouble + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in boolean asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncNullableBool", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableBool:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableBool:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aBool = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableBool:arg_aBool + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed string asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableString:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableString:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aString = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableString:arg_aString + completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in Uint8List asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableUint8List", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableUint8List:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableUint8List:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableUint8List:arg_aUint8List + completion:^(FlutterStandardTypedData *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed in generic Object asynchronously. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableObject", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableObject:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableObject:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + id arg_anObject = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableObject:arg_anObject + completion:^(id _Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncNullableList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_list = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableList:arg_list + completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableEnumList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableClassList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncNullableMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableMap:arg_map + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableStringMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableStringMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableStringMap:arg_stringMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableIntMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableIntMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableEnumMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableEnumMap:arg_enumMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAsyncNullableClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableClassMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableClassMap:arg_classMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.echoAsyncNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableEnum:arg_anEnum + completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"echoAnotherAsyncNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncNullableEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherAsyncNullableEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + [api echoAnotherAsyncNullableEnum:arg_anotherEnum + completion:^(AnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns true if the handler is run on a main thread, which should be + /// true since there is no TaskQueue annotation. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.defaultIsMainThread", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(defaultIsMainThreadWithError:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(defaultIsMainThreadWithError:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + NSNumber *output = [api defaultIsMainThreadWithError:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns true if the handler is run on a non-main thread, which should be + /// true for any platform with TaskQueue support. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"taskQueueIsBackgroundThread", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec() +#ifdef TARGET_OS_IOS + taskQueue:taskQueue +#endif + ]; + + if (api) { + NSCAssert([api respondsToSelector:@selector(taskQueueIsBackgroundThreadWithError:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(taskQueueIsBackgroundThreadWithError:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + NSNumber *output = [api taskQueueIsBackgroundThreadWithError:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterNoop", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterNoopWithCompletion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterNoopWithCompletion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + [api callFlutterNoopWithCompletion:^(FlutterError *_Nullable error) { + callback(wrapResult(nil, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterThrowError", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorWithCompletion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterThrowErrorWithCompletion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + [api callFlutterThrowErrorWithCompletion:^(id _Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterThrowErrorFromVoid", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorFromVoidWithCompletion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterThrowErrorFromVoidWithCompletion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + [api callFlutterThrowErrorFromVoidWithCompletion:^(FlutterError *_Nullable error) { + callback(wrapResult(nil, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoAllTypes", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllTypes:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAllTypes:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoAllTypes:arg_everything + completion:^(AllTypes *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoAllNullableTypes", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllNullableTypes:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAllNullableTypes:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoAllNullableTypes:arg_everything + completion:^(AllNullableTypes *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterSendMultipleNullableTypes", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector + (callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); + NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); + NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); + [api callFlutterSendMultipleNullableTypesABool:arg_aNullableBool + anInt:arg_aNullableInt + aString:arg_aNullableString + completion:^(AllNullableTypes *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoAllNullableTypesWithoutRecursion", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector + (callFlutterEchoAllNullableTypesWithoutRecursion:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAllNullableTypesWithoutRecursion:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoAllNullableTypesWithoutRecursion:arg_everything + completion:^(AllNullableTypesWithoutRecursion + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterSendMultipleNullableTypesWithoutRecursion", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector + (callFlutterSendMultipleNullableTypesWithoutRecursionABool: + anInt:aString:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterSendMultipleNullableTypesWithoutRecursionABool:anInt:aString:" + @"completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); + NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); + NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); + [api callFlutterSendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool + anInt:arg_aNullableInt + aString:arg_aNullableString + completion:^( + AllNullableTypesWithoutRecursion + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoBool", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoBool:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoBool:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; + [api callFlutterEchoBool:arg_aBool + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoInt", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoInt:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoInt:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; + [api callFlutterEchoInt:arg_anInt + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoDouble", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoDouble:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoDouble:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; + [api callFlutterEchoDouble:arg_aDouble + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoString:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoString:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aString = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoString:arg_aString + completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoUint8List", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoUint8List:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoUint8List:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FlutterStandardTypedData *arg_list = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoUint8List:arg_list + completion:^(FlutterStandardTypedData *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_list = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoList:arg_list + completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoEnumList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoClassList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNonNullEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullEnumList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNonNullClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullClassList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoMap:arg_map + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoStringMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoStringMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoStringMap:arg_stringMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoIntMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoIntMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoEnumMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoEnumMap:arg_enumMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoClassMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoClassMap:arg_classMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNonNullStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullStringMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullStringMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullStringMap:arg_stringMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNonNullIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullIntMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullIntMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNonNullEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullEnumMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullEnumMap:arg_enumMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNonNullClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullClassMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullClassMap:arg_classMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon." + @"HostIntegrationCoreApi.callFlutterEchoEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); + AnEnum arg_anEnum = boxedAnEnum.value; + [api callFlutterEchoEnum:arg_anEnum + completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoAnotherEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAnotherEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); + AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; + [api callFlutterEchoAnotherEnum:arg_anotherEnum + completion:^(AnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableBool", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableBool:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableBool:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aBool = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableBool:arg_aBool + completion:^(NSNumber *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableInt", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableInt:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableInt:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_anInt = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableInt:arg_anInt + completion:^(NSNumber *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableDouble", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableDouble:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableDouble:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSNumber *arg_aDouble = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableDouble:arg_aDouble + completion:^(NSNumber *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableString:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableString:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aString = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableString:arg_aString + completion:^(NSString *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableUint8List", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableUint8List:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableUint8List:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FlutterStandardTypedData *arg_list = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableUint8List:arg_list + completion:^(FlutterStandardTypedData *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_list = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableList:arg_list + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableEnumList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassList:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableClassList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableNonNullEnumList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumList: + completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullEnumList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableNonNullEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableNonNullClassList", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassList: + completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullClassList:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); + [api + callFlutterEchoNullableNonNullClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableMap:arg_map + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableStringMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableStringMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableStringMap:arg_stringMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableIntMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableIntMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableEnumMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableEnumMap:arg_enumMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassMap:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableClassMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api + callFlutterEchoNullableClassMap:arg_classMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableNonNullStringMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullStringMap: + completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullStringMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); + [api + callFlutterEchoNullableNonNullStringMap:arg_stringMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableNonNullIntMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullIntMap: + completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullIntMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableNonNullIntMap:arg_intMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableNonNullEnumMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumMap: + completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullEnumMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api + callFlutterEchoNullableNonNullEnumMap:arg_enumMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableNonNullClassMap", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassMap: + completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullClassMap:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableNonNullClassMap:arg_classMap + completion:^(NSDictionary + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableEnum:arg_anEnum + completion:^(AnEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterEchoAnotherNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherNullableEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAnotherNullableEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoAnotherNullableEnum:arg_anotherEnum + completion:^(AnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." + @"callFlutterSmallApiEchoString", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterSmallApiEchoString:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterSmallApiEchoString:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aString = GetNullableObjectAtIndex(args, 0); + [api callFlutterSmallApiEchoString:arg_aString + completion:^(NSString *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } +} +@interface FlutterIntegrationCoreApi () +@property(nonatomic, strong) NSObject *binaryMessenger; +@property(nonatomic, strong) NSString *messageChannelSuffix; +@end + +@implementation FlutterIntegrationCoreApi + +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { + return [self initWithBinaryMessenger:binaryMessenger messageChannelSuffix:@""]; +} +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger + messageChannelSuffix:(nullable NSString *)messageChannelSuffix { + self = [self init]; + if (self) { + _binaryMessenger = binaryMessenger; + _messageChannelSuffix = [messageChannelSuffix length] == 0 + ? @"" + : [NSString stringWithFormat:@".%@", messageChannelSuffix]; + } + return self; +} +- (void)noopWithCompletion:(void (^)(FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noop", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:nil + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; +} +- (void)throwErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwError", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:nil + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + id output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)throwErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwErrorFromVoid", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:nil + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; +} +- (void)echoAllTypes:(AllTypes *)arg_everything + completion:(void (^)(AllTypes *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_everything ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AllTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoAllNullableTypes:(nullable AllNullableTypes *)arg_everything + completion: + (void (^)(AllNullableTypes *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_everything ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)arg_aNullableBool + anInt:(nullable NSNumber *)arg_aNullableInt + aString:(nullable NSString *)arg_aNullableString + completion:(void (^)(AllNullableTypes *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ + arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], + arg_aNullableString ?: [NSNull null] + ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoAllNullableTypesWithoutRecursion: + (nullable AllNullableTypesWithoutRecursion *)arg_everything + completion:(void (^)(AllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi." + @"echoAllNullableTypesWithoutRecursion", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_everything ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AllNullableTypesWithoutRecursion *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void) + sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)arg_aNullableBool + anInt:(nullable NSNumber *)arg_aNullableInt + aString:(nullable NSString *)arg_aNullableString + completion: + (void (^)(AllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi." + @"sendMultipleNullableTypesWithoutRecursion", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ + arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], + arg_aNullableString ?: [NSNull null] + ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AllNullableTypesWithoutRecursion *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoBool:(BOOL)arg_aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ @(arg_aBool) ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoInt:(NSInteger)arg_anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ @(arg_anInt) ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoDouble:(double)arg_aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ @(arg_aDouble) ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoString:(NSString *)arg_aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aString ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoUint8List:(FlutterStandardTypedData *)arg_list + completion: + (void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_list ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FlutterStandardTypedData *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoList:(NSArray *)arg_list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_list ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoEnumList:(NSArray *)arg_enumList + completion: + (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoClassList:(NSArray *)arg_classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNonNullEnumList:(NSArray *)arg_enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNonNullClassList:(NSArray *)arg_classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoMap:(NSDictionary *)arg_map + completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_map ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoStringMap:(NSDictionary *)arg_stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoIntMap:(NSDictionary *)arg_intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoEnumMap:(NSDictionary *)arg_enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoClassMap:(NSDictionary *)arg_classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNonNullStringMap:(NSDictionary *)arg_stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNonNullIntMap:(NSDictionary *)arg_intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNonNullEnumMap:(NSDictionary *)arg_enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNonNullClassMap:(NSDictionary *)arg_classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoEnum:(AnEnum)arg_anEnum + completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ [[AnEnumBox alloc] initWithValue:arg_anEnum] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoAnotherEnum:(AnotherEnum)arg_anotherEnum + completion:(void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ [[AnotherEnumBox alloc] initWithValue:arg_anotherEnum] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableBool:(nullable NSNumber *)arg_aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aBool ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableInt:(nullable NSNumber *)arg_anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_anInt ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableDouble:(nullable NSNumber *)arg_aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aDouble ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableString:(nullable NSString *)arg_aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aString ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)arg_list + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_list ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FlutterStandardTypedData *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableList:(nullable NSArray *)arg_list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_list ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableEnumList:(nullable NSArray *)arg_enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableClassList:(nullable NSArray *)arg_classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableNonNullEnumList:(nullable NSArray *)arg_enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableNonNullClassList:(nullable NSArray *)arg_classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableMap:(nullable NSDictionary *)arg_map + completion: + (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_map ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableStringMap:(nullable NSDictionary *)arg_stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableIntMap:(nullable NSDictionary *)arg_intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableEnumMap:(nullable NSDictionary *)arg_enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableClassMap:(nullable NSDictionary *)arg_classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)arg_stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)arg_intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)arg_enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableNonNullClassMap: + (nullable NSDictionary *)arg_classMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoNullableEnum:(nullable AnEnumBox *)arg_anEnum + completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_anEnum == nil ? [NSNull null] : arg_anEnum ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoAnotherNullableEnum:(nullable AnotherEnumBox *)arg_anotherEnum + completion: + (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_anotherEnum == nil ? [NSNull null] : arg_anotherEnum ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noopAsync", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:nil + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; +} +- (void)echoAsyncString:(NSString *)arg_aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aString ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +@end + +void SetUpHostTrivialApi(id binaryMessenger, + NSObject *api) { + SetUpHostTrivialApiWithSuffix(binaryMessenger, api, @""); +} + +void SetUpHostTrivialApiWithSuffix(id binaryMessenger, + NSObject *api, NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 + ? [NSString stringWithFormat:@".%@", messageChannelSuffix] + : @""; + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostTrivialApi.noop", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(noopWithError:)], + @"HostTrivialApi api (%@) doesn't respond to @selector(noopWithError:)", api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + FlutterError *error; + [api noopWithError:&error]; + callback(wrapResult(nil, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } +} +void SetUpHostSmallApi(id binaryMessenger, NSObject *api) { + SetUpHostSmallApiWithSuffix(binaryMessenger, api, @""); +} + +void SetUpHostSmallApiWithSuffix(id binaryMessenger, + NSObject *api, NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 + ? [NSString stringWithFormat:@".%@", messageChannelSuffix] + : @""; + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostSmallApi.echo", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoString:completion:)], + @"HostSmallApi api (%@) doesn't respond to @selector(echoString:completion:)", api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + NSString *arg_aString = GetNullableObjectAtIndex(args, 0); + [api echoString:arg_aString + completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon.HostSmallApi.voidVoid", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:nullGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(voidVoidWithCompletion:)], + @"HostSmallApi api (%@) doesn't respond to @selector(voidVoidWithCompletion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + [api voidVoidWithCompletion:^(FlutterError *_Nullable error) { + callback(wrapResult(nil, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } +} +@interface FlutterSmallApi () +@property(nonatomic, strong) NSObject *binaryMessenger; +@property(nonatomic, strong) NSString *messageChannelSuffix; +@end + +@implementation FlutterSmallApi + +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { + return [self initWithBinaryMessenger:binaryMessenger messageChannelSuffix:@""]; +} +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger + messageChannelSuffix:(nullable NSString *)messageChannelSuffix { + self = [self init]; + if (self) { + _binaryMessenger = binaryMessenger; + _messageChannelSuffix = [messageChannelSuffix length] == 0 + ? @"" + : [NSString stringWithFormat:@".%@", messageChannelSuffix]; + } + return self; +} +- (void)echoWrappedList:(TestMessage *)arg_msg + completion:(void (^)(TestMessage *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_msg ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + TestMessage *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +- (void)echoString:(NSString *)arg_aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:nullGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aString ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} +@end diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift new file mode 100644 index 000000000000..700e5fbfdc96 --- /dev/null +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -0,0 +1,6151 @@ +// Autogenerated from Pigeon (v26.1.9), do not edit directly. +// See also: https://pub.dev/packages/pigeon + +import Foundation + +#if os(iOS) + import Flutter +#elseif os(macOS) + import FlutterMacOS +#else + #error("Unsupported platform.") +#endif + +/// Error class for passing custom error details to Dart side. +final class PigeonError: Error { + let code: String + let message: String? + let details: Sendable? + + init(code: String, message: String?, details: Sendable?) { + self.code = code + self.message = message + self.details = details + } + + var localizedDescription: String { + return + "PigeonError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" + } +} + +private func wrapResult(_ result: Any?) -> [Any?] { + return [result] +} + +private func wrapError(_ error: Any) -> [Any?] { + if let pigeonError = error as? PigeonError { + return [ + pigeonError.code, + pigeonError.message, + pigeonError.details, + ] + } + if let flutterError = error as? FlutterError { + return [ + flutterError.code, + flutterError.message, + flutterError.details, + ] + } + return [ + "\(error)", + "\(Swift.type(of: error))", + "Stacktrace: \(Thread.callStackSymbols)", + ] +} + +private func createConnectionError(withChannelName channelName: String) -> PigeonError { + return PigeonError( + code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", + details: "") +} + +private func isNullish(_ value: Any?) -> Bool { + return value is NSNull || value == nil +} + +private func nilOrValue(_ value: Any?) -> T? { + if value is NSNull { return nil } + return value as! T? +} + +func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { + let cleanLhs = nilOrValue(lhs) as Any? + let cleanRhs = nilOrValue(rhs) as Any? + switch (cleanLhs, cleanRhs) { + case (nil, nil): + return true + + case (nil, _), (_, nil): + return false + + case (let lhs as AnyObject, let rhs as AnyObject) where lhs === rhs: + return true + + case is (Void, Void): + return true + + case (let lhsArray, let rhsArray) as ([Any?], [Any?]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsCoreTests(element, rhsArray[index]) { + return false + } + } + return true + + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): + guard lhsDictionary.count == rhsDictionary.count else { return false } + for (key, lhsValue) in lhsDictionary { + guard let rhsValue = rhsDictionary[key] else { return false } + if !deepEqualsCoreTests(lhsValue, rhsValue) { + return false + } + } + return true + + case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: + return true + + case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): + return lhsHashable == rhsHashable + + default: + return false + } +} + +func deepHashCoreTests(value: Any?, hasher: inout Hasher) { + let cleanValue = nilOrValue(value) as Any? + if let cleanValue = cleanValue { + if let doubleValue = cleanValue as? Double, doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else if let valueList = cleanValue as? [Any?] { + for item in valueList { + deepHashCoreTests(value: item, hasher: &hasher) + } + } else if let valueDict = cleanValue as? [AnyHashable: Any?] { + for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { + hasher.combine(key) + deepHashCoreTests(value: valueDict[key]!, hasher: &hasher) + } + } else if let hashableValue = cleanValue as? AnyHashable { + hasher.combine(hashableValue) + } else { + hasher.combine(String(describing: cleanValue)) + } + } else { + hasher.combine(0) + } +} + +enum AnEnum: Int { + case one = 0 + case two = 1 + case three = 2 + case fortyTwo = 3 + case fourHundredTwentyTwo = 4 +} + +enum AnotherEnum: Int { + case justInCase = 0 +} + +/// Generated class from Pigeon that represents data sent in messages. +struct UnusedClass: Hashable { + var aField: Any? = nil + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> UnusedClass? { + let aField: Any? = pigeonVar_list[0] + + return UnusedClass( + aField: aField + ) + } + func toList() -> [Any?] { + return [ + aField + ] + } + static func == (lhs: UnusedClass, rhs: UnusedClass) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } + return deepEqualsCoreTests(lhs.aField, rhs.aField) + } + + func hash(into hasher: inout Hasher) { + hasher.combine("UnusedClass") + deepHashCoreTests(value: aField, hasher: &hasher) + } +} + +/// A class containing all supported types. +/// +/// Generated class from Pigeon that represents data sent in messages. +struct AllTypes: Hashable { + var aBool: Bool + var anInt: Int64 + var anInt64: Int64 + var aDouble: Double + var aByteArray: FlutterStandardTypedData + var a4ByteArray: FlutterStandardTypedData + var a8ByteArray: FlutterStandardTypedData + var aFloatArray: FlutterStandardTypedData + var anEnum: AnEnum + var anotherEnum: AnotherEnum + var aString: String + var anObject: Any + var list: [Any?] + var stringList: [String] + var intList: [Int64] + var doubleList: [Double] + var boolList: [Bool] + var enumList: [AnEnum] + var objectList: [Any] + var listList: [[Any?]] + var mapList: [[AnyHashable?: Any?]] + var map: [AnyHashable?: Any?] + var stringMap: [String: String] + var intMap: [Int64: Int64] + var enumMap: [AnEnum: AnEnum] + var objectMap: [AnyHashable: Any] + var listMap: [Int64: [Any?]] + var mapMap: [Int64: [AnyHashable?: Any?]] + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> AllTypes? { + let aBool = pigeonVar_list[0] as! Bool + let anInt = pigeonVar_list[1] as! Int64 + let anInt64 = pigeonVar_list[2] as! Int64 + let aDouble = pigeonVar_list[3] as! Double + let aByteArray = pigeonVar_list[4] as! FlutterStandardTypedData + let a4ByteArray = pigeonVar_list[5] as! FlutterStandardTypedData + let a8ByteArray = pigeonVar_list[6] as! FlutterStandardTypedData + let aFloatArray = pigeonVar_list[7] as! FlutterStandardTypedData + let anEnum = pigeonVar_list[8] as! AnEnum + let anotherEnum = pigeonVar_list[9] as! AnotherEnum + let aString = pigeonVar_list[10] as! String + let anObject = pigeonVar_list[11]! + let list = pigeonVar_list[12] as! [Any?] + let stringList = pigeonVar_list[13] as! [String] + let intList = pigeonVar_list[14] as! [Int64] + let doubleList = pigeonVar_list[15] as! [Double] + let boolList = pigeonVar_list[16] as! [Bool] + let enumList = pigeonVar_list[17] as! [AnEnum] + let objectList = pigeonVar_list[18] as! [Any] + let listList = pigeonVar_list[19] as! [[Any?]] + let mapList = pigeonVar_list[20] as! [[AnyHashable?: Any?]] + let map = pigeonVar_list[21] as! [AnyHashable?: Any?] + let stringMap = pigeonVar_list[22] as! [String: String] + let intMap = pigeonVar_list[23] as! [Int64: Int64] + let enumMap = pigeonVar_list[24] as? [AnEnum: AnEnum] + let objectMap = pigeonVar_list[25] as! [AnyHashable: Any] + let listMap = pigeonVar_list[26] as! [Int64: [Any?]] + let mapMap = pigeonVar_list[27] as! [Int64: [AnyHashable?: Any?]] + + return AllTypes( + aBool: aBool, + anInt: anInt, + anInt64: anInt64, + aDouble: aDouble, + aByteArray: aByteArray, + a4ByteArray: a4ByteArray, + a8ByteArray: a8ByteArray, + aFloatArray: aFloatArray, + anEnum: anEnum, + anotherEnum: anotherEnum, + aString: aString, + anObject: anObject, + list: list, + stringList: stringList, + intList: intList, + doubleList: doubleList, + boolList: boolList, + enumList: enumList, + objectList: objectList, + listList: listList, + mapList: mapList, + map: map, + stringMap: stringMap, + intMap: intMap, + enumMap: enumMap!, + objectMap: objectMap, + listMap: listMap, + mapMap: mapMap + ) + } + func toList() -> [Any?] { + return [ + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + ] + } + static func == (lhs: AllTypes, rhs: AllTypes) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } + return deepEqualsCoreTests(lhs.aBool, rhs.aBool) && deepEqualsCoreTests(lhs.anInt, rhs.anInt) + && deepEqualsCoreTests(lhs.anInt64, rhs.anInt64) + && deepEqualsCoreTests(lhs.aDouble, rhs.aDouble) + && deepEqualsCoreTests(lhs.aByteArray, rhs.aByteArray) + && deepEqualsCoreTests(lhs.a4ByteArray, rhs.a4ByteArray) + && deepEqualsCoreTests(lhs.a8ByteArray, rhs.a8ByteArray) + && deepEqualsCoreTests(lhs.aFloatArray, rhs.aFloatArray) + && deepEqualsCoreTests(lhs.anEnum, rhs.anEnum) + && deepEqualsCoreTests(lhs.anotherEnum, rhs.anotherEnum) + && deepEqualsCoreTests(lhs.aString, rhs.aString) + && deepEqualsCoreTests(lhs.anObject, rhs.anObject) && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) + && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + } + + func hash(into hasher: inout Hasher) { + hasher.combine("AllTypes") + deepHashCoreTests(value: aBool, hasher: &hasher) + deepHashCoreTests(value: anInt, hasher: &hasher) + deepHashCoreTests(value: anInt64, hasher: &hasher) + deepHashCoreTests(value: aDouble, hasher: &hasher) + deepHashCoreTests(value: aByteArray, hasher: &hasher) + deepHashCoreTests(value: a4ByteArray, hasher: &hasher) + deepHashCoreTests(value: a8ByteArray, hasher: &hasher) + deepHashCoreTests(value: aFloatArray, hasher: &hasher) + deepHashCoreTests(value: anEnum, hasher: &hasher) + deepHashCoreTests(value: anotherEnum, hasher: &hasher) + deepHashCoreTests(value: aString, hasher: &hasher) + deepHashCoreTests(value: anObject, hasher: &hasher) + deepHashCoreTests(value: list, hasher: &hasher) + deepHashCoreTests(value: stringList, hasher: &hasher) + deepHashCoreTests(value: intList, hasher: &hasher) + deepHashCoreTests(value: doubleList, hasher: &hasher) + deepHashCoreTests(value: boolList, hasher: &hasher) + deepHashCoreTests(value: enumList, hasher: &hasher) + deepHashCoreTests(value: objectList, hasher: &hasher) + deepHashCoreTests(value: listList, hasher: &hasher) + deepHashCoreTests(value: mapList, hasher: &hasher) + deepHashCoreTests(value: map, hasher: &hasher) + deepHashCoreTests(value: stringMap, hasher: &hasher) + deepHashCoreTests(value: intMap, hasher: &hasher) + deepHashCoreTests(value: enumMap, hasher: &hasher) + deepHashCoreTests(value: objectMap, hasher: &hasher) + deepHashCoreTests(value: listMap, hasher: &hasher) + deepHashCoreTests(value: mapMap, hasher: &hasher) + } +} + +/// A class containing all supported nullable types. +/// +/// Generated class from Pigeon that represents data sent in messages. +class AllNullableTypes: Hashable { + init( + aNullableBool: Bool? = nil, + aNullableInt: Int64? = nil, + aNullableInt64: Int64? = nil, + aNullableDouble: Double? = nil, + aNullableByteArray: FlutterStandardTypedData? = nil, + aNullable4ByteArray: FlutterStandardTypedData? = nil, + aNullable8ByteArray: FlutterStandardTypedData? = nil, + aNullableFloatArray: FlutterStandardTypedData? = nil, + aNullableEnum: AnEnum? = nil, + anotherNullableEnum: AnotherEnum? = nil, + aNullableString: String? = nil, + aNullableObject: Any? = nil, + allNullableTypes: AllNullableTypes? = nil, + list: [Any?]? = nil, + stringList: [String?]? = nil, + intList: [Int64?]? = nil, + doubleList: [Double?]? = nil, + boolList: [Bool?]? = nil, + enumList: [AnEnum?]? = nil, + objectList: [Any?]? = nil, + listList: [[Any?]?]? = nil, + mapList: [[AnyHashable?: Any?]?]? = nil, + recursiveClassList: [AllNullableTypes?]? = nil, + map: [AnyHashable?: Any?]? = nil, + stringMap: [String?: String?]? = nil, + intMap: [Int64?: Int64?]? = nil, + enumMap: [AnEnum?: AnEnum?]? = nil, + objectMap: [AnyHashable?: Any?]? = nil, + listMap: [Int64?: [Any?]?]? = nil, + mapMap: [Int64?: [AnyHashable?: Any?]?]? = nil, + recursiveClassMap: [Int64?: AllNullableTypes?]? = nil + ) { + self.aNullableBool = aNullableBool + self.aNullableInt = aNullableInt + self.aNullableInt64 = aNullableInt64 + self.aNullableDouble = aNullableDouble + self.aNullableByteArray = aNullableByteArray + self.aNullable4ByteArray = aNullable4ByteArray + self.aNullable8ByteArray = aNullable8ByteArray + self.aNullableFloatArray = aNullableFloatArray + self.aNullableEnum = aNullableEnum + self.anotherNullableEnum = anotherNullableEnum + self.aNullableString = aNullableString + self.aNullableObject = aNullableObject + self.allNullableTypes = allNullableTypes + self.list = list + self.stringList = stringList + self.intList = intList + self.doubleList = doubleList + self.boolList = boolList + self.enumList = enumList + self.objectList = objectList + self.listList = listList + self.mapList = mapList + self.recursiveClassList = recursiveClassList + self.map = map + self.stringMap = stringMap + self.intMap = intMap + self.enumMap = enumMap + self.objectMap = objectMap + self.listMap = listMap + self.mapMap = mapMap + self.recursiveClassMap = recursiveClassMap + } + var aNullableBool: Bool? + var aNullableInt: Int64? + var aNullableInt64: Int64? + var aNullableDouble: Double? + var aNullableByteArray: FlutterStandardTypedData? + var aNullable4ByteArray: FlutterStandardTypedData? + var aNullable8ByteArray: FlutterStandardTypedData? + var aNullableFloatArray: FlutterStandardTypedData? + var aNullableEnum: AnEnum? + var anotherNullableEnum: AnotherEnum? + var aNullableString: String? + var aNullableObject: Any? + var allNullableTypes: AllNullableTypes? + var list: [Any?]? + var stringList: [String?]? + var intList: [Int64?]? + var doubleList: [Double?]? + var boolList: [Bool?]? + var enumList: [AnEnum?]? + var objectList: [Any?]? + var listList: [[Any?]?]? + var mapList: [[AnyHashable?: Any?]?]? + var recursiveClassList: [AllNullableTypes?]? + var map: [AnyHashable?: Any?]? + var stringMap: [String?: String?]? + var intMap: [Int64?: Int64?]? + var enumMap: [AnEnum?: AnEnum?]? + var objectMap: [AnyHashable?: Any?]? + var listMap: [Int64?: [Any?]?]? + var mapMap: [Int64?: [AnyHashable?: Any?]?]? + var recursiveClassMap: [Int64?: AllNullableTypes?]? + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypes? { + let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) + let aNullableInt: Int64? = nilOrValue(pigeonVar_list[1]) + let aNullableInt64: Int64? = nilOrValue(pigeonVar_list[2]) + let aNullableDouble: Double? = nilOrValue(pigeonVar_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[7]) + let aNullableEnum: AnEnum? = nilOrValue(pigeonVar_list[8]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeonVar_list[9]) + let aNullableString: String? = nilOrValue(pigeonVar_list[10]) + let aNullableObject: Any? = pigeonVar_list[11] + let allNullableTypes: AllNullableTypes? = nilOrValue(pigeonVar_list[12]) + let list: [Any?]? = nilOrValue(pigeonVar_list[13]) + let stringList: [String?]? = nilOrValue(pigeonVar_list[14]) + let intList: [Int64?]? = nilOrValue(pigeonVar_list[15]) + let doubleList: [Double?]? = nilOrValue(pigeonVar_list[16]) + let boolList: [Bool?]? = nilOrValue(pigeonVar_list[17]) + let enumList: [AnEnum?]? = nilOrValue(pigeonVar_list[18]) + let objectList: [Any?]? = nilOrValue(pigeonVar_list[19]) + let listList: [[Any?]?]? = nilOrValue(pigeonVar_list[20]) + let mapList: [[AnyHashable?: Any?]?]? = nilOrValue(pigeonVar_list[21]) + let recursiveClassList: [AllNullableTypes?]? = nilOrValue(pigeonVar_list[22]) + let map: [AnyHashable?: Any?]? = nilOrValue(pigeonVar_list[23]) + let stringMap: [String?: String?]? = nilOrValue(pigeonVar_list[24]) + let intMap: [Int64?: Int64?]? = nilOrValue(pigeonVar_list[25]) + let enumMap: [AnEnum?: AnEnum?]? = pigeonVar_list[26] as? [AnEnum?: AnEnum?] + let objectMap: [AnyHashable?: Any?]? = nilOrValue(pigeonVar_list[27]) + let listMap: [Int64?: [Any?]?]? = nilOrValue(pigeonVar_list[28]) + let mapMap: [Int64?: [AnyHashable?: Any?]?]? = nilOrValue(pigeonVar_list[29]) + let recursiveClassMap: [Int64?: AllNullableTypes?]? = nilOrValue(pigeonVar_list[30]) + + return AllNullableTypes( + aNullableBool: aNullableBool, + aNullableInt: aNullableInt, + aNullableInt64: aNullableInt64, + aNullableDouble: aNullableDouble, + aNullableByteArray: aNullableByteArray, + aNullable4ByteArray: aNullable4ByteArray, + aNullable8ByteArray: aNullable8ByteArray, + aNullableFloatArray: aNullableFloatArray, + aNullableEnum: aNullableEnum, + anotherNullableEnum: anotherNullableEnum, + aNullableString: aNullableString, + aNullableObject: aNullableObject, + allNullableTypes: allNullableTypes, + list: list, + stringList: stringList, + intList: intList, + doubleList: doubleList, + boolList: boolList, + enumList: enumList, + objectList: objectList, + listList: listList, + mapList: mapList, + recursiveClassList: recursiveClassList, + map: map, + stringMap: stringMap, + intMap: intMap, + enumMap: enumMap, + objectMap: objectMap, + listMap: listMap, + mapMap: mapMap, + recursiveClassMap: recursiveClassMap + ) + } + func toList() -> [Any?] { + return [ + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap, + ] + } + static func == (lhs: AllNullableTypes, rhs: AllNullableTypes) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } + if lhs === rhs { + return true + } + return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) + && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) + && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) + && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) + && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) + && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) + && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) + && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) + && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) + && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) + && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) + && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) + && deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) + && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) + && deepEqualsCoreTests(lhs.recursiveClassList, rhs.recursiveClassList) + && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + && deepEqualsCoreTests(lhs.recursiveClassMap, rhs.recursiveClassMap) + } + + func hash(into hasher: inout Hasher) { + hasher.combine("AllNullableTypes") + deepHashCoreTests(value: aNullableBool, hasher: &hasher) + deepHashCoreTests(value: aNullableInt, hasher: &hasher) + deepHashCoreTests(value: aNullableInt64, hasher: &hasher) + deepHashCoreTests(value: aNullableDouble, hasher: &hasher) + deepHashCoreTests(value: aNullableByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullable4ByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullable8ByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullableFloatArray, hasher: &hasher) + deepHashCoreTests(value: aNullableEnum, hasher: &hasher) + deepHashCoreTests(value: anotherNullableEnum, hasher: &hasher) + deepHashCoreTests(value: aNullableString, hasher: &hasher) + deepHashCoreTests(value: aNullableObject, hasher: &hasher) + deepHashCoreTests(value: allNullableTypes, hasher: &hasher) + deepHashCoreTests(value: list, hasher: &hasher) + deepHashCoreTests(value: stringList, hasher: &hasher) + deepHashCoreTests(value: intList, hasher: &hasher) + deepHashCoreTests(value: doubleList, hasher: &hasher) + deepHashCoreTests(value: boolList, hasher: &hasher) + deepHashCoreTests(value: enumList, hasher: &hasher) + deepHashCoreTests(value: objectList, hasher: &hasher) + deepHashCoreTests(value: listList, hasher: &hasher) + deepHashCoreTests(value: mapList, hasher: &hasher) + deepHashCoreTests(value: recursiveClassList, hasher: &hasher) + deepHashCoreTests(value: map, hasher: &hasher) + deepHashCoreTests(value: stringMap, hasher: &hasher) + deepHashCoreTests(value: intMap, hasher: &hasher) + deepHashCoreTests(value: enumMap, hasher: &hasher) + deepHashCoreTests(value: objectMap, hasher: &hasher) + deepHashCoreTests(value: listMap, hasher: &hasher) + deepHashCoreTests(value: mapMap, hasher: &hasher) + deepHashCoreTests(value: recursiveClassMap, hasher: &hasher) + } +} + +/// The primary purpose for this class is to ensure coverage of Swift structs +/// with nullable items, as the primary [AllNullableTypes] class is being used to +/// test Swift classes. +/// +/// Generated class from Pigeon that represents data sent in messages. +struct AllNullableTypesWithoutRecursion: Hashable { + var aNullableBool: Bool? = nil + var aNullableInt: Int64? = nil + var aNullableInt64: Int64? = nil + var aNullableDouble: Double? = nil + var aNullableByteArray: FlutterStandardTypedData? = nil + var aNullable4ByteArray: FlutterStandardTypedData? = nil + var aNullable8ByteArray: FlutterStandardTypedData? = nil + var aNullableFloatArray: FlutterStandardTypedData? = nil + var aNullableEnum: AnEnum? = nil + var anotherNullableEnum: AnotherEnum? = nil + var aNullableString: String? = nil + var aNullableObject: Any? = nil + var list: [Any?]? = nil + var stringList: [String?]? = nil + var intList: [Int64?]? = nil + var doubleList: [Double?]? = nil + var boolList: [Bool?]? = nil + var enumList: [AnEnum?]? = nil + var objectList: [Any?]? = nil + var listList: [[Any?]?]? = nil + var mapList: [[AnyHashable?: Any?]?]? = nil + var map: [AnyHashable?: Any?]? = nil + var stringMap: [String?: String?]? = nil + var intMap: [Int64?: Int64?]? = nil + var enumMap: [AnEnum?: AnEnum?]? = nil + var objectMap: [AnyHashable?: Any?]? = nil + var listMap: [Int64?: [Any?]?]? = nil + var mapMap: [Int64?: [AnyHashable?: Any?]?]? = nil + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypesWithoutRecursion? { + let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) + let aNullableInt: Int64? = nilOrValue(pigeonVar_list[1]) + let aNullableInt64: Int64? = nilOrValue(pigeonVar_list[2]) + let aNullableDouble: Double? = nilOrValue(pigeonVar_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[7]) + let aNullableEnum: AnEnum? = nilOrValue(pigeonVar_list[8]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeonVar_list[9]) + let aNullableString: String? = nilOrValue(pigeonVar_list[10]) + let aNullableObject: Any? = pigeonVar_list[11] + let list: [Any?]? = nilOrValue(pigeonVar_list[12]) + let stringList: [String?]? = nilOrValue(pigeonVar_list[13]) + let intList: [Int64?]? = nilOrValue(pigeonVar_list[14]) + let doubleList: [Double?]? = nilOrValue(pigeonVar_list[15]) + let boolList: [Bool?]? = nilOrValue(pigeonVar_list[16]) + let enumList: [AnEnum?]? = nilOrValue(pigeonVar_list[17]) + let objectList: [Any?]? = nilOrValue(pigeonVar_list[18]) + let listList: [[Any?]?]? = nilOrValue(pigeonVar_list[19]) + let mapList: [[AnyHashable?: Any?]?]? = nilOrValue(pigeonVar_list[20]) + let map: [AnyHashable?: Any?]? = nilOrValue(pigeonVar_list[21]) + let stringMap: [String?: String?]? = nilOrValue(pigeonVar_list[22]) + let intMap: [Int64?: Int64?]? = nilOrValue(pigeonVar_list[23]) + let enumMap: [AnEnum?: AnEnum?]? = pigeonVar_list[24] as? [AnEnum?: AnEnum?] + let objectMap: [AnyHashable?: Any?]? = nilOrValue(pigeonVar_list[25]) + let listMap: [Int64?: [Any?]?]? = nilOrValue(pigeonVar_list[26]) + let mapMap: [Int64?: [AnyHashable?: Any?]?]? = nilOrValue(pigeonVar_list[27]) + + return AllNullableTypesWithoutRecursion( + aNullableBool: aNullableBool, + aNullableInt: aNullableInt, + aNullableInt64: aNullableInt64, + aNullableDouble: aNullableDouble, + aNullableByteArray: aNullableByteArray, + aNullable4ByteArray: aNullable4ByteArray, + aNullable8ByteArray: aNullable8ByteArray, + aNullableFloatArray: aNullableFloatArray, + aNullableEnum: aNullableEnum, + anotherNullableEnum: anotherNullableEnum, + aNullableString: aNullableString, + aNullableObject: aNullableObject, + list: list, + stringList: stringList, + intList: intList, + doubleList: doubleList, + boolList: boolList, + enumList: enumList, + objectList: objectList, + listList: listList, + mapList: mapList, + map: map, + stringMap: stringMap, + intMap: intMap, + enumMap: enumMap, + objectMap: objectMap, + listMap: listMap, + mapMap: mapMap + ) + } + func toList() -> [Any?] { + return [ + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + ] + } + static func == (lhs: AllNullableTypesWithoutRecursion, rhs: AllNullableTypesWithoutRecursion) + -> Bool + { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } + return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) + && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) + && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) + && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) + && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) + && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) + && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) + && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) + && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) + && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) + && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) + && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) + && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) + && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + } + + func hash(into hasher: inout Hasher) { + hasher.combine("AllNullableTypesWithoutRecursion") + deepHashCoreTests(value: aNullableBool, hasher: &hasher) + deepHashCoreTests(value: aNullableInt, hasher: &hasher) + deepHashCoreTests(value: aNullableInt64, hasher: &hasher) + deepHashCoreTests(value: aNullableDouble, hasher: &hasher) + deepHashCoreTests(value: aNullableByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullable4ByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullable8ByteArray, hasher: &hasher) + deepHashCoreTests(value: aNullableFloatArray, hasher: &hasher) + deepHashCoreTests(value: aNullableEnum, hasher: &hasher) + deepHashCoreTests(value: anotherNullableEnum, hasher: &hasher) + deepHashCoreTests(value: aNullableString, hasher: &hasher) + deepHashCoreTests(value: aNullableObject, hasher: &hasher) + deepHashCoreTests(value: list, hasher: &hasher) + deepHashCoreTests(value: stringList, hasher: &hasher) + deepHashCoreTests(value: intList, hasher: &hasher) + deepHashCoreTests(value: doubleList, hasher: &hasher) + deepHashCoreTests(value: boolList, hasher: &hasher) + deepHashCoreTests(value: enumList, hasher: &hasher) + deepHashCoreTests(value: objectList, hasher: &hasher) + deepHashCoreTests(value: listList, hasher: &hasher) + deepHashCoreTests(value: mapList, hasher: &hasher) + deepHashCoreTests(value: map, hasher: &hasher) + deepHashCoreTests(value: stringMap, hasher: &hasher) + deepHashCoreTests(value: intMap, hasher: &hasher) + deepHashCoreTests(value: enumMap, hasher: &hasher) + deepHashCoreTests(value: objectMap, hasher: &hasher) + deepHashCoreTests(value: listMap, hasher: &hasher) + deepHashCoreTests(value: mapMap, hasher: &hasher) + } +} + +/// A class for testing nested class handling. +/// +/// This is needed to test nested nullable and non-nullable classes, +/// `AllNullableTypes` is non-nullable here as it is easier to instantiate +/// than `AllTypes` when testing doesn't require both (ie. testing null classes). +/// +/// Generated class from Pigeon that represents data sent in messages. +struct AllClassesWrapper: Hashable { + var allNullableTypes: AllNullableTypes + var allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nil + var allTypes: AllTypes? = nil + var classList: [AllTypes?] + var nullableClassList: [AllNullableTypesWithoutRecursion?]? = nil + var classMap: [Int64?: AllTypes?] + var nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nil + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> AllClassesWrapper? { + let allNullableTypes = pigeonVar_list[0] as! AllNullableTypes + let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( + pigeonVar_list[1]) + let allTypes: AllTypes? = nilOrValue(pigeonVar_list[2]) + let classList = pigeonVar_list[3] as! [AllTypes?] + let nullableClassList: [AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[4]) + let classMap = pigeonVar_list[5] as! [Int64?: AllTypes?] + let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue( + pigeonVar_list[6]) + + return AllClassesWrapper( + allNullableTypes: allNullableTypes, + allNullableTypesWithoutRecursion: allNullableTypesWithoutRecursion, + allTypes: allTypes, + classList: classList, + nullableClassList: nullableClassList, + classMap: classMap, + nullableClassMap: nullableClassMap + ) + } + func toList() -> [Any?] { + return [ + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + classList, + nullableClassList, + classMap, + nullableClassMap, + ] + } + static func == (lhs: AllClassesWrapper, rhs: AllClassesWrapper) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } + return deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) + && deepEqualsCoreTests( + lhs.allNullableTypesWithoutRecursion, rhs.allNullableTypesWithoutRecursion) + && deepEqualsCoreTests(lhs.allTypes, rhs.allTypes) + && deepEqualsCoreTests(lhs.classList, rhs.classList) + && deepEqualsCoreTests(lhs.nullableClassList, rhs.nullableClassList) + && deepEqualsCoreTests(lhs.classMap, rhs.classMap) + && deepEqualsCoreTests(lhs.nullableClassMap, rhs.nullableClassMap) + } + + func hash(into hasher: inout Hasher) { + hasher.combine("AllClassesWrapper") + deepHashCoreTests(value: allNullableTypes, hasher: &hasher) + deepHashCoreTests(value: allNullableTypesWithoutRecursion, hasher: &hasher) + deepHashCoreTests(value: allTypes, hasher: &hasher) + deepHashCoreTests(value: classList, hasher: &hasher) + deepHashCoreTests(value: nullableClassList, hasher: &hasher) + deepHashCoreTests(value: classMap, hasher: &hasher) + deepHashCoreTests(value: nullableClassMap, hasher: &hasher) + } +} + +/// A data class containing a List, used in unit tests. +/// +/// Generated class from Pigeon that represents data sent in messages. +struct TestMessage: Hashable { + var testList: [Any?]? = nil + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> TestMessage? { + let testList: [Any?]? = nilOrValue(pigeonVar_list[0]) + + return TestMessage( + testList: testList + ) + } + func toList() -> [Any?] { + return [ + testList + ] + } + static func == (lhs: TestMessage, rhs: TestMessage) -> Bool { + if Swift.type(of: lhs) != Swift.type(of: rhs) { + return false + } + return deepEqualsCoreTests(lhs.testList, rhs.testList) + } + + func hash(into hasher: inout Hasher) { + hasher.combine("TestMessage") + deepHashCoreTests(value: testList, hasher: &hasher) + } +} + +private class CoreTestsPigeonCodecReader: FlutterStandardReader { + override func readValue(ofType type: UInt8) -> Any? { + switch type { + case 129: + let enumResultAsInt: Int? = nilOrValue(self.readValue() as! Int?) + if let enumResultAsInt = enumResultAsInt { + return AnEnum(rawValue: enumResultAsInt) + } + return nil + case 130: + let enumResultAsInt: Int? = nilOrValue(self.readValue() as! Int?) + if let enumResultAsInt = enumResultAsInt { + return AnotherEnum(rawValue: enumResultAsInt) + } + return nil + case 131: + return UnusedClass.fromList(self.readValue() as! [Any?]) + case 132: + return AllTypes.fromList(self.readValue() as! [Any?]) + case 133: + return AllNullableTypes.fromList(self.readValue() as! [Any?]) + case 134: + return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) + case 135: + return AllClassesWrapper.fromList(self.readValue() as! [Any?]) + case 136: + return TestMessage.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) + } + } +} + +private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { + override func writeValue(_ value: Any) { + if let value = value as? AnEnum { + super.writeByte(129) + super.writeValue(value.rawValue) + } else if let value = value as? AnotherEnum { + super.writeByte(130) + super.writeValue(value.rawValue) + } else if let value = value as? UnusedClass { + super.writeByte(131) + super.writeValue(value.toList()) + } else if let value = value as? AllTypes { + super.writeByte(132) + super.writeValue(value.toList()) + } else if let value = value as? AllNullableTypes { + super.writeByte(133) + super.writeValue(value.toList()) + } else if let value = value as? AllNullableTypesWithoutRecursion { + super.writeByte(134) + super.writeValue(value.toList()) + } else if let value = value as? AllClassesWrapper { + super.writeByte(135) + super.writeValue(value.toList()) + } else if let value = value as? TestMessage { + super.writeByte(136) + super.writeValue(value.toList()) + } else { + super.writeValue(value) + } + } +} + +private class CoreTestsPigeonCodecReaderWriter: FlutterStandardReaderWriter { + override func reader(with data: Data) -> FlutterStandardReader { + return CoreTestsPigeonCodecReader(data: data) + } + + override func writer(with data: NSMutableData) -> FlutterStandardWriter { + return CoreTestsPigeonCodecWriter(data: data) + } +} + +class CoreTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { + static let shared = CoreTestsPigeonCodec(readerWriter: CoreTestsPigeonCodecReaderWriter()) +} + +/// The core interface that each host language plugin must implement in +/// platform_test integration tests. +/// +/// Generated protocol from Pigeon that represents a handler of messages from Flutter. +protocol HostIntegrationCoreApi { + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic calling. + func noop() throws + /// Returns the passed object, to test serialization and deserialization. + func echo(_ everything: AllTypes) throws -> AllTypes + /// Returns an error, to test error handling. + func throwError() throws -> Any? + /// Returns an error from a void function, to test error handling. + func throwErrorFromVoid() throws + /// Returns a Flutter error, to test error handling. + func throwFlutterError() throws -> Any? + /// Returns passed in int. + func echo(_ anInt: Int64) throws -> Int64 + /// Returns passed in double. + func echo(_ aDouble: Double) throws -> Double + /// Returns the passed in boolean. + func echo(_ aBool: Bool) throws -> Bool + /// Returns the passed in string. + func echo(_ aString: String) throws -> String + /// Returns the passed in Uint8List. + func echo(_ aUint8List: FlutterStandardTypedData) throws -> FlutterStandardTypedData + /// Returns the passed in generic Object. + func echo(_ anObject: Any) throws -> Any + /// Returns the passed list, to test serialization and deserialization. + func echo(_ list: [Any?]) throws -> [Any?] + /// Returns the passed list, to test serialization and deserialization. + func echo(enumList: [AnEnum?]) throws -> [AnEnum?] + /// Returns the passed list, to test serialization and deserialization. + func echo(classList: [AllNullableTypes?]) throws -> [AllNullableTypes?] + /// Returns the passed list, to test serialization and deserialization. + func echoNonNull(enumList: [AnEnum]) throws -> [AnEnum] + /// Returns the passed list, to test serialization and deserialization. + func echoNonNull(classList: [AllNullableTypes]) throws -> [AllNullableTypes] + /// Returns the passed map, to test serialization and deserialization. + func echo(_ map: [AnyHashable?: Any?]) throws -> [AnyHashable?: Any?] + /// Returns the passed map, to test serialization and deserialization. + func echo(stringMap: [String?: String?]) throws -> [String?: String?] + /// Returns the passed map, to test serialization and deserialization. + func echo(intMap: [Int64?: Int64?]) throws -> [Int64?: Int64?] + /// Returns the passed map, to test serialization and deserialization. + func echo(enumMap: [AnEnum?: AnEnum?]) throws -> [AnEnum?: AnEnum?] + /// Returns the passed map, to test serialization and deserialization. + func echo(classMap: [Int64?: AllNullableTypes?]) throws -> [Int64?: AllNullableTypes?] + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull(stringMap: [String: String]) throws -> [String: String] + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull(intMap: [Int64: Int64]) throws -> [Int64: Int64] + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull(enumMap: [AnEnum: AnEnum]) throws -> [AnEnum: AnEnum] + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull(classMap: [Int64: AllNullableTypes]) throws -> [Int64: AllNullableTypes] + /// Returns the passed class to test nested class serialization and deserialization. + func echo(_ wrapper: AllClassesWrapper) throws -> AllClassesWrapper + /// Returns the passed enum to test serialization and deserialization. + func echo(_ anEnum: AnEnum) throws -> AnEnum + /// Returns the passed enum to test serialization and deserialization. + func echo(_ anotherEnum: AnotherEnum) throws -> AnotherEnum + /// Returns the default string. + func echoNamedDefault(_ aString: String) throws -> String + /// Returns passed in double. + func echoOptionalDefault(_ aDouble: Double) throws -> Double + /// Returns passed in int. + func echoRequired(_ anInt: Int64) throws -> Int64 + /// Returns the passed object, to test serialization and deserialization. + func echo(_ everything: AllNullableTypes?) throws -> AllNullableTypes? + /// Returns the passed object, to test serialization and deserialization. + func echo(_ everything: AllNullableTypesWithoutRecursion?) throws + -> AllNullableTypesWithoutRecursion? + /// Returns the inner `aString` value from the wrapped object, to test + /// sending of nested objects. + func extractNestedNullableString(from wrapper: AllClassesWrapper) throws -> String? + /// Returns the inner `aString` value from the wrapped object, to test + /// sending of nested objects. + func createNestedObject(with nullableString: String?) throws -> AllClassesWrapper + /// Returns passed in arguments of multiple types. + func sendMultipleNullableTypes( + aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? + ) throws -> AllNullableTypes + /// Returns passed in arguments of multiple types. + func sendMultipleNullableTypesWithoutRecursion( + aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? + ) throws -> AllNullableTypesWithoutRecursion + /// Returns passed in int. + func echo(_ aNullableInt: Int64?) throws -> Int64? + /// Returns passed in double. + func echo(_ aNullableDouble: Double?) throws -> Double? + /// Returns the passed in boolean. + func echo(_ aNullableBool: Bool?) throws -> Bool? + /// Returns the passed in string. + func echo(_ aNullableString: String?) throws -> String? + /// Returns the passed in Uint8List. + func echo(_ aNullableUint8List: FlutterStandardTypedData?) throws -> FlutterStandardTypedData? + /// Returns the passed in generic Object. + func echo(_ aNullableObject: Any?) throws -> Any? + /// Returns the passed list, to test serialization and deserialization. + func echoNullable(_ aNullableList: [Any?]?) throws -> [Any?]? + /// Returns the passed list, to test serialization and deserialization. + func echoNullable(enumList: [AnEnum?]?) throws -> [AnEnum?]? + /// Returns the passed list, to test serialization and deserialization. + func echoNullable(classList: [AllNullableTypes?]?) throws -> [AllNullableTypes?]? + /// Returns the passed list, to test serialization and deserialization. + func echoNullableNonNull(enumList: [AnEnum]?) throws -> [AnEnum]? + /// Returns the passed list, to test serialization and deserialization. + func echoNullableNonNull(classList: [AllNullableTypes]?) throws -> [AllNullableTypes]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullable(_ map: [AnyHashable?: Any?]?) throws -> [AnyHashable?: Any?]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullable(stringMap: [String?: String?]?) throws -> [String?: String?]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullable(intMap: [Int64?: Int64?]?) throws -> [Int64?: Int64?]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullable(enumMap: [AnEnum?: AnEnum?]?) throws -> [AnEnum?: AnEnum?]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullable(classMap: [Int64?: AllNullableTypes?]?) throws -> [Int64?: AllNullableTypes?]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull(stringMap: [String: String]?) throws -> [String: String]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull(intMap: [Int64: Int64]?) throws -> [Int64: Int64]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull(enumMap: [AnEnum: AnEnum]?) throws -> [AnEnum: AnEnum]? + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: + AllNullableTypes]? + func echoNullable(_ anEnum: AnEnum?) throws -> AnEnum? + func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? + /// Returns passed in int. + func echoOptional(_ aNullableInt: Int64?) throws -> Int64? + /// Returns the passed in string. + func echoNamed(_ aNullableString: String?) throws -> String? + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic asynchronous calling. + func noopAsync(completion: @escaping (Result) -> Void) + /// Returns passed in int asynchronously. + func echoAsync(_ anInt: Int64, completion: @escaping (Result) -> Void) + /// Returns passed in double asynchronously. + func echoAsync(_ aDouble: Double, completion: @escaping (Result) -> Void) + /// Returns the passed in boolean asynchronously. + func echoAsync(_ aBool: Bool, completion: @escaping (Result) -> Void) + /// Returns the passed string asynchronously. + func echoAsync(_ aString: String, completion: @escaping (Result) -> Void) + /// Returns the passed in Uint8List asynchronously. + func echoAsync( + _ aUint8List: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) + /// Returns the passed in generic Object asynchronously. + func echoAsync(_ anObject: Any, completion: @escaping (Result) -> Void) + /// Returns the passed list, to test asynchronous serialization and deserialization. + func echoAsync(_ list: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) + /// Returns the passed list, to test asynchronous serialization and deserialization. + func echoAsync(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) + /// Returns the passed list, to test asynchronous serialization and deserialization. + func echoAsync( + classList: [AllNullableTypes?], + completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsync( + _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void + ) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsync( + stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void + ) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsync( + intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsync( + enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsync( + classMap: [Int64?: AllNullableTypes?], + completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + /// Returns the passed enum, to test asynchronous serialization and deserialization. + func echoAsync(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) + /// Returns the passed enum, to test asynchronous serialization and deserialization. + func echoAsync( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + /// Responds with an error from an async function returning a value. + func throwAsyncError(completion: @escaping (Result) -> Void) + /// Responds with an error from an async void function. + func throwAsyncErrorFromVoid(completion: @escaping (Result) -> Void) + /// Responds with a Flutter error from an async function returning a value. + func throwAsyncFlutterError(completion: @escaping (Result) -> Void) + /// Returns the passed object, to test async serialization and deserialization. + func echoAsync(_ everything: AllTypes, completion: @escaping (Result) -> Void) + /// Returns the passed object, to test serialization and deserialization. + func echoAsync( + _ everything: AllNullableTypes?, + completion: @escaping (Result) -> Void) + /// Returns the passed object, to test serialization and deserialization. + func echoAsync( + _ everything: AllNullableTypesWithoutRecursion?, + completion: @escaping (Result) -> Void) + /// Returns passed in int asynchronously. + func echoAsyncNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) + /// Returns passed in double asynchronously. + func echoAsyncNullable(_ aDouble: Double?, completion: @escaping (Result) -> Void) + /// Returns the passed in boolean asynchronously. + func echoAsyncNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) + /// Returns the passed string asynchronously. + func echoAsyncNullable(_ aString: String?, completion: @escaping (Result) -> Void) + /// Returns the passed in Uint8List asynchronously. + func echoAsyncNullable( + _ aUint8List: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) + /// Returns the passed in generic Object asynchronously. + func echoAsyncNullable(_ anObject: Any?, completion: @escaping (Result) -> Void) + /// Returns the passed list, to test asynchronous serialization and deserialization. + func echoAsyncNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + /// Returns the passed list, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + /// Returns the passed list, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + classList: [AllNullableTypes?]?, + completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + _ map: [AnyHashable?: Any?]?, + completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + stringMap: [String?: String?]?, + completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void + ) + /// Returns the passed map, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + classMap: [Int64?: AllNullableTypes?]?, + completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + /// Returns the passed enum, to test asynchronous serialization and deserialization. + func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + /// Returns the passed enum, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + /// Returns true if the handler is run on a main thread, which should be + /// true since there is no TaskQueue annotation. + func defaultIsMainThread() throws -> Bool + /// Returns true if the handler is run on a non-main thread, which should be + /// true for any platform with TaskQueue support. + func taskQueueIsBackgroundThread() throws -> Bool + func callFlutterNoop(completion: @escaping (Result) -> Void) + func callFlutterThrowError(completion: @escaping (Result) -> Void) + func callFlutterThrowErrorFromVoid(completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ everything: AllTypes, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ everything: AllNullableTypes?, + completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypes( + aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, + completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ everything: AllNullableTypesWithoutRecursion?, + completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypesWithoutRecursion( + aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, + completion: @escaping (Result) -> Void) + func callFlutterEcho(_ aBool: Bool, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ anInt: Int64, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ aDouble: Double, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ aString: String, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ list: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) + func callFlutterEcho(_ list: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) + func callFlutterEcho( + enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) + func callFlutterEcho( + classList: [AllNullableTypes?], + completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull( + enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) + func callFlutterEchoNonNull( + classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void + ) + func callFlutterEcho( + _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void + ) + func callFlutterEcho( + stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void + ) + func callFlutterEcho( + intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func callFlutterEcho( + enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func callFlutterEcho( + classMap: [Int64?: AllNullableTypes?], + completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull( + stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) + func callFlutterEchoNonNull( + intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) + func callFlutterEchoNonNull( + enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) + func callFlutterEchoNonNull( + classMap: [Int64: AllNullableTypes], + completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) + func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ anInt: Int64?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ aDouble: Double?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ aString: String?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ list: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullable( + enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func callFlutterEchoNullable( + classList: [AllNullableTypes?]?, + completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + classList: [AllNullableTypes]?, + completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable( + _ map: [AnyHashable?: Any?]?, + completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func callFlutterEchoNullable( + stringMap: [String?: String?]?, + completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func callFlutterEchoNullable( + intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func callFlutterEchoNullable( + enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void + ) + func callFlutterEchoNullable( + classMap: [Int64?: AllNullableTypes?]?, + completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + classMap: [Int64: AllNullableTypes]?, + completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable( + _ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func callFlutterSmallApiEcho( + _ aString: String, completion: @escaping (Result) -> Void) +} + +/// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. +class HostIntegrationCoreApiSetup { + static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } + /// Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, + messageChannelSuffix: String = "" + ) { + let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" + #if os(iOS) + let taskQueue = binaryMessenger.makeBackgroundTaskQueue?() + #else + let taskQueue: FlutterTaskQueue? = nil + #endif + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic calling. + let noopChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noop\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + noopChannel.setMessageHandler { _, reply in + do { + try api.noop() + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + noopChannel.setMessageHandler(nil) + } + /// Returns the passed object, to test serialization and deserialization. + let echoAllTypesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAllTypesChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg = args[0] as! AllTypes + do { + let result = try api.echo(everythingArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAllTypesChannel.setMessageHandler(nil) + } + /// Returns an error, to test error handling. + let throwErrorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + throwErrorChannel.setMessageHandler { _, reply in + do { + let result = try api.throwError() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + throwErrorChannel.setMessageHandler(nil) + } + /// Returns an error from a void function, to test error handling. + let throwErrorFromVoidChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + throwErrorFromVoidChannel.setMessageHandler { _, reply in + do { + try api.throwErrorFromVoid() + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + throwErrorFromVoidChannel.setMessageHandler(nil) + } + /// Returns a Flutter error, to test error handling. + let throwFlutterErrorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + throwFlutterErrorChannel.setMessageHandler { _, reply in + do { + let result = try api.throwFlutterError() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + throwFlutterErrorChannel.setMessageHandler(nil) + } + /// Returns passed in int. + let echoIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoIntChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anIntArg = args[0] as! Int64 + do { + let result = try api.echo(anIntArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoIntChannel.setMessageHandler(nil) + } + /// Returns passed in double. + let echoDoubleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoDoubleChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aDoubleArg = args[0] as! Double + do { + let result = try api.echo(aDoubleArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoDoubleChannel.setMessageHandler(nil) + } + /// Returns the passed in boolean. + let echoBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoBoolChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aBoolArg = args[0] as! Bool + do { + let result = try api.echo(aBoolArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoBoolChannel.setMessageHandler(nil) + } + /// Returns the passed in string. + let echoStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aStringArg = args[0] as! String + do { + let result = try api.echo(aStringArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoStringChannel.setMessageHandler(nil) + } + /// Returns the passed in Uint8List. + let echoUint8ListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoUint8ListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aUint8ListArg = args[0] as! FlutterStandardTypedData + do { + let result = try api.echo(aUint8ListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoUint8ListChannel.setMessageHandler(nil) + } + /// Returns the passed in generic Object. + let echoObjectChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoObject\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoObjectChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anObjectArg = args[0]! + do { + let result = try api.echo(anObjectArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoObjectChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let listArg = args[0] as! [Any?] + do { + let result = try api.echo(listArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoEnumListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg = args[0] as! [AnEnum?] + do { + let result = try api.echo(enumList: enumListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoEnumListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoClassListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg = args[0] as! [AllNullableTypes?] + do { + let result = try api.echo(classList: classListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoClassListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoNonNullEnumListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNonNullEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg = args[0] as! [AnEnum] + do { + let result = try api.echoNonNull(enumList: enumListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNonNullEnumListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoNonNullClassListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNonNullClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg = args[0] as! [AllNullableTypes] + do { + let result = try api.echoNonNull(classList: classListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNonNullClassListChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let mapArg = args[0] as! [AnyHashable?: Any?] + do { + let result = try api.echo(mapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoStringMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg = args[0] as! [String?: String?] + do { + let result = try api.echo(stringMap: stringMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoStringMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoIntMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg = args[0] as! [Int64?: Int64?] + do { + let result = try api.echo(intMap: intMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoIntMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoEnumMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg = args[0] as? [AnEnum?: AnEnum?] + do { + let result = try api.echo(enumMap: enumMapArg!) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoEnumMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoClassMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg = args[0] as! [Int64?: AllNullableTypes?] + do { + let result = try api.echo(classMap: classMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoClassMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNonNullStringMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNonNullStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg = args[0] as! [String: String] + do { + let result = try api.echoNonNull(stringMap: stringMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNonNullStringMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNonNullIntMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNonNullIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg = args[0] as! [Int64: Int64] + do { + let result = try api.echoNonNull(intMap: intMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNonNullIntMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNonNullEnumMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNonNullEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg = args[0] as? [AnEnum: AnEnum] + do { + let result = try api.echoNonNull(enumMap: enumMapArg!) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNonNullEnumMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNonNullClassMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNonNullClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg = args[0] as! [Int64: AllNullableTypes] + do { + let result = try api.echoNonNull(classMap: classMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNonNullClassMapChannel.setMessageHandler(nil) + } + /// Returns the passed class to test nested class serialization and deserialization. + let echoClassWrapperChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoClassWrapperChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let wrapperArg = args[0] as! AllClassesWrapper + do { + let result = try api.echo(wrapperArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoClassWrapperChannel.setMessageHandler(nil) + } + /// Returns the passed enum to test serialization and deserialization. + let echoEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anEnumArg = args[0] as! AnEnum + do { + let result = try api.echo(anEnumArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoEnumChannel.setMessageHandler(nil) + } + /// Returns the passed enum to test serialization and deserialization. + let echoAnotherEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + do { + let result = try api.echo(anotherEnumArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAnotherEnumChannel.setMessageHandler(nil) + } + /// Returns the default string. + let echoNamedDefaultStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNamedDefaultStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aStringArg = args[0] as! String + do { + let result = try api.echoNamedDefault(aStringArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNamedDefaultStringChannel.setMessageHandler(nil) + } + /// Returns passed in double. + let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoOptionalDefaultDoubleChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aDoubleArg = args[0] as! Double + do { + let result = try api.echoOptionalDefault(aDoubleArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoOptionalDefaultDoubleChannel.setMessageHandler(nil) + } + /// Returns passed in int. + let echoRequiredIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoRequiredIntChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anIntArg = args[0] as! Int64 + do { + let result = try api.echoRequired(anIntArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoRequiredIntChannel.setMessageHandler(nil) + } + /// Returns the passed object, to test serialization and deserialization. + let echoAllNullableTypesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAllNullableTypesChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg: AllNullableTypes? = nilOrValue(args[0]) + do { + let result = try api.echo(everythingArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAllNullableTypesChannel.setMessageHandler(nil) + } + /// Returns the passed object, to test serialization and deserialization. + let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg: AllNullableTypesWithoutRecursion? = nilOrValue(args[0]) + do { + let result = try api.echo(everythingArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) + } + /// Returns the inner `aString` value from the wrapped object, to test + /// sending of nested objects. + let extractNestedNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + extractNestedNullableStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let wrapperArg = args[0] as! AllClassesWrapper + do { + let result = try api.extractNestedNullableString(from: wrapperArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + extractNestedNullableStringChannel.setMessageHandler(nil) + } + /// Returns the inner `aString` value from the wrapped object, to test + /// sending of nested objects. + let createNestedNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + createNestedNullableStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let nullableStringArg: String? = nilOrValue(args[0]) + do { + let result = try api.createNestedObject(with: nullableStringArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + createNestedNullableStringChannel.setMessageHandler(nil) + } + /// Returns passed in arguments of multiple types. + let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + sendMultipleNullableTypesChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableBoolArg: Bool? = nilOrValue(args[0]) + let aNullableIntArg: Int64? = nilOrValue(args[1]) + let aNullableStringArg: String? = nilOrValue(args[2]) + do { + let result = try api.sendMultipleNullableTypes( + aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + sendMultipleNullableTypesChannel.setMessageHandler(nil) + } + /// Returns passed in arguments of multiple types. + let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableBoolArg: Bool? = nilOrValue(args[0]) + let aNullableIntArg: Int64? = nilOrValue(args[1]) + let aNullableStringArg: String? = nilOrValue(args[2]) + do { + let result = try api.sendMultipleNullableTypesWithoutRecursion( + aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) + } + /// Returns passed in int. + let echoNullableIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableIntChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableIntArg: Int64? = nilOrValue(args[0]) + do { + let result = try api.echo(aNullableIntArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableIntChannel.setMessageHandler(nil) + } + /// Returns passed in double. + let echoNullableDoubleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableDoubleChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableDoubleArg: Double? = nilOrValue(args[0]) + do { + let result = try api.echo(aNullableDoubleArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableDoubleChannel.setMessageHandler(nil) + } + /// Returns the passed in boolean. + let echoNullableBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableBoolChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableBoolArg: Bool? = nilOrValue(args[0]) + do { + let result = try api.echo(aNullableBoolArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableBoolChannel.setMessageHandler(nil) + } + /// Returns the passed in string. + let echoNullableStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableStringArg: String? = nilOrValue(args[0]) + do { + let result = try api.echo(aNullableStringArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableStringChannel.setMessageHandler(nil) + } + /// Returns the passed in Uint8List. + let echoNullableUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableUint8ListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[0]) + do { + let result = try api.echo(aNullableUint8ListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableUint8ListChannel.setMessageHandler(nil) + } + /// Returns the passed in generic Object. + let echoNullableObjectChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableObjectChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableObjectArg: Any? = args[0] + do { + let result = try api.echo(aNullableObjectArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableObjectChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoNullableListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableListArg: [Any?]? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(aNullableListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoNullableEnumListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg: [AnEnum?]? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(enumList: enumListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableEnumListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoNullableClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg: [AllNullableTypes?]? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(classList: classListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableClassListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableNonNullEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg: [AnEnum]? = nilOrValue(args[0]) + do { + let result = try api.echoNullableNonNull(enumList: enumListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableNonNullEnumListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test serialization and deserialization. + let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableNonNullClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg: [AllNullableTypes]? = nilOrValue(args[0]) + do { + let result = try api.echoNullableNonNull(classList: classListArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableNonNullClassListChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let mapArg: [AnyHashable?: Any?]? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(mapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg: [String?: String?]? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(stringMap: stringMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableStringMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableIntMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg: [Int64?: Int64?]? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(intMap: intMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableIntMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableEnumMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg: [AnEnum?: AnEnum?]? = args[0] as? [AnEnum?: AnEnum?] + do { + let result = try api.echoNullable(enumMap: enumMapArg!) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableEnumMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableClassMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg: [Int64?: AllNullableTypes?]? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(classMap: classMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableClassMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableNonNullStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg: [String: String]? = nilOrValue(args[0]) + do { + let result = try api.echoNullableNonNull(stringMap: stringMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableNonNullStringMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableNonNullIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg: [Int64: Int64]? = nilOrValue(args[0]) + do { + let result = try api.echoNullableNonNull(intMap: intMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableNonNullIntMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg: [AnEnum: AnEnum]? = args[0] as? [AnEnum: AnEnum] + do { + let result = try api.echoNullableNonNull(enumMap: enumMapArg!) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableNonNullEnumMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test serialization and deserialization. + let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableNonNullClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg: [Int64: AllNullableTypes]? = nilOrValue(args[0]) + do { + let result = try api.echoNullableNonNull(classMap: classMapArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableNonNullClassMapChannel.setMessageHandler(nil) + } + let echoNullableEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anEnumArg: AnEnum? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(anEnumArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNullableEnumChannel.setMessageHandler(nil) + } + let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(anotherEnumArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAnotherNullableEnumChannel.setMessageHandler(nil) + } + /// Returns passed in int. + let echoOptionalNullableIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoOptionalNullableIntChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableIntArg: Int64? = nilOrValue(args[0]) + do { + let result = try api.echoOptional(aNullableIntArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoOptionalNullableIntChannel.setMessageHandler(nil) + } + /// Returns the passed in string. + let echoNamedNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoNamedNullableStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableStringArg: String? = nilOrValue(args[0]) + do { + let result = try api.echoNamed(aNullableStringArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoNamedNullableStringChannel.setMessageHandler(nil) + } + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic asynchronous calling. + let noopAsyncChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noopAsync\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + noopAsyncChannel.setMessageHandler { _, reply in + api.noopAsync { result in + switch result { + case .success: + reply(wrapResult(nil)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + noopAsyncChannel.setMessageHandler(nil) + } + /// Returns passed in int asynchronously. + let echoAsyncIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncIntChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anIntArg = args[0] as! Int64 + api.echoAsync(anIntArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncIntChannel.setMessageHandler(nil) + } + /// Returns passed in double asynchronously. + let echoAsyncDoubleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncDoubleChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aDoubleArg = args[0] as! Double + api.echoAsync(aDoubleArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncDoubleChannel.setMessageHandler(nil) + } + /// Returns the passed in boolean asynchronously. + let echoAsyncBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncBoolChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aBoolArg = args[0] as! Bool + api.echoAsync(aBoolArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncBoolChannel.setMessageHandler(nil) + } + /// Returns the passed string asynchronously. + let echoAsyncStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aStringArg = args[0] as! String + api.echoAsync(aStringArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncStringChannel.setMessageHandler(nil) + } + /// Returns the passed in Uint8List asynchronously. + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncUint8ListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aUint8ListArg = args[0] as! FlutterStandardTypedData + api.echoAsync(aUint8ListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncUint8ListChannel.setMessageHandler(nil) + } + /// Returns the passed in generic Object asynchronously. + let echoAsyncObjectChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncObjectChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anObjectArg = args[0]! + api.echoAsync(anObjectArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncObjectChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + let echoAsyncListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let listArg = args[0] as! [Any?] + api.echoAsync(listArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + let echoAsyncEnumListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg = args[0] as! [AnEnum?] + api.echoAsync(enumList: enumListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncEnumListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + let echoAsyncClassListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg = args[0] as! [AllNullableTypes?] + api.echoAsync(classList: classListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncClassListChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let mapArg = args[0] as! [AnyHashable?: Any?] + api.echoAsync(mapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncStringMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg = args[0] as! [String?: String?] + api.echoAsync(stringMap: stringMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncStringMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncIntMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg = args[0] as! [Int64?: Int64?] + api.echoAsync(intMap: intMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncIntMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncEnumMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg = args[0] as? [AnEnum?: AnEnum?] + api.echoAsync(enumMap: enumMapArg!) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncEnumMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncClassMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg = args[0] as! [Int64?: AllNullableTypes?] + api.echoAsync(classMap: classMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncClassMapChannel.setMessageHandler(nil) + } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + let echoAsyncEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anEnumArg = args[0] as! AnEnum + api.echoAsync(anEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncEnumChannel.setMessageHandler(nil) + } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherAsyncEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + api.echoAsync(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAnotherAsyncEnumChannel.setMessageHandler(nil) + } + /// Responds with an error from an async function returning a value. + let throwAsyncErrorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + throwAsyncErrorChannel.setMessageHandler { _, reply in + api.throwAsyncError { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + throwAsyncErrorChannel.setMessageHandler(nil) + } + /// Responds with an error from an async void function. + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + throwAsyncErrorFromVoidChannel.setMessageHandler { _, reply in + api.throwAsyncErrorFromVoid { result in + switch result { + case .success: + reply(wrapResult(nil)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + throwAsyncErrorFromVoidChannel.setMessageHandler(nil) + } + /// Responds with a Flutter error from an async function returning a value. + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + throwAsyncFlutterErrorChannel.setMessageHandler { _, reply in + api.throwAsyncFlutterError { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + throwAsyncFlutterErrorChannel.setMessageHandler(nil) + } + /// Returns the passed object, to test async serialization and deserialization. + let echoAsyncAllTypesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncAllTypesChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg = args[0] as! AllTypes + api.echoAsync(everythingArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncAllTypesChannel.setMessageHandler(nil) + } + /// Returns the passed object, to test serialization and deserialization. + let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableAllNullableTypesChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg: AllNullableTypes? = nilOrValue(args[0]) + api.echoAsync(everythingArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableAllNullableTypesChannel.setMessageHandler(nil) + } + /// Returns the passed object, to test serialization and deserialization. + let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg: AllNullableTypesWithoutRecursion? = nilOrValue(args[0]) + api.echoAsync(everythingArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) + } + /// Returns passed in int asynchronously. + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableIntChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anIntArg: Int64? = nilOrValue(args[0]) + api.echoAsyncNullable(anIntArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableIntChannel.setMessageHandler(nil) + } + /// Returns passed in double asynchronously. + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aDoubleArg: Double? = nilOrValue(args[0]) + api.echoAsyncNullable(aDoubleArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableDoubleChannel.setMessageHandler(nil) + } + /// Returns the passed in boolean asynchronously. + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableBoolChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aBoolArg: Bool? = nilOrValue(args[0]) + api.echoAsyncNullable(aBoolArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableBoolChannel.setMessageHandler(nil) + } + /// Returns the passed string asynchronously. + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aStringArg: String? = nilOrValue(args[0]) + api.echoAsyncNullable(aStringArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableStringChannel.setMessageHandler(nil) + } + /// Returns the passed in Uint8List asynchronously. + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[0]) + api.echoAsyncNullable(aUint8ListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableUint8ListChannel.setMessageHandler(nil) + } + /// Returns the passed in generic Object asynchronously. + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableObjectChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anObjectArg: Any? = args[0] + api.echoAsyncNullable(anObjectArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableObjectChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + let echoAsyncNullableListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let listArg: [Any?]? = nilOrValue(args[0]) + api.echoAsyncNullable(listArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg: [AnEnum?]? = nilOrValue(args[0]) + api.echoAsyncNullable(enumList: enumListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableEnumListChannel.setMessageHandler(nil) + } + /// Returns the passed list, to test asynchronous serialization and deserialization. + let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg: [AllNullableTypes?]? = nilOrValue(args[0]) + api.echoAsyncNullable(classList: classListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableClassListChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let mapArg: [AnyHashable?: Any?]? = nilOrValue(args[0]) + api.echoAsyncNullable(mapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg: [String?: String?]? = nilOrValue(args[0]) + api.echoAsyncNullable(stringMap: stringMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableStringMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg: [Int64?: Int64?]? = nilOrValue(args[0]) + api.echoAsyncNullable(intMap: intMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableIntMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg: [AnEnum?: AnEnum?]? = args[0] as? [AnEnum?: AnEnum?] + api.echoAsyncNullable(enumMap: enumMapArg!) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableEnumMapChannel.setMessageHandler(nil) + } + /// Returns the passed map, to test asynchronous serialization and deserialization. + let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg: [Int64?: AllNullableTypes?]? = nilOrValue(args[0]) + api.echoAsyncNullable(classMap: classMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableClassMapChannel.setMessageHandler(nil) + } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAsyncNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anEnumArg: AnEnum? = nilOrValue(args[0]) + api.echoAsyncNullable(anEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAsyncNullableEnumChannel.setMessageHandler(nil) + } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherAsyncNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + api.echoAsyncNullable(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAnotherAsyncNullableEnumChannel.setMessageHandler(nil) + } + /// Returns true if the handler is run on a main thread, which should be + /// true since there is no TaskQueue annotation. + let defaultIsMainThreadChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.defaultIsMainThread\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + defaultIsMainThreadChannel.setMessageHandler { _, reply in + do { + let result = try api.defaultIsMainThread() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + defaultIsMainThreadChannel.setMessageHandler(nil) + } + /// Returns true if the handler is run on a non-main thread, which should be + /// true for any platform with TaskQueue support. + let taskQueueIsBackgroundThreadChannel = + taskQueue == nil + ? FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + : FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec, taskQueue: taskQueue) + if let api = api { + taskQueueIsBackgroundThreadChannel.setMessageHandler { _, reply in + do { + let result = try api.taskQueueIsBackgroundThread() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + taskQueueIsBackgroundThreadChannel.setMessageHandler(nil) + } + let callFlutterNoopChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterNoopChannel.setMessageHandler { _, reply in + api.callFlutterNoop { result in + switch result { + case .success: + reply(wrapResult(nil)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterNoopChannel.setMessageHandler(nil) + } + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterThrowErrorChannel.setMessageHandler { _, reply in + api.callFlutterThrowError { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterThrowErrorChannel.setMessageHandler(nil) + } + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterThrowErrorFromVoidChannel.setMessageHandler { _, reply in + api.callFlutterThrowErrorFromVoid { result in + switch result { + case .success: + reply(wrapResult(nil)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) + } + let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAllTypesChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg = args[0] as! AllTypes + api.callFlutterEcho(everythingArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAllTypesChannel.setMessageHandler(nil) + } + let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAllNullableTypesChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg: AllNullableTypes? = nilOrValue(args[0]) + api.callFlutterEcho(everythingArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAllNullableTypesChannel.setMessageHandler(nil) + } + let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterSendMultipleNullableTypesChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aNullableBoolArg: Bool? = nilOrValue(args[0]) + let aNullableIntArg: Int64? = nilOrValue(args[1]) + let aNullableStringArg: String? = nilOrValue(args[2]) + api.callFlutterSendMultipleNullableTypes( + aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg + ) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterSendMultipleNullableTypesChannel.setMessageHandler(nil) + } + let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let everythingArg: AllNullableTypesWithoutRecursion? = nilOrValue(args[0]) + api.callFlutterEcho(everythingArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) + } + let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { + message, reply in + let args = message as! [Any?] + let aNullableBoolArg: Bool? = nilOrValue(args[0]) + let aNullableIntArg: Int64? = nilOrValue(args[1]) + let aNullableStringArg: String? = nilOrValue(args[2]) + api.callFlutterSendMultipleNullableTypesWithoutRecursion( + aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg + ) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) + } + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoBoolChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aBoolArg = args[0] as! Bool + api.callFlutterEcho(aBoolArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoBoolChannel.setMessageHandler(nil) + } + let callFlutterEchoIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoIntChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anIntArg = args[0] as! Int64 + api.callFlutterEcho(anIntArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoIntChannel.setMessageHandler(nil) + } + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoDoubleChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aDoubleArg = args[0] as! Double + api.callFlutterEcho(aDoubleArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoDoubleChannel.setMessageHandler(nil) + } + let callFlutterEchoStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aStringArg = args[0] as! String + api.callFlutterEcho(aStringArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoStringChannel.setMessageHandler(nil) + } + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let listArg = args[0] as! FlutterStandardTypedData + api.callFlutterEcho(listArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoUint8ListChannel.setMessageHandler(nil) + } + let callFlutterEchoListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let listArg = args[0] as! [Any?] + api.callFlutterEcho(listArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoListChannel.setMessageHandler(nil) + } + let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg = args[0] as! [AnEnum?] + api.callFlutterEcho(enumList: enumListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoEnumListChannel.setMessageHandler(nil) + } + let callFlutterEchoClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg = args[0] as! [AllNullableTypes?] + api.callFlutterEcho(classList: classListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoClassListChannel.setMessageHandler(nil) + } + let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNonNullEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg = args[0] as! [AnEnum] + api.callFlutterEchoNonNull(enumList: enumListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNonNullEnumListChannel.setMessageHandler(nil) + } + let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNonNullClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg = args[0] as! [AllNullableTypes] + api.callFlutterEchoNonNull(classList: classListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNonNullClassListChannel.setMessageHandler(nil) + } + let callFlutterEchoMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let mapArg = args[0] as! [AnyHashable?: Any?] + api.callFlutterEcho(mapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoMapChannel.setMessageHandler(nil) + } + let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg = args[0] as! [String?: String?] + api.callFlutterEcho(stringMap: stringMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoStringMapChannel.setMessageHandler(nil) + } + let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg = args[0] as! [Int64?: Int64?] + api.callFlutterEcho(intMap: intMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoIntMapChannel.setMessageHandler(nil) + } + let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg = args[0] as? [AnEnum?: AnEnum?] + api.callFlutterEcho(enumMap: enumMapArg!) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoEnumMapChannel.setMessageHandler(nil) + } + let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg = args[0] as! [Int64?: AllNullableTypes?] + api.callFlutterEcho(classMap: classMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoClassMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNonNullStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg = args[0] as! [String: String] + api.callFlutterEchoNonNull(stringMap: stringMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNonNullStringMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNonNullIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg = args[0] as! [Int64: Int64] + api.callFlutterEchoNonNull(intMap: intMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNonNullIntMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNonNullEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg = args[0] as? [AnEnum: AnEnum] + api.callFlutterEchoNonNull(enumMap: enumMapArg!) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNonNullEnumMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNonNullClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg = args[0] as! [Int64: AllNullableTypes] + api.callFlutterEchoNonNull(classMap: classMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNonNullClassMapChannel.setMessageHandler(nil) + } + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anEnumArg = args[0] as! AnEnum + api.callFlutterEcho(anEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoEnumChannel.setMessageHandler(nil) + } + let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAnotherEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + api.callFlutterEcho(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAnotherEnumChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aBoolArg: Bool? = nilOrValue(args[0]) + api.callFlutterEchoNullable(aBoolArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableBoolChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anIntArg: Int64? = nilOrValue(args[0]) + api.callFlutterEchoNullable(anIntArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableIntChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aDoubleArg: Double? = nilOrValue(args[0]) + api.callFlutterEchoNullable(aDoubleArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aStringArg: String? = nilOrValue(args[0]) + api.callFlutterEchoNullable(aStringArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableStringChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let listArg: FlutterStandardTypedData? = nilOrValue(args[0]) + api.callFlutterEchoNullable(listArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let listArg: [Any?]? = nilOrValue(args[0]) + api.callFlutterEchoNullable(listArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableListChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg: [AnEnum?]? = nilOrValue(args[0]) + api.callFlutterEchoNullable(enumList: enumListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableEnumListChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg: [AllNullableTypes?]? = nilOrValue(args[0]) + api.callFlutterEchoNullable(classList: classListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableClassListChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumListArg: [AnEnum]? = nilOrValue(args[0]) + api.callFlutterEchoNullableNonNull(enumList: enumListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableNonNullClassListChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classListArg: [AllNullableTypes]? = nilOrValue(args[0]) + api.callFlutterEchoNullableNonNull(classList: classListArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableNonNullClassListChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let mapArg: [AnyHashable?: Any?]? = nilOrValue(args[0]) + api.callFlutterEchoNullable(mapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg: [String?: String?]? = nilOrValue(args[0]) + api.callFlutterEchoNullable(stringMap: stringMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableStringMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg: [Int64?: Int64?]? = nilOrValue(args[0]) + api.callFlutterEchoNullable(intMap: intMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableIntMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg: [AnEnum?: AnEnum?]? = args[0] as? [AnEnum?: AnEnum?] + api.callFlutterEchoNullable(enumMap: enumMapArg!) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableEnumMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg: [Int64?: AllNullableTypes?]? = nilOrValue(args[0]) + api.callFlutterEchoNullable(classMap: classMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableClassMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let stringMapArg: [String: String]? = nilOrValue(args[0]) + api.callFlutterEchoNullableNonNull(stringMap: stringMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let intMapArg: [Int64: Int64]? = nilOrValue(args[0]) + api.callFlutterEchoNullableNonNull(intMap: intMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enumMapArg: [AnEnum: AnEnum]? = args[0] as? [AnEnum: AnEnum] + api.callFlutterEchoNullableNonNull(enumMap: enumMapArg!) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let classMapArg: [Int64: AllNullableTypes]? = nilOrValue(args[0]) + api.callFlutterEchoNullableNonNull(classMap: classMapArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler(nil) + } + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anEnumArg: AnEnum? = nilOrValue(args[0]) + api.callFlutterEchoNullable(anEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoNullableEnumChannel.setMessageHandler(nil) + } + let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAnotherNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + api.callFlutterEchoNullable(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAnotherNullableEnumChannel.setMessageHandler(nil) + } + let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterSmallApiEchoStringChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aStringArg = args[0] as! String + api.callFlutterSmallApiEcho(aStringArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterSmallApiEchoStringChannel.setMessageHandler(nil) + } + } +} +/// The core interface that the Dart platform_test code implements for host +/// integration tests to call into. +/// +/// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. +protocol FlutterIntegrationCoreApiProtocol { + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic calling. + func noop(completion: @escaping (Result) -> Void) + /// Responds with an error from an async function returning a value. + func throwError(completion: @escaping (Result) -> Void) + /// Responds with an error from an async void function. + func throwErrorFromVoid(completion: @escaping (Result) -> Void) + /// Returns the passed object, to test serialization and deserialization. + func echo( + _ everythingArg: AllTypes, completion: @escaping (Result) -> Void) + /// Returns the passed object, to test serialization and deserialization. + func echoNullable( + _ everythingArg: AllNullableTypes?, + completion: @escaping (Result) -> Void) + /// Returns passed in arguments of multiple types. + /// + /// Tests multiple-arity FlutterApi handling. + func sendMultipleNullableTypes( + aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, + aString aNullableStringArg: String?, + completion: @escaping (Result) -> Void) + /// Returns the passed object, to test serialization and deserialization. + func echoNullable( + _ everythingArg: AllNullableTypesWithoutRecursion?, + completion: @escaping (Result) -> Void) + /// Returns passed in arguments of multiple types. + /// + /// Tests multiple-arity FlutterApi handling. + func sendMultipleNullableTypesWithoutRecursion( + aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, + aString aNullableStringArg: String?, + completion: @escaping (Result) -> Void) + /// Returns the passed boolean, to test serialization and deserialization. + func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) + /// Returns the passed int, to test serialization and deserialization. + func echo(_ anIntArg: Int64, completion: @escaping (Result) -> Void) + /// Returns the passed double, to test serialization and deserialization. + func echo(_ aDoubleArg: Double, completion: @escaping (Result) -> Void) + /// Returns the passed string, to test serialization and deserialization. + func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) + /// Returns the passed byte list, to test serialization and deserialization. + func echo( + _ listArg: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echo( + enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echo( + classList classListArg: [AllNullableTypes?], + completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echoNonNull( + enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echoNonNull( + classList classListArg: [AllNullableTypes], + completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echo( + _ mapArg: [AnyHashable?: Any?], + completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echo( + stringMap stringMapArg: [String?: String?], + completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echo( + intMap intMapArg: [Int64?: Int64?], + completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echo( + enumMap enumMapArg: [AnEnum?: AnEnum?], + completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echo( + classMap classMapArg: [Int64?: AllNullableTypes?], + completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull( + stringMap stringMapArg: [String: String], + completion: @escaping (Result<[String: String], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull( + intMap intMapArg: [Int64: Int64], + completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull( + enumMap enumMapArg: [AnEnum: AnEnum], + completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull( + classMap classMapArg: [Int64: AllNullableTypes], + completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) + /// Returns the passed enum to test serialization and deserialization. + func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) + /// Returns the passed enum to test serialization and deserialization. + func echo( + _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) + /// Returns the passed boolean, to test serialization and deserialization. + func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) + /// Returns the passed int, to test serialization and deserialization. + func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) + /// Returns the passed double, to test serialization and deserialization. + func echoNullable( + _ aDoubleArg: Double?, completion: @escaping (Result) -> Void) + /// Returns the passed string, to test serialization and deserialization. + func echoNullable( + _ aStringArg: String?, completion: @escaping (Result) -> Void) + /// Returns the passed byte list, to test serialization and deserialization. + func echoNullable( + _ listArg: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echoNullable( + _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echoNullable( + enumList enumListArg: [AnEnum?]?, + completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echoNullable( + classList classListArg: [AllNullableTypes?]?, + completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echoNullableNonNull( + enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) + /// Returns the passed list, to test serialization and deserialization. + func echoNullableNonNull( + classList classListArg: [AllNullableTypes]?, + completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + _ mapArg: [AnyHashable?: Any?]?, + completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + stringMap stringMapArg: [String?: String?]?, + completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + intMap intMapArg: [Int64?: Int64?]?, + completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + enumMap enumMapArg: [AnEnum?: AnEnum?]?, + completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + classMap classMapArg: [Int64?: AllNullableTypes?]?, + completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull( + stringMap stringMapArg: [String: String]?, + completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull( + intMap intMapArg: [Int64: Int64]?, + completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull( + enumMap enumMapArg: [AnEnum: AnEnum]?, + completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull( + classMap classMapArg: [Int64: AllNullableTypes]?, + completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) + /// Returns the passed enum to test serialization and deserialization. + func echoNullable( + _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) + /// Returns the passed enum to test serialization and deserialization. + func echoNullable( + _ anotherEnumArg: AnotherEnum?, + completion: @escaping (Result) -> Void) + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic asynchronous calling. + func noopAsync(completion: @escaping (Result) -> Void) + /// Returns the passed in generic Object asynchronously. + func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) +} +class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { + private let binaryMessenger: FlutterBinaryMessenger + private let messageChannelSuffix: String + init(binaryMessenger: FlutterBinaryMessenger, messageChannelSuffix: String = "") { + self.binaryMessenger = binaryMessenger + self.messageChannelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" + } + var codec: CoreTestsPigeonCodec { + return CoreTestsPigeonCodec.shared + } + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic calling. + func noop(completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage(nil) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + completion(.success(())) + } + } + } + /// Responds with an error from an async function returning a value. + func throwError(completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage(nil) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: Any? = listResponse[0] + completion(.success(result)) + } + } + } + /// Responds with an error from an async void function. + func throwErrorFromVoid(completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage(nil) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + completion(.success(())) + } + } + } + /// Returns the passed object, to test serialization and deserialization. + func echo( + _ everythingArg: AllTypes, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([everythingArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! AllTypes + completion(.success(result)) + } + } + } + /// Returns the passed object, to test serialization and deserialization. + func echoNullable( + _ everythingArg: AllNullableTypes?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([everythingArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: AllNullableTypes? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns passed in arguments of multiple types. + /// + /// Tests multiple-arity FlutterApi handling. + func sendMultipleNullableTypes( + aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, + aString aNullableStringArg: String?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { + response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! AllNullableTypes + completion(.success(result)) + } + } + } + /// Returns the passed object, to test serialization and deserialization. + func echoNullable( + _ everythingArg: AllNullableTypesWithoutRecursion?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([everythingArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: AllNullableTypesWithoutRecursion? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns passed in arguments of multiple types. + /// + /// Tests multiple-arity FlutterApi handling. + func sendMultipleNullableTypesWithoutRecursion( + aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, + aString aNullableStringArg: String?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { + response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! AllNullableTypesWithoutRecursion + completion(.success(result)) + } + } + } + /// Returns the passed boolean, to test serialization and deserialization. + func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aBoolArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! Bool + completion(.success(result)) + } + } + } + /// Returns the passed int, to test serialization and deserialization. + func echo(_ anIntArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anIntArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! Int64 + completion(.success(result)) + } + } + } + /// Returns the passed double, to test serialization and deserialization. + func echo(_ aDoubleArg: Double, completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aDoubleArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! Double + completion(.success(result)) + } + } + } + /// Returns the passed string, to test serialization and deserialization. + func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aStringArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! String + completion(.success(result)) + } + } + } + /// Returns the passed byte list, to test serialization and deserialization. + func echo( + _ listArg: FlutterStandardTypedData, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([listArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! FlutterStandardTypedData + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([listArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [Any?] + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echo( + enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([enumListArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [AnEnum?] + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echo( + classList classListArg: [AllNullableTypes?], + completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([classListArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [AllNullableTypes?] + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echoNonNull( + enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([enumListArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [AnEnum] + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echoNonNull( + classList classListArg: [AllNullableTypes], + completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([classListArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [AllNullableTypes] + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echo( + _ mapArg: [AnyHashable?: Any?], + completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([mapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [AnyHashable?: Any?] + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echo( + stringMap stringMapArg: [String?: String?], + completion: @escaping (Result<[String?: String?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([stringMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [String?: String?] + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echo( + intMap intMapArg: [Int64?: Int64?], + completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([intMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [Int64?: Int64?] + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echo( + enumMap enumMapArg: [AnEnum?: AnEnum?], + completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([enumMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as? [AnEnum?: AnEnum?] + completion(.success(result!)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echo( + classMap classMapArg: [Int64?: AllNullableTypes?], + completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([classMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [Int64?: AllNullableTypes?] + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull( + stringMap stringMapArg: [String: String], + completion: @escaping (Result<[String: String], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([stringMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [String: String] + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull( + intMap intMapArg: [Int64: Int64], + completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([intMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [Int64: Int64] + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull( + enumMap enumMapArg: [AnEnum: AnEnum], + completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([enumMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as? [AnEnum: AnEnum] + completion(.success(result!)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNonNull( + classMap classMapArg: [Int64: AllNullableTypes], + completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([classMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! [Int64: AllNullableTypes] + completion(.success(result)) + } + } + } + /// Returns the passed enum to test serialization and deserialization. + func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anEnumArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! AnEnum + completion(.success(result)) + } + } + } + /// Returns the passed enum to test serialization and deserialization. + func echo( + _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anotherEnumArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! AnotherEnum + completion(.success(result)) + } + } + } + /// Returns the passed boolean, to test serialization and deserialization. + func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aBoolArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: Bool? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed int, to test serialization and deserialization. + func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) + { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anIntArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: Int64? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed double, to test serialization and deserialization. + func echoNullable( + _ aDoubleArg: Double?, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aDoubleArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: Double? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed string, to test serialization and deserialization. + func echoNullable( + _ aStringArg: String?, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aStringArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: String? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed byte list, to test serialization and deserialization. + func echoNullable( + _ listArg: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([listArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: FlutterStandardTypedData? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echoNullable( + _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([listArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [Any?]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echoNullable( + enumList enumListArg: [AnEnum?]?, + completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([enumListArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [AnEnum?]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echoNullable( + classList classListArg: [AllNullableTypes?]?, + completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([classListArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [AllNullableTypes?]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echoNullableNonNull( + enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([enumListArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [AnEnum]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed list, to test serialization and deserialization. + func echoNullableNonNull( + classList classListArg: [AllNullableTypes]?, + completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([classListArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [AllNullableTypes]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + _ mapArg: [AnyHashable?: Any?]?, + completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([mapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [AnyHashable?: Any?]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + stringMap stringMapArg: [String?: String?]?, + completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([stringMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [String?: String?]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + intMap intMapArg: [Int64?: Int64?]?, + completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([intMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [Int64?: Int64?]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + enumMap enumMapArg: [AnEnum?: AnEnum?]?, + completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([enumMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [AnEnum?: AnEnum?]? = listResponse[0] as? [AnEnum?: AnEnum?] + completion(.success(result!)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullable( + classMap classMapArg: [Int64?: AllNullableTypes?]?, + completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([classMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [Int64?: AllNullableTypes?]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull( + stringMap stringMapArg: [String: String]?, + completion: @escaping (Result<[String: String]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([stringMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [String: String]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull( + intMap intMapArg: [Int64: Int64]?, + completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([intMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [Int64: Int64]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull( + enumMap enumMapArg: [AnEnum: AnEnum]?, + completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([enumMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [AnEnum: AnEnum]? = listResponse[0] as? [AnEnum: AnEnum] + completion(.success(result!)) + } + } + } + /// Returns the passed map, to test serialization and deserialization. + func echoNullableNonNull( + classMap classMapArg: [Int64: AllNullableTypes]?, + completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([classMapArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: [Int64: AllNullableTypes]? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed enum to test serialization and deserialization. + func echoNullable( + _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anEnumArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: AnEnum? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// Returns the passed enum to test serialization and deserialization. + func echoNullable( + _ anotherEnumArg: AnotherEnum?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anotherEnumArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: AnotherEnum? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } + /// A no-op function taking no arguments and returning no value, to sanity + /// test basic asynchronous calling. + func noopAsync(completion: @escaping (Result) -> Void) { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage(nil) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + completion(.success(())) + } + } + } + /// Returns the passed in generic Object asynchronously. + func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) + { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aStringArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! String + completion(.success(result)) + } + } + } +} +/// An API that can be implemented for minimal, compile-only tests. +/// +/// Generated protocol from Pigeon that represents a handler of messages from Flutter. +protocol HostTrivialApi { + func noop() throws +} + +/// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. +class HostTrivialApiSetup { + static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } + /// Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "" + ) { + let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" + let noopChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostTrivialApi.noop\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + noopChannel.setMessageHandler { _, reply in + do { + try api.noop() + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + noopChannel.setMessageHandler(nil) + } + } +} +/// A simple API implemented in some unit tests. +/// +/// Generated protocol from Pigeon that represents a handler of messages from Flutter. +protocol HostSmallApi { + func echo(aString: String, completion: @escaping (Result) -> Void) + func voidVoid(completion: @escaping (Result) -> Void) +} + +/// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. +class HostSmallApiSetup { + static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } + /// Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "" + ) { + let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" + let echoChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostSmallApi.echo\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aStringArg = args[0] as! String + api.echo(aString: aStringArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoChannel.setMessageHandler(nil) + } + let voidVoidChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon.HostSmallApi.voidVoid\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + voidVoidChannel.setMessageHandler { _, reply in + api.voidVoid { result in + switch result { + case .success: + reply(wrapResult(nil)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + voidVoidChannel.setMessageHandler(nil) + } + } +} +/// A simple API called in some unit tests. +/// +/// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. +protocol FlutterSmallApiProtocol { + func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) + func echo(string aStringArg: String, completion: @escaping (Result) -> Void) +} +class FlutterSmallApi: FlutterSmallApiProtocol { + private let binaryMessenger: FlutterBinaryMessenger + private let messageChannelSuffix: String + init(binaryMessenger: FlutterBinaryMessenger, messageChannelSuffix: String = "") { + self.binaryMessenger = binaryMessenger + self.messageChannelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" + } + var codec: CoreTestsPigeonCodec { + return CoreTestsPigeonCodec.shared + } + func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) + { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([msgArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! TestMessage + completion(.success(result)) + } + } + } + func echo(string aStringArg: String, completion: @escaping (Result) -> Void) + { + let channelName: String = + "dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aStringArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! String + completion(.success(result)) + } + } + } +} diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index b8c9e6860572..31562d0dbb97 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -32,6 +33,54 @@ FlutterError CreateConnectionError(const std::string channel_name) { EncodableValue("")); } +template +bool PigeonInternalDeepEquals(const T& a, const T& b) { + return a == b; +} + +template +bool PigeonInternalDeepEquals(const std::vector& a, + const std::vector& b) { + if (a.size() != b.size()) return false; + for (size_t i = 0; i < a.size(); ++i) { + if (!PigeonInternalDeepEquals(a[i], b[i])) return false; + } + return true; +} + +template +bool PigeonInternalDeepEquals(const std::map& a, + const std::map& b) { + if (a.size() != b.size()) return false; + for (const auto& kv : a) { + auto it = b.find(kv.first); + if (it == b.end()) return false; + if (!PigeonInternalDeepEquals(kv.second, it->second)) return false; + } + return true; +} + +inline bool PigeonInternalDeepEquals(const double& a, const double& b) { + return a == b || (std::isnan(a) && std::isnan(b)); +} + +template +bool PigeonInternalDeepEquals(const std::optional& a, + const std::optional& b) { + if (!a && !b) return true; + if (!a || !b) return false; + return PigeonInternalDeepEquals(*a, *b); +} + +inline bool PigeonInternalDeepEquals(const flutter::EncodableValue& a, + const flutter::EncodableValue& b) { + if (a.type() == b.type() && + a.type() == flutter::EncodableValue::Type::kDouble) { + return PigeonInternalDeepEquals(std::get(a), std::get(b)); + } + return a == b; +} + // UnusedClass UnusedClass::UnusedClass() {} @@ -69,6 +118,10 @@ UnusedClass UnusedClass::FromEncodableList(const EncodableList& list) { return decoded; } +bool UnusedClass::operator==(const UnusedClass& other) const { + return PigeonInternalDeepEquals(a_field_, other.a_field_); +} + // AllTypes AllTypes::AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, @@ -337,6 +390,37 @@ AllTypes AllTypes::FromEncodableList(const EncodableList& list) { return decoded; } +bool AllTypes::operator==(const AllTypes& other) const { + return PigeonInternalDeepEquals(a_bool_, other.a_bool_) && + PigeonInternalDeepEquals(an_int_, other.an_int_) && + PigeonInternalDeepEquals(an_int64_, other.an_int64_) && + PigeonInternalDeepEquals(a_double_, other.a_double_) && + PigeonInternalDeepEquals(a_byte_array_, other.a_byte_array_) && + PigeonInternalDeepEquals(a4_byte_array_, other.a4_byte_array_) && + PigeonInternalDeepEquals(a8_byte_array_, other.a8_byte_array_) && + PigeonInternalDeepEquals(a_float_array_, other.a_float_array_) && + PigeonInternalDeepEquals(an_enum_, other.an_enum_) && + PigeonInternalDeepEquals(another_enum_, other.another_enum_) && + PigeonInternalDeepEquals(a_string_, other.a_string_) && + PigeonInternalDeepEquals(an_object_, other.an_object_) && + PigeonInternalDeepEquals(list_, other.list_) && + PigeonInternalDeepEquals(string_list_, other.string_list_) && + PigeonInternalDeepEquals(int_list_, other.int_list_) && + PigeonInternalDeepEquals(double_list_, other.double_list_) && + PigeonInternalDeepEquals(bool_list_, other.bool_list_) && + PigeonInternalDeepEquals(enum_list_, other.enum_list_) && + PigeonInternalDeepEquals(object_list_, other.object_list_) && + PigeonInternalDeepEquals(list_list_, other.list_list_) && + PigeonInternalDeepEquals(map_list_, other.map_list_) && + PigeonInternalDeepEquals(map_, other.map_) && + PigeonInternalDeepEquals(string_map_, other.string_map_) && + PigeonInternalDeepEquals(int_map_, other.int_map_) && + PigeonInternalDeepEquals(enum_map_, other.enum_map_) && + PigeonInternalDeepEquals(object_map_, other.object_map_) && + PigeonInternalDeepEquals(list_map_, other.list_map_) && + PigeonInternalDeepEquals(map_map_, other.map_map_); +} + // AllNullableTypes AllNullableTypes::AllNullableTypes() {} @@ -1187,6 +1271,51 @@ AllNullableTypes AllNullableTypes::FromEncodableList( return decoded; } +bool AllNullableTypes::operator==(const AllNullableTypes& other) const { + return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && + PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && + PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && + PigeonInternalDeepEquals(a_nullable_double_, + other.a_nullable_double_) && + PigeonInternalDeepEquals(a_nullable_byte_array_, + other.a_nullable_byte_array_) && + PigeonInternalDeepEquals(a_nullable4_byte_array_, + other.a_nullable4_byte_array_) && + PigeonInternalDeepEquals(a_nullable8_byte_array_, + other.a_nullable8_byte_array_) && + PigeonInternalDeepEquals(a_nullable_float_array_, + other.a_nullable_float_array_) && + PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && + PigeonInternalDeepEquals(another_nullable_enum_, + other.another_nullable_enum_) && + PigeonInternalDeepEquals(a_nullable_string_, + other.a_nullable_string_) && + PigeonInternalDeepEquals(a_nullable_object_, + other.a_nullable_object_) && + PigeonInternalDeepEquals(all_nullable_types_, + other.all_nullable_types_) && + PigeonInternalDeepEquals(list_, other.list_) && + PigeonInternalDeepEquals(string_list_, other.string_list_) && + PigeonInternalDeepEquals(int_list_, other.int_list_) && + PigeonInternalDeepEquals(double_list_, other.double_list_) && + PigeonInternalDeepEquals(bool_list_, other.bool_list_) && + PigeonInternalDeepEquals(enum_list_, other.enum_list_) && + PigeonInternalDeepEquals(object_list_, other.object_list_) && + PigeonInternalDeepEquals(list_list_, other.list_list_) && + PigeonInternalDeepEquals(map_list_, other.map_list_) && + PigeonInternalDeepEquals(recursive_class_list_, + other.recursive_class_list_) && + PigeonInternalDeepEquals(map_, other.map_) && + PigeonInternalDeepEquals(string_map_, other.string_map_) && + PigeonInternalDeepEquals(int_map_, other.int_map_) && + PigeonInternalDeepEquals(enum_map_, other.enum_map_) && + PigeonInternalDeepEquals(object_map_, other.object_map_) && + PigeonInternalDeepEquals(list_map_, other.list_map_) && + PigeonInternalDeepEquals(map_map_, other.map_map_) && + PigeonInternalDeepEquals(recursive_class_map_, + other.recursive_class_map_); +} + // AllNullableTypesWithoutRecursion AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion() {} @@ -1873,6 +2002,46 @@ AllNullableTypesWithoutRecursion::FromEncodableList(const EncodableList& list) { return decoded; } +bool AllNullableTypesWithoutRecursion::operator==( + const AllNullableTypesWithoutRecursion& other) const { + return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && + PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && + PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && + PigeonInternalDeepEquals(a_nullable_double_, + other.a_nullable_double_) && + PigeonInternalDeepEquals(a_nullable_byte_array_, + other.a_nullable_byte_array_) && + PigeonInternalDeepEquals(a_nullable4_byte_array_, + other.a_nullable4_byte_array_) && + PigeonInternalDeepEquals(a_nullable8_byte_array_, + other.a_nullable8_byte_array_) && + PigeonInternalDeepEquals(a_nullable_float_array_, + other.a_nullable_float_array_) && + PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && + PigeonInternalDeepEquals(another_nullable_enum_, + other.another_nullable_enum_) && + PigeonInternalDeepEquals(a_nullable_string_, + other.a_nullable_string_) && + PigeonInternalDeepEquals(a_nullable_object_, + other.a_nullable_object_) && + PigeonInternalDeepEquals(list_, other.list_) && + PigeonInternalDeepEquals(string_list_, other.string_list_) && + PigeonInternalDeepEquals(int_list_, other.int_list_) && + PigeonInternalDeepEquals(double_list_, other.double_list_) && + PigeonInternalDeepEquals(bool_list_, other.bool_list_) && + PigeonInternalDeepEquals(enum_list_, other.enum_list_) && + PigeonInternalDeepEquals(object_list_, other.object_list_) && + PigeonInternalDeepEquals(list_list_, other.list_list_) && + PigeonInternalDeepEquals(map_list_, other.map_list_) && + PigeonInternalDeepEquals(map_, other.map_) && + PigeonInternalDeepEquals(string_map_, other.string_map_) && + PigeonInternalDeepEquals(int_map_, other.int_map_) && + PigeonInternalDeepEquals(enum_map_, other.enum_map_) && + PigeonInternalDeepEquals(object_map_, other.object_map_) && + PigeonInternalDeepEquals(list_map_, other.list_map_) && + PigeonInternalDeepEquals(map_map_, other.map_map_); +} + // AllClassesWrapper AllClassesWrapper::AllClassesWrapper(const AllNullableTypes& all_nullable_types, @@ -2079,6 +2248,21 @@ AllClassesWrapper AllClassesWrapper::FromEncodableList( return decoded; } +bool AllClassesWrapper::operator==(const AllClassesWrapper& other) const { + return PigeonInternalDeepEquals(all_nullable_types_, + other.all_nullable_types_) && + PigeonInternalDeepEquals( + all_nullable_types_without_recursion_, + other.all_nullable_types_without_recursion_) && + PigeonInternalDeepEquals(all_types_, other.all_types_) && + PigeonInternalDeepEquals(class_list_, other.class_list_) && + PigeonInternalDeepEquals(nullable_class_list_, + other.nullable_class_list_) && + PigeonInternalDeepEquals(class_map_, other.class_map_) && + PigeonInternalDeepEquals(nullable_class_map_, + other.nullable_class_map_); +} + // TestMessage TestMessage::TestMessage() {} @@ -2116,6 +2300,10 @@ TestMessage TestMessage::FromEncodableList(const EncodableList& list) { return decoded; } +bool TestMessage::operator==(const TestMessage& other) const { + return PigeonInternalDeepEquals(test_list_, other.test_list_); +} + PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index 450a1dfcf068..16ab58653477 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -88,6 +88,8 @@ class UnusedClass { void set_a_field(const flutter::EncodableValue* value_arg); void set_a_field(const flutter::EncodableValue& value_arg); + bool operator==(const UnusedClass& other) const; + private: static UnusedClass FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; @@ -216,6 +218,8 @@ class AllTypes { const flutter::EncodableMap& map_map() const; void set_map_map(const flutter::EncodableMap& value_arg); + bool operator==(const AllTypes& other) const; + private: static AllTypes FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; @@ -424,6 +428,8 @@ class AllNullableTypes { void set_recursive_class_map(const flutter::EncodableMap* value_arg); void set_recursive_class_map(const flutter::EncodableMap& value_arg); + bool operator==(const AllNullableTypes& other) const; + private: static AllNullableTypes FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; @@ -617,6 +623,8 @@ class AllNullableTypesWithoutRecursion { void set_map_map(const flutter::EncodableMap* value_arg); void set_map_map(const flutter::EncodableMap& value_arg); + bool operator==(const AllNullableTypesWithoutRecursion& other) const; + private: static AllNullableTypesWithoutRecursion FromEncodableList( const flutter::EncodableList& list); @@ -716,6 +724,8 @@ class AllClassesWrapper { void set_nullable_class_map(const flutter::EncodableMap* value_arg); void set_nullable_class_map(const flutter::EncodableMap& value_arg); + bool operator==(const AllClassesWrapper& other) const; + private: static AllClassesWrapper FromEncodableList( const flutter::EncodableList& list); @@ -752,6 +762,8 @@ class TestMessage { void set_test_list(const flutter::EncodableList* value_arg); void set_test_list(const flutter::EncodableList& value_arg); + bool operator==(const TestMessage& other) const; + private: static TestMessage FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp new file mode 100644 index 000000000000..993a906c8dd9 --- /dev/null +++ b/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp @@ -0,0 +1,54 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include + +#include + +#include "pigeon/core_tests.gen.h" + +namespace test_plugin { +namespace test { + +using namespace core_tests_pigeontest; + +TEST(EqualityTests, NaNEquality) { + AllNullableTypes all1; + all1.set_a_nullable_double(NAN); + + AllNullableTypes all2; + all2.set_a_nullable_double(NAN); + + EXPECT_EQ(all1, all2); + + AllNullableTypes all3; + all3.set_a_nullable_double(1.0); + + EXPECT_NE(all1, all3); +} + +TEST(EqualityTests, OptionalNaNEquality) { + AllNullableTypes all1; + // std::optional handled via set_a_nullable_double + all1.set_a_nullable_double(NAN); + + AllNullableTypes all2; + all2.set_a_nullable_double(NAN); + + EXPECT_EQ(all1, all2); +} + +TEST(EqualityTests, NestedNaNEquality) { + std::vector list = {NAN}; + AllNullableTypes all1; + all1.set_double_list(list); + + AllNullableTypes all2; + all2.set_double_list(list); + + EXPECT_EQ(all1, all2); +} + +} // namespace test +} // namespace test_plugin diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test/non_null_fields_test.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test/non_null_fields_test.cpp index 07412dc84378..d7ea926f62b3 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test/non_null_fields_test.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/test/non_null_fields_test.cpp @@ -14,4 +14,13 @@ TEST(NonNullFields, Build) { EXPECT_EQ(request.query(), "hello"); } +TEST(NonNullFields, Equality) { + NonNullFieldSearchRequest request1("hello"); + NonNullFieldSearchRequest request2("hello"); + NonNullFieldSearchRequest request3("world"); + + EXPECT_EQ(request1, request2); + EXPECT_NE(request1, request3); +} + } // namespace non_null_fields_pigeontest diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test/null_fields_test.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test/null_fields_test.cpp index 9a0cf75e8259..46f16079cc45 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test/null_fields_test.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/test/null_fields_test.cpp @@ -211,4 +211,34 @@ TEST_F(NullFieldsTest, ReplyToListWithNulls) { } } +TEST(NullFields, Equality) { + NullFieldsSearchRequest request1(1); + request1.set_query("hello"); + NullFieldsSearchRequest request2(1); + request2.set_query("hello"); + NullFieldsSearchRequest request3(2); + request3.set_query("hello"); + NullFieldsSearchRequest request4(1); + request4.set_query("world"); + + EXPECT_EQ(request1, request2); + EXPECT_FALSE(request1 == request3); + EXPECT_FALSE(request1 == request4); + + NullFieldsSearchReply reply1; + reply1.set_result("result"); + reply1.set_request(request1); + + NullFieldsSearchReply reply2; + reply2.set_result("result"); + reply2.set_request(request2); + + NullFieldsSearchReply reply3; + reply3.set_result("result"); + reply3.set_request(request3); + + EXPECT_EQ(reply1, reply2); + EXPECT_FALSE(reply1 == reply3); +} + } // namespace null_fields_pigeontest diff --git a/packages/pigeon/test/cpp_generator_test.dart b/packages/pigeon/test/cpp_generator_test.dart index d9a22ec657bb..d021a3f0b3aa 100644 --- a/packages/pigeon/test/cpp_generator_test.dart +++ b/packages/pigeon/test/cpp_generator_test.dart @@ -567,6 +567,7 @@ void main() { #include #include +#include #include #include #include @@ -2614,4 +2615,119 @@ void main() { ); expect(code, contains('channel.Send')); }); + + test('data class equality', () { + final root = Root( + apis: [], + classes: [ + Class( + name: 'Foo', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: false), + name: 'bar', + ), + ], + ), + ], + enums: [], + ); + { + final sink = StringBuffer(); + const generator = CppGenerator(); + final generatorOptions = OutputFileOptions( + fileType: FileType.header, + languageOptions: const InternalCppOptions( + cppHeaderOut: '', + cppSourceOut: '', + headerIncludePath: '', + ), + ); + generator.generate( + generatorOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('bool operator==(const Foo& other) const;')); + } + { + final sink = StringBuffer(); + const generator = CppGenerator(); + final generatorOptions = OutputFileOptions( + fileType: FileType.source, + languageOptions: const InternalCppOptions( + cppHeaderOut: '', + cppSourceOut: '', + headerIncludePath: '', + ), + ); + generator.generate( + generatorOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('bool Foo::operator==(const Foo& other) const {')); + expect( + code, + contains('return PigeonInternalDeepEquals(bar_, other.bar_);'), + ); + } + }); + + test('data class equality with pointers', () { + final nested = Class( + name: 'Nested', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: false), + name: 'data', + ), + ], + ); + final root = Root( + apis: [], + classes: [ + Class( + name: 'Foo', + fields: [ + NamedType( + type: TypeDeclaration( + baseName: 'Nested', + isNullable: true, + associatedClass: nested, + ), + name: 'nested', + ), + ], + ), + nested, + ], + enums: [], + ); + final sink = StringBuffer(); + const generator = CppGenerator(); + final generatorOptions = OutputFileOptions( + fileType: FileType.source, + languageOptions: const InternalCppOptions( + cppHeaderOut: '', + cppSourceOut: '', + headerIncludePath: '', + ), + ); + generator.generate( + generatorOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect( + code, + contains('return PigeonInternalDeepEquals(nested_, other.nested_);'), + ); + }); } diff --git a/packages/pigeon/test/dart_generator_test.dart b/packages/pigeon/test/dart_generator_test.dart index 83d10d81520c..7bf48b79b87f 100644 --- a/packages/pigeon/test/dart_generator_test.dart +++ b/packages/pigeon/test/dart_generator_test.dart @@ -2118,7 +2118,9 @@ name: foobar expect(code, contains('_deepEquals(field1, other.field1)')); expect( code, - contains('int get hashCode => Object.hash(runtimeType, field1);'), + contains( + 'int get hashCode => _deepHash([runtimeType, ..._toList()]);', + ), ); }); @@ -2155,7 +2157,9 @@ name: foobar expect(code, contains('_deepEquals(field2, other.field2)')); expect( code, - contains('int get hashCode => Object.hash(runtimeType, field1, field2);'), + contains( + 'int get hashCode => _deepHash([runtimeType, ..._toList()]);', + ), ); }); } diff --git a/packages/pigeon/test/java_generator_test.dart b/packages/pigeon/test/java_generator_test.dart index a7dd1bbfbcbc..894033a9cc67 100644 --- a/packages/pigeon/test/java_generator_test.dart +++ b/packages/pigeon/test/java_generator_test.dart @@ -1886,4 +1886,36 @@ void main() { ), ); }); + + test('data class equality', () { + final classDefinition = Class( + name: 'Foobar', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: true), + name: 'field1', + ), + ], + ); + final root = Root( + apis: [], + classes: [classDefinition], + enums: [], + ); + final sink = StringBuffer(); + const javaOptions = InternalJavaOptions(className: 'Messages', javaOut: ''); + const generator = JavaGenerator(); + generator.generate( + javaOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('public boolean equals(Object o) {')); + expect(code, contains('if (o == null || getClass() != o.getClass())')); + expect(code, contains('pigeonDeepEquals(field1, that.field1)')); + expect(code, contains('public int hashCode() {')); + expect(code, contains('return pigeonDeepHashCode(fields);')); + }); } diff --git a/packages/pigeon/test/kotlin_generator_test.dart b/packages/pigeon/test/kotlin_generator_test.dart index 96093258b9b5..d9429d4513ae 100644 --- a/packages/pigeon/test/kotlin_generator_test.dart +++ b/packages/pigeon/test/kotlin_generator_test.dart @@ -2054,9 +2054,17 @@ void main() { ); final code = sink.toString(); expect(code, contains('override fun equals(other: Any?): Boolean {')); + expect( + code, + contains('if (other == null || other.javaClass != javaClass) {'), + ); expect(code, contains('PigeonUtils.deepEquals(this.field1, other.field1)')); expect(code, contains('override fun hashCode(): Int {')); - expect(code, contains('var result = PigeonUtils.deepHash(this.field1)')); + expect(code, contains('var result = javaClass.hashCode()')); + expect( + code, + contains('result = 31 * result + PigeonUtils.deepHash(this.field1)'), + ); expect(code, contains('return result')); }); @@ -2090,6 +2098,10 @@ void main() { ); final code = sink.toString(); expect(code, contains('override fun equals(other: Any?): Boolean {')); + expect( + code, + contains('if (other == null || other.javaClass != javaClass) {'), + ); expect( code, contains( @@ -2097,7 +2109,11 @@ void main() { ), ); expect(code, contains('override fun hashCode(): Int {')); - expect(code, contains('var result = PigeonUtils.deepHash(this.field1)')); + expect(code, contains('var result = javaClass.hashCode()')); + expect( + code, + contains('result = 31 * result + PigeonUtils.deepHash(this.field1)'), + ); expect( code, contains('result = 31 * result + PigeonUtils.deepHash(this.field2)'), diff --git a/packages/pigeon/test/objc_generator_test.dart b/packages/pigeon/test/objc_generator_test.dart index b44f84f571d3..06c3694974f3 100644 --- a/packages/pigeon/test/objc_generator_test.dart +++ b/packages/pigeon/test/objc_generator_test.dart @@ -4040,4 +4040,70 @@ void main() { expect(code, isNot(contains('FLTFLT'))); expect(code, contains('FLTEnum1Box')); }); + + test('data class equality', () { + final root = Root( + apis: [], + classes: [ + Class( + name: 'Foo', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: false), + name: 'bar', + ), + ], + ), + ], + enums: [], + ); + { + final sink = StringBuffer(); + const generator = ObjcGenerator(); + final generatorOptions = OutputFileOptions( + fileType: FileType.header, + languageOptions: const InternalObjcOptions( + prefix: 'ABC', + objcHeaderOut: '', + objcSourceOut: '', + headerIncludePath: '', + ), + ); + generator.generate( + generatorOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('- (BOOL)isEqual:(id)object;')); + expect(code, contains('- (NSUInteger)hash;')); + } + { + final sink = StringBuffer(); + const generator = ObjcGenerator(); + final generatorOptions = OutputFileOptions( + fileType: FileType.source, + languageOptions: const InternalObjcOptions( + prefix: 'ABC', + objcHeaderOut: '', + objcSourceOut: '', + headerIncludePath: '', + ), + ); + generator.generate( + generatorOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('- (BOOL)isEqual:(id)object {')); + expect(code, contains('ABCFoo *other = (ABCFoo *)object;')); + expect(code, contains('return self.bar == other.bar;')); + expect(code, contains('- (NSUInteger)hash {')); + expect(code, contains('NSUInteger result = [self class].hash;')); + expect(code, contains('result = result * 31 + @(self.bar).hash;')); + } + }); } From 08a79f38b667c087312ab6765272e8f7f50ff0d2 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 12:05:21 -0800 Subject: [PATCH 09/33] first pass at gobject --- .../pigeon/example/app/linux/messages.g.cc | 184 ++++ .../pigeon/example/app/linux/messages.g.h | 23 + .../lib/src/gobject/gobject_generator.dart | 450 +++++++++ .../test_plugin/linux/CMakeLists.txt | 1 + .../linux/pigeon/core_tests.gen.cc | 859 ++++++++++++++++++ .../test_plugin/linux/pigeon/core_tests.gen.h | 143 +++ .../test_plugin/linux/test/equality_test.cc | 135 +++ .../pigeon/test/gobject_generator_test.dart | 59 ++ 8 files changed, 1854 insertions(+) create mode 100644 packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index 5dc179e4203a..a3af7686c264 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -6,6 +6,159 @@ #include "messages.g.h" +#include + +#include +static guint flpigeon_hash_double(double v) { + if (std::isnan(v)) return (guint)0x7FF80000; + union { + double d; + uint64_t u; + } u; + u.d = v; + return (guint)(u.u ^ (u.u >> 32)); +} +static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if (fl_value_get_type(a) != fl_value_get_type(b)) { + return FALSE; + } + switch (fl_value_get_type(a)) { + case FL_VALUE_TYPE_BOOL: + return fl_value_get_bool(a) == fl_value_get_bool(b); + case FL_VALUE_TYPE_INT: + return fl_value_get_int(a) == fl_value_get_int(b); + case FL_VALUE_TYPE_FLOAT: { + double va = fl_value_get_float(a); + double vb = fl_value_get_float(b); + return va == vb || (std::isnan(va) && std::isnan(vb)); + } + case FL_VALUE_TYPE_STRING: + return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0; + case FL_VALUE_TYPE_UINT8_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), + fl_value_get_length(a)) == 0; + case FL_VALUE_TYPE_INT32_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), + fl_value_get_length(a) * sizeof(int32_t)) == 0; + case FL_VALUE_TYPE_INT64_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), + fl_value_get_length(a) * sizeof(int64_t)) == 0; + case FL_VALUE_TYPE_FLOAT_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), + fl_value_get_length(a) * sizeof(float)) == 0; + case FL_VALUE_TYPE_DOUBLE_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_double_list(a), fl_value_get_double_list(b), + fl_value_get_length(a) * sizeof(double)) == 0; + case FL_VALUE_TYPE_LIST: { + size_t len = fl_value_get_length(a); + if (len != fl_value_get_length(b)) return FALSE; + for (size_t i = 0; i < len; i++) { + if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), + fl_value_get_list_value(b, i))) + return FALSE; + } + return TRUE; + } + case FL_VALUE_TYPE_MAP: { + size_t len = fl_value_get_length(a); + if (len != fl_value_get_length(b)) return FALSE; + for (size_t i = 0; i < len; i++) { + FlValue* key = fl_value_get_map_key(a, i); + FlValue* val = fl_value_get_map_value(a, i); + FlValue* b_val = fl_value_lookup(b, key); + if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE; + } + return TRUE; + } + default: + return FALSE; + } + return FALSE; +} +static guint flpigeon_deep_hash(FlValue* value) { + if (value == nullptr) return 0; + switch (fl_value_get_type(value)) { + case FL_VALUE_TYPE_BOOL: + return fl_value_get_bool(value) ? 1231 : 1237; + case FL_VALUE_TYPE_INT: { + int64_t v = fl_value_get_int(value); + return (guint)(v ^ (v >> 32)); + } + case FL_VALUE_TYPE_FLOAT: + return flpigeon_hash_double(fl_value_get_float(value)); + case FL_VALUE_TYPE_STRING: + return g_str_hash(fl_value_get_string(value)); + case FL_VALUE_TYPE_UINT8_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const uint8_t* data = fl_value_get_uint8_list(value); + for (size_t i = 0; i < len; i++) result = result * 31 + data[i]; + return result; + } + case FL_VALUE_TYPE_INT32_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const int32_t* data = fl_value_get_int32_list(value); + for (size_t i = 0; i < len; i++) result = result * 31 + (guint)data[i]; + return result; + } + case FL_VALUE_TYPE_INT64_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const int64_t* data = fl_value_get_int64_list(value); + for (size_t i = 0; i < len; i++) + result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); + return result; + } + case FL_VALUE_TYPE_FLOAT_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const float* data = fl_value_get_float_list(value); + for (size_t i = 0; i < len; i++) { + result = result * 31 + flpigeon_hash_double((double)data[i]); + } + return result; + } + case FL_VALUE_TYPE_DOUBLE_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const double* data = fl_value_get_double_list(value); + for (size_t i = 0; i < len; i++) { + result = result * 31 + flpigeon_hash_double(data[i]); + } + return result; + } + case FL_VALUE_TYPE_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + for (size_t i = 0; i < len; i++) { + result = + result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i)); + } + return result; + } + case FL_VALUE_TYPE_MAP: { + guint result = 0; + size_t len = fl_value_get_length(value); + for (size_t i = 0; i < len; i++) { + result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ + flpigeon_deep_hash(fl_value_get_map_value(value, i))); + } + return result; + } + default: + return (guint)fl_value_get_type(value); + } + return 0; +} + struct _PigeonExamplePackageMessageData { GObject parent_instance; @@ -119,6 +272,37 @@ pigeon_example_package_message_data_new_from_list(FlValue* values) { return pigeon_example_package_message_data_new(name, description, code, data); } +gboolean pigeon_example_package_message_data_equals( + PigeonExamplePackageMessageData* a, PigeonExamplePackageMessageData* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if (g_strcmp0(a->name, b->name) != 0) { + return FALSE; + } + if (g_strcmp0(a->description, b->description) != 0) { + return FALSE; + } + if (a->code != b->code) { + return FALSE; + } + if (!flpigeon_deep_equals(a->data, b->data)) { + return FALSE; + } + return TRUE; +} + +guint pigeon_example_package_message_data_hash( + PigeonExamplePackageMessageData* self) { + g_return_val_if_fail(PIGEON_EXAMPLE_PACKAGE_IS_MESSAGE_DATA(self), 0); + guint result = 0; + result = result * 31 + (self->name != nullptr ? g_str_hash(self->name) : 0); + result = result * 31 + + (self->description != nullptr ? g_str_hash(self->description) : 0); + result = result * 31 + (guint)self->code; + result = result * 31 + flpigeon_deep_hash(self->data); + return result; +} + struct _PigeonExamplePackageMessageCodec { FlStandardMessageCodec parent_instance; }; diff --git a/packages/pigeon/example/app/linux/messages.g.h b/packages/pigeon/example/app/linux/messages.g.h index 6fb44cc93516..c03ecb20a01d 100644 --- a/packages/pigeon/example/app/linux/messages.g.h +++ b/packages/pigeon/example/app/linux/messages.g.h @@ -90,6 +90,29 @@ PigeonExamplePackageCode pigeon_example_package_message_data_get_code( FlValue* pigeon_example_package_message_data_get_data( PigeonExamplePackageMessageData* object); +/** + * pigeon_example_package_message_data_equals: + * @a: a #PigeonExamplePackageMessageData. + * @b: another #PigeonExamplePackageMessageData. + * + * Checks if two #PigeonExamplePackageMessageData objects are equal. + * + * Returns: TRUE if @a and @b are equal. + */ +gboolean pigeon_example_package_message_data_equals( + PigeonExamplePackageMessageData* a, PigeonExamplePackageMessageData* b); + +/** + * pigeon_example_package_message_data_hash: + * @object: a #PigeonExamplePackageMessageData. + * + * Calculates a hash code for a #PigeonExamplePackageMessageData object. + * + * Returns: the hash code. + */ +guint pigeon_example_package_message_data_hash( + PigeonExamplePackageMessageData* object); + G_DECLARE_FINAL_TYPE(PigeonExamplePackageMessageCodec, pigeon_example_package_message_codec, PIGEON_EXAMPLE_PACKAGE, MESSAGE_CODEC, diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index 0daa9debd069..c9e4c22b8c72 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -327,6 +327,31 @@ class GObjectHeaderGenerator '$returnType ${methodPrefix}_get_$fieldName(${getterArgs.join(', ')});', ); } + + indent.newln(); + addDocumentationComments(indent, [ + '${methodPrefix}_equals:', + '@a: a #$className.', + '@b: another #$className.', + '', + 'Checks if two #$className objects are equal.', + '', + 'Returns: TRUE if @a and @b are equal.', + ], _docCommentSpec); + indent.writeln( + 'gboolean ${methodPrefix}_equals($className* a, $className* b);', + ); + + indent.newln(); + addDocumentationComments(indent, [ + '${methodPrefix}_hash:', + '@object: a #$className.', + '', + 'Calculates a hash code for a #$className object.', + '', + 'Returns: the hash code.', + ], _docCommentSpec); + indent.writeln('guint ${methodPrefix}_hash($className* object);'); } @override @@ -818,7 +843,13 @@ class GObjectSourceGenerator required String dartPackageName, }) { indent.newln(); + indent.writeln('#include '); + indent.writeln('#include '); indent.writeln('#include "${generatorOptions.headerIncludePath}"'); + + _writeHashHelpers(indent); + _writeDeepEquals(indent); + _writeDeepHash(indent); } @override @@ -1039,6 +1070,234 @@ class GObjectSourceGenerator indent.writeln('return ${methodPrefix}_new(${args.join(', ')});'); }, ); + + _writeClassEquality( + generatorOptions, + root, + indent, + classDefinition, + dartPackageName: dartPackageName, + ); + } + + void _writeClassEquality( + InternalGObjectOptions generatorOptions, + Root root, + Indent indent, + Class classDefinition, { + required String dartPackageName, + }) { + final String module = _getModule(generatorOptions, dartPackageName); + final String snakeModule = _snakeCaseFromCamelCase(module); + final String className = _getClassName(module, classDefinition.name); + final String snakeClassName = _snakeCaseFromCamelCase(classDefinition.name); + + final String methodPrefix = _getMethodPrefix(module, classDefinition.name); + final String testMacro = '${snakeModule}_IS_$snakeClassName'.toUpperCase(); + + indent.newln(); + indent.writeScoped('gboolean ${methodPrefix}_equals($className* a, $className* b) {', '}', () { + indent.writeln('if (a == b) return TRUE;'); + indent.writeln('if (a == nullptr || b == nullptr) return FALSE;'); + for (final NamedType field in classDefinition.fields) { + final String fieldName = _getFieldName(field.name); + if (field.type.isClass) { + final String fieldMethodPrefix = _getMethodPrefix( + module, + field.type.baseName, + ); + indent.writeScoped( + 'if (!${fieldMethodPrefix}_equals(a->$fieldName, b->$fieldName)) {', + '}', + () { + indent.writeln('return FALSE;'); + }, + ); + } else if (field.type.isEnum) { + if (field.type.isNullable) { + indent.writeScoped( + 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) return FALSE;', + '', + () {}, + ); + indent.writeScoped( + 'if (a->$fieldName != nullptr && *a->$fieldName != *b->$fieldName) return FALSE;', + '', + () {}, + ); + } else { + indent.writeScoped( + 'if (a->$fieldName != b->$fieldName) {', + '}', + () { + indent.writeln('return FALSE;'); + }, + ); + } + } else if (_isNumericListType(field.type)) { + indent.writeScoped('if (a->$fieldName != b->$fieldName) {', '}', () { + indent.writeln( + 'if (a->$fieldName == nullptr || b->$fieldName == nullptr) return FALSE;', + ); + indent.writeln( + 'if (a->${fieldName}_length != b->${fieldName}_length) return FALSE;', + ); + final elementSize = field.type.baseName == 'Uint8List' + ? 'sizeof(uint8_t)' + : field.type.baseName == 'Int32List' + ? 'sizeof(int32_t)' + : field.type.baseName == 'Int64List' + ? 'sizeof(int64_t)' + : field.type.baseName == 'Float32List' + ? 'sizeof(float)' + : 'sizeof(double)'; + indent.writeln( + 'if (memcmp(a->$fieldName, b->$fieldName, a->${fieldName}_length * $elementSize) != 0) return FALSE;', + ); + }); + } else if (field.type.baseName == 'bool' || + field.type.baseName == 'int') { + if (field.type.isNullable) { + indent.writeScoped( + 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) return FALSE;', + '', + () {}, + ); + indent.writeScoped( + 'if (a->$fieldName != nullptr && *a->$fieldName != *b->$fieldName) return FALSE;', + '', + () {}, + ); + } else { + indent.writeScoped( + 'if (a->$fieldName != b->$fieldName) {', + '}', + () { + indent.writeln('return FALSE;'); + }, + ); + } + } else if (field.type.baseName == 'double') { + if (field.type.isNullable) { + indent.writeScoped( + 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) return FALSE;', + '', + () {}, + ); + indent.writeScoped( + 'if (a->$fieldName != nullptr && !(*a->$fieldName == *b->$fieldName || (std::isnan(*a->$fieldName) && std::isnan(*b->$fieldName)))) return FALSE;', + '', + () {}, + ); + } else { + indent.writeScoped( + 'if (!(a->$fieldName == b->$fieldName || (std::isnan(a->$fieldName) && std::isnan(b->$fieldName)))) {', + '}', + () { + indent.writeln('return FALSE;'); + }, + ); + } + } else if (field.type.baseName == 'String') { + indent.writeScoped( + 'if (g_strcmp0(a->$fieldName, b->$fieldName) != 0) {', + '}', + () { + indent.writeln('return FALSE;'); + }, + ); + } else { + indent.writeScoped( + 'if (!flpigeon_deep_equals(a->$fieldName, b->$fieldName)) {', + '}', + () { + indent.writeln('return FALSE;'); + }, + ); + } + } + indent.writeln('return TRUE;'); + }); + + indent.newln(); + indent.writeScoped('guint ${methodPrefix}_hash($className* self) {', '}', () { + indent.writeln('g_return_val_if_fail($testMacro(self), 0);'); + indent.writeln('guint result = 0;'); + for (final NamedType field in classDefinition.fields) { + final String fieldName = _getFieldName(field.name); + if (field.type.isClass) { + final String fieldMethodPrefix = _getMethodPrefix( + module, + field.type.baseName, + ); + indent.writeln( + 'result = result * 31 + ${fieldMethodPrefix}_hash(self->$fieldName);', + ); + } else if (field.type.isEnum) { + if (field.type.isNullable) { + indent.writeln( + 'result = result * 31 + (self->$fieldName != nullptr ? (guint)*self->$fieldName : 0);', + ); + } else { + indent.writeln('result = result * 31 + (guint)self->$fieldName;'); + } + } else if (_isNumericListType(field.type)) { + indent.writeScoped('{', '}', () { + indent.writeln('size_t len = self->${fieldName}_length;'); + final String elementTypeName = _getType( + module, + field.type, + primitive: true, + ); + indent.writeln('const $elementTypeName* data = self->$fieldName;'); + indent.writeScoped('if (data != nullptr) {', '}', () { + indent.writeScoped('for (size_t i = 0; i < len; i++) {', '}', () { + if (field.type.baseName == 'Int64List') { + indent.writeln( + 'result = result * 31 + (guint)(data[i] ^ (data[i] >> 32));', + ); + } else if (field.type.baseName == 'Float32List' || + field.type.baseName == 'Float64List') { + indent.writeln( + 'result = result * 31 + flpigeon_hash_double(data[i]);', + ); + } else { + indent.writeln('result = result * 31 + (guint)data[i];'); + } + }); + }); + }); + } else if (field.type.baseName == 'bool' || + field.type.baseName == 'int') { + if (field.type.isNullable) { + indent.writeln( + 'result = result * 31 + (self->$fieldName != nullptr ? (guint)*self->$fieldName : 0);', + ); + } else { + indent.writeln('result = result * 31 + (guint)self->$fieldName;'); + } + } else if (field.type.baseName == 'double') { + if (field.type.isNullable) { + indent.writeln( + 'result = result * 31 + (self->$fieldName != nullptr ? flpigeon_hash_double(*self->$fieldName) : 0);', + ); + } else { + indent.writeln( + 'result = result * 31 + flpigeon_hash_double(self->$fieldName);', + ); + } + } else if (field.type.baseName == 'String') { + indent.writeln( + 'result = result * 31 + (self->$fieldName != nullptr ? g_str_hash(self->$fieldName) : 0);', + ); + } else { + indent.writeln( + 'result = result * 31 + flpigeon_deep_hash(self->$fieldName);', + ); + } + } + indent.writeln('return result;'); + }); } @override @@ -2512,3 +2771,194 @@ String _getResponseName(String name, String methodName) { methodName[0].toUpperCase() + methodName.substring(1); return '$name${upperMethodName}Response'; } + +void _writeHashHelpers(Indent indent) { + indent.writeScoped('static guint flpigeon_hash_double(double v) {', '}', () { + indent.writeln('if (std::isnan(v)) return (guint)0x7FF80000;'); + indent.writeln('union { double d; uint64_t u; } u;'); + indent.writeln('u.d = v;'); + indent.writeln('return (guint)(u.u ^ (u.u >> 32));'); + }); +} + +void _writeDeepEquals(Indent indent) { + indent.writeScoped('static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) {', '}', () { + indent.writeln('if (a == b) return TRUE;'); + indent.writeln('if (a == nullptr || b == nullptr) return FALSE;'); + indent.writeScoped( + 'if (fl_value_get_type(a) != fl_value_get_type(b)) {', + '}', + () { + indent.writeln('return FALSE;'); + }, + ); + indent.writeScoped('switch (fl_value_get_type(a)) {', '}', () { + indent.writeln('case FL_VALUE_TYPE_BOOL:'); + indent.writeln(' return fl_value_get_bool(a) == fl_value_get_bool(b);'); + indent.writeln('case FL_VALUE_TYPE_INT:'); + indent.writeln(' return fl_value_get_int(a) == fl_value_get_int(b);'); + indent.writeln('case FL_VALUE_TYPE_FLOAT: {'); + indent.writeln(' double va = fl_value_get_float(a);'); + indent.writeln(' double vb = fl_value_get_float(b);'); + indent.writeln( + ' return va == vb || (std::isnan(va) && std::isnan(vb));', + ); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_STRING:'); + indent.writeln( + ' return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_UINT8_LIST:'); + indent.writeln( + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', + ); + indent.writeln( + ' memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), fl_value_get_length(a)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_INT32_LIST:'); + indent.writeln( + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', + ); + indent.writeln( + ' memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), fl_value_get_length(a) * sizeof(int32_t)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_INT64_LIST:'); + indent.writeln( + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', + ); + indent.writeln( + ' memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST:'); + indent.writeln( + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', + ); + indent.writeln( + ' memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), fl_value_get_length(a) * sizeof(float)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_DOUBLE_LIST:'); + indent.writeln( + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', + ); + indent.writeln( + ' memcmp(fl_value_get_double_list(a), fl_value_get_double_list(b), fl_value_get_length(a) * sizeof(double)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_LIST: {'); + indent.writeln(' size_t len = fl_value_get_length(a);'); + indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), fl_value_get_list_value(b, i))) return FALSE;', + ); + }); + indent.writeln(' return TRUE;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_MAP: {'); + indent.writeln(' size_t len = fl_value_get_length(a);'); + indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln('FlValue* key = fl_value_get_map_key(a, i);'); + indent.writeln('FlValue* val = fl_value_get_map_value(a, i);'); + indent.writeln('FlValue* b_val = fl_value_lookup(b, key);'); + indent.writeln( + 'if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE;', + ); + }); + indent.writeln(' return TRUE;'); + indent.writeln('}'); + indent.writeln('default:'); + indent.writeln(' return FALSE;'); + }); + indent.writeln('return FALSE;'); + }); +} + +void _writeDeepHash(Indent indent) { + indent.writeScoped('static guint flpigeon_deep_hash(FlValue* value) {', '}', () { + indent.writeln('if (value == nullptr) return 0;'); + indent.writeScoped('switch (fl_value_get_type(value)) {', '}', () { + indent.writeln('case FL_VALUE_TYPE_BOOL:'); + indent.writeln(' return fl_value_get_bool(value) ? 1231 : 1237;'); + indent.writeln('case FL_VALUE_TYPE_INT: {'); + indent.writeln(' int64_t v = fl_value_get_int(value);'); + indent.writeln(' return (guint)(v ^ (v >> 32));'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_FLOAT:'); + indent.writeln( + ' return flpigeon_hash_double(fl_value_get_float(value));', + ); + indent.writeln('case FL_VALUE_TYPE_STRING:'); + indent.writeln(' return g_str_hash(fl_value_get_string(value));'); + indent.writeln('case FL_VALUE_TYPE_UINT8_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeln(' const uint8_t* data = fl_value_get_uint8_list(value);'); + indent.writeln( + ' for (size_t i = 0; i < len; i++) result = result * 31 + data[i];', + ); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_INT32_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeln(' const int32_t* data = fl_value_get_int32_list(value);'); + indent.writeln( + ' for (size_t i = 0; i < len; i++) result = result * 31 + (guint)data[i];', + ); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_INT64_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeln(' const int64_t* data = fl_value_get_int64_list(value);'); + indent.writeln( + ' for (size_t i = 0; i < len; i++) result = result * 31 + (guint)(data[i] ^ (data[i] >> 32));', + ); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeln(' const float* data = fl_value_get_float_list(value);'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'result = result * 31 + flpigeon_hash_double((double)data[i]);', + ); + }); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_DOUBLE_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeln(' const double* data = fl_value_get_double_list(value);'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln('result = result * 31 + flpigeon_hash_double(data[i]);'); + }); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'result = result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i));', + ); + }); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_MAP: {'); + indent.writeln(' guint result = 0;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ flpigeon_deep_hash(fl_value_get_map_value(value, i)));', + ); + }); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('default:'); + indent.writeln(' return (guint)fl_value_get_type(value);'); + }); + indent.writeln('return 0;'); + }); +} diff --git a/packages/pigeon/platform_tests/test_plugin/linux/CMakeLists.txt b/packages/pigeon/platform_tests/test_plugin/linux/CMakeLists.txt index 3d2845f8d3e4..c2cdee101723 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/CMakeLists.txt +++ b/packages/pigeon/platform_tests/test_plugin/linux/CMakeLists.txt @@ -100,6 +100,7 @@ add_executable(${TEST_RUNNER} test/nullable_returns_test.cc test/null_fields_test.cc test/primitive_test.cc + test/equality_test.cc # Test utilities. test/utils/fake_host_messenger.cc test/utils/fake_host_messenger.h diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index ae3763bf5e0e..4368d6b957a1 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -7,6 +7,159 @@ #include "core_tests.gen.h" +#include + +#include +static guint flpigeon_hash_double(double v) { + if (std::isnan(v)) return (guint)0x7FF80000; + union { + double d; + uint64_t u; + } u; + u.d = v; + return (guint)(u.u ^ (u.u >> 32)); +} +static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if (fl_value_get_type(a) != fl_value_get_type(b)) { + return FALSE; + } + switch (fl_value_get_type(a)) { + case FL_VALUE_TYPE_BOOL: + return fl_value_get_bool(a) == fl_value_get_bool(b); + case FL_VALUE_TYPE_INT: + return fl_value_get_int(a) == fl_value_get_int(b); + case FL_VALUE_TYPE_FLOAT: { + double va = fl_value_get_float(a); + double vb = fl_value_get_float(b); + return va == vb || (std::isnan(va) && std::isnan(vb)); + } + case FL_VALUE_TYPE_STRING: + return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0; + case FL_VALUE_TYPE_UINT8_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), + fl_value_get_length(a)) == 0; + case FL_VALUE_TYPE_INT32_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), + fl_value_get_length(a) * sizeof(int32_t)) == 0; + case FL_VALUE_TYPE_INT64_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), + fl_value_get_length(a) * sizeof(int64_t)) == 0; + case FL_VALUE_TYPE_FLOAT_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), + fl_value_get_length(a) * sizeof(float)) == 0; + case FL_VALUE_TYPE_DOUBLE_LIST: + return fl_value_get_length(a) == fl_value_get_length(b) && + memcmp(fl_value_get_double_list(a), fl_value_get_double_list(b), + fl_value_get_length(a) * sizeof(double)) == 0; + case FL_VALUE_TYPE_LIST: { + size_t len = fl_value_get_length(a); + if (len != fl_value_get_length(b)) return FALSE; + for (size_t i = 0; i < len; i++) { + if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), + fl_value_get_list_value(b, i))) + return FALSE; + } + return TRUE; + } + case FL_VALUE_TYPE_MAP: { + size_t len = fl_value_get_length(a); + if (len != fl_value_get_length(b)) return FALSE; + for (size_t i = 0; i < len; i++) { + FlValue* key = fl_value_get_map_key(a, i); + FlValue* val = fl_value_get_map_value(a, i); + FlValue* b_val = fl_value_lookup(b, key); + if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE; + } + return TRUE; + } + default: + return FALSE; + } + return FALSE; +} +static guint flpigeon_deep_hash(FlValue* value) { + if (value == nullptr) return 0; + switch (fl_value_get_type(value)) { + case FL_VALUE_TYPE_BOOL: + return fl_value_get_bool(value) ? 1231 : 1237; + case FL_VALUE_TYPE_INT: { + int64_t v = fl_value_get_int(value); + return (guint)(v ^ (v >> 32)); + } + case FL_VALUE_TYPE_FLOAT: + return flpigeon_hash_double(fl_value_get_float(value)); + case FL_VALUE_TYPE_STRING: + return g_str_hash(fl_value_get_string(value)); + case FL_VALUE_TYPE_UINT8_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const uint8_t* data = fl_value_get_uint8_list(value); + for (size_t i = 0; i < len; i++) result = result * 31 + data[i]; + return result; + } + case FL_VALUE_TYPE_INT32_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const int32_t* data = fl_value_get_int32_list(value); + for (size_t i = 0; i < len; i++) result = result * 31 + (guint)data[i]; + return result; + } + case FL_VALUE_TYPE_INT64_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const int64_t* data = fl_value_get_int64_list(value); + for (size_t i = 0; i < len; i++) + result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); + return result; + } + case FL_VALUE_TYPE_FLOAT_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const float* data = fl_value_get_float_list(value); + for (size_t i = 0; i < len; i++) { + result = result * 31 + flpigeon_hash_double((double)data[i]); + } + return result; + } + case FL_VALUE_TYPE_DOUBLE_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + const double* data = fl_value_get_double_list(value); + for (size_t i = 0; i < len; i++) { + result = result * 31 + flpigeon_hash_double(data[i]); + } + return result; + } + case FL_VALUE_TYPE_LIST: { + guint result = 1; + size_t len = fl_value_get_length(value); + for (size_t i = 0; i < len; i++) { + result = + result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i)); + } + return result; + } + case FL_VALUE_TYPE_MAP: { + guint result = 0; + size_t len = fl_value_get_length(value); + for (size_t i = 0; i < len; i++) { + result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ + flpigeon_deep_hash(fl_value_get_map_value(value, i))); + } + return result; + } + default: + return (guint)fl_value_get_type(value); + } + return 0; +} + struct _CoreTestsPigeonTestUnusedClass { GObject parent_instance; @@ -69,6 +222,24 @@ core_tests_pigeon_test_unused_class_new_from_list(FlValue* values) { return core_tests_pigeon_test_unused_class_new(a_field); } +gboolean core_tests_pigeon_test_unused_class_equals( + CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if (!flpigeon_deep_equals(a->a_field, b->a_field)) { + return FALSE; + } + return TRUE; +} + +guint core_tests_pigeon_test_unused_class_hash( + CoreTestsPigeonTestUnusedClass* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_UNUSED_CLASS(self), 0); + guint result = 0; + result = result * 31 + flpigeon_deep_hash(self->a_field); + return result; +} + struct _CoreTestsPigeonTestAllTypes { GObject parent_instance; @@ -497,6 +668,184 @@ core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { object_map, list_map, map_map); } +gboolean core_tests_pigeon_test_all_types_equals( + CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if (a->a_bool != b->a_bool) { + return FALSE; + } + if (a->an_int != b->an_int) { + return FALSE; + } + if (a->an_int64 != b->an_int64) { + return FALSE; + } + if (!(a->a_double == b->a_double || + (std::isnan(a->a_double) && std::isnan(b->a_double)))) { + return FALSE; + } + if (a->a_byte_array != b->a_byte_array) { + if (a->a_byte_array == nullptr || b->a_byte_array == nullptr) return FALSE; + if (a->a_byte_array_length != b->a_byte_array_length) return FALSE; + if (memcmp(a->a_byte_array, b->a_byte_array, + a->a_byte_array_length * sizeof(uint8_t)) != 0) + return FALSE; + } + if (a->a4_byte_array != b->a4_byte_array) { + if (a->a4_byte_array == nullptr || b->a4_byte_array == nullptr) + return FALSE; + if (a->a4_byte_array_length != b->a4_byte_array_length) return FALSE; + if (memcmp(a->a4_byte_array, b->a4_byte_array, + a->a4_byte_array_length * sizeof(int32_t)) != 0) + return FALSE; + } + if (a->a8_byte_array != b->a8_byte_array) { + if (a->a8_byte_array == nullptr || b->a8_byte_array == nullptr) + return FALSE; + if (a->a8_byte_array_length != b->a8_byte_array_length) return FALSE; + if (memcmp(a->a8_byte_array, b->a8_byte_array, + a->a8_byte_array_length * sizeof(int64_t)) != 0) + return FALSE; + } + if (a->a_float_array != b->a_float_array) { + if (a->a_float_array == nullptr || b->a_float_array == nullptr) + return FALSE; + if (a->a_float_array_length != b->a_float_array_length) return FALSE; + if (memcmp(a->a_float_array, b->a_float_array, + a->a_float_array_length * sizeof(double)) != 0) + return FALSE; + } + if (a->an_enum != b->an_enum) { + return FALSE; + } + if (a->another_enum != b->another_enum) { + return FALSE; + } + if (g_strcmp0(a->a_string, b->a_string) != 0) { + return FALSE; + } + if (!flpigeon_deep_equals(a->an_object, b->an_object)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list, b->list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->string_list, b->string_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->int_list, b->int_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->double_list, b->double_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->bool_list, b->bool_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->enum_list, b->enum_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->object_list, b->object_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list_list, b->list_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map_list, b->map_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map, b->map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->string_map, b->string_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->int_map, b->int_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->enum_map, b->enum_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->object_map, b->object_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list_map, b->list_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map_map, b->map_map)) { + return FALSE; + } + return TRUE; +} + +guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), 0); + guint result = 0; + result = result * 31 + (guint)self->a_bool; + result = result * 31 + (guint)self->an_int; + result = result * 31 + (guint)self->an_int64; + result = result * 31 + flpigeon_hash_double(self->a_double); + { + size_t len = self->a_byte_array_length; + const const uint8_t** data = self->a_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)data[i]; + } + } + } + { + size_t len = self->a4_byte_array_length; + const const int32_t** data = self->a4_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)data[i]; + } + } + } + { + size_t len = self->a8_byte_array_length; + const const int64_t** data = self->a8_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); + } + } + } + { + size_t len = self->a_float_array_length; + const const double** data = self->a_float_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + flpigeon_hash_double(data[i]); + } + } + } + result = result * 31 + (guint)self->an_enum; + result = result * 31 + (guint)self->another_enum; + result = result * 31 + + (self->a_string != nullptr ? g_str_hash(self->a_string) : 0); + result = result * 31 + flpigeon_deep_hash(self->an_object); + result = result * 31 + flpigeon_deep_hash(self->list); + result = result * 31 + flpigeon_deep_hash(self->string_list); + result = result * 31 + flpigeon_deep_hash(self->int_list); + result = result * 31 + flpigeon_deep_hash(self->double_list); + result = result * 31 + flpigeon_deep_hash(self->bool_list); + result = result * 31 + flpigeon_deep_hash(self->enum_list); + result = result * 31 + flpigeon_deep_hash(self->object_list); + result = result * 31 + flpigeon_deep_hash(self->list_list); + result = result * 31 + flpigeon_deep_hash(self->map_list); + result = result * 31 + flpigeon_deep_hash(self->map); + result = result * 31 + flpigeon_deep_hash(self->string_map); + result = result * 31 + flpigeon_deep_hash(self->int_map); + result = result * 31 + flpigeon_deep_hash(self->enum_map); + result = result * 31 + flpigeon_deep_hash(self->object_map); + result = result * 31 + flpigeon_deep_hash(self->list_map); + result = result * 31 + flpigeon_deep_hash(self->map_map); + return result; +} + struct _CoreTestsPigeonTestAllNullableTypes { GObject parent_instance; @@ -1331,6 +1680,234 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { recursive_class_map); } +gboolean core_tests_pigeon_test_all_nullable_types_equals( + CoreTestsPigeonTestAllNullableTypes* a, + CoreTestsPigeonTestAllNullableTypes* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) + return FALSE; + if (a->a_nullable_bool != nullptr && + *a->a_nullable_bool != *b->a_nullable_bool) + return FALSE; + if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) + return FALSE; + if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) + return FALSE; + if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) + return FALSE; + if (a->a_nullable_int64 != nullptr && + *a->a_nullable_int64 != *b->a_nullable_int64) + return FALSE; + if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) + return FALSE; + if (a->a_nullable_double != nullptr && + !(*a->a_nullable_double == *b->a_nullable_double || + (std::isnan(*a->a_nullable_double) && + std::isnan(*b->a_nullable_double)))) + return FALSE; + if (a->a_nullable_byte_array != b->a_nullable_byte_array) { + if (a->a_nullable_byte_array == nullptr || + b->a_nullable_byte_array == nullptr) + return FALSE; + if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, + a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) + return FALSE; + } + if (a->a_nullable4_byte_array != b->a_nullable4_byte_array) { + if (a->a_nullable4_byte_array == nullptr || + b->a_nullable4_byte_array == nullptr) + return FALSE; + if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, + a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) + return FALSE; + } + if (a->a_nullable8_byte_array != b->a_nullable8_byte_array) { + if (a->a_nullable8_byte_array == nullptr || + b->a_nullable8_byte_array == nullptr) + return FALSE; + if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, + a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) + return FALSE; + } + if (a->a_nullable_float_array != b->a_nullable_float_array) { + if (a->a_nullable_float_array == nullptr || + b->a_nullable_float_array == nullptr) + return FALSE; + if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) + return FALSE; + if (memcmp(a->a_nullable_float_array, b->a_nullable_float_array, + a->a_nullable_float_array_length * sizeof(double)) != 0) + return FALSE; + } + if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) + return FALSE; + if (a->a_nullable_enum != nullptr && + *a->a_nullable_enum != *b->a_nullable_enum) + return FALSE; + if ((a->another_nullable_enum == nullptr) != + (b->another_nullable_enum == nullptr)) + return FALSE; + if (a->another_nullable_enum != nullptr && + *a->another_nullable_enum != *b->another_nullable_enum) + return FALSE; + if (g_strcmp0(a->a_nullable_string, b->a_nullable_string) != 0) { + return FALSE; + } + if (!flpigeon_deep_equals(a->a_nullable_object, b->a_nullable_object)) { + return FALSE; + } + if (!core_tests_pigeon_test_all_nullable_types_equals( + a->all_nullable_types, b->all_nullable_types)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list, b->list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->string_list, b->string_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->int_list, b->int_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->double_list, b->double_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->bool_list, b->bool_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->enum_list, b->enum_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->object_list, b->object_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list_list, b->list_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map_list, b->map_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->recursive_class_list, b->recursive_class_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map, b->map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->string_map, b->string_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->int_map, b->int_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->enum_map, b->enum_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->object_map, b->object_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list_map, b->list_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map_map, b->map_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->recursive_class_map, b->recursive_class_map)) { + return FALSE; + } + return TRUE; +} + +guint core_tests_pigeon_test_all_nullable_types_hash( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), 0); + guint result = 0; + result = + result * 31 + + (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); + result = result * 31 + + (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); + result = + result * 31 + + (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); + result = result * 31 + (self->a_nullable_double != nullptr + ? flpigeon_hash_double(*self->a_nullable_double) + : 0); + { + size_t len = self->a_nullable_byte_array_length; + const const uint8_t** data = self->a_nullable_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)data[i]; + } + } + } + { + size_t len = self->a_nullable4_byte_array_length; + const const int32_t** data = self->a_nullable4_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)data[i]; + } + } + } + { + size_t len = self->a_nullable8_byte_array_length; + const const int64_t** data = self->a_nullable8_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); + } + } + } + { + size_t len = self->a_nullable_float_array_length; + const const double** data = self->a_nullable_float_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + flpigeon_hash_double(data[i]); + } + } + } + result = + result * 31 + + (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); + result = result * 31 + (self->another_nullable_enum != nullptr + ? (guint)*self->another_nullable_enum + : 0); + result = result * 31 + (self->a_nullable_string != nullptr + ? g_str_hash(self->a_nullable_string) + : 0); + result = result * 31 + flpigeon_deep_hash(self->a_nullable_object); + result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash( + self->all_nullable_types); + result = result * 31 + flpigeon_deep_hash(self->list); + result = result * 31 + flpigeon_deep_hash(self->string_list); + result = result * 31 + flpigeon_deep_hash(self->int_list); + result = result * 31 + flpigeon_deep_hash(self->double_list); + result = result * 31 + flpigeon_deep_hash(self->bool_list); + result = result * 31 + flpigeon_deep_hash(self->enum_list); + result = result * 31 + flpigeon_deep_hash(self->object_list); + result = result * 31 + flpigeon_deep_hash(self->list_list); + result = result * 31 + flpigeon_deep_hash(self->map_list); + result = result * 31 + flpigeon_deep_hash(self->recursive_class_list); + result = result * 31 + flpigeon_deep_hash(self->map); + result = result * 31 + flpigeon_deep_hash(self->string_map); + result = result * 31 + flpigeon_deep_hash(self->int_map); + result = result * 31 + flpigeon_deep_hash(self->enum_map); + result = result * 31 + flpigeon_deep_hash(self->object_map); + result = result * 31 + flpigeon_deep_hash(self->list_map); + result = result * 31 + flpigeon_deep_hash(self->map_map); + result = result * 31 + flpigeon_deep_hash(self->recursive_class_map); + return result; +} + struct _CoreTestsPigeonTestAllNullableTypesWithoutRecursion { GObject parent_instance; @@ -2145,6 +2722,221 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( list_map, map_map); } +gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) + return FALSE; + if (a->a_nullable_bool != nullptr && + *a->a_nullable_bool != *b->a_nullable_bool) + return FALSE; + if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) + return FALSE; + if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) + return FALSE; + if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) + return FALSE; + if (a->a_nullable_int64 != nullptr && + *a->a_nullable_int64 != *b->a_nullable_int64) + return FALSE; + if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) + return FALSE; + if (a->a_nullable_double != nullptr && + !(*a->a_nullable_double == *b->a_nullable_double || + (std::isnan(*a->a_nullable_double) && + std::isnan(*b->a_nullable_double)))) + return FALSE; + if (a->a_nullable_byte_array != b->a_nullable_byte_array) { + if (a->a_nullable_byte_array == nullptr || + b->a_nullable_byte_array == nullptr) + return FALSE; + if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, + a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) + return FALSE; + } + if (a->a_nullable4_byte_array != b->a_nullable4_byte_array) { + if (a->a_nullable4_byte_array == nullptr || + b->a_nullable4_byte_array == nullptr) + return FALSE; + if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, + a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) + return FALSE; + } + if (a->a_nullable8_byte_array != b->a_nullable8_byte_array) { + if (a->a_nullable8_byte_array == nullptr || + b->a_nullable8_byte_array == nullptr) + return FALSE; + if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, + a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) + return FALSE; + } + if (a->a_nullable_float_array != b->a_nullable_float_array) { + if (a->a_nullable_float_array == nullptr || + b->a_nullable_float_array == nullptr) + return FALSE; + if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) + return FALSE; + if (memcmp(a->a_nullable_float_array, b->a_nullable_float_array, + a->a_nullable_float_array_length * sizeof(double)) != 0) + return FALSE; + } + if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) + return FALSE; + if (a->a_nullable_enum != nullptr && + *a->a_nullable_enum != *b->a_nullable_enum) + return FALSE; + if ((a->another_nullable_enum == nullptr) != + (b->another_nullable_enum == nullptr)) + return FALSE; + if (a->another_nullable_enum != nullptr && + *a->another_nullable_enum != *b->another_nullable_enum) + return FALSE; + if (g_strcmp0(a->a_nullable_string, b->a_nullable_string) != 0) { + return FALSE; + } + if (!flpigeon_deep_equals(a->a_nullable_object, b->a_nullable_object)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list, b->list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->string_list, b->string_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->int_list, b->int_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->double_list, b->double_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->bool_list, b->bool_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->enum_list, b->enum_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->object_list, b->object_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list_list, b->list_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map_list, b->map_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map, b->map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->string_map, b->string_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->int_map, b->int_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->enum_map, b->enum_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->object_map, b->object_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->list_map, b->list_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->map_map, b->map_map)) { + return FALSE; + } + return TRUE; +} + +guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), 0); + guint result = 0; + result = + result * 31 + + (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); + result = result * 31 + + (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); + result = + result * 31 + + (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); + result = result * 31 + (self->a_nullable_double != nullptr + ? flpigeon_hash_double(*self->a_nullable_double) + : 0); + { + size_t len = self->a_nullable_byte_array_length; + const const uint8_t** data = self->a_nullable_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)data[i]; + } + } + } + { + size_t len = self->a_nullable4_byte_array_length; + const const int32_t** data = self->a_nullable4_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)data[i]; + } + } + } + { + size_t len = self->a_nullable8_byte_array_length; + const const int64_t** data = self->a_nullable8_byte_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); + } + } + } + { + size_t len = self->a_nullable_float_array_length; + const const double** data = self->a_nullable_float_array; + if (data != nullptr) { + for (size_t i = 0; i < len; i++) { + result = result * 31 + flpigeon_hash_double(data[i]); + } + } + } + result = + result * 31 + + (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); + result = result * 31 + (self->another_nullable_enum != nullptr + ? (guint)*self->another_nullable_enum + : 0); + result = result * 31 + (self->a_nullable_string != nullptr + ? g_str_hash(self->a_nullable_string) + : 0); + result = result * 31 + flpigeon_deep_hash(self->a_nullable_object); + result = result * 31 + flpigeon_deep_hash(self->list); + result = result * 31 + flpigeon_deep_hash(self->string_list); + result = result * 31 + flpigeon_deep_hash(self->int_list); + result = result * 31 + flpigeon_deep_hash(self->double_list); + result = result * 31 + flpigeon_deep_hash(self->bool_list); + result = result * 31 + flpigeon_deep_hash(self->enum_list); + result = result * 31 + flpigeon_deep_hash(self->object_list); + result = result * 31 + flpigeon_deep_hash(self->list_list); + result = result * 31 + flpigeon_deep_hash(self->map_list); + result = result * 31 + flpigeon_deep_hash(self->map); + result = result * 31 + flpigeon_deep_hash(self->string_map); + result = result * 31 + flpigeon_deep_hash(self->int_map); + result = result * 31 + flpigeon_deep_hash(self->enum_map); + result = result * 31 + flpigeon_deep_hash(self->object_map); + result = result * 31 + flpigeon_deep_hash(self->list_map); + result = result * 31 + flpigeon_deep_hash(self->map_map); + return result; +} + struct _CoreTestsPigeonTestAllClassesWrapper { GObject parent_instance; @@ -2347,6 +3139,55 @@ core_tests_pigeon_test_all_classes_wrapper_new_from_list(FlValue* values) { class_list, nullable_class_list, class_map, nullable_class_map); } +gboolean core_tests_pigeon_test_all_classes_wrapper_equals( + CoreTestsPigeonTestAllClassesWrapper* a, + CoreTestsPigeonTestAllClassesWrapper* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if (!core_tests_pigeon_test_all_nullable_types_equals( + a->all_nullable_types, b->all_nullable_types)) { + return FALSE; + } + if (!core_tests_pigeon_test_all_nullable_types_without_recursion_equals( + a->all_nullable_types_without_recursion, + b->all_nullable_types_without_recursion)) { + return FALSE; + } + if (!core_tests_pigeon_test_all_types_equals(a->all_types, b->all_types)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->class_list, b->class_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->nullable_class_list, b->nullable_class_list)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->class_map, b->class_map)) { + return FALSE; + } + if (!flpigeon_deep_equals(a->nullable_class_map, b->nullable_class_map)) { + return FALSE; + } + return TRUE; +} + +guint core_tests_pigeon_test_all_classes_wrapper_hash( + CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), 0); + guint result = 0; + result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash( + self->all_nullable_types); + result = result * 31 + + core_tests_pigeon_test_all_nullable_types_without_recursion_hash( + self->all_nullable_types_without_recursion); + result = result * 31 + core_tests_pigeon_test_all_types_hash(self->all_types); + result = result * 31 + flpigeon_deep_hash(self->class_list); + result = result * 31 + flpigeon_deep_hash(self->nullable_class_list); + result = result * 31 + flpigeon_deep_hash(self->class_map); + result = result * 31 + flpigeon_deep_hash(self->nullable_class_map); + return result; +} + struct _CoreTestsPigeonTestTestMessage { GObject parent_instance; @@ -2409,6 +3250,24 @@ core_tests_pigeon_test_test_message_new_from_list(FlValue* values) { return core_tests_pigeon_test_test_message_new(test_list); } +gboolean core_tests_pigeon_test_test_message_equals( + CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b) { + if (a == b) return TRUE; + if (a == nullptr || b == nullptr) return FALSE; + if (!flpigeon_deep_equals(a->test_list, b->test_list)) { + return FALSE; + } + return TRUE; +} + +guint core_tests_pigeon_test_test_message_hash( + CoreTestsPigeonTestTestMessage* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_TEST_MESSAGE(self), 0); + guint result = 0; + result = result * 31 + flpigeon_deep_hash(self->test_list); + return result; +} + struct _CoreTestsPigeonTestMessageCodec { FlStandardMessageCodec parent_instance; }; diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h index f0f342e75439..a117cd018f1c 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h @@ -69,6 +69,29 @@ CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new( FlValue* core_tests_pigeon_test_unused_class_get_a_field( CoreTestsPigeonTestUnusedClass* object); +/** + * core_tests_pigeon_test_unused_class_equals: + * @a: a #CoreTestsPigeonTestUnusedClass. + * @b: another #CoreTestsPigeonTestUnusedClass. + * + * Checks if two #CoreTestsPigeonTestUnusedClass objects are equal. + * + * Returns: TRUE if @a and @b are equal. + */ +gboolean core_tests_pigeon_test_unused_class_equals( + CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b); + +/** + * core_tests_pigeon_test_unused_class_hash: + * @object: a #CoreTestsPigeonTestUnusedClass. + * + * Calculates a hash code for a #CoreTestsPigeonTestUnusedClass object. + * + * Returns: the hash code. + */ +guint core_tests_pigeon_test_unused_class_hash( + CoreTestsPigeonTestUnusedClass* object); + /** * CoreTestsPigeonTestAllTypes: * @@ -445,6 +468,29 @@ FlValue* core_tests_pigeon_test_all_types_get_list_map( FlValue* core_tests_pigeon_test_all_types_get_map_map( CoreTestsPigeonTestAllTypes* object); +/** + * core_tests_pigeon_test_all_types_equals: + * @a: a #CoreTestsPigeonTestAllTypes. + * @b: another #CoreTestsPigeonTestAllTypes. + * + * Checks if two #CoreTestsPigeonTestAllTypes objects are equal. + * + * Returns: TRUE if @a and @b are equal. + */ +gboolean core_tests_pigeon_test_all_types_equals( + CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b); + +/** + * core_tests_pigeon_test_all_types_hash: + * @object: a #CoreTestsPigeonTestAllTypes. + * + * Calculates a hash code for a #CoreTestsPigeonTestAllTypes object. + * + * Returns: the hash code. + */ +guint core_tests_pigeon_test_all_types_hash( + CoreTestsPigeonTestAllTypes* object); + /** * CoreTestsPigeonTestAllNullableTypes: * @@ -868,6 +914,30 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map( FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map( CoreTestsPigeonTestAllNullableTypes* object); +/** + * core_tests_pigeon_test_all_nullable_types_equals: + * @a: a #CoreTestsPigeonTestAllNullableTypes. + * @b: another #CoreTestsPigeonTestAllNullableTypes. + * + * Checks if two #CoreTestsPigeonTestAllNullableTypes objects are equal. + * + * Returns: TRUE if @a and @b are equal. + */ +gboolean core_tests_pigeon_test_all_nullable_types_equals( + CoreTestsPigeonTestAllNullableTypes* a, + CoreTestsPigeonTestAllNullableTypes* b); + +/** + * core_tests_pigeon_test_all_nullable_types_hash: + * @object: a #CoreTestsPigeonTestAllNullableTypes. + * + * Calculates a hash code for a #CoreTestsPigeonTestAllNullableTypes object. + * + * Returns: the hash code. + */ +guint core_tests_pigeon_test_all_nullable_types_hash( + CoreTestsPigeonTestAllNullableTypes* object); + /** * CoreTestsPigeonTestAllNullableTypesWithoutRecursion: * @@ -1279,6 +1349,32 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map( CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +/** + * core_tests_pigeon_test_all_nullable_types_without_recursion_equals: + * @a: a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. + * @b: another #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. + * + * Checks if two #CoreTestsPigeonTestAllNullableTypesWithoutRecursion objects + * are equal. + * + * Returns: TRUE if @a and @b are equal. + */ +gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b); + +/** + * core_tests_pigeon_test_all_nullable_types_without_recursion_hash: + * @object: a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. + * + * Calculates a hash code for a + * #CoreTestsPigeonTestAllNullableTypesWithoutRecursion object. + * + * Returns: the hash code. + */ +guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); + /** * CoreTestsPigeonTestAllClassesWrapper: * @@ -1396,6 +1492,30 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map( FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map( CoreTestsPigeonTestAllClassesWrapper* object); +/** + * core_tests_pigeon_test_all_classes_wrapper_equals: + * @a: a #CoreTestsPigeonTestAllClassesWrapper. + * @b: another #CoreTestsPigeonTestAllClassesWrapper. + * + * Checks if two #CoreTestsPigeonTestAllClassesWrapper objects are equal. + * + * Returns: TRUE if @a and @b are equal. + */ +gboolean core_tests_pigeon_test_all_classes_wrapper_equals( + CoreTestsPigeonTestAllClassesWrapper* a, + CoreTestsPigeonTestAllClassesWrapper* b); + +/** + * core_tests_pigeon_test_all_classes_wrapper_hash: + * @object: a #CoreTestsPigeonTestAllClassesWrapper. + * + * Calculates a hash code for a #CoreTestsPigeonTestAllClassesWrapper object. + * + * Returns: the hash code. + */ +guint core_tests_pigeon_test_all_classes_wrapper_hash( + CoreTestsPigeonTestAllClassesWrapper* object); + /** * CoreTestsPigeonTestTestMessage: * @@ -1428,6 +1548,29 @@ CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new( FlValue* core_tests_pigeon_test_test_message_get_test_list( CoreTestsPigeonTestTestMessage* object); +/** + * core_tests_pigeon_test_test_message_equals: + * @a: a #CoreTestsPigeonTestTestMessage. + * @b: another #CoreTestsPigeonTestTestMessage. + * + * Checks if two #CoreTestsPigeonTestTestMessage objects are equal. + * + * Returns: TRUE if @a and @b are equal. + */ +gboolean core_tests_pigeon_test_test_message_equals( + CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b); + +/** + * core_tests_pigeon_test_test_message_hash: + * @object: a #CoreTestsPigeonTestTestMessage. + * + * Calculates a hash code for a #CoreTestsPigeonTestTestMessage object. + * + * Returns: the hash code. + */ +guint core_tests_pigeon_test_test_message_hash( + CoreTestsPigeonTestTestMessage* object); + G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestMessageCodec, core_tests_pigeon_test_message_codec, CORE_TESTS_PIGEON_TEST, MESSAGE_CODEC, diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc b/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc new file mode 100644 index 000000000000..570f89b93698 --- /dev/null +++ b/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc @@ -0,0 +1,135 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include + +#include + +#include "pigeon/core_tests.gen.h" + +static CoreTestsPigeonTestAllNullableTypes* create_empty_all_nullable_types() { + return core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, 0, + nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr); +} + +TEST(Equality, AllNullableTypesNaN) { + double nan_val = NAN; + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all1 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, &nan_val, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all2 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, &nan_val, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); + + EXPECT_TRUE(core_tests_pigeon_test_all_nullable_types_equals(all1, all2)); + EXPECT_EQ(core_tests_pigeon_test_all_nullable_types_hash(all1), + core_tests_pigeon_test_all_nullable_types_hash(all2)); +} + +TEST(Equality, AllNullableTypesCollectionNaN) { + g_autoptr(FlValue) list1 = fl_value_new_list(); + fl_value_append_take(list1, fl_value_new_float(NAN)); + + g_autoptr(FlValue) list2 = fl_value_new_list(); + fl_value_append_take(list2, fl_value_new_float(NAN)); + + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all1 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, list1, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all2 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, list2, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); + + EXPECT_TRUE(core_tests_pigeon_test_all_nullable_types_equals(all1, all2)); + EXPECT_EQ(core_tests_pigeon_test_all_nullable_types_hash(all1), + core_tests_pigeon_test_all_nullable_types_hash(all2)); +} + +TEST(Equality, AllNullableTypesRecursive) { + g_autoptr(CoreTestsPigeonTestAllNullableTypes) nested1 = + create_empty_all_nullable_types(); + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all1 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nested1, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); + + g_autoptr(CoreTestsPigeonTestAllNullableTypes) nested2 = + create_empty_all_nullable_types(); + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all2 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nested2, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); + + EXPECT_TRUE(core_tests_pigeon_test_all_nullable_types_equals(all1, all2)); + EXPECT_EQ(core_tests_pigeon_test_all_nullable_types_hash(all1), + core_tests_pigeon_test_all_nullable_types_hash(all2)); +} + +TEST(Equality, AllTypesNumericLists) { + uint8_t bytes[] = {1, 2, 3}; + int32_t ints32[] = {4, 5}; + double doubles[] = {1.1, 2.2}; + + g_autoptr(CoreTestsPigeonTestAllTypes) all1 = + core_tests_pigeon_test_all_types_new( + TRUE, 1, 2, 3.3, bytes, 3, ints32, 2, nullptr, 0, doubles, 2, + PIGEON_INTEGRATION_TESTS_AN_ENUM_ONE, + PIGEON_INTEGRATION_TESTS_ANOTHER_ENUM_JUST_IN_CASE, "hello", nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr); + + g_autoptr(CoreTestsPigeonTestAllTypes) all2 = + core_tests_pigeon_test_all_types_new( + TRUE, 1, 2, 3.3, bytes, 3, ints32, 2, nullptr, 0, doubles, 2, + PIGEON_INTEGRATION_TESTS_AN_ENUM_ONE, + PIGEON_INTEGRATION_TESTS_ANOTHER_ENUM_JUST_IN_CASE, "hello", nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr); + + EXPECT_TRUE(core_tests_pigeon_test_all_types_equals(all1, all2)); + EXPECT_EQ(core_tests_pigeon_test_all_types_hash(all1), + core_tests_pigeon_test_all_types_hash(all2)); + + // Change one element in a numeric list + doubles[1] = 2.3; + g_autoptr(CoreTestsPigeonTestAllTypes) all3 = + core_tests_pigeon_test_all_types_new( + TRUE, 1, 2, 3.3, bytes, 3, ints32, 2, nullptr, 0, doubles, 2, + PIGEON_INTEGRATION_TESTS_AN_ENUM_ONE, + PIGEON_INTEGRATION_TESTS_ANOTHER_ENUM_JUST_IN_CASE, "hello", nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr); + + EXPECT_FALSE(core_tests_pigeon_test_all_types_equals(all1, all3)); + EXPECT_NE(core_tests_pigeon_test_all_types_hash(all1), + core_tests_pigeon_test_all_types_hash(all3)); +} diff --git a/packages/pigeon/test/gobject_generator_test.dart b/packages/pigeon/test/gobject_generator_test.dart index c9ef46a3aa43..d8e4c58eb8b3 100644 --- a/packages/pigeon/test/gobject_generator_test.dart +++ b/packages/pigeon/test/gobject_generator_test.dart @@ -1035,4 +1035,63 @@ void main() { expect(code, contains('const int test_package_object_type_id = 131;')); } }); + + test('data classes handle equality and hashing', () { + final inputClass = Class( + name: 'Input', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'String', isNullable: true), + name: 'input', + ), + NamedType( + type: const TypeDeclaration(baseName: 'double', isNullable: false), + name: 'someDouble', + ), + NamedType( + type: const TypeDeclaration(baseName: 'Uint8List', isNullable: false), + name: 'someBytes', + ), + ], + ); + final root = Root( + apis: [], + classes: [inputClass], + enums: [], + ); + { + final sink = StringBuffer(); + const generator = GObjectGenerator(); + final generatorOptions = OutputFileOptions( + fileType: FileType.source, + languageOptions: const InternalGObjectOptions( + headerIncludePath: '', + gobjectHeaderOut: '', + gobjectSourceOut: '', + ), + ); + generator.generate( + generatorOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('gboolean test_package_input_equals(')); + expect(code, contains('guint test_package_input_hash(')); + expect( + code, + contains( + 'if (!(a->some_double == b->some_double || (std::isnan(a->some_double) && std::isnan(b->some_double)))) {', + ), + ); + expect( + code, + contains( + 'result = result * 31 + flpigeon_hash_double(self->some_double);', + ), + ); + expect(code, contains('memcmp(a->some_bytes, b->some_bytes')); + } + }); } From ddc41c2c0ffcfe2a426a327153518d8475f1d067 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 12:29:49 -0800 Subject: [PATCH 10/33] analyze --- packages/pigeon/CHANGELOG.md | 5 +- .../app/lib/src/event_channel_messages.g.dart | 8 +- .../example/app/lib/src/messages.g.dart | 8 +- packages/pigeon/lib/core_tests.gen.dart | 7504 ----------------- .../pigeon/lib/src/dart/dart_generator.dart | 8 +- .../lib/src/kotlin/kotlin_generator.dart | 2 +- .../lib/src/generated/core_tests.gen.dart | 8 +- .../lib/src/generated/enum.gen.dart | 8 +- .../generated/event_channel_tests.gen.dart | 8 +- .../src/generated/flutter_unittests.gen.dart | 8 +- .../lib/src/generated/message.gen.dart | 8 +- .../src/generated/non_null_fields.gen.dart | 8 +- .../lib/src/generated/null_fields.gen.dart | 8 +- .../test/equality_test.dart | 3 - 14 files changed, 64 insertions(+), 7530 deletions(-) delete mode 100644 packages/pigeon/lib/core_tests.gen.dart diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index 86633979b033..b06184e7e850 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,6 +1,6 @@ ## 26.2.0 -* [swift] [kotlin] [dart] [java] [objc] [cpp] Optimizes and improves data class equality and hashing. +* [swift] [kotlin] [dart] [java] [objc] [cpp] [gobject] Optimizes and improves data class equality and hashing. * Avoids `toList()` and `encode()` calls to reduce object allocations during comparisons. * Adds `deepEquals` and `deepHash` utilities for robust recursive handling of nested collections and arrays. * Handles `NaN` correctly in equality and hashing across all platforms. @@ -8,7 +8,8 @@ * [dart] Fixes `Map` hashing to be order-independent. * [kotlin] Fixes compilation error in `equals` method. * [objc] Fixes build failure when helper functions are unused. - * [cpp] Adds `` include for `std::isnan` support. + * [cpp] [gobject] Adds `` include for `std::isnan` support. + * [gobject] Fixes `Map` hashing to be order-independent. ## 26.1.10 diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 8056799344da..88aaa0832b2f 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -12,8 +12,12 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index 054484d3cc02..2d2d97e67b92 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -51,8 +51,12 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/lib/core_tests.gen.dart b/packages/pigeon/lib/core_tests.gen.dart deleted file mode 100644 index 485b24ac280e..000000000000 --- a/packages/pigeon/lib/core_tests.gen.dart +++ /dev/null @@ -1,7504 +0,0 @@ -// Autogenerated from Pigeon (v26.1.9), do not edit directly. -// See also: https://pub.dev/packages/pigeon -// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, omit_obvious_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers - -import 'dart:async'; -import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; - -import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; -import 'package:flutter/services.dart'; - -PlatformException _createConnectionError(String channelName) { - return PlatformException( - code: 'channel-error', - message: 'Unable to establish connection on channel: "$channelName".', - ); -} - -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { - if (empty) { - return []; - } - if (error == null) { - return [result]; - } - return [error.code, error.message, error.details]; -} - -bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; - if (a is List && b is List) { - return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); - } - if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); - } - return false; -} - -int _deepHash(Object? value) { - if (value is List) { - return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { - return Object.hashAll( - value.entries.map( - (MapEntry entry) => - Object.hash(_deepHash(entry.key), _deepHash(entry.value)), - ), - ); - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - return value.hashCode; -} - -enum AnEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } - -enum AnotherEnum { justInCase } - -class UnusedClass { - UnusedClass({this.aField}); - - Object? aField; - - List _toList() { - return [aField]; - } - - Object encode() { - return _toList(); - } - - static UnusedClass decode(Object result) { - result as List; - return UnusedClass(aField: result[0]); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! UnusedClass || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(aField, other.aField); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// A class containing all supported types. -class AllTypes { - AllTypes({ - this.aBool = false, - this.anInt = 0, - this.anInt64 = 0, - this.aDouble = 0, - required this.aByteArray, - required this.a4ByteArray, - required this.a8ByteArray, - required this.aFloatArray, - this.anEnum = AnEnum.one, - this.anotherEnum = AnotherEnum.justInCase, - this.aString = '', - this.anObject = 0, - required this.list, - required this.stringList, - required this.intList, - required this.doubleList, - required this.boolList, - required this.enumList, - required this.objectList, - required this.listList, - required this.mapList, - required this.map, - required this.stringMap, - required this.intMap, - required this.enumMap, - required this.objectMap, - required this.listMap, - required this.mapMap, - }); - - bool aBool; - - int anInt; - - int anInt64; - - double aDouble; - - Uint8List aByteArray; - - Int32List a4ByteArray; - - Int64List a8ByteArray; - - Float64List aFloatArray; - - AnEnum anEnum; - - AnotherEnum anotherEnum; - - String aString; - - Object anObject; - - List list; - - List stringList; - - List intList; - - List doubleList; - - List boolList; - - List enumList; - - List objectList; - - List> listList; - - List> mapList; - - Map map; - - Map stringMap; - - Map intMap; - - Map enumMap; - - Map objectMap; - - Map> listMap; - - Map> mapMap; - - List _toList() { - return [ - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - ]; - } - - Object encode() { - return _toList(); - } - - static AllTypes decode(Object result) { - result as List; - return AllTypes( - aBool: result[0]! as bool, - anInt: result[1]! as int, - anInt64: result[2]! as int, - aDouble: result[3]! as double, - aByteArray: result[4]! as Uint8List, - a4ByteArray: result[5]! as Int32List, - a8ByteArray: result[6]! as Int64List, - aFloatArray: result[7]! as Float64List, - anEnum: result[8]! as AnEnum, - anotherEnum: result[9]! as AnotherEnum, - aString: result[10]! as String, - anObject: result[11]!, - list: result[12]! as List, - stringList: (result[13] as List?)!.cast(), - intList: (result[14] as List?)!.cast(), - doubleList: (result[15] as List?)!.cast(), - boolList: (result[16] as List?)!.cast(), - enumList: (result[17] as List?)!.cast(), - objectList: (result[18] as List?)!.cast(), - listList: (result[19] as List?)!.cast>(), - mapList: (result[20] as List?)!.cast>(), - map: result[21]! as Map, - stringMap: (result[22] as Map?)!.cast(), - intMap: (result[23] as Map?)!.cast(), - enumMap: (result[24] as Map?)!.cast(), - objectMap: (result[25] as Map?)!.cast(), - listMap: (result[26] as Map?)! - .cast>(), - mapMap: (result[27] as Map?)! - .cast>(), - ); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! AllTypes || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(aBool, other.aBool) && - _deepEquals(anInt, other.anInt) && - _deepEquals(anInt64, other.anInt64) && - _deepEquals(aDouble, other.aDouble) && - _deepEquals(aByteArray, other.aByteArray) && - _deepEquals(a4ByteArray, other.a4ByteArray) && - _deepEquals(a8ByteArray, other.a8ByteArray) && - _deepEquals(aFloatArray, other.aFloatArray) && - _deepEquals(anEnum, other.anEnum) && - _deepEquals(anotherEnum, other.anotherEnum) && - _deepEquals(aString, other.aString) && - _deepEquals(anObject, other.anObject) && - _deepEquals(list, other.list) && - _deepEquals(stringList, other.stringList) && - _deepEquals(intList, other.intList) && - _deepEquals(doubleList, other.doubleList) && - _deepEquals(boolList, other.boolList) && - _deepEquals(enumList, other.enumList) && - _deepEquals(objectList, other.objectList) && - _deepEquals(listList, other.listList) && - _deepEquals(mapList, other.mapList) && - _deepEquals(map, other.map) && - _deepEquals(stringMap, other.stringMap) && - _deepEquals(intMap, other.intMap) && - _deepEquals(enumMap, other.enumMap) && - _deepEquals(objectMap, other.objectMap) && - _deepEquals(listMap, other.listMap) && - _deepEquals(mapMap, other.mapMap); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// A class containing all supported nullable types. -class AllNullableTypes { - AllNullableTypes({ - this.aNullableBool, - this.aNullableInt, - this.aNullableInt64, - this.aNullableDouble, - this.aNullableByteArray, - this.aNullable4ByteArray, - this.aNullable8ByteArray, - this.aNullableFloatArray, - this.aNullableEnum, - this.anotherNullableEnum, - this.aNullableString, - this.aNullableObject, - this.allNullableTypes, - this.list, - this.stringList, - this.intList, - this.doubleList, - this.boolList, - this.enumList, - this.objectList, - this.listList, - this.mapList, - this.recursiveClassList, - this.map, - this.stringMap, - this.intMap, - this.enumMap, - this.objectMap, - this.listMap, - this.mapMap, - this.recursiveClassMap, - }); - - bool? aNullableBool; - - int? aNullableInt; - - int? aNullableInt64; - - double? aNullableDouble; - - Uint8List? aNullableByteArray; - - Int32List? aNullable4ByteArray; - - Int64List? aNullable8ByteArray; - - Float64List? aNullableFloatArray; - - AnEnum? aNullableEnum; - - AnotherEnum? anotherNullableEnum; - - String? aNullableString; - - Object? aNullableObject; - - AllNullableTypes? allNullableTypes; - - List? list; - - List? stringList; - - List? intList; - - List? doubleList; - - List? boolList; - - List? enumList; - - List? objectList; - - List?>? listList; - - List?>? mapList; - - List? recursiveClassList; - - Map? map; - - Map? stringMap; - - Map? intMap; - - Map? enumMap; - - Map? objectMap; - - Map?>? listMap; - - Map?>? mapMap; - - Map? recursiveClassMap; - - List _toList() { - return [ - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap, - ]; - } - - Object encode() { - return _toList(); - } - - static AllNullableTypes decode(Object result) { - result as List; - return AllNullableTypes( - aNullableBool: result[0] as bool?, - aNullableInt: result[1] as int?, - aNullableInt64: result[2] as int?, - aNullableDouble: result[3] as double?, - aNullableByteArray: result[4] as Uint8List?, - aNullable4ByteArray: result[5] as Int32List?, - aNullable8ByteArray: result[6] as Int64List?, - aNullableFloatArray: result[7] as Float64List?, - aNullableEnum: result[8] as AnEnum?, - anotherNullableEnum: result[9] as AnotherEnum?, - aNullableString: result[10] as String?, - aNullableObject: result[11], - allNullableTypes: result[12] as AllNullableTypes?, - list: result[13] as List?, - stringList: (result[14] as List?)?.cast(), - intList: (result[15] as List?)?.cast(), - doubleList: (result[16] as List?)?.cast(), - boolList: (result[17] as List?)?.cast(), - enumList: (result[18] as List?)?.cast(), - objectList: (result[19] as List?)?.cast(), - listList: (result[20] as List?)?.cast?>(), - mapList: (result[21] as List?)?.cast?>(), - recursiveClassList: (result[22] as List?) - ?.cast(), - map: result[23] as Map?, - stringMap: (result[24] as Map?) - ?.cast(), - intMap: (result[25] as Map?)?.cast(), - enumMap: (result[26] as Map?)?.cast(), - objectMap: (result[27] as Map?) - ?.cast(), - listMap: (result[28] as Map?) - ?.cast?>(), - mapMap: (result[29] as Map?) - ?.cast?>(), - recursiveClassMap: (result[30] as Map?) - ?.cast(), - ); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! AllNullableTypes || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(aNullableBool, other.aNullableBool) && - _deepEquals(aNullableInt, other.aNullableInt) && - _deepEquals(aNullableInt64, other.aNullableInt64) && - _deepEquals(aNullableDouble, other.aNullableDouble) && - _deepEquals(aNullableByteArray, other.aNullableByteArray) && - _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && - _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && - _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && - _deepEquals(aNullableEnum, other.aNullableEnum) && - _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && - _deepEquals(aNullableString, other.aNullableString) && - _deepEquals(aNullableObject, other.aNullableObject) && - _deepEquals(allNullableTypes, other.allNullableTypes) && - _deepEquals(list, other.list) && - _deepEquals(stringList, other.stringList) && - _deepEquals(intList, other.intList) && - _deepEquals(doubleList, other.doubleList) && - _deepEquals(boolList, other.boolList) && - _deepEquals(enumList, other.enumList) && - _deepEquals(objectList, other.objectList) && - _deepEquals(listList, other.listList) && - _deepEquals(mapList, other.mapList) && - _deepEquals(recursiveClassList, other.recursiveClassList) && - _deepEquals(map, other.map) && - _deepEquals(stringMap, other.stringMap) && - _deepEquals(intMap, other.intMap) && - _deepEquals(enumMap, other.enumMap) && - _deepEquals(objectMap, other.objectMap) && - _deepEquals(listMap, other.listMap) && - _deepEquals(mapMap, other.mapMap) && - _deepEquals(recursiveClassMap, other.recursiveClassMap); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// The primary purpose for this class is to ensure coverage of Swift structs -/// with nullable items, as the primary [AllNullableTypes] class is being used to -/// test Swift classes. -class AllNullableTypesWithoutRecursion { - AllNullableTypesWithoutRecursion({ - this.aNullableBool, - this.aNullableInt, - this.aNullableInt64, - this.aNullableDouble, - this.aNullableByteArray, - this.aNullable4ByteArray, - this.aNullable8ByteArray, - this.aNullableFloatArray, - this.aNullableEnum, - this.anotherNullableEnum, - this.aNullableString, - this.aNullableObject, - this.list, - this.stringList, - this.intList, - this.doubleList, - this.boolList, - this.enumList, - this.objectList, - this.listList, - this.mapList, - this.map, - this.stringMap, - this.intMap, - this.enumMap, - this.objectMap, - this.listMap, - this.mapMap, - }); - - bool? aNullableBool; - - int? aNullableInt; - - int? aNullableInt64; - - double? aNullableDouble; - - Uint8List? aNullableByteArray; - - Int32List? aNullable4ByteArray; - - Int64List? aNullable8ByteArray; - - Float64List? aNullableFloatArray; - - AnEnum? aNullableEnum; - - AnotherEnum? anotherNullableEnum; - - String? aNullableString; - - Object? aNullableObject; - - List? list; - - List? stringList; - - List? intList; - - List? doubleList; - - List? boolList; - - List? enumList; - - List? objectList; - - List?>? listList; - - List?>? mapList; - - Map? map; - - Map? stringMap; - - Map? intMap; - - Map? enumMap; - - Map? objectMap; - - Map?>? listMap; - - Map?>? mapMap; - - List _toList() { - return [ - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - ]; - } - - Object encode() { - return _toList(); - } - - static AllNullableTypesWithoutRecursion decode(Object result) { - result as List; - return AllNullableTypesWithoutRecursion( - aNullableBool: result[0] as bool?, - aNullableInt: result[1] as int?, - aNullableInt64: result[2] as int?, - aNullableDouble: result[3] as double?, - aNullableByteArray: result[4] as Uint8List?, - aNullable4ByteArray: result[5] as Int32List?, - aNullable8ByteArray: result[6] as Int64List?, - aNullableFloatArray: result[7] as Float64List?, - aNullableEnum: result[8] as AnEnum?, - anotherNullableEnum: result[9] as AnotherEnum?, - aNullableString: result[10] as String?, - aNullableObject: result[11], - list: result[12] as List?, - stringList: (result[13] as List?)?.cast(), - intList: (result[14] as List?)?.cast(), - doubleList: (result[15] as List?)?.cast(), - boolList: (result[16] as List?)?.cast(), - enumList: (result[17] as List?)?.cast(), - objectList: (result[18] as List?)?.cast(), - listList: (result[19] as List?)?.cast?>(), - mapList: (result[20] as List?)?.cast?>(), - map: result[21] as Map?, - stringMap: (result[22] as Map?) - ?.cast(), - intMap: (result[23] as Map?)?.cast(), - enumMap: (result[24] as Map?)?.cast(), - objectMap: (result[25] as Map?) - ?.cast(), - listMap: (result[26] as Map?) - ?.cast?>(), - mapMap: (result[27] as Map?) - ?.cast?>(), - ); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! AllNullableTypesWithoutRecursion || - other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(aNullableBool, other.aNullableBool) && - _deepEquals(aNullableInt, other.aNullableInt) && - _deepEquals(aNullableInt64, other.aNullableInt64) && - _deepEquals(aNullableDouble, other.aNullableDouble) && - _deepEquals(aNullableByteArray, other.aNullableByteArray) && - _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && - _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && - _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && - _deepEquals(aNullableEnum, other.aNullableEnum) && - _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && - _deepEquals(aNullableString, other.aNullableString) && - _deepEquals(aNullableObject, other.aNullableObject) && - _deepEquals(list, other.list) && - _deepEquals(stringList, other.stringList) && - _deepEquals(intList, other.intList) && - _deepEquals(doubleList, other.doubleList) && - _deepEquals(boolList, other.boolList) && - _deepEquals(enumList, other.enumList) && - _deepEquals(objectList, other.objectList) && - _deepEquals(listList, other.listList) && - _deepEquals(mapList, other.mapList) && - _deepEquals(map, other.map) && - _deepEquals(stringMap, other.stringMap) && - _deepEquals(intMap, other.intMap) && - _deepEquals(enumMap, other.enumMap) && - _deepEquals(objectMap, other.objectMap) && - _deepEquals(listMap, other.listMap) && - _deepEquals(mapMap, other.mapMap); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// A class for testing nested class handling. -/// -/// This is needed to test nested nullable and non-nullable classes, -/// `AllNullableTypes` is non-nullable here as it is easier to instantiate -/// than `AllTypes` when testing doesn't require both (ie. testing null classes). -class AllClassesWrapper { - AllClassesWrapper({ - required this.allNullableTypes, - this.allNullableTypesWithoutRecursion, - this.allTypes, - required this.classList, - this.nullableClassList, - required this.classMap, - this.nullableClassMap, - }); - - AllNullableTypes allNullableTypes; - - AllNullableTypesWithoutRecursion? allNullableTypesWithoutRecursion; - - AllTypes? allTypes; - - List classList; - - List? nullableClassList; - - Map classMap; - - Map? nullableClassMap; - - List _toList() { - return [ - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap, - ]; - } - - Object encode() { - return _toList(); - } - - static AllClassesWrapper decode(Object result) { - result as List; - return AllClassesWrapper( - allNullableTypes: result[0]! as AllNullableTypes, - allNullableTypesWithoutRecursion: - result[1] as AllNullableTypesWithoutRecursion?, - allTypes: result[2] as AllTypes?, - classList: (result[3] as List?)!.cast(), - nullableClassList: (result[4] as List?) - ?.cast(), - classMap: (result[5] as Map?)!.cast(), - nullableClassMap: (result[6] as Map?) - ?.cast(), - ); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! AllClassesWrapper || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(allNullableTypes, other.allNullableTypes) && - _deepEquals( - allNullableTypesWithoutRecursion, - other.allNullableTypesWithoutRecursion, - ) && - _deepEquals(allTypes, other.allTypes) && - _deepEquals(classList, other.classList) && - _deepEquals(nullableClassList, other.nullableClassList) && - _deepEquals(classMap, other.classMap) && - _deepEquals(nullableClassMap, other.nullableClassMap); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// A data class containing a List, used in unit tests. -class TestMessage { - TestMessage({this.testList}); - - List? testList; - - List _toList() { - return [testList]; - } - - Object encode() { - return _toList(); - } - - static TestMessage decode(Object result) { - result as List; - return TestMessage(testList: result[0] as List?); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! TestMessage || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(testList, other.testList); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -class _PigeonCodec extends StandardMessageCodec { - const _PigeonCodec(); - @override - void writeValue(WriteBuffer buffer, Object? value) { - if (value is int) { - buffer.putUint8(4); - buffer.putInt64(value); - } else if (value is AnEnum) { - buffer.putUint8(129); - writeValue(buffer, value.index); - } else if (value is AnotherEnum) { - buffer.putUint8(130); - writeValue(buffer, value.index); - } else if (value is UnusedClass) { - buffer.putUint8(131); - writeValue(buffer, value.encode()); - } else if (value is AllTypes) { - buffer.putUint8(132); - writeValue(buffer, value.encode()); - } else if (value is AllNullableTypes) { - buffer.putUint8(133); - writeValue(buffer, value.encode()); - } else if (value is AllNullableTypesWithoutRecursion) { - buffer.putUint8(134); - writeValue(buffer, value.encode()); - } else if (value is AllClassesWrapper) { - buffer.putUint8(135); - writeValue(buffer, value.encode()); - } else if (value is TestMessage) { - buffer.putUint8(136); - writeValue(buffer, value.encode()); - } else { - super.writeValue(buffer, value); - } - } - - @override - Object? readValueOfType(int type, ReadBuffer buffer) { - switch (type) { - case 129: - final value = readValue(buffer) as int?; - return value == null ? null : AnEnum.values[value]; - case 130: - final value = readValue(buffer) as int?; - return value == null ? null : AnotherEnum.values[value]; - case 131: - return UnusedClass.decode(readValue(buffer)!); - case 132: - return AllTypes.decode(readValue(buffer)!); - case 133: - return AllNullableTypes.decode(readValue(buffer)!); - case 134: - return AllNullableTypesWithoutRecursion.decode(readValue(buffer)!); - case 135: - return AllClassesWrapper.decode(readValue(buffer)!); - case 136: - return TestMessage.decode(readValue(buffer)!); - default: - return super.readValueOfType(type, buffer); - } - } -} - -/// The core interface that each host language plugin must implement in -/// platform_test integration tests. -class HostIntegrationCoreApi { - /// Constructor for [HostIntegrationCoreApi]. The [binaryMessenger] named argument is - /// available for dependency injection. If it is left null, the default - /// BinaryMessenger will be used which routes to the host platform. - HostIntegrationCoreApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - final BinaryMessenger? pigeonVar_binaryMessenger; - - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - final String pigeonVar_messageChannelSuffix; - - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic calling. - Future noop() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return; - } - } - - /// Returns the passed object, to test serialization and deserialization. - Future echoAllTypes(AllTypes everything) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllTypes?)!; - } - } - - /// Returns an error, to test error handling. - Future throwError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return pigeonVar_replyList[0]; - } - } - - /// Returns an error from a void function, to test error handling. - Future throwErrorFromVoid() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return; - } - } - - /// Returns a Flutter error, to test error handling. - Future throwFlutterError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return pigeonVar_replyList[0]; - } - } - - /// Returns passed in int. - Future echoInt(int anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as int?)!; - } - } - - /// Returns passed in double. - Future echoDouble(double aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as double?)!; - } - } - - /// Returns the passed in boolean. - Future echoBool(bool aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as bool?)!; - } - } - - /// Returns the passed in string. - Future echoString(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as String?)!; - } - } - - /// Returns the passed in Uint8List. - Future echoUint8List(Uint8List aUint8List) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aUint8List], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Uint8List?)!; - } - } - - /// Returns the passed in generic Object. - Future echoObject(Object anObject) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anObject], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return pigeonVar_replyList[0]!; - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future> echoList(List list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)!.cast(); - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future> echoEnumList(List enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)!.cast(); - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future> echoClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future> echoNonNullEnumList(List enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)!.cast(); - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future> echoNonNullClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoMap(Map map) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoIntMap(Map intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullIntMap(Map intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed class to test nested class serialization and deserialization. - Future echoClassWrapper(AllClassesWrapper wrapper) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [wrapper], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllClassesWrapper?)!; - } - } - - /// Returns the passed enum to test serialization and deserialization. - Future echoEnum(AnEnum anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AnEnum?)!; - } - } - - /// Returns the passed enum to test serialization and deserialization. - Future echoAnotherEnum(AnotherEnum anotherEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AnotherEnum?)!; - } - } - - /// Returns the default string. - Future echoNamedDefaultString({String aString = 'default'}) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as String?)!; - } - } - - /// Returns passed in double. - Future echoOptionalDefaultDouble([double aDouble = 3.14]) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as double?)!; - } - } - - /// Returns passed in int. - Future echoRequiredInt({required int anInt}) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as int?)!; - } - } - - /// Returns the passed object, to test serialization and deserialization. - Future echoAllNullableTypes( - AllNullableTypes? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypes?); - } - } - - /// Returns the passed object, to test serialization and deserialization. - Future - echoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); - } - } - - /// Returns the inner `aString` value from the wrapped object, to test - /// sending of nested objects. - Future extractNestedNullableString(AllClassesWrapper wrapper) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [wrapper], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as String?); - } - } - - /// Returns the inner `aString` value from the wrapped object, to test - /// sending of nested objects. - Future createNestedNullableString( - String? nullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [nullableString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllClassesWrapper?)!; - } - } - - /// Returns passed in arguments of multiple types. - Future sendMultipleNullableTypes( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool, aNullableInt, aNullableString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypes?)!; - } - } - - /// Returns passed in arguments of multiple types. - Future - sendMultipleNullableTypesWithoutRecursion( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool, aNullableInt, aNullableString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?)!; - } - } - - /// Returns passed in int. - Future echoNullableInt(int? aNullableInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableInt], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as int?); - } - } - - /// Returns passed in double. - Future echoNullableDouble(double? aNullableDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableDouble], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as double?); - } - } - - /// Returns the passed in boolean. - Future echoNullableBool(bool? aNullableBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as bool?); - } - } - - /// Returns the passed in string. - Future echoNullableString(String? aNullableString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as String?); - } - } - - /// Returns the passed in Uint8List. - Future echoNullableUint8List( - Uint8List? aNullableUint8List, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableUint8List], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Uint8List?); - } - } - - /// Returns the passed in generic Object. - Future echoNullableObject(Object? aNullableObject) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableObject], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return pigeonVar_replyList[0]; - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableList(List? aNullableList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?)?.cast(); - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableEnumList(List? enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?)?.cast(); - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableNonNullEnumList( - List? enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?)?.cast(); - } - } - - /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableNonNullClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableMap( - Map? map, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableIntMap(Map? intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullIntMap( - Map? intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future echoNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AnEnum?); - } - } - - Future echoAnotherNullableEnum(AnotherEnum? anotherEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AnotherEnum?); - } - } - - /// Returns passed in int. - Future echoOptionalNullableInt([int? aNullableInt]) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableInt], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as int?); - } - } - - /// Returns the passed in string. - Future echoNamedNullableString({String? aNullableString}) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as String?); - } - } - - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic asynchronous calling. - Future noopAsync() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return; - } - } - - /// Returns passed in int asynchronously. - Future echoAsyncInt(int anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as int?)!; - } - } - - /// Returns passed in double asynchronously. - Future echoAsyncDouble(double aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as double?)!; - } - } - - /// Returns the passed in boolean asynchronously. - Future echoAsyncBool(bool aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as bool?)!; - } - } - - /// Returns the passed string asynchronously. - Future echoAsyncString(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as String?)!; - } - } - - /// Returns the passed in Uint8List asynchronously. - Future echoAsyncUint8List(Uint8List aUint8List) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aUint8List], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Uint8List?)!; - } - } - - /// Returns the passed in generic Object asynchronously. - Future echoAsyncObject(Object anObject) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anObject], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return pigeonVar_replyList[0]!; - } - } - - /// Returns the passed list, to test asynchronous serialization and deserialization. - Future> echoAsyncList(List list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)!.cast(); - } - } - - /// Returns the passed list, to test asynchronous serialization and deserialization. - Future> echoAsyncEnumList(List enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)!.cast(); - } - } - - /// Returns the passed list, to test asynchronous serialization and deserialization. - Future> echoAsyncClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncMap(Map map) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncIntMap(Map intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - /// Returns the passed enum, to test asynchronous serialization and deserialization. - Future echoAsyncEnum(AnEnum anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AnEnum?)!; - } - } - - /// Returns the passed enum, to test asynchronous serialization and deserialization. - Future echoAnotherAsyncEnum(AnotherEnum anotherEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AnotherEnum?)!; - } - } - - /// Responds with an error from an async function returning a value. - Future throwAsyncError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return pigeonVar_replyList[0]; - } - } - - /// Responds with an error from an async void function. - Future throwAsyncErrorFromVoid() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return; - } - } - - /// Responds with a Flutter error from an async function returning a value. - Future throwAsyncFlutterError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return pigeonVar_replyList[0]; - } - } - - /// Returns the passed object, to test async serialization and deserialization. - Future echoAsyncAllTypes(AllTypes everything) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllTypes?)!; - } - } - - /// Returns the passed object, to test serialization and deserialization. - Future echoAsyncNullableAllNullableTypes( - AllNullableTypes? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypes?); - } - } - - /// Returns the passed object, to test serialization and deserialization. - Future - echoAsyncNullableAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); - } - } - - /// Returns passed in int asynchronously. - Future echoAsyncNullableInt(int? anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as int?); - } - } - - /// Returns passed in double asynchronously. - Future echoAsyncNullableDouble(double? aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as double?); - } - } - - /// Returns the passed in boolean asynchronously. - Future echoAsyncNullableBool(bool? aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as bool?); - } - } - - /// Returns the passed string asynchronously. - Future echoAsyncNullableString(String? aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as String?); - } - } - - /// Returns the passed in Uint8List asynchronously. - Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aUint8List], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Uint8List?); - } - } - - /// Returns the passed in generic Object asynchronously. - Future echoAsyncNullableObject(Object? anObject) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anObject], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return pigeonVar_replyList[0]; - } - } - - /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableList(List? list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?)?.cast(); - } - } - - /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableEnumList( - List? enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?)?.cast(); - } - } - - /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableMap( - Map? map, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableIntMap( - Map? intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - /// Returns the passed enum, to test asynchronous serialization and deserialization. - Future echoAsyncNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AnEnum?); - } - } - - /// Returns the passed enum, to test asynchronous serialization and deserialization. - Future echoAnotherAsyncNullableEnum( - AnotherEnum? anotherEnum, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AnotherEnum?); - } - } - - /// Returns true if the handler is run on a main thread, which should be - /// true since there is no TaskQueue annotation. - Future defaultIsMainThread() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.defaultIsMainThread$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as bool?)!; - } - } - - /// Returns true if the handler is run on a non-main thread, which should be - /// true for any platform with TaskQueue support. - Future taskQueueIsBackgroundThread() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.taskQueueIsBackgroundThread$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as bool?)!; - } - } - - Future callFlutterNoop() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return; - } - } - - Future callFlutterThrowError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return pigeonVar_replyList[0]; - } - } - - Future callFlutterThrowErrorFromVoid() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return; - } - } - - Future callFlutterEchoAllTypes(AllTypes everything) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllTypes?)!; - } - } - - Future callFlutterEchoAllNullableTypes( - AllNullableTypes? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypes?); - } - } - - Future callFlutterSendMultipleNullableTypes( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool, aNullableInt, aNullableString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypes?)!; - } - } - - Future - callFlutterEchoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); - } - } - - Future - callFlutterSendMultipleNullableTypesWithoutRecursion( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool, aNullableInt, aNullableString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?)!; - } - } - - Future callFlutterEchoBool(bool aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as bool?)!; - } - } - - Future callFlutterEchoInt(int anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as int?)!; - } - } - - Future callFlutterEchoDouble(double aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as double?)!; - } - } - - Future callFlutterEchoString(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as String?)!; - } - } - - Future callFlutterEchoUint8List(Uint8List list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Uint8List?)!; - } - } - - Future> callFlutterEchoList(List list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)!.cast(); - } - } - - Future> callFlutterEchoEnumList(List enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)!.cast(); - } - } - - Future> callFlutterEchoClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); - } - } - - Future> callFlutterEchoNonNullEnumList( - List enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)!.cast(); - } - } - - Future> callFlutterEchoNonNullClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); - } - } - - Future> callFlutterEchoMap( - Map map, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future> callFlutterEchoStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future> callFlutterEchoIntMap(Map intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future> callFlutterEchoEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future> callFlutterEchoClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future> callFlutterEchoNonNullStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future> callFlutterEchoNonNullIntMap( - Map intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future> callFlutterEchoNonNullEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future> callFlutterEchoNonNullClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as Map?)! - .cast(); - } - } - - Future callFlutterEchoEnum(AnEnum anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AnEnum?)!; - } - } - - Future callFlutterEchoAnotherEnum( - AnotherEnum anotherEnum, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as AnotherEnum?)!; - } - } - - Future callFlutterEchoNullableBool(bool? aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as bool?); - } - } - - Future callFlutterEchoNullableInt(int? anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as int?); - } - } - - Future callFlutterEchoNullableDouble(double? aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as double?); - } - } - - Future callFlutterEchoNullableString(String? aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as String?); - } - } - - Future callFlutterEchoNullableUint8List(Uint8List? list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Uint8List?); - } - } - - Future?> callFlutterEchoNullableList( - List? list, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?)?.cast(); - } - } - - Future?> callFlutterEchoNullableEnumList( - List? enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?)?.cast(); - } - } - - Future?> callFlutterEchoNullableClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableNonNullEnumList( - List? enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?)?.cast(); - } - } - - Future?> callFlutterEchoNullableNonNullClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as List?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableMap( - Map? map, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableIntMap( - Map? intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableNonNullStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableNonNullIntMap( - Map? intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableNonNullEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future?> callFlutterEchoNullableNonNullClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as Map?) - ?.cast(); - } - } - - Future callFlutterEchoNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AnEnum?); - } - } - - Future callFlutterEchoAnotherNullableEnum( - AnotherEnum? anotherEnum, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return (pigeonVar_replyList[0] as AnotherEnum?); - } - } - - Future callFlutterSmallApiEchoString(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as String?)!; - } - } -} - -/// The core interface that the Dart platform_test code implements for host -/// integration tests to call into. -abstract class FlutterIntegrationCoreApi { - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic calling. - void noop(); - - /// Responds with an error from an async function returning a value. - Object? throwError(); - - /// Responds with an error from an async void function. - void throwErrorFromVoid(); - - /// Returns the passed object, to test serialization and deserialization. - AllTypes echoAllTypes(AllTypes everything); - - /// Returns the passed object, to test serialization and deserialization. - AllNullableTypes? echoAllNullableTypes(AllNullableTypes? everything); - - /// Returns passed in arguments of multiple types. - /// - /// Tests multiple-arity FlutterApi handling. - AllNullableTypes sendMultipleNullableTypes( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ); - - /// Returns the passed object, to test serialization and deserialization. - AllNullableTypesWithoutRecursion? echoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything, - ); - - /// Returns passed in arguments of multiple types. - /// - /// Tests multiple-arity FlutterApi handling. - AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ); - - /// Returns the passed boolean, to test serialization and deserialization. - bool echoBool(bool aBool); - - /// Returns the passed int, to test serialization and deserialization. - int echoInt(int anInt); - - /// Returns the passed double, to test serialization and deserialization. - double echoDouble(double aDouble); - - /// Returns the passed string, to test serialization and deserialization. - String echoString(String aString); - - /// Returns the passed byte list, to test serialization and deserialization. - Uint8List echoUint8List(Uint8List list); - - /// Returns the passed list, to test serialization and deserialization. - List echoList(List list); - - /// Returns the passed list, to test serialization and deserialization. - List echoEnumList(List enumList); - - /// Returns the passed list, to test serialization and deserialization. - List echoClassList(List classList); - - /// Returns the passed list, to test serialization and deserialization. - List echoNonNullEnumList(List enumList); - - /// Returns the passed list, to test serialization and deserialization. - List echoNonNullClassList(List classList); - - /// Returns the passed map, to test serialization and deserialization. - Map echoMap(Map map); - - /// Returns the passed map, to test serialization and deserialization. - Map echoStringMap(Map stringMap); - - /// Returns the passed map, to test serialization and deserialization. - Map echoIntMap(Map intMap); - - /// Returns the passed map, to test serialization and deserialization. - Map echoEnumMap(Map enumMap); - - /// Returns the passed map, to test serialization and deserialization. - Map echoClassMap( - Map classMap, - ); - - /// Returns the passed map, to test serialization and deserialization. - Map echoNonNullStringMap(Map stringMap); - - /// Returns the passed map, to test serialization and deserialization. - Map echoNonNullIntMap(Map intMap); - - /// Returns the passed map, to test serialization and deserialization. - Map echoNonNullEnumMap(Map enumMap); - - /// Returns the passed map, to test serialization and deserialization. - Map echoNonNullClassMap( - Map classMap, - ); - - /// Returns the passed enum to test serialization and deserialization. - AnEnum echoEnum(AnEnum anEnum); - - /// Returns the passed enum to test serialization and deserialization. - AnotherEnum echoAnotherEnum(AnotherEnum anotherEnum); - - /// Returns the passed boolean, to test serialization and deserialization. - bool? echoNullableBool(bool? aBool); - - /// Returns the passed int, to test serialization and deserialization. - int? echoNullableInt(int? anInt); - - /// Returns the passed double, to test serialization and deserialization. - double? echoNullableDouble(double? aDouble); - - /// Returns the passed string, to test serialization and deserialization. - String? echoNullableString(String? aString); - - /// Returns the passed byte list, to test serialization and deserialization. - Uint8List? echoNullableUint8List(Uint8List? list); - - /// Returns the passed list, to test serialization and deserialization. - List? echoNullableList(List? list); - - /// Returns the passed list, to test serialization and deserialization. - List? echoNullableEnumList(List? enumList); - - /// Returns the passed list, to test serialization and deserialization. - List? echoNullableClassList( - List? classList, - ); - - /// Returns the passed list, to test serialization and deserialization. - List? echoNullableNonNullEnumList(List? enumList); - - /// Returns the passed list, to test serialization and deserialization. - List? echoNullableNonNullClassList( - List? classList, - ); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableMap(Map? map); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableStringMap( - Map? stringMap, - ); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableIntMap(Map? intMap); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableEnumMap(Map? enumMap); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableClassMap( - Map? classMap, - ); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullStringMap( - Map? stringMap, - ); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullIntMap(Map? intMap); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullEnumMap(Map? enumMap); - - /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullClassMap( - Map? classMap, - ); - - /// Returns the passed enum to test serialization and deserialization. - AnEnum? echoNullableEnum(AnEnum? anEnum); - - /// Returns the passed enum to test serialization and deserialization. - AnotherEnum? echoAnotherNullableEnum(AnotherEnum? anotherEnum); - - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic asynchronous calling. - Future noopAsync(); - - /// Returns the passed in generic Object asynchronously. - Future echoAsyncString(String aString); - - static void setUp( - FlutterIntegrationCoreApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noop$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - try { - api.noop(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - try { - final Object? output = api.throwError(); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - try { - api.throwErrorFromVoid(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes was null.', - ); - final List args = (message as List?)!; - final AllTypes? arg_everything = (args[0] as AllTypes?); - assert( - arg_everything != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes was null, expected non-null AllTypes.', - ); - try { - final AllTypes output = api.echoAllTypes(arg_everything!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes was null.', - ); - final List args = (message as List?)!; - final AllNullableTypes? arg_everything = - (args[0] as AllNullableTypes?); - try { - final AllNullableTypes? output = api.echoAllNullableTypes( - arg_everything, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.', - ); - final List args = (message as List?)!; - final bool? arg_aNullableBool = (args[0] as bool?); - final int? arg_aNullableInt = (args[1] as int?); - final String? arg_aNullableString = (args[2] as String?); - try { - final AllNullableTypes output = api.sendMultipleNullableTypes( - arg_aNullableBool, - arg_aNullableInt, - arg_aNullableString, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.', - ); - final List args = (message as List?)!; - final AllNullableTypesWithoutRecursion? arg_everything = - (args[0] as AllNullableTypesWithoutRecursion?); - try { - final AllNullableTypesWithoutRecursion? output = api - .echoAllNullableTypesWithoutRecursion(arg_everything); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.', - ); - final List args = (message as List?)!; - final bool? arg_aNullableBool = (args[0] as bool?); - final int? arg_aNullableInt = (args[1] as int?); - final String? arg_aNullableString = (args[2] as String?); - try { - final AllNullableTypesWithoutRecursion output = api - .sendMultipleNullableTypesWithoutRecursion( - arg_aNullableBool, - arg_aNullableInt, - arg_aNullableString, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool was null.', - ); - final List args = (message as List?)!; - final bool? arg_aBool = (args[0] as bool?); - assert( - arg_aBool != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool was null, expected non-null bool.', - ); - try { - final bool output = api.echoBool(arg_aBool!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt was null.', - ); - final List args = (message as List?)!; - final int? arg_anInt = (args[0] as int?); - assert( - arg_anInt != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt was null, expected non-null int.', - ); - try { - final int output = api.echoInt(arg_anInt!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble was null.', - ); - final List args = (message as List?)!; - final double? arg_aDouble = (args[0] as double?); - assert( - arg_aDouble != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble was null, expected non-null double.', - ); - try { - final double output = api.echoDouble(arg_aDouble!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString was null.', - ); - final List args = (message as List?)!; - final String? arg_aString = (args[0] as String?); - assert( - arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString was null, expected non-null String.', - ); - try { - final String output = api.echoString(arg_aString!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List was null.', - ); - final List args = (message as List?)!; - final Uint8List? arg_list = (args[0] as Uint8List?); - assert( - arg_list != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List was null, expected non-null Uint8List.', - ); - try { - final Uint8List output = api.echoUint8List(arg_list!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList was null.', - ); - final List args = (message as List?)!; - final List? arg_list = (args[0] as List?) - ?.cast(); - assert( - arg_list != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList was null, expected non-null List.', - ); - try { - final List output = api.echoList(arg_list!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList was null.', - ); - final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?) - ?.cast(); - assert( - arg_enumList != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList was null, expected non-null List.', - ); - try { - final List output = api.echoEnumList(arg_enumList!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList was null.', - ); - final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); - assert( - arg_classList != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList was null, expected non-null List.', - ); - try { - final List output = api.echoClassList( - arg_classList!, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList was null.', - ); - final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?) - ?.cast(); - assert( - arg_enumList != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList was null, expected non-null List.', - ); - try { - final List output = api.echoNonNullEnumList(arg_enumList!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList was null.', - ); - final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); - assert( - arg_classList != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList was null, expected non-null List.', - ); - try { - final List output = api.echoNonNullClassList( - arg_classList!, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_map = - (args[0] as Map?)?.cast(); - assert( - arg_map != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoMap(arg_map!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); - assert( - arg_stringMap != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoStringMap( - arg_stringMap!, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_intMap = - (args[0] as Map?)?.cast(); - assert( - arg_intMap != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoIntMap(arg_intMap!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); - assert( - arg_enumMap != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoEnumMap(arg_enumMap!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); - assert( - arg_classMap != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoClassMap( - arg_classMap!, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); - assert( - arg_stringMap != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoNonNullStringMap( - arg_stringMap!, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_intMap = (args[0] as Map?) - ?.cast(); - assert( - arg_intMap != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoNonNullIntMap(arg_intMap!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); - assert( - arg_enumMap != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoNonNullEnumMap( - arg_enumMap!, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); - assert( - arg_classMap != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap was null, expected non-null Map.', - ); - try { - final Map output = api.echoNonNullClassMap( - arg_classMap!, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum was null.', - ); - final List args = (message as List?)!; - final AnEnum? arg_anEnum = (args[0] as AnEnum?); - assert( - arg_anEnum != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum was null, expected non-null AnEnum.', - ); - try { - final AnEnum output = api.echoEnum(arg_anEnum!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum was null.', - ); - final List args = (message as List?)!; - final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); - assert( - arg_anotherEnum != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum was null, expected non-null AnotherEnum.', - ); - try { - final AnotherEnum output = api.echoAnotherEnum(arg_anotherEnum!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool was null.', - ); - final List args = (message as List?)!; - final bool? arg_aBool = (args[0] as bool?); - try { - final bool? output = api.echoNullableBool(arg_aBool); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt was null.', - ); - final List args = (message as List?)!; - final int? arg_anInt = (args[0] as int?); - try { - final int? output = api.echoNullableInt(arg_anInt); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble was null.', - ); - final List args = (message as List?)!; - final double? arg_aDouble = (args[0] as double?); - try { - final double? output = api.echoNullableDouble(arg_aDouble); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString was null.', - ); - final List args = (message as List?)!; - final String? arg_aString = (args[0] as String?); - try { - final String? output = api.echoNullableString(arg_aString); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List was null.', - ); - final List args = (message as List?)!; - final Uint8List? arg_list = (args[0] as Uint8List?); - try { - final Uint8List? output = api.echoNullableUint8List(arg_list); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList was null.', - ); - final List args = (message as List?)!; - final List? arg_list = (args[0] as List?) - ?.cast(); - try { - final List? output = api.echoNullableList(arg_list); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList was null.', - ); - final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?) - ?.cast(); - try { - final List? output = api.echoNullableEnumList( - arg_enumList, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList was null.', - ); - final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); - try { - final List? output = api.echoNullableClassList( - arg_classList, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList was null.', - ); - final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?) - ?.cast(); - try { - final List? output = api.echoNullableNonNullEnumList( - arg_enumList, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList was null.', - ); - final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); - try { - final List? output = api - .echoNullableNonNullClassList(arg_classList); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_map = - (args[0] as Map?)?.cast(); - try { - final Map? output = api.echoNullableMap(arg_map); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); - try { - final Map? output = api.echoNullableStringMap( - arg_stringMap, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_intMap = - (args[0] as Map?)?.cast(); - try { - final Map? output = api.echoNullableIntMap(arg_intMap); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); - try { - final Map? output = api.echoNullableEnumMap( - arg_enumMap, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); - try { - final Map? output = api - .echoNullableClassMap(arg_classMap); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); - try { - final Map? output = api - .echoNullableNonNullStringMap(arg_stringMap); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_intMap = (args[0] as Map?) - ?.cast(); - try { - final Map? output = api.echoNullableNonNullIntMap( - arg_intMap, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); - try { - final Map? output = api.echoNullableNonNullEnumMap( - arg_enumMap, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap was null.', - ); - final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); - try { - final Map? output = api - .echoNullableNonNullClassMap(arg_classMap); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum was null.', - ); - final List args = (message as List?)!; - final AnEnum? arg_anEnum = (args[0] as AnEnum?); - try { - final AnEnum? output = api.echoNullableEnum(arg_anEnum); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.', - ); - final List args = (message as List?)!; - final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); - try { - final AnotherEnum? output = api.echoAnotherNullableEnum( - arg_anotherEnum, - ); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - try { - await api.noopAsync(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString was null.', - ); - final List args = (message as List?)!; - final String? arg_aString = (args[0] as String?); - assert( - arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString was null, expected non-null String.', - ); - try { - final String output = await api.echoAsyncString(arg_aString!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - } -} - -/// An API that can be implemented for minimal, compile-only tests. -class HostTrivialApi { - /// Constructor for [HostTrivialApi]. The [binaryMessenger] named argument is - /// available for dependency injection. If it is left null, the default - /// BinaryMessenger will be used which routes to the host platform. - HostTrivialApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - final BinaryMessenger? pigeonVar_binaryMessenger; - - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - final String pigeonVar_messageChannelSuffix; - - Future noop() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return; - } - } -} - -/// A simple API implemented in some unit tests. -class HostSmallApi { - /// Constructor for [HostSmallApi]. The [binaryMessenger] named argument is - /// available for dependency injection. If it is left null, the default - /// BinaryMessenger will be used which routes to the host platform. - HostSmallApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - final BinaryMessenger? pigeonVar_binaryMessenger; - - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - final String pigeonVar_messageChannelSuffix; - - Future echo(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } else { - return (pigeonVar_replyList[0] as String?)!; - } - } - - Future voidVoid() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - if (pigeonVar_replyList == null) { - throw _createConnectionError(pigeonVar_channelName); - } else if (pigeonVar_replyList.length > 1) { - throw PlatformException( - code: pigeonVar_replyList[0]! as String, - message: pigeonVar_replyList[1] as String?, - details: pigeonVar_replyList[2], - ); - } else { - return; - } - } -} - -/// A simple API called in some unit tests. -abstract class FlutterSmallApi { - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - TestMessage echoWrappedList(TestMessage msg); - - String echoString(String aString); - - static void setUp( - FlutterSmallApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList was null.', - ); - final List args = (message as List?)!; - final TestMessage? arg_msg = (args[0] as TestMessage?); - assert( - arg_msg != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList was null, expected non-null TestMessage.', - ); - try { - final TestMessage output = api.echoWrappedList(arg_msg!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString was null.', - ); - final List args = (message as List?)!; - final String? arg_aString = (args[0] as String?); - assert( - arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString was null, expected non-null String.', - ); - try { - final String output = api.echoString(arg_aString!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - } -} diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index 57c9d2945072..5002e0a04176 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -1175,8 +1175,12 @@ final BinaryMessenger? ${varNamePrefix}binaryMessenger; void _writeDeepEquals(Indent indent) { indent.format(r''' bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed diff --git a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart index 4eb7b2c02b00..d4ff478d2d2d 100644 --- a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart +++ b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart @@ -356,7 +356,7 @@ class KotlinGenerator extends StructuredGenerator { ); final String utils = _getUtilsClassName(generatorOptions); indent.writeln('var result = javaClass.hashCode()'); - for (final NamedType field in fields) { + for (final field in fields) { indent.writeln( 'result = 31 * result + $utils.deepHash(this.${field.name})', ); diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 23edaa497218..f73ef4a62dce 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -52,8 +52,12 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 4d5e26b748e7..667229509018 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -52,8 +52,12 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index 34f07443403e..c8f806148bc8 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -13,8 +13,12 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index 7f58f715e80b..f27095df7a92 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -38,8 +38,12 @@ Object? _extractReplyValueOrThrow( } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 6d1f593049f1..c658146cc526 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -52,8 +52,12 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index d828393830c1..d0397d028c45 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -52,8 +52,12 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 38bad4c8802c..1a709f6c0ba9 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -52,8 +52,12 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) return true; - if (a is double && b is double && a.isNaN && b.isNaN) return true; + if (identical(a, b) || a == b) { + return true; + } + if (a is double && b is double && a.isNaN && b.isNaN) { + return true; + } if (a is List && b is List) { return a.length == b.length && a.indexed.every( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart index ad15e5e53d9c..a7d5bcca4667 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart @@ -26,9 +26,6 @@ void main() { map: map, ); - print('all1 == all2: ${all1 == all2}'); - print('all1.hashCode: ${all1.hashCode}'); - print('all2.hashCode: ${all2.hashCode}'); expect(all1, all2); expect(all1.hashCode, all2.hashCode); }); From 4ad3636a45b3c0d23b24c42297f02fba998fcf9a Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 12:57:08 -0800 Subject: [PATCH 11/33] delete random extra files --- .../com/example/test_plugin/CoreTests.java | 9695 ----------------- .../test_plugin/ios/Classes/CoreTests.gen.h | 1123 -- .../test_plugin/ios/Classes/CoreTests.gen.m | 6705 ------------ .../ios/Classes/CoreTests.gen.swift | 6151 ----------- 4 files changed, 23674 deletions(-) delete mode 100644 packages/pigeon/platform_tests/test_plugin/android/src/main/java/com/example/test_plugin/CoreTests.java delete mode 100644 packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.h delete mode 100644 packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.m delete mode 100644 packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/java/com/example/test_plugin/CoreTests.java b/packages/pigeon/platform_tests/test_plugin/android/src/main/java/com/example/test_plugin/CoreTests.java deleted file mode 100644 index fd44f0e792ee..000000000000 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/java/com/example/test_plugin/CoreTests.java +++ /dev/null @@ -1,9695 +0,0 @@ -// Autogenerated from Pigeon (v26.1.9), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -import static java.lang.annotation.ElementType.METHOD; -import static java.lang.annotation.RetentionPolicy.CLASS; - -import android.util.Log; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import io.flutter.plugin.common.BasicMessageChannel; -import io.flutter.plugin.common.BinaryMessenger; -import io.flutter.plugin.common.MessageCodec; -import io.flutter.plugin.common.StandardMessageCodec; -import java.io.ByteArrayOutputStream; -import java.lang.annotation.Retention; -import java.lang.annotation.Target; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -/** Generated class from Pigeon. */ -@SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) -public class CoreTests { - private static boolean pigeonDeepEquals(Object a, Object b) { - if (a == b) { - return true; - } - if (a == null || b == null) { - return false; - } - if (a instanceof byte[] && b instanceof byte[]) { - return Arrays.equals((byte[]) a, (byte[]) b); - } - if (a instanceof int[] && b instanceof int[]) { - return Arrays.equals((int[]) a, (int[]) b); - } - if (a instanceof long[] && b instanceof long[]) { - return Arrays.equals((long[]) a, (long[]) b); - } - if (a instanceof double[] && b instanceof double[]) { - return Arrays.equals((double[]) a, (double[]) b); - } - if (a instanceof List && b instanceof List) { - List listA = (List) a; - List listB = (List) b; - if (listA.size() != listB.size()) { - return false; - } - for (int i = 0; i < listA.size(); i++) { - if (!pigeonDeepEquals(listA.get(i), listB.get(i))) { - return false; - } - } - return true; - } - if (a instanceof Map && b instanceof Map) { - Map mapA = (Map) a; - Map mapB = (Map) b; - if (mapA.size() != mapB.size()) { - return false; - } - for (Object key : mapA.keySet()) { - if (!mapB.containsKey(key)) { - return false; - } - if (!pigeonDeepEquals(mapA.get(key), mapB.get(key))) { - return false; - } - } - return true; - } - return a.equals(b); - } - - private static int pigeonDeepHashCode(Object value) { - if (value == null) { - return 0; - } - if (value instanceof byte[]) { - return Arrays.hashCode((byte[]) value); - } - if (value instanceof int[]) { - return Arrays.hashCode((int[]) value); - } - if (value instanceof long[]) { - return Arrays.hashCode((long[]) value); - } - if (value instanceof double[]) { - return Arrays.hashCode((double[]) value); - } - if (value instanceof List) { - int result = 1; - for (Object item : (List) value) { - result = 31 * result + pigeonDeepHashCode(item); - } - return result; - } - if (value instanceof Map) { - int result = 0; - for (Map.Entry entry : ((Map) value).entrySet()) { - result += (pigeonDeepHashCode(entry.getKey()) ^ pigeonDeepHashCode(entry.getValue())); - } - return result; - } - if (value instanceof Object[]) { - int result = 1; - for (Object item : (Object[]) value) { - result = 31 * result + pigeonDeepHashCode(item); - } - return result; - } - return value.hashCode(); - } - - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ - public static class FlutterError extends RuntimeException { - - /** The error code. */ - public final String code; - - /** The error details. Must be a datatype supported by the api codec. */ - public final Object details; - - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) { - super(message); - this.code = code; - this.details = details; - } - } - - @NonNull - protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList<>(3); - if (exception instanceof FlutterError) { - FlutterError error = (FlutterError) exception; - errorList.add(error.code); - errorList.add(error.getMessage()); - errorList.add(error.details); - } else { - errorList.add(exception.toString()); - errorList.add(exception.getClass().getSimpleName()); - errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); - } - return errorList; - } - - @NonNull - protected static FlutterError createConnectionError(@NonNull String channelName) { - return new FlutterError( - "channel-error", "Unable to establish connection on channel: " + channelName + ".", ""); - } - - @Target(METHOD) - @Retention(CLASS) - @interface CanIgnoreReturnValue {} - - public enum AnEnum { - ONE(0), - TWO(1), - THREE(2), - FORTY_TWO(3), - FOUR_HUNDRED_TWENTY_TWO(4); - - final int index; - - AnEnum(final int index) { - this.index = index; - } - } - - public enum AnotherEnum { - JUST_IN_CASE(0); - - final int index; - - AnotherEnum(final int index) { - this.index = index; - } - } - - /** Generated class from Pigeon that represents data sent in messages. */ - public static final class UnusedClass { - private @Nullable Object aField; - - public @Nullable Object getAField() { - return aField; - } - - public void setAField(@Nullable Object setterArg) { - this.aField = setterArg; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UnusedClass that = (UnusedClass) o; - return pigeonDeepEquals(aField, that.aField); - } - - @Override - public int hashCode() { - Object[] fields = new Object[] {getClass(), aField}; - return pigeonDeepHashCode(fields); - } - - public static final class Builder { - - private @Nullable Object aField; - - @CanIgnoreReturnValue - public @NonNull Builder setAField(@Nullable Object setterArg) { - this.aField = setterArg; - return this; - } - - public @NonNull UnusedClass build() { - UnusedClass pigeonReturn = new UnusedClass(); - pigeonReturn.setAField(aField); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(1); - toListResult.add(aField); - return toListResult; - } - - static @NonNull UnusedClass fromList(@NonNull ArrayList pigeonVar_list) { - UnusedClass pigeonResult = new UnusedClass(); - Object aField = pigeonVar_list.get(0); - pigeonResult.setAField(aField); - return pigeonResult; - } - } - - /** - * A class containing all supported types. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllTypes { - private @NonNull Boolean aBool; - - public @NonNull Boolean getABool() { - return aBool; - } - - public void setABool(@NonNull Boolean setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aBool\" is null."); - } - this.aBool = setterArg; - } - - private @NonNull Long anInt; - - public @NonNull Long getAnInt() { - return anInt; - } - - public void setAnInt(@NonNull Long setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anInt\" is null."); - } - this.anInt = setterArg; - } - - private @NonNull Long anInt64; - - public @NonNull Long getAnInt64() { - return anInt64; - } - - public void setAnInt64(@NonNull Long setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anInt64\" is null."); - } - this.anInt64 = setterArg; - } - - private @NonNull Double aDouble; - - public @NonNull Double getADouble() { - return aDouble; - } - - public void setADouble(@NonNull Double setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aDouble\" is null."); - } - this.aDouble = setterArg; - } - - private @NonNull byte[] aByteArray; - - public @NonNull byte[] getAByteArray() { - return aByteArray; - } - - public void setAByteArray(@NonNull byte[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aByteArray\" is null."); - } - this.aByteArray = setterArg; - } - - private @NonNull int[] a4ByteArray; - - public @NonNull int[] getA4ByteArray() { - return a4ByteArray; - } - - public void setA4ByteArray(@NonNull int[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"a4ByteArray\" is null."); - } - this.a4ByteArray = setterArg; - } - - private @NonNull long[] a8ByteArray; - - public @NonNull long[] getA8ByteArray() { - return a8ByteArray; - } - - public void setA8ByteArray(@NonNull long[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"a8ByteArray\" is null."); - } - this.a8ByteArray = setterArg; - } - - private @NonNull double[] aFloatArray; - - public @NonNull double[] getAFloatArray() { - return aFloatArray; - } - - public void setAFloatArray(@NonNull double[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aFloatArray\" is null."); - } - this.aFloatArray = setterArg; - } - - private @NonNull AnEnum anEnum; - - public @NonNull AnEnum getAnEnum() { - return anEnum; - } - - public void setAnEnum(@NonNull AnEnum setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anEnum\" is null."); - } - this.anEnum = setterArg; - } - - private @NonNull AnotherEnum anotherEnum; - - public @NonNull AnotherEnum getAnotherEnum() { - return anotherEnum; - } - - public void setAnotherEnum(@NonNull AnotherEnum setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anotherEnum\" is null."); - } - this.anotherEnum = setterArg; - } - - private @NonNull String aString; - - public @NonNull String getAString() { - return aString; - } - - public void setAString(@NonNull String setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aString\" is null."); - } - this.aString = setterArg; - } - - private @NonNull Object anObject; - - public @NonNull Object getAnObject() { - return anObject; - } - - public void setAnObject(@NonNull Object setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anObject\" is null."); - } - this.anObject = setterArg; - } - - private @NonNull List list; - - public @NonNull List getList() { - return list; - } - - public void setList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"list\" is null."); - } - this.list = setterArg; - } - - private @NonNull List stringList; - - public @NonNull List getStringList() { - return stringList; - } - - public void setStringList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"stringList\" is null."); - } - this.stringList = setterArg; - } - - private @NonNull List intList; - - public @NonNull List getIntList() { - return intList; - } - - public void setIntList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"intList\" is null."); - } - this.intList = setterArg; - } - - private @NonNull List doubleList; - - public @NonNull List getDoubleList() { - return doubleList; - } - - public void setDoubleList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"doubleList\" is null."); - } - this.doubleList = setterArg; - } - - private @NonNull List boolList; - - public @NonNull List getBoolList() { - return boolList; - } - - public void setBoolList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"boolList\" is null."); - } - this.boolList = setterArg; - } - - private @NonNull List enumList; - - public @NonNull List getEnumList() { - return enumList; - } - - public void setEnumList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"enumList\" is null."); - } - this.enumList = setterArg; - } - - private @NonNull List objectList; - - public @NonNull List getObjectList() { - return objectList; - } - - public void setObjectList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"objectList\" is null."); - } - this.objectList = setterArg; - } - - private @NonNull List> listList; - - public @NonNull List> getListList() { - return listList; - } - - public void setListList(@NonNull List> setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"listList\" is null."); - } - this.listList = setterArg; - } - - private @NonNull List> mapList; - - public @NonNull List> getMapList() { - return mapList; - } - - public void setMapList(@NonNull List> setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"mapList\" is null."); - } - this.mapList = setterArg; - } - - private @NonNull Map map; - - public @NonNull Map getMap() { - return map; - } - - public void setMap(@NonNull Map setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"map\" is null."); - } - this.map = setterArg; - } - - private @NonNull Map stringMap; - - public @NonNull Map getStringMap() { - return stringMap; - } - - public void setStringMap(@NonNull Map setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"stringMap\" is null."); - } - this.stringMap = setterArg; - } - - private @NonNull Map intMap; - - public @NonNull Map getIntMap() { - return intMap; - } - - public void setIntMap(@NonNull Map setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"intMap\" is null."); - } - this.intMap = setterArg; - } - - private @NonNull Map enumMap; - - public @NonNull Map getEnumMap() { - return enumMap; - } - - public void setEnumMap(@NonNull Map setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"enumMap\" is null."); - } - this.enumMap = setterArg; - } - - private @NonNull Map objectMap; - - public @NonNull Map getObjectMap() { - return objectMap; - } - - public void setObjectMap(@NonNull Map setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"objectMap\" is null."); - } - this.objectMap = setterArg; - } - - private @NonNull Map> listMap; - - public @NonNull Map> getListMap() { - return listMap; - } - - public void setListMap(@NonNull Map> setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"listMap\" is null."); - } - this.listMap = setterArg; - } - - private @NonNull Map> mapMap; - - public @NonNull Map> getMapMap() { - return mapMap; - } - - public void setMapMap(@NonNull Map> setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"mapMap\" is null."); - } - this.mapMap = setterArg; - } - - /** Constructor is non-public to enforce null safety; use Builder. */ - AllTypes() {} - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllTypes that = (AllTypes) o; - return pigeonDeepEquals(aBool, that.aBool) - && pigeonDeepEquals(anInt, that.anInt) - && pigeonDeepEquals(anInt64, that.anInt64) - && pigeonDeepEquals(aDouble, that.aDouble) - && pigeonDeepEquals(aByteArray, that.aByteArray) - && pigeonDeepEquals(a4ByteArray, that.a4ByteArray) - && pigeonDeepEquals(a8ByteArray, that.a8ByteArray) - && pigeonDeepEquals(aFloatArray, that.aFloatArray) - && pigeonDeepEquals(anEnum, that.anEnum) - && pigeonDeepEquals(anotherEnum, that.anotherEnum) - && pigeonDeepEquals(aString, that.aString) - && pigeonDeepEquals(anObject, that.anObject) - && pigeonDeepEquals(list, that.list) - && pigeonDeepEquals(stringList, that.stringList) - && pigeonDeepEquals(intList, that.intList) - && pigeonDeepEquals(doubleList, that.doubleList) - && pigeonDeepEquals(boolList, that.boolList) - && pigeonDeepEquals(enumList, that.enumList) - && pigeonDeepEquals(objectList, that.objectList) - && pigeonDeepEquals(listList, that.listList) - && pigeonDeepEquals(mapList, that.mapList) - && pigeonDeepEquals(map, that.map) - && pigeonDeepEquals(stringMap, that.stringMap) - && pigeonDeepEquals(intMap, that.intMap) - && pigeonDeepEquals(enumMap, that.enumMap) - && pigeonDeepEquals(objectMap, that.objectMap) - && pigeonDeepEquals(listMap, that.listMap) - && pigeonDeepEquals(mapMap, that.mapMap); - } - - @Override - public int hashCode() { - Object[] fields = - new Object[] { - getClass(), - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap - }; - return pigeonDeepHashCode(fields); - } - - public static final class Builder { - - private @Nullable Boolean aBool; - - @CanIgnoreReturnValue - public @NonNull Builder setABool(@NonNull Boolean setterArg) { - this.aBool = setterArg; - return this; - } - - private @Nullable Long anInt; - - @CanIgnoreReturnValue - public @NonNull Builder setAnInt(@NonNull Long setterArg) { - this.anInt = setterArg; - return this; - } - - private @Nullable Long anInt64; - - @CanIgnoreReturnValue - public @NonNull Builder setAnInt64(@NonNull Long setterArg) { - this.anInt64 = setterArg; - return this; - } - - private @Nullable Double aDouble; - - @CanIgnoreReturnValue - public @NonNull Builder setADouble(@NonNull Double setterArg) { - this.aDouble = setterArg; - return this; - } - - private @Nullable byte[] aByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setAByteArray(@NonNull byte[] setterArg) { - this.aByteArray = setterArg; - return this; - } - - private @Nullable int[] a4ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setA4ByteArray(@NonNull int[] setterArg) { - this.a4ByteArray = setterArg; - return this; - } - - private @Nullable long[] a8ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setA8ByteArray(@NonNull long[] setterArg) { - this.a8ByteArray = setterArg; - return this; - } - - private @Nullable double[] aFloatArray; - - @CanIgnoreReturnValue - public @NonNull Builder setAFloatArray(@NonNull double[] setterArg) { - this.aFloatArray = setterArg; - return this; - } - - private @Nullable AnEnum anEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setAnEnum(@NonNull AnEnum setterArg) { - this.anEnum = setterArg; - return this; - } - - private @Nullable AnotherEnum anotherEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setAnotherEnum(@NonNull AnotherEnum setterArg) { - this.anotherEnum = setterArg; - return this; - } - - private @Nullable String aString; - - @CanIgnoreReturnValue - public @NonNull Builder setAString(@NonNull String setterArg) { - this.aString = setterArg; - return this; - } - - private @Nullable Object anObject; - - @CanIgnoreReturnValue - public @NonNull Builder setAnObject(@NonNull Object setterArg) { - this.anObject = setterArg; - return this; - } - - private @Nullable List list; - - @CanIgnoreReturnValue - public @NonNull Builder setList(@NonNull List setterArg) { - this.list = setterArg; - return this; - } - - private @Nullable List stringList; - - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@NonNull List setterArg) { - this.stringList = setterArg; - return this; - } - - private @Nullable List intList; - - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@NonNull List setterArg) { - this.intList = setterArg; - return this; - } - - private @Nullable List doubleList; - - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@NonNull List setterArg) { - this.doubleList = setterArg; - return this; - } - - private @Nullable List boolList; - - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@NonNull List setterArg) { - this.boolList = setterArg; - return this; - } - - private @Nullable List enumList; - - @CanIgnoreReturnValue - public @NonNull Builder setEnumList(@NonNull List setterArg) { - this.enumList = setterArg; - return this; - } - - private @Nullable List objectList; - - @CanIgnoreReturnValue - public @NonNull Builder setObjectList(@NonNull List setterArg) { - this.objectList = setterArg; - return this; - } - - private @Nullable List> listList; - - @CanIgnoreReturnValue - public @NonNull Builder setListList(@NonNull List> setterArg) { - this.listList = setterArg; - return this; - } - - private @Nullable List> mapList; - - @CanIgnoreReturnValue - public @NonNull Builder setMapList(@NonNull List> setterArg) { - this.mapList = setterArg; - return this; - } - - private @Nullable Map map; - - @CanIgnoreReturnValue - public @NonNull Builder setMap(@NonNull Map setterArg) { - this.map = setterArg; - return this; - } - - private @Nullable Map stringMap; - - @CanIgnoreReturnValue - public @NonNull Builder setStringMap(@NonNull Map setterArg) { - this.stringMap = setterArg; - return this; - } - - private @Nullable Map intMap; - - @CanIgnoreReturnValue - public @NonNull Builder setIntMap(@NonNull Map setterArg) { - this.intMap = setterArg; - return this; - } - - private @Nullable Map enumMap; - - @CanIgnoreReturnValue - public @NonNull Builder setEnumMap(@NonNull Map setterArg) { - this.enumMap = setterArg; - return this; - } - - private @Nullable Map objectMap; - - @CanIgnoreReturnValue - public @NonNull Builder setObjectMap(@NonNull Map setterArg) { - this.objectMap = setterArg; - return this; - } - - private @Nullable Map> listMap; - - @CanIgnoreReturnValue - public @NonNull Builder setListMap(@NonNull Map> setterArg) { - this.listMap = setterArg; - return this; - } - - private @Nullable Map> mapMap; - - @CanIgnoreReturnValue - public @NonNull Builder setMapMap(@NonNull Map> setterArg) { - this.mapMap = setterArg; - return this; - } - - public @NonNull AllTypes build() { - AllTypes pigeonReturn = new AllTypes(); - pigeonReturn.setABool(aBool); - pigeonReturn.setAnInt(anInt); - pigeonReturn.setAnInt64(anInt64); - pigeonReturn.setADouble(aDouble); - pigeonReturn.setAByteArray(aByteArray); - pigeonReturn.setA4ByteArray(a4ByteArray); - pigeonReturn.setA8ByteArray(a8ByteArray); - pigeonReturn.setAFloatArray(aFloatArray); - pigeonReturn.setAnEnum(anEnum); - pigeonReturn.setAnotherEnum(anotherEnum); - pigeonReturn.setAString(aString); - pigeonReturn.setAnObject(anObject); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setEnumList(enumList); - pigeonReturn.setObjectList(objectList); - pigeonReturn.setListList(listList); - pigeonReturn.setMapList(mapList); - pigeonReturn.setMap(map); - pigeonReturn.setStringMap(stringMap); - pigeonReturn.setIntMap(intMap); - pigeonReturn.setEnumMap(enumMap); - pigeonReturn.setObjectMap(objectMap); - pigeonReturn.setListMap(listMap); - pigeonReturn.setMapMap(mapMap); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(28); - toListResult.add(aBool); - toListResult.add(anInt); - toListResult.add(anInt64); - toListResult.add(aDouble); - toListResult.add(aByteArray); - toListResult.add(a4ByteArray); - toListResult.add(a8ByteArray); - toListResult.add(aFloatArray); - toListResult.add(anEnum); - toListResult.add(anotherEnum); - toListResult.add(aString); - toListResult.add(anObject); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(enumList); - toListResult.add(objectList); - toListResult.add(listList); - toListResult.add(mapList); - toListResult.add(map); - toListResult.add(stringMap); - toListResult.add(intMap); - toListResult.add(enumMap); - toListResult.add(objectMap); - toListResult.add(listMap); - toListResult.add(mapMap); - return toListResult; - } - - static @NonNull AllTypes fromList(@NonNull ArrayList pigeonVar_list) { - AllTypes pigeonResult = new AllTypes(); - Object aBool = pigeonVar_list.get(0); - pigeonResult.setABool((Boolean) aBool); - Object anInt = pigeonVar_list.get(1); - pigeonResult.setAnInt((Long) anInt); - Object anInt64 = pigeonVar_list.get(2); - pigeonResult.setAnInt64((Long) anInt64); - Object aDouble = pigeonVar_list.get(3); - pigeonResult.setADouble((Double) aDouble); - Object aByteArray = pigeonVar_list.get(4); - pigeonResult.setAByteArray((byte[]) aByteArray); - Object a4ByteArray = pigeonVar_list.get(5); - pigeonResult.setA4ByteArray((int[]) a4ByteArray); - Object a8ByteArray = pigeonVar_list.get(6); - pigeonResult.setA8ByteArray((long[]) a8ByteArray); - Object aFloatArray = pigeonVar_list.get(7); - pigeonResult.setAFloatArray((double[]) aFloatArray); - Object anEnum = pigeonVar_list.get(8); - pigeonResult.setAnEnum((AnEnum) anEnum); - Object anotherEnum = pigeonVar_list.get(9); - pigeonResult.setAnotherEnum((AnotherEnum) anotherEnum); - Object aString = pigeonVar_list.get(10); - pigeonResult.setAString((String) aString); - Object anObject = pigeonVar_list.get(11); - pigeonResult.setAnObject(anObject); - Object list = pigeonVar_list.get(12); - pigeonResult.setList((List) list); - Object stringList = pigeonVar_list.get(13); - pigeonResult.setStringList((List) stringList); - Object intList = pigeonVar_list.get(14); - pigeonResult.setIntList((List) intList); - Object doubleList = pigeonVar_list.get(15); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = pigeonVar_list.get(16); - pigeonResult.setBoolList((List) boolList); - Object enumList = pigeonVar_list.get(17); - pigeonResult.setEnumList((List) enumList); - Object objectList = pigeonVar_list.get(18); - pigeonResult.setObjectList((List) objectList); - Object listList = pigeonVar_list.get(19); - pigeonResult.setListList((List>) listList); - Object mapList = pigeonVar_list.get(20); - pigeonResult.setMapList((List>) mapList); - Object map = pigeonVar_list.get(21); - pigeonResult.setMap((Map) map); - Object stringMap = pigeonVar_list.get(22); - pigeonResult.setStringMap((Map) stringMap); - Object intMap = pigeonVar_list.get(23); - pigeonResult.setIntMap((Map) intMap); - Object enumMap = pigeonVar_list.get(24); - pigeonResult.setEnumMap((Map) enumMap); - Object objectMap = pigeonVar_list.get(25); - pigeonResult.setObjectMap((Map) objectMap); - Object listMap = pigeonVar_list.get(26); - pigeonResult.setListMap((Map>) listMap); - Object mapMap = pigeonVar_list.get(27); - pigeonResult.setMapMap((Map>) mapMap); - return pigeonResult; - } - } - - /** - * A class containing all supported nullable types. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllNullableTypes { - private @Nullable Boolean aNullableBool; - - public @Nullable Boolean getANullableBool() { - return aNullableBool; - } - - public void setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - } - - private @Nullable Long aNullableInt; - - public @Nullable Long getANullableInt() { - return aNullableInt; - } - - public void setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - } - - private @Nullable Long aNullableInt64; - - public @Nullable Long getANullableInt64() { - return aNullableInt64; - } - - public void setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - } - - private @Nullable Double aNullableDouble; - - public @Nullable Double getANullableDouble() { - return aNullableDouble; - } - - public void setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - } - - private @Nullable byte[] aNullableByteArray; - - public @Nullable byte[] getANullableByteArray() { - return aNullableByteArray; - } - - public void setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - } - - private @Nullable int[] aNullable4ByteArray; - - public @Nullable int[] getANullable4ByteArray() { - return aNullable4ByteArray; - } - - public void setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - } - - private @Nullable long[] aNullable8ByteArray; - - public @Nullable long[] getANullable8ByteArray() { - return aNullable8ByteArray; - } - - public void setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - } - - private @Nullable double[] aNullableFloatArray; - - public @Nullable double[] getANullableFloatArray() { - return aNullableFloatArray; - } - - public void setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - } - - private @Nullable AnEnum aNullableEnum; - - public @Nullable AnEnum getANullableEnum() { - return aNullableEnum; - } - - public void setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - } - - private @Nullable AnotherEnum anotherNullableEnum; - - public @Nullable AnotherEnum getAnotherNullableEnum() { - return anotherNullableEnum; - } - - public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { - this.anotherNullableEnum = setterArg; - } - - private @Nullable String aNullableString; - - public @Nullable String getANullableString() { - return aNullableString; - } - - public void setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - } - - private @Nullable Object aNullableObject; - - public @Nullable Object getANullableObject() { - return aNullableObject; - } - - public void setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - } - - private @Nullable AllNullableTypes allNullableTypes; - - public @Nullable AllNullableTypes getAllNullableTypes() { - return allNullableTypes; - } - - public void setAllNullableTypes(@Nullable AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; - } - - private @Nullable List list; - - public @Nullable List getList() { - return list; - } - - public void setList(@Nullable List setterArg) { - this.list = setterArg; - } - - private @Nullable List stringList; - - public @Nullable List getStringList() { - return stringList; - } - - public void setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - } - - private @Nullable List intList; - - public @Nullable List getIntList() { - return intList; - } - - public void setIntList(@Nullable List setterArg) { - this.intList = setterArg; - } - - private @Nullable List doubleList; - - public @Nullable List getDoubleList() { - return doubleList; - } - - public void setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - } - - private @Nullable List boolList; - - public @Nullable List getBoolList() { - return boolList; - } - - public void setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - } - - private @Nullable List enumList; - - public @Nullable List getEnumList() { - return enumList; - } - - public void setEnumList(@Nullable List setterArg) { - this.enumList = setterArg; - } - - private @Nullable List objectList; - - public @Nullable List getObjectList() { - return objectList; - } - - public void setObjectList(@Nullable List setterArg) { - this.objectList = setterArg; - } - - private @Nullable List> listList; - - public @Nullable List> getListList() { - return listList; - } - - public void setListList(@Nullable List> setterArg) { - this.listList = setterArg; - } - - private @Nullable List> mapList; - - public @Nullable List> getMapList() { - return mapList; - } - - public void setMapList(@Nullable List> setterArg) { - this.mapList = setterArg; - } - - private @Nullable List recursiveClassList; - - public @Nullable List getRecursiveClassList() { - return recursiveClassList; - } - - public void setRecursiveClassList(@Nullable List setterArg) { - this.recursiveClassList = setterArg; - } - - private @Nullable Map map; - - public @Nullable Map getMap() { - return map; - } - - public void setMap(@Nullable Map setterArg) { - this.map = setterArg; - } - - private @Nullable Map stringMap; - - public @Nullable Map getStringMap() { - return stringMap; - } - - public void setStringMap(@Nullable Map setterArg) { - this.stringMap = setterArg; - } - - private @Nullable Map intMap; - - public @Nullable Map getIntMap() { - return intMap; - } - - public void setIntMap(@Nullable Map setterArg) { - this.intMap = setterArg; - } - - private @Nullable Map enumMap; - - public @Nullable Map getEnumMap() { - return enumMap; - } - - public void setEnumMap(@Nullable Map setterArg) { - this.enumMap = setterArg; - } - - private @Nullable Map objectMap; - - public @Nullable Map getObjectMap() { - return objectMap; - } - - public void setObjectMap(@Nullable Map setterArg) { - this.objectMap = setterArg; - } - - private @Nullable Map> listMap; - - public @Nullable Map> getListMap() { - return listMap; - } - - public void setListMap(@Nullable Map> setterArg) { - this.listMap = setterArg; - } - - private @Nullable Map> mapMap; - - public @Nullable Map> getMapMap() { - return mapMap; - } - - public void setMapMap(@Nullable Map> setterArg) { - this.mapMap = setterArg; - } - - private @Nullable Map recursiveClassMap; - - public @Nullable Map getRecursiveClassMap() { - return recursiveClassMap; - } - - public void setRecursiveClassMap(@Nullable Map setterArg) { - this.recursiveClassMap = setterArg; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllNullableTypes that = (AllNullableTypes) o; - return pigeonDeepEquals(aNullableBool, that.aNullableBool) - && pigeonDeepEquals(aNullableInt, that.aNullableInt) - && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) - && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) - && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) - && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) - && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) - && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) - && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) - && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) - && pigeonDeepEquals(aNullableString, that.aNullableString) - && pigeonDeepEquals(aNullableObject, that.aNullableObject) - && pigeonDeepEquals(allNullableTypes, that.allNullableTypes) - && pigeonDeepEquals(list, that.list) - && pigeonDeepEquals(stringList, that.stringList) - && pigeonDeepEquals(intList, that.intList) - && pigeonDeepEquals(doubleList, that.doubleList) - && pigeonDeepEquals(boolList, that.boolList) - && pigeonDeepEquals(enumList, that.enumList) - && pigeonDeepEquals(objectList, that.objectList) - && pigeonDeepEquals(listList, that.listList) - && pigeonDeepEquals(mapList, that.mapList) - && pigeonDeepEquals(recursiveClassList, that.recursiveClassList) - && pigeonDeepEquals(map, that.map) - && pigeonDeepEquals(stringMap, that.stringMap) - && pigeonDeepEquals(intMap, that.intMap) - && pigeonDeepEquals(enumMap, that.enumMap) - && pigeonDeepEquals(objectMap, that.objectMap) - && pigeonDeepEquals(listMap, that.listMap) - && pigeonDeepEquals(mapMap, that.mapMap) - && pigeonDeepEquals(recursiveClassMap, that.recursiveClassMap); - } - - @Override - public int hashCode() { - Object[] fields = - new Object[] { - getClass(), - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap - }; - return pigeonDeepHashCode(fields); - } - - public static final class Builder { - - private @Nullable Boolean aNullableBool; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - return this; - } - - private @Nullable Long aNullableInt; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - return this; - } - - private @Nullable Long aNullableInt64; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - return this; - } - - private @Nullable Double aNullableDouble; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - return this; - } - - private @Nullable byte[] aNullableByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - return this; - } - - private @Nullable int[] aNullable4ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - return this; - } - - private @Nullable long[] aNullable8ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - return this; - } - - private @Nullable double[] aNullableFloatArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - return this; - } - - private @Nullable AnEnum aNullableEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - return this; - } - - private @Nullable AnotherEnum anotherNullableEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { - this.anotherNullableEnum = setterArg; - return this; - } - - private @Nullable String aNullableString; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - return this; - } - - private @Nullable Object aNullableObject; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - return this; - } - - private @Nullable AllNullableTypes allNullableTypes; - - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypes(@Nullable AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; - return this; - } - - private @Nullable List list; - - @CanIgnoreReturnValue - public @NonNull Builder setList(@Nullable List setterArg) { - this.list = setterArg; - return this; - } - - private @Nullable List stringList; - - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - return this; - } - - private @Nullable List intList; - - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@Nullable List setterArg) { - this.intList = setterArg; - return this; - } - - private @Nullable List doubleList; - - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - return this; - } - - private @Nullable List boolList; - - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - return this; - } - - private @Nullable List enumList; - - @CanIgnoreReturnValue - public @NonNull Builder setEnumList(@Nullable List setterArg) { - this.enumList = setterArg; - return this; - } - - private @Nullable List objectList; - - @CanIgnoreReturnValue - public @NonNull Builder setObjectList(@Nullable List setterArg) { - this.objectList = setterArg; - return this; - } - - private @Nullable List> listList; - - @CanIgnoreReturnValue - public @NonNull Builder setListList(@Nullable List> setterArg) { - this.listList = setterArg; - return this; - } - - private @Nullable List> mapList; - - @CanIgnoreReturnValue - public @NonNull Builder setMapList(@Nullable List> setterArg) { - this.mapList = setterArg; - return this; - } - - private @Nullable List recursiveClassList; - - @CanIgnoreReturnValue - public @NonNull Builder setRecursiveClassList(@Nullable List setterArg) { - this.recursiveClassList = setterArg; - return this; - } - - private @Nullable Map map; - - @CanIgnoreReturnValue - public @NonNull Builder setMap(@Nullable Map setterArg) { - this.map = setterArg; - return this; - } - - private @Nullable Map stringMap; - - @CanIgnoreReturnValue - public @NonNull Builder setStringMap(@Nullable Map setterArg) { - this.stringMap = setterArg; - return this; - } - - private @Nullable Map intMap; - - @CanIgnoreReturnValue - public @NonNull Builder setIntMap(@Nullable Map setterArg) { - this.intMap = setterArg; - return this; - } - - private @Nullable Map enumMap; - - @CanIgnoreReturnValue - public @NonNull Builder setEnumMap(@Nullable Map setterArg) { - this.enumMap = setterArg; - return this; - } - - private @Nullable Map objectMap; - - @CanIgnoreReturnValue - public @NonNull Builder setObjectMap(@Nullable Map setterArg) { - this.objectMap = setterArg; - return this; - } - - private @Nullable Map> listMap; - - @CanIgnoreReturnValue - public @NonNull Builder setListMap(@Nullable Map> setterArg) { - this.listMap = setterArg; - return this; - } - - private @Nullable Map> mapMap; - - @CanIgnoreReturnValue - public @NonNull Builder setMapMap(@Nullable Map> setterArg) { - this.mapMap = setterArg; - return this; - } - - private @Nullable Map recursiveClassMap; - - @CanIgnoreReturnValue - public @NonNull Builder setRecursiveClassMap( - @Nullable Map setterArg) { - this.recursiveClassMap = setterArg; - return this; - } - - public @NonNull AllNullableTypes build() { - AllNullableTypes pigeonReturn = new AllNullableTypes(); - pigeonReturn.setANullableBool(aNullableBool); - pigeonReturn.setANullableInt(aNullableInt); - pigeonReturn.setANullableInt64(aNullableInt64); - pigeonReturn.setANullableDouble(aNullableDouble); - pigeonReturn.setANullableByteArray(aNullableByteArray); - pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); - pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); - pigeonReturn.setANullableFloatArray(aNullableFloatArray); - pigeonReturn.setANullableEnum(aNullableEnum); - pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); - pigeonReturn.setANullableString(aNullableString); - pigeonReturn.setANullableObject(aNullableObject); - pigeonReturn.setAllNullableTypes(allNullableTypes); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setEnumList(enumList); - pigeonReturn.setObjectList(objectList); - pigeonReturn.setListList(listList); - pigeonReturn.setMapList(mapList); - pigeonReturn.setRecursiveClassList(recursiveClassList); - pigeonReturn.setMap(map); - pigeonReturn.setStringMap(stringMap); - pigeonReturn.setIntMap(intMap); - pigeonReturn.setEnumMap(enumMap); - pigeonReturn.setObjectMap(objectMap); - pigeonReturn.setListMap(listMap); - pigeonReturn.setMapMap(mapMap); - pigeonReturn.setRecursiveClassMap(recursiveClassMap); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(31); - toListResult.add(aNullableBool); - toListResult.add(aNullableInt); - toListResult.add(aNullableInt64); - toListResult.add(aNullableDouble); - toListResult.add(aNullableByteArray); - toListResult.add(aNullable4ByteArray); - toListResult.add(aNullable8ByteArray); - toListResult.add(aNullableFloatArray); - toListResult.add(aNullableEnum); - toListResult.add(anotherNullableEnum); - toListResult.add(aNullableString); - toListResult.add(aNullableObject); - toListResult.add(allNullableTypes); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(enumList); - toListResult.add(objectList); - toListResult.add(listList); - toListResult.add(mapList); - toListResult.add(recursiveClassList); - toListResult.add(map); - toListResult.add(stringMap); - toListResult.add(intMap); - toListResult.add(enumMap); - toListResult.add(objectMap); - toListResult.add(listMap); - toListResult.add(mapMap); - toListResult.add(recursiveClassMap); - return toListResult; - } - - static @NonNull AllNullableTypes fromList(@NonNull ArrayList pigeonVar_list) { - AllNullableTypes pigeonResult = new AllNullableTypes(); - Object aNullableBool = pigeonVar_list.get(0); - pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = pigeonVar_list.get(1); - pigeonResult.setANullableInt((Long) aNullableInt); - Object aNullableInt64 = pigeonVar_list.get(2); - pigeonResult.setANullableInt64((Long) aNullableInt64); - Object aNullableDouble = pigeonVar_list.get(3); - pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = pigeonVar_list.get(4); - pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = pigeonVar_list.get(5); - pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = pigeonVar_list.get(6); - pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = pigeonVar_list.get(7); - pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object aNullableEnum = pigeonVar_list.get(8); - pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object anotherNullableEnum = pigeonVar_list.get(9); - pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); - Object aNullableString = pigeonVar_list.get(10); - pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = pigeonVar_list.get(11); - pigeonResult.setANullableObject(aNullableObject); - Object allNullableTypes = pigeonVar_list.get(12); - pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object list = pigeonVar_list.get(13); - pigeonResult.setList((List) list); - Object stringList = pigeonVar_list.get(14); - pigeonResult.setStringList((List) stringList); - Object intList = pigeonVar_list.get(15); - pigeonResult.setIntList((List) intList); - Object doubleList = pigeonVar_list.get(16); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = pigeonVar_list.get(17); - pigeonResult.setBoolList((List) boolList); - Object enumList = pigeonVar_list.get(18); - pigeonResult.setEnumList((List) enumList); - Object objectList = pigeonVar_list.get(19); - pigeonResult.setObjectList((List) objectList); - Object listList = pigeonVar_list.get(20); - pigeonResult.setListList((List>) listList); - Object mapList = pigeonVar_list.get(21); - pigeonResult.setMapList((List>) mapList); - Object recursiveClassList = pigeonVar_list.get(22); - pigeonResult.setRecursiveClassList((List) recursiveClassList); - Object map = pigeonVar_list.get(23); - pigeonResult.setMap((Map) map); - Object stringMap = pigeonVar_list.get(24); - pigeonResult.setStringMap((Map) stringMap); - Object intMap = pigeonVar_list.get(25); - pigeonResult.setIntMap((Map) intMap); - Object enumMap = pigeonVar_list.get(26); - pigeonResult.setEnumMap((Map) enumMap); - Object objectMap = pigeonVar_list.get(27); - pigeonResult.setObjectMap((Map) objectMap); - Object listMap = pigeonVar_list.get(28); - pigeonResult.setListMap((Map>) listMap); - Object mapMap = pigeonVar_list.get(29); - pigeonResult.setMapMap((Map>) mapMap); - Object recursiveClassMap = pigeonVar_list.get(30); - pigeonResult.setRecursiveClassMap((Map) recursiveClassMap); - return pigeonResult; - } - } - - /** - * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, - * as the primary [AllNullableTypes] class is being used to test Swift classes. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllNullableTypesWithoutRecursion { - private @Nullable Boolean aNullableBool; - - public @Nullable Boolean getANullableBool() { - return aNullableBool; - } - - public void setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - } - - private @Nullable Long aNullableInt; - - public @Nullable Long getANullableInt() { - return aNullableInt; - } - - public void setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - } - - private @Nullable Long aNullableInt64; - - public @Nullable Long getANullableInt64() { - return aNullableInt64; - } - - public void setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - } - - private @Nullable Double aNullableDouble; - - public @Nullable Double getANullableDouble() { - return aNullableDouble; - } - - public void setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - } - - private @Nullable byte[] aNullableByteArray; - - public @Nullable byte[] getANullableByteArray() { - return aNullableByteArray; - } - - public void setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - } - - private @Nullable int[] aNullable4ByteArray; - - public @Nullable int[] getANullable4ByteArray() { - return aNullable4ByteArray; - } - - public void setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - } - - private @Nullable long[] aNullable8ByteArray; - - public @Nullable long[] getANullable8ByteArray() { - return aNullable8ByteArray; - } - - public void setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - } - - private @Nullable double[] aNullableFloatArray; - - public @Nullable double[] getANullableFloatArray() { - return aNullableFloatArray; - } - - public void setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - } - - private @Nullable AnEnum aNullableEnum; - - public @Nullable AnEnum getANullableEnum() { - return aNullableEnum; - } - - public void setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - } - - private @Nullable AnotherEnum anotherNullableEnum; - - public @Nullable AnotherEnum getAnotherNullableEnum() { - return anotherNullableEnum; - } - - public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { - this.anotherNullableEnum = setterArg; - } - - private @Nullable String aNullableString; - - public @Nullable String getANullableString() { - return aNullableString; - } - - public void setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - } - - private @Nullable Object aNullableObject; - - public @Nullable Object getANullableObject() { - return aNullableObject; - } - - public void setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - } - - private @Nullable List list; - - public @Nullable List getList() { - return list; - } - - public void setList(@Nullable List setterArg) { - this.list = setterArg; - } - - private @Nullable List stringList; - - public @Nullable List getStringList() { - return stringList; - } - - public void setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - } - - private @Nullable List intList; - - public @Nullable List getIntList() { - return intList; - } - - public void setIntList(@Nullable List setterArg) { - this.intList = setterArg; - } - - private @Nullable List doubleList; - - public @Nullable List getDoubleList() { - return doubleList; - } - - public void setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - } - - private @Nullable List boolList; - - public @Nullable List getBoolList() { - return boolList; - } - - public void setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - } - - private @Nullable List enumList; - - public @Nullable List getEnumList() { - return enumList; - } - - public void setEnumList(@Nullable List setterArg) { - this.enumList = setterArg; - } - - private @Nullable List objectList; - - public @Nullable List getObjectList() { - return objectList; - } - - public void setObjectList(@Nullable List setterArg) { - this.objectList = setterArg; - } - - private @Nullable List> listList; - - public @Nullable List> getListList() { - return listList; - } - - public void setListList(@Nullable List> setterArg) { - this.listList = setterArg; - } - - private @Nullable List> mapList; - - public @Nullable List> getMapList() { - return mapList; - } - - public void setMapList(@Nullable List> setterArg) { - this.mapList = setterArg; - } - - private @Nullable Map map; - - public @Nullable Map getMap() { - return map; - } - - public void setMap(@Nullable Map setterArg) { - this.map = setterArg; - } - - private @Nullable Map stringMap; - - public @Nullable Map getStringMap() { - return stringMap; - } - - public void setStringMap(@Nullable Map setterArg) { - this.stringMap = setterArg; - } - - private @Nullable Map intMap; - - public @Nullable Map getIntMap() { - return intMap; - } - - public void setIntMap(@Nullable Map setterArg) { - this.intMap = setterArg; - } - - private @Nullable Map enumMap; - - public @Nullable Map getEnumMap() { - return enumMap; - } - - public void setEnumMap(@Nullable Map setterArg) { - this.enumMap = setterArg; - } - - private @Nullable Map objectMap; - - public @Nullable Map getObjectMap() { - return objectMap; - } - - public void setObjectMap(@Nullable Map setterArg) { - this.objectMap = setterArg; - } - - private @Nullable Map> listMap; - - public @Nullable Map> getListMap() { - return listMap; - } - - public void setListMap(@Nullable Map> setterArg) { - this.listMap = setterArg; - } - - private @Nullable Map> mapMap; - - public @Nullable Map> getMapMap() { - return mapMap; - } - - public void setMapMap(@Nullable Map> setterArg) { - this.mapMap = setterArg; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; - return pigeonDeepEquals(aNullableBool, that.aNullableBool) - && pigeonDeepEquals(aNullableInt, that.aNullableInt) - && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) - && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) - && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) - && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) - && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) - && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) - && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) - && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) - && pigeonDeepEquals(aNullableString, that.aNullableString) - && pigeonDeepEquals(aNullableObject, that.aNullableObject) - && pigeonDeepEquals(list, that.list) - && pigeonDeepEquals(stringList, that.stringList) - && pigeonDeepEquals(intList, that.intList) - && pigeonDeepEquals(doubleList, that.doubleList) - && pigeonDeepEquals(boolList, that.boolList) - && pigeonDeepEquals(enumList, that.enumList) - && pigeonDeepEquals(objectList, that.objectList) - && pigeonDeepEquals(listList, that.listList) - && pigeonDeepEquals(mapList, that.mapList) - && pigeonDeepEquals(map, that.map) - && pigeonDeepEquals(stringMap, that.stringMap) - && pigeonDeepEquals(intMap, that.intMap) - && pigeonDeepEquals(enumMap, that.enumMap) - && pigeonDeepEquals(objectMap, that.objectMap) - && pigeonDeepEquals(listMap, that.listMap) - && pigeonDeepEquals(mapMap, that.mapMap); - } - - @Override - public int hashCode() { - Object[] fields = - new Object[] { - getClass(), - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap - }; - return pigeonDeepHashCode(fields); - } - - public static final class Builder { - - private @Nullable Boolean aNullableBool; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - return this; - } - - private @Nullable Long aNullableInt; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - return this; - } - - private @Nullable Long aNullableInt64; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - return this; - } - - private @Nullable Double aNullableDouble; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - return this; - } - - private @Nullable byte[] aNullableByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - return this; - } - - private @Nullable int[] aNullable4ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - return this; - } - - private @Nullable long[] aNullable8ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - return this; - } - - private @Nullable double[] aNullableFloatArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - return this; - } - - private @Nullable AnEnum aNullableEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - return this; - } - - private @Nullable AnotherEnum anotherNullableEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { - this.anotherNullableEnum = setterArg; - return this; - } - - private @Nullable String aNullableString; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - return this; - } - - private @Nullable Object aNullableObject; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - return this; - } - - private @Nullable List list; - - @CanIgnoreReturnValue - public @NonNull Builder setList(@Nullable List setterArg) { - this.list = setterArg; - return this; - } - - private @Nullable List stringList; - - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - return this; - } - - private @Nullable List intList; - - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@Nullable List setterArg) { - this.intList = setterArg; - return this; - } - - private @Nullable List doubleList; - - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - return this; - } - - private @Nullable List boolList; - - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - return this; - } - - private @Nullable List enumList; - - @CanIgnoreReturnValue - public @NonNull Builder setEnumList(@Nullable List setterArg) { - this.enumList = setterArg; - return this; - } - - private @Nullable List objectList; - - @CanIgnoreReturnValue - public @NonNull Builder setObjectList(@Nullable List setterArg) { - this.objectList = setterArg; - return this; - } - - private @Nullable List> listList; - - @CanIgnoreReturnValue - public @NonNull Builder setListList(@Nullable List> setterArg) { - this.listList = setterArg; - return this; - } - - private @Nullable List> mapList; - - @CanIgnoreReturnValue - public @NonNull Builder setMapList(@Nullable List> setterArg) { - this.mapList = setterArg; - return this; - } - - private @Nullable Map map; - - @CanIgnoreReturnValue - public @NonNull Builder setMap(@Nullable Map setterArg) { - this.map = setterArg; - return this; - } - - private @Nullable Map stringMap; - - @CanIgnoreReturnValue - public @NonNull Builder setStringMap(@Nullable Map setterArg) { - this.stringMap = setterArg; - return this; - } - - private @Nullable Map intMap; - - @CanIgnoreReturnValue - public @NonNull Builder setIntMap(@Nullable Map setterArg) { - this.intMap = setterArg; - return this; - } - - private @Nullable Map enumMap; - - @CanIgnoreReturnValue - public @NonNull Builder setEnumMap(@Nullable Map setterArg) { - this.enumMap = setterArg; - return this; - } - - private @Nullable Map objectMap; - - @CanIgnoreReturnValue - public @NonNull Builder setObjectMap(@Nullable Map setterArg) { - this.objectMap = setterArg; - return this; - } - - private @Nullable Map> listMap; - - @CanIgnoreReturnValue - public @NonNull Builder setListMap(@Nullable Map> setterArg) { - this.listMap = setterArg; - return this; - } - - private @Nullable Map> mapMap; - - @CanIgnoreReturnValue - public @NonNull Builder setMapMap(@Nullable Map> setterArg) { - this.mapMap = setterArg; - return this; - } - - public @NonNull AllNullableTypesWithoutRecursion build() { - AllNullableTypesWithoutRecursion pigeonReturn = new AllNullableTypesWithoutRecursion(); - pigeonReturn.setANullableBool(aNullableBool); - pigeonReturn.setANullableInt(aNullableInt); - pigeonReturn.setANullableInt64(aNullableInt64); - pigeonReturn.setANullableDouble(aNullableDouble); - pigeonReturn.setANullableByteArray(aNullableByteArray); - pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); - pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); - pigeonReturn.setANullableFloatArray(aNullableFloatArray); - pigeonReturn.setANullableEnum(aNullableEnum); - pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); - pigeonReturn.setANullableString(aNullableString); - pigeonReturn.setANullableObject(aNullableObject); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setEnumList(enumList); - pigeonReturn.setObjectList(objectList); - pigeonReturn.setListList(listList); - pigeonReturn.setMapList(mapList); - pigeonReturn.setMap(map); - pigeonReturn.setStringMap(stringMap); - pigeonReturn.setIntMap(intMap); - pigeonReturn.setEnumMap(enumMap); - pigeonReturn.setObjectMap(objectMap); - pigeonReturn.setListMap(listMap); - pigeonReturn.setMapMap(mapMap); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(28); - toListResult.add(aNullableBool); - toListResult.add(aNullableInt); - toListResult.add(aNullableInt64); - toListResult.add(aNullableDouble); - toListResult.add(aNullableByteArray); - toListResult.add(aNullable4ByteArray); - toListResult.add(aNullable8ByteArray); - toListResult.add(aNullableFloatArray); - toListResult.add(aNullableEnum); - toListResult.add(anotherNullableEnum); - toListResult.add(aNullableString); - toListResult.add(aNullableObject); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(enumList); - toListResult.add(objectList); - toListResult.add(listList); - toListResult.add(mapList); - toListResult.add(map); - toListResult.add(stringMap); - toListResult.add(intMap); - toListResult.add(enumMap); - toListResult.add(objectMap); - toListResult.add(listMap); - toListResult.add(mapMap); - return toListResult; - } - - static @NonNull AllNullableTypesWithoutRecursion fromList( - @NonNull ArrayList pigeonVar_list) { - AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); - Object aNullableBool = pigeonVar_list.get(0); - pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = pigeonVar_list.get(1); - pigeonResult.setANullableInt((Long) aNullableInt); - Object aNullableInt64 = pigeonVar_list.get(2); - pigeonResult.setANullableInt64((Long) aNullableInt64); - Object aNullableDouble = pigeonVar_list.get(3); - pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = pigeonVar_list.get(4); - pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = pigeonVar_list.get(5); - pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = pigeonVar_list.get(6); - pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = pigeonVar_list.get(7); - pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object aNullableEnum = pigeonVar_list.get(8); - pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object anotherNullableEnum = pigeonVar_list.get(9); - pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); - Object aNullableString = pigeonVar_list.get(10); - pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = pigeonVar_list.get(11); - pigeonResult.setANullableObject(aNullableObject); - Object list = pigeonVar_list.get(12); - pigeonResult.setList((List) list); - Object stringList = pigeonVar_list.get(13); - pigeonResult.setStringList((List) stringList); - Object intList = pigeonVar_list.get(14); - pigeonResult.setIntList((List) intList); - Object doubleList = pigeonVar_list.get(15); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = pigeonVar_list.get(16); - pigeonResult.setBoolList((List) boolList); - Object enumList = pigeonVar_list.get(17); - pigeonResult.setEnumList((List) enumList); - Object objectList = pigeonVar_list.get(18); - pigeonResult.setObjectList((List) objectList); - Object listList = pigeonVar_list.get(19); - pigeonResult.setListList((List>) listList); - Object mapList = pigeonVar_list.get(20); - pigeonResult.setMapList((List>) mapList); - Object map = pigeonVar_list.get(21); - pigeonResult.setMap((Map) map); - Object stringMap = pigeonVar_list.get(22); - pigeonResult.setStringMap((Map) stringMap); - Object intMap = pigeonVar_list.get(23); - pigeonResult.setIntMap((Map) intMap); - Object enumMap = pigeonVar_list.get(24); - pigeonResult.setEnumMap((Map) enumMap); - Object objectMap = pigeonVar_list.get(25); - pigeonResult.setObjectMap((Map) objectMap); - Object listMap = pigeonVar_list.get(26); - pigeonResult.setListMap((Map>) listMap); - Object mapMap = pigeonVar_list.get(27); - pigeonResult.setMapMap((Map>) mapMap); - return pigeonResult; - } - } - - /** - * A class for testing nested class handling. - * - *

This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is - * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require - * both (ie. testing null classes). - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllClassesWrapper { - private @NonNull AllNullableTypes allNullableTypes; - - public @NonNull AllNullableTypes getAllNullableTypes() { - return allNullableTypes; - } - - public void setAllNullableTypes(@NonNull AllNullableTypes setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"allNullableTypes\" is null."); - } - this.allNullableTypes = setterArg; - } - - private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; - - public @Nullable AllNullableTypesWithoutRecursion getAllNullableTypesWithoutRecursion() { - return allNullableTypesWithoutRecursion; - } - - public void setAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion setterArg) { - this.allNullableTypesWithoutRecursion = setterArg; - } - - private @Nullable AllTypes allTypes; - - public @Nullable AllTypes getAllTypes() { - return allTypes; - } - - public void setAllTypes(@Nullable AllTypes setterArg) { - this.allTypes = setterArg; - } - - private @NonNull List classList; - - public @NonNull List getClassList() { - return classList; - } - - public void setClassList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"classList\" is null."); - } - this.classList = setterArg; - } - - private @Nullable List nullableClassList; - - public @Nullable List getNullableClassList() { - return nullableClassList; - } - - public void setNullableClassList(@Nullable List setterArg) { - this.nullableClassList = setterArg; - } - - private @NonNull Map classMap; - - public @NonNull Map getClassMap() { - return classMap; - } - - public void setClassMap(@NonNull Map setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"classMap\" is null."); - } - this.classMap = setterArg; - } - - private @Nullable Map nullableClassMap; - - public @Nullable Map getNullableClassMap() { - return nullableClassMap; - } - - public void setNullableClassMap( - @Nullable Map setterArg) { - this.nullableClassMap = setterArg; - } - - /** Constructor is non-public to enforce null safety; use Builder. */ - AllClassesWrapper() {} - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllClassesWrapper that = (AllClassesWrapper) o; - return pigeonDeepEquals(allNullableTypes, that.allNullableTypes) - && pigeonDeepEquals( - allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) - && pigeonDeepEquals(allTypes, that.allTypes) - && pigeonDeepEquals(classList, that.classList) - && pigeonDeepEquals(nullableClassList, that.nullableClassList) - && pigeonDeepEquals(classMap, that.classMap) - && pigeonDeepEquals(nullableClassMap, that.nullableClassMap); - } - - @Override - public int hashCode() { - Object[] fields = - new Object[] { - getClass(), - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap - }; - return pigeonDeepHashCode(fields); - } - - public static final class Builder { - - private @Nullable AllNullableTypes allNullableTypes; - - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypes(@NonNull AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; - return this; - } - - private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; - - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion setterArg) { - this.allNullableTypesWithoutRecursion = setterArg; - return this; - } - - private @Nullable AllTypes allTypes; - - @CanIgnoreReturnValue - public @NonNull Builder setAllTypes(@Nullable AllTypes setterArg) { - this.allTypes = setterArg; - return this; - } - - private @Nullable List classList; - - @CanIgnoreReturnValue - public @NonNull Builder setClassList(@NonNull List setterArg) { - this.classList = setterArg; - return this; - } - - private @Nullable List nullableClassList; - - @CanIgnoreReturnValue - public @NonNull Builder setNullableClassList( - @Nullable List setterArg) { - this.nullableClassList = setterArg; - return this; - } - - private @Nullable Map classMap; - - @CanIgnoreReturnValue - public @NonNull Builder setClassMap(@NonNull Map setterArg) { - this.classMap = setterArg; - return this; - } - - private @Nullable Map nullableClassMap; - - @CanIgnoreReturnValue - public @NonNull Builder setNullableClassMap( - @Nullable Map setterArg) { - this.nullableClassMap = setterArg; - return this; - } - - public @NonNull AllClassesWrapper build() { - AllClassesWrapper pigeonReturn = new AllClassesWrapper(); - pigeonReturn.setAllNullableTypes(allNullableTypes); - pigeonReturn.setAllNullableTypesWithoutRecursion(allNullableTypesWithoutRecursion); - pigeonReturn.setAllTypes(allTypes); - pigeonReturn.setClassList(classList); - pigeonReturn.setNullableClassList(nullableClassList); - pigeonReturn.setClassMap(classMap); - pigeonReturn.setNullableClassMap(nullableClassMap); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(7); - toListResult.add(allNullableTypes); - toListResult.add(allNullableTypesWithoutRecursion); - toListResult.add(allTypes); - toListResult.add(classList); - toListResult.add(nullableClassList); - toListResult.add(classMap); - toListResult.add(nullableClassMap); - return toListResult; - } - - static @NonNull AllClassesWrapper fromList(@NonNull ArrayList pigeonVar_list) { - AllClassesWrapper pigeonResult = new AllClassesWrapper(); - Object allNullableTypes = pigeonVar_list.get(0); - pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object allNullableTypesWithoutRecursion = pigeonVar_list.get(1); - pigeonResult.setAllNullableTypesWithoutRecursion( - (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); - Object allTypes = pigeonVar_list.get(2); - pigeonResult.setAllTypes((AllTypes) allTypes); - Object classList = pigeonVar_list.get(3); - pigeonResult.setClassList((List) classList); - Object nullableClassList = pigeonVar_list.get(4); - pigeonResult.setNullableClassList((List) nullableClassList); - Object classMap = pigeonVar_list.get(5); - pigeonResult.setClassMap((Map) classMap); - Object nullableClassMap = pigeonVar_list.get(6); - pigeonResult.setNullableClassMap( - (Map) nullableClassMap); - return pigeonResult; - } - } - - /** - * A data class containing a List, used in unit tests. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class TestMessage { - private @Nullable List testList; - - public @Nullable List getTestList() { - return testList; - } - - public void setTestList(@Nullable List setterArg) { - this.testList = setterArg; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TestMessage that = (TestMessage) o; - return pigeonDeepEquals(testList, that.testList); - } - - @Override - public int hashCode() { - Object[] fields = new Object[] {getClass(), testList}; - return pigeonDeepHashCode(fields); - } - - public static final class Builder { - - private @Nullable List testList; - - @CanIgnoreReturnValue - public @NonNull Builder setTestList(@Nullable List setterArg) { - this.testList = setterArg; - return this; - } - - public @NonNull TestMessage build() { - TestMessage pigeonReturn = new TestMessage(); - pigeonReturn.setTestList(testList); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(1); - toListResult.add(testList); - return toListResult; - } - - static @NonNull TestMessage fromList(@NonNull ArrayList pigeonVar_list) { - TestMessage pigeonResult = new TestMessage(); - Object testList = pigeonVar_list.get(0); - pigeonResult.setTestList((List) testList); - return pigeonResult; - } - } - - private static class PigeonCodec extends StandardMessageCodec { - public static final PigeonCodec INSTANCE = new PigeonCodec(); - - private PigeonCodec() {} - - @Override - protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { - switch (type) { - case (byte) 129: - { - Object value = readValue(buffer); - return value == null ? null : AnEnum.values()[((Long) value).intValue()]; - } - case (byte) 130: - { - Object value = readValue(buffer); - return value == null ? null : AnotherEnum.values()[((Long) value).intValue()]; - } - case (byte) 131: - return UnusedClass.fromList((ArrayList) readValue(buffer)); - case (byte) 132: - return AllTypes.fromList((ArrayList) readValue(buffer)); - case (byte) 133: - return AllNullableTypes.fromList((ArrayList) readValue(buffer)); - case (byte) 134: - return AllNullableTypesWithoutRecursion.fromList((ArrayList) readValue(buffer)); - case (byte) 135: - return AllClassesWrapper.fromList((ArrayList) readValue(buffer)); - case (byte) 136: - return TestMessage.fromList((ArrayList) readValue(buffer)); - default: - return super.readValueOfType(type, buffer); - } - } - - @Override - protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { - if (value instanceof AnEnum) { - stream.write(129); - writeValue(stream, value == null ? null : ((AnEnum) value).index); - } else if (value instanceof AnotherEnum) { - stream.write(130); - writeValue(stream, value == null ? null : ((AnotherEnum) value).index); - } else if (value instanceof UnusedClass) { - stream.write(131); - writeValue(stream, ((UnusedClass) value).toList()); - } else if (value instanceof AllTypes) { - stream.write(132); - writeValue(stream, ((AllTypes) value).toList()); - } else if (value instanceof AllNullableTypes) { - stream.write(133); - writeValue(stream, ((AllNullableTypes) value).toList()); - } else if (value instanceof AllNullableTypesWithoutRecursion) { - stream.write(134); - writeValue(stream, ((AllNullableTypesWithoutRecursion) value).toList()); - } else if (value instanceof AllClassesWrapper) { - stream.write(135); - writeValue(stream, ((AllClassesWrapper) value).toList()); - } else if (value instanceof TestMessage) { - stream.write(136); - writeValue(stream, ((TestMessage) value).toList()); - } else { - super.writeValue(stream, value); - } - } - } - - /** Asynchronous error handling return type for non-nullable API method returns. */ - public interface Result { - /** Success case callback method for handling returns. */ - void success(@NonNull T result); - - /** Failure case callback method for handling errors. */ - void error(@NonNull Throwable error); - } - /** Asynchronous error handling return type for nullable API method returns. */ - public interface NullableResult { - /** Success case callback method for handling returns. */ - void success(@Nullable T result); - - /** Failure case callback method for handling errors. */ - void error(@NonNull Throwable error); - } - /** Asynchronous error handling return type for void API method returns. */ - public interface VoidResult { - /** Success case callback method for handling returns. */ - void success(); - - /** Failure case callback method for handling errors. */ - void error(@NonNull Throwable error); - } - /** - * The core interface that each host language plugin must implement in platform_test integration - * tests. - * - *

Generated interface from Pigeon that represents a handler of messages from Flutter. - */ - public interface HostIntegrationCoreApi { - /** - * A no-op function taking no arguments and returning no value, to sanity test basic calling. - */ - void noop(); - /** Returns the passed object, to test serialization and deserialization. */ - @NonNull - AllTypes echoAllTypes(@NonNull AllTypes everything); - /** Returns an error, to test error handling. */ - @Nullable - Object throwError(); - /** Returns an error from a void function, to test error handling. */ - void throwErrorFromVoid(); - /** Returns a Flutter error, to test error handling. */ - @Nullable - Object throwFlutterError(); - /** Returns passed in int. */ - @NonNull - Long echoInt(@NonNull Long anInt); - /** Returns passed in double. */ - @NonNull - Double echoDouble(@NonNull Double aDouble); - /** Returns the passed in boolean. */ - @NonNull - Boolean echoBool(@NonNull Boolean aBool); - /** Returns the passed in string. */ - @NonNull - String echoString(@NonNull String aString); - /** Returns the passed in Uint8List. */ - @NonNull - byte[] echoUint8List(@NonNull byte[] aUint8List); - /** Returns the passed in generic Object. */ - @NonNull - Object echoObject(@NonNull Object anObject); - /** Returns the passed list, to test serialization and deserialization. */ - @NonNull - List echoList(@NonNull List list); - /** Returns the passed list, to test serialization and deserialization. */ - @NonNull - List echoEnumList(@NonNull List enumList); - /** Returns the passed list, to test serialization and deserialization. */ - @NonNull - List echoClassList(@NonNull List classList); - /** Returns the passed list, to test serialization and deserialization. */ - @NonNull - List echoNonNullEnumList(@NonNull List enumList); - /** Returns the passed list, to test serialization and deserialization. */ - @NonNull - List echoNonNullClassList(@NonNull List classList); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoMap(@NonNull Map map); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoStringMap(@NonNull Map stringMap); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoIntMap(@NonNull Map intMap); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoEnumMap(@NonNull Map enumMap); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoClassMap(@NonNull Map classMap); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoNonNullStringMap(@NonNull Map stringMap); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoNonNullIntMap(@NonNull Map intMap); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoNonNullEnumMap(@NonNull Map enumMap); - /** Returns the passed map, to test serialization and deserialization. */ - @NonNull - Map echoNonNullClassMap(@NonNull Map classMap); - /** Returns the passed class to test nested class serialization and deserialization. */ - @NonNull - AllClassesWrapper echoClassWrapper(@NonNull AllClassesWrapper wrapper); - /** Returns the passed enum to test serialization and deserialization. */ - @NonNull - AnEnum echoEnum(@NonNull AnEnum anEnum); - /** Returns the passed enum to test serialization and deserialization. */ - @NonNull - AnotherEnum echoAnotherEnum(@NonNull AnotherEnum anotherEnum); - /** Returns the default string. */ - @NonNull - String echoNamedDefaultString(@NonNull String aString); - /** Returns passed in double. */ - @NonNull - Double echoOptionalDefaultDouble(@NonNull Double aDouble); - /** Returns passed in int. */ - @NonNull - Long echoRequiredInt(@NonNull Long anInt); - /** Returns the passed object, to test serialization and deserialization. */ - @Nullable - AllNullableTypes echoAllNullableTypes(@Nullable AllNullableTypes everything); - /** Returns the passed object, to test serialization and deserialization. */ - @Nullable - AllNullableTypesWithoutRecursion echoAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion everything); - /** - * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. - */ - @Nullable - String extractNestedNullableString(@NonNull AllClassesWrapper wrapper); - /** - * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. - */ - @NonNull - AllClassesWrapper createNestedNullableString(@Nullable String nullableString); - /** Returns passed in arguments of multiple types. */ - @NonNull - AllNullableTypes sendMultipleNullableTypes( - @Nullable Boolean aNullableBool, - @Nullable Long aNullableInt, - @Nullable String aNullableString); - /** Returns passed in arguments of multiple types. */ - @NonNull - AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( - @Nullable Boolean aNullableBool, - @Nullable Long aNullableInt, - @Nullable String aNullableString); - /** Returns passed in int. */ - @Nullable - Long echoNullableInt(@Nullable Long aNullableInt); - /** Returns passed in double. */ - @Nullable - Double echoNullableDouble(@Nullable Double aNullableDouble); - /** Returns the passed in boolean. */ - @Nullable - Boolean echoNullableBool(@Nullable Boolean aNullableBool); - /** Returns the passed in string. */ - @Nullable - String echoNullableString(@Nullable String aNullableString); - /** Returns the passed in Uint8List. */ - @Nullable - byte[] echoNullableUint8List(@Nullable byte[] aNullableUint8List); - /** Returns the passed in generic Object. */ - @Nullable - Object echoNullableObject(@Nullable Object aNullableObject); - /** Returns the passed list, to test serialization and deserialization. */ - @Nullable - List echoNullableList(@Nullable List aNullableList); - /** Returns the passed list, to test serialization and deserialization. */ - @Nullable - List echoNullableEnumList(@Nullable List enumList); - /** Returns the passed list, to test serialization and deserialization. */ - @Nullable - List echoNullableClassList(@Nullable List classList); - /** Returns the passed list, to test serialization and deserialization. */ - @Nullable - List echoNullableNonNullEnumList(@Nullable List enumList); - /** Returns the passed list, to test serialization and deserialization. */ - @Nullable - List echoNullableNonNullClassList(@Nullable List classList); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableMap(@Nullable Map map); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableStringMap(@Nullable Map stringMap); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableIntMap(@Nullable Map intMap); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableEnumMap(@Nullable Map enumMap); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableClassMap( - @Nullable Map classMap); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableNonNullStringMap(@Nullable Map stringMap); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableNonNullIntMap(@Nullable Map intMap); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableNonNullEnumMap(@Nullable Map enumMap); - /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableNonNullClassMap( - @Nullable Map classMap); - - @Nullable - AnEnum echoNullableEnum(@Nullable AnEnum anEnum); - - @Nullable - AnotherEnum echoAnotherNullableEnum(@Nullable AnotherEnum anotherEnum); - /** Returns passed in int. */ - @Nullable - Long echoOptionalNullableInt(@Nullable Long aNullableInt); - /** Returns the passed in string. */ - @Nullable - String echoNamedNullableString(@Nullable String aNullableString); - /** - * A no-op function taking no arguments and returning no value, to sanity test basic - * asynchronous calling. - */ - void noopAsync(@NonNull VoidResult result); - /** Returns passed in int asynchronously. */ - void echoAsyncInt(@NonNull Long anInt, @NonNull Result result); - /** Returns passed in double asynchronously. */ - void echoAsyncDouble(@NonNull Double aDouble, @NonNull Result result); - /** Returns the passed in boolean asynchronously. */ - void echoAsyncBool(@NonNull Boolean aBool, @NonNull Result result); - /** Returns the passed string asynchronously. */ - void echoAsyncString(@NonNull String aString, @NonNull Result result); - /** Returns the passed in Uint8List asynchronously. */ - void echoAsyncUint8List(@NonNull byte[] aUint8List, @NonNull Result result); - /** Returns the passed in generic Object asynchronously. */ - void echoAsyncObject(@NonNull Object anObject, @NonNull Result result); - /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncList(@NonNull List list, @NonNull Result> result); - /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncEnumList(@NonNull List enumList, @NonNull Result> result); - /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncClassList( - @NonNull List classList, @NonNull Result> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncMap( - @NonNull Map map, @NonNull Result> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncStringMap( - @NonNull Map stringMap, @NonNull Result> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncIntMap(@NonNull Map intMap, @NonNull Result> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncEnumMap( - @NonNull Map enumMap, @NonNull Result> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncClassMap( - @NonNull Map classMap, - @NonNull Result> result); - /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - void echoAsyncEnum(@NonNull AnEnum anEnum, @NonNull Result result); - /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - void echoAnotherAsyncEnum( - @NonNull AnotherEnum anotherEnum, @NonNull Result result); - /** Responds with an error from an async function returning a value. */ - void throwAsyncError(@NonNull NullableResult result); - /** Responds with an error from an async void function. */ - void throwAsyncErrorFromVoid(@NonNull VoidResult result); - /** Responds with a Flutter error from an async function returning a value. */ - void throwAsyncFlutterError(@NonNull NullableResult result); - /** Returns the passed object, to test async serialization and deserialization. */ - void echoAsyncAllTypes(@NonNull AllTypes everything, @NonNull Result result); - /** Returns the passed object, to test serialization and deserialization. */ - void echoAsyncNullableAllNullableTypes( - @Nullable AllNullableTypes everything, @NonNull NullableResult result); - /** Returns the passed object, to test serialization and deserialization. */ - void echoAsyncNullableAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion everything, - @NonNull NullableResult result); - /** Returns passed in int asynchronously. */ - void echoAsyncNullableInt(@Nullable Long anInt, @NonNull NullableResult result); - /** Returns passed in double asynchronously. */ - void echoAsyncNullableDouble(@Nullable Double aDouble, @NonNull NullableResult result); - /** Returns the passed in boolean asynchronously. */ - void echoAsyncNullableBool(@Nullable Boolean aBool, @NonNull NullableResult result); - /** Returns the passed string asynchronously. */ - void echoAsyncNullableString(@Nullable String aString, @NonNull NullableResult result); - /** Returns the passed in Uint8List asynchronously. */ - void echoAsyncNullableUint8List( - @Nullable byte[] aUint8List, @NonNull NullableResult result); - /** Returns the passed in generic Object asynchronously. */ - void echoAsyncNullableObject(@Nullable Object anObject, @NonNull NullableResult result); - /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableList( - @Nullable List list, @NonNull NullableResult> result); - /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableEnumList( - @Nullable List enumList, @NonNull NullableResult> result); - /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableClassList( - @Nullable List classList, - @NonNull NullableResult> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableMap( - @Nullable Map map, @NonNull NullableResult> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableStringMap( - @Nullable Map stringMap, - @NonNull NullableResult> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableIntMap( - @Nullable Map intMap, @NonNull NullableResult> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableEnumMap( - @Nullable Map enumMap, @NonNull NullableResult> result); - /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableClassMap( - @Nullable Map classMap, - @NonNull NullableResult> result); - /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableEnum(@Nullable AnEnum anEnum, @NonNull NullableResult result); - /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - void echoAnotherAsyncNullableEnum( - @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); - /** - * Returns true if the handler is run on a main thread, which should be true since there is no - * TaskQueue annotation. - */ - @NonNull - Boolean defaultIsMainThread(); - /** - * Returns true if the handler is run on a non-main thread, which should be true for any - * platform with TaskQueue support. - */ - @NonNull - Boolean taskQueueIsBackgroundThread(); - - void callFlutterNoop(@NonNull VoidResult result); - - void callFlutterThrowError(@NonNull NullableResult result); - - void callFlutterThrowErrorFromVoid(@NonNull VoidResult result); - - void callFlutterEchoAllTypes(@NonNull AllTypes everything, @NonNull Result result); - - void callFlutterEchoAllNullableTypes( - @Nullable AllNullableTypes everything, @NonNull NullableResult result); - - void callFlutterSendMultipleNullableTypes( - @Nullable Boolean aNullableBool, - @Nullable Long aNullableInt, - @Nullable String aNullableString, - @NonNull Result result); - - void callFlutterEchoAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion everything, - @NonNull NullableResult result); - - void callFlutterSendMultipleNullableTypesWithoutRecursion( - @Nullable Boolean aNullableBool, - @Nullable Long aNullableInt, - @Nullable String aNullableString, - @NonNull Result result); - - void callFlutterEchoBool(@NonNull Boolean aBool, @NonNull Result result); - - void callFlutterEchoInt(@NonNull Long anInt, @NonNull Result result); - - void callFlutterEchoDouble(@NonNull Double aDouble, @NonNull Result result); - - void callFlutterEchoString(@NonNull String aString, @NonNull Result result); - - void callFlutterEchoUint8List(@NonNull byte[] list, @NonNull Result result); - - void callFlutterEchoList(@NonNull List list, @NonNull Result> result); - - void callFlutterEchoEnumList( - @NonNull List enumList, @NonNull Result> result); - - void callFlutterEchoClassList( - @NonNull List classList, @NonNull Result> result); - - void callFlutterEchoNonNullEnumList( - @NonNull List enumList, @NonNull Result> result); - - void callFlutterEchoNonNullClassList( - @NonNull List classList, @NonNull Result> result); - - void callFlutterEchoMap( - @NonNull Map map, @NonNull Result> result); - - void callFlutterEchoStringMap( - @NonNull Map stringMap, @NonNull Result> result); - - void callFlutterEchoIntMap( - @NonNull Map intMap, @NonNull Result> result); - - void callFlutterEchoEnumMap( - @NonNull Map enumMap, @NonNull Result> result); - - void callFlutterEchoClassMap( - @NonNull Map classMap, - @NonNull Result> result); - - void callFlutterEchoNonNullStringMap( - @NonNull Map stringMap, @NonNull Result> result); - - void callFlutterEchoNonNullIntMap( - @NonNull Map intMap, @NonNull Result> result); - - void callFlutterEchoNonNullEnumMap( - @NonNull Map enumMap, @NonNull Result> result); - - void callFlutterEchoNonNullClassMap( - @NonNull Map classMap, - @NonNull Result> result); - - void callFlutterEchoEnum(@NonNull AnEnum anEnum, @NonNull Result result); - - void callFlutterEchoAnotherEnum( - @NonNull AnotherEnum anotherEnum, @NonNull Result result); - - void callFlutterEchoNullableBool( - @Nullable Boolean aBool, @NonNull NullableResult result); - - void callFlutterEchoNullableInt(@Nullable Long anInt, @NonNull NullableResult result); - - void callFlutterEchoNullableDouble( - @Nullable Double aDouble, @NonNull NullableResult result); - - void callFlutterEchoNullableString( - @Nullable String aString, @NonNull NullableResult result); - - void callFlutterEchoNullableUint8List( - @Nullable byte[] list, @NonNull NullableResult result); - - void callFlutterEchoNullableList( - @Nullable List list, @NonNull NullableResult> result); - - void callFlutterEchoNullableEnumList( - @Nullable List enumList, @NonNull NullableResult> result); - - void callFlutterEchoNullableClassList( - @Nullable List classList, - @NonNull NullableResult> result); - - void callFlutterEchoNullableNonNullEnumList( - @Nullable List enumList, @NonNull NullableResult> result); - - void callFlutterEchoNullableNonNullClassList( - @Nullable List classList, - @NonNull NullableResult> result); - - void callFlutterEchoNullableMap( - @Nullable Map map, @NonNull NullableResult> result); - - void callFlutterEchoNullableStringMap( - @Nullable Map stringMap, - @NonNull NullableResult> result); - - void callFlutterEchoNullableIntMap( - @Nullable Map intMap, @NonNull NullableResult> result); - - void callFlutterEchoNullableEnumMap( - @Nullable Map enumMap, @NonNull NullableResult> result); - - void callFlutterEchoNullableClassMap( - @Nullable Map classMap, - @NonNull NullableResult> result); - - void callFlutterEchoNullableNonNullStringMap( - @Nullable Map stringMap, - @NonNull NullableResult> result); - - void callFlutterEchoNullableNonNullIntMap( - @Nullable Map intMap, @NonNull NullableResult> result); - - void callFlutterEchoNullableNonNullEnumMap( - @Nullable Map enumMap, @NonNull NullableResult> result); - - void callFlutterEchoNullableNonNullClassMap( - @Nullable Map classMap, - @NonNull NullableResult> result); - - void callFlutterEchoNullableEnum( - @Nullable AnEnum anEnum, @NonNull NullableResult result); - - void callFlutterEchoAnotherNullableEnum( - @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); - - void callFlutterSmallApiEchoString(@NonNull String aString, @NonNull Result result); - - /** The codec used by HostIntegrationCoreApi. */ - static @NonNull MessageCodec getCodec() { - return PigeonCodec.INSTANCE; - } - /** - * Sets up an instance of `HostIntegrationCoreApi` to handle messages through the - * `binaryMessenger`. - */ - static void setUp( - @NonNull BinaryMessenger binaryMessenger, @Nullable HostIntegrationCoreApi api) { - setUp(binaryMessenger, "", api); - } - - static void setUp( - @NonNull BinaryMessenger binaryMessenger, - @NonNull String messageChannelSuffix, - @Nullable HostIntegrationCoreApi api) { - messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; - BinaryMessenger.TaskQueue taskQueue = binaryMessenger.makeBackgroundTaskQueue(); - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noop" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - try { - api.noop(); - wrapped.add(0, null); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllTypes" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllTypes everythingArg = (AllTypes) args.get(0); - try { - AllTypes output = api.echoAllTypes(everythingArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwError" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - try { - Object output = api.throwError(); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwErrorFromVoid" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - try { - api.throwErrorFromVoid(); - wrapped.add(0, null); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwFlutterError" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - try { - Object output = api.throwFlutterError(); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoInt" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Long anIntArg = (Long) args.get(0); - try { - Long output = api.echoInt(anIntArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoDouble" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Double aDoubleArg = (Double) args.get(0); - try { - Double output = api.echoDouble(aDoubleArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoBool" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aBoolArg = (Boolean) args.get(0); - try { - Boolean output = api.echoBool(aBoolArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aStringArg = (String) args.get(0); - try { - String output = api.echoString(aStringArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoUint8List" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - byte[] aUint8ListArg = (byte[]) args.get(0); - try { - byte[] output = api.echoUint8List(aUint8ListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoObject" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Object anObjectArg = args.get(0); - try { - Object output = api.echoObject(anObjectArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoList" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List listArg = (List) args.get(0); - try { - List output = api.echoList(listArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - try { - List output = api.echoEnumList(enumListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - try { - List output = api.echoClassList(classListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - try { - List output = api.echoNonNullEnumList(enumListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - try { - List output = api.echoNonNullClassList(classListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoMap" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map mapArg = (Map) args.get(0); - try { - Map output = api.echoMap(mapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - try { - Map output = api.echoStringMap(stringMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - try { - Map output = api.echoIntMap(intMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - try { - Map output = api.echoEnumMap(enumMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - try { - Map output = api.echoClassMap(classMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - try { - Map output = api.echoNonNullStringMap(stringMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - try { - Map output = api.echoNonNullIntMap(intMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - try { - Map output = api.echoNonNullEnumMap(enumMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - try { - Map output = api.echoNonNullClassMap(classMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassWrapper" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllClassesWrapper wrapperArg = (AllClassesWrapper) args.get(0); - try { - AllClassesWrapper output = api.echoClassWrapper(wrapperArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnum" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnEnum anEnumArg = (AnEnum) args.get(0); - try { - AnEnum output = api.echoEnum(anEnumArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); - try { - AnotherEnum output = api.echoAnotherEnum(anotherEnumArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedDefaultString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aStringArg = (String) args.get(0); - try { - String output = api.echoNamedDefaultString(aStringArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalDefaultDouble" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Double aDoubleArg = (Double) args.get(0); - try { - Double output = api.echoOptionalDefaultDouble(aDoubleArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoRequiredInt" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Long anIntArg = (Long) args.get(0); - try { - Long output = api.echoRequiredInt(anIntArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypes" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); - try { - AllNullableTypes output = api.echoAllNullableTypes(everythingArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = - (AllNullableTypesWithoutRecursion) args.get(0); - try { - AllNullableTypesWithoutRecursion output = - api.echoAllNullableTypesWithoutRecursion(everythingArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.extractNestedNullableString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllClassesWrapper wrapperArg = (AllClassesWrapper) args.get(0); - try { - String output = api.extractNestedNullableString(wrapperArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.createNestedNullableString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String nullableStringArg = (String) args.get(0); - try { - AllClassesWrapper output = api.createNestedNullableString(nullableStringArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypes" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aNullableBoolArg = (Boolean) args.get(0); - Long aNullableIntArg = (Long) args.get(1); - String aNullableStringArg = (String) args.get(2); - try { - AllNullableTypes output = - api.sendMultipleNullableTypes( - aNullableBoolArg, aNullableIntArg, aNullableStringArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aNullableBoolArg = (Boolean) args.get(0); - Long aNullableIntArg = (Long) args.get(1); - String aNullableStringArg = (String) args.get(2); - try { - AllNullableTypesWithoutRecursion output = - api.sendMultipleNullableTypesWithoutRecursion( - aNullableBoolArg, aNullableIntArg, aNullableStringArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableInt" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Long aNullableIntArg = (Long) args.get(0); - try { - Long output = api.echoNullableInt(aNullableIntArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableDouble" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Double aNullableDoubleArg = (Double) args.get(0); - try { - Double output = api.echoNullableDouble(aNullableDoubleArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableBool" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aNullableBoolArg = (Boolean) args.get(0); - try { - Boolean output = api.echoNullableBool(aNullableBoolArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aNullableStringArg = (String) args.get(0); - try { - String output = api.echoNullableString(aNullableStringArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableUint8List" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - byte[] aNullableUint8ListArg = (byte[]) args.get(0); - try { - byte[] output = api.echoNullableUint8List(aNullableUint8ListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableObject" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Object aNullableObjectArg = args.get(0); - try { - Object output = api.echoNullableObject(aNullableObjectArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List aNullableListArg = (List) args.get(0); - try { - List output = api.echoNullableList(aNullableListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - try { - List output = api.echoNullableEnumList(enumListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - try { - List output = api.echoNullableClassList(classListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - try { - List output = api.echoNullableNonNullEnumList(enumListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - try { - List output = api.echoNullableNonNullClassList(classListArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map mapArg = (Map) args.get(0); - try { - Map output = api.echoNullableMap(mapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - try { - Map output = api.echoNullableStringMap(stringMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - try { - Map output = api.echoNullableIntMap(intMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - try { - Map output = api.echoNullableEnumMap(enumMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - try { - Map output = api.echoNullableClassMap(classMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - try { - Map output = api.echoNullableNonNullStringMap(stringMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - try { - Map output = api.echoNullableNonNullIntMap(intMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - try { - Map output = api.echoNullableNonNullEnumMap(enumMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - try { - Map output = api.echoNullableNonNullClassMap(classMapArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnEnum anEnumArg = (AnEnum) args.get(0); - try { - AnEnum output = api.echoNullableEnum(anEnumArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherNullableEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); - try { - AnotherEnum output = api.echoAnotherNullableEnum(anotherEnumArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalNullableInt" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Long aNullableIntArg = (Long) args.get(0); - try { - Long output = api.echoOptionalNullableInt(aNullableIntArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedNullableString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aNullableStringArg = (String) args.get(0); - try { - String output = api.echoNamedNullableString(aNullableStringArg); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noopAsync" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - VoidResult resultCallback = - new VoidResult() { - public void success() { - wrapped.add(0, null); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.noopAsync(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncInt" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Long anIntArg = (Long) args.get(0); - Result resultCallback = - new Result() { - public void success(Long result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncInt(anIntArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncDouble" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Double aDoubleArg = (Double) args.get(0); - Result resultCallback = - new Result() { - public void success(Double result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncDouble(aDoubleArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncBool" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aBoolArg = (Boolean) args.get(0); - Result resultCallback = - new Result() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncBool(aBoolArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aStringArg = (String) args.get(0); - Result resultCallback = - new Result() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncString(aStringArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncUint8List" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - byte[] aUint8ListArg = (byte[]) args.get(0); - Result resultCallback = - new Result() { - public void success(byte[] result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncUint8List(aUint8ListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncObject" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Object anObjectArg = args.get(0); - Result resultCallback = - new Result() { - public void success(Object result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncObject(anObjectArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List listArg = (List) args.get(0); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncList(listArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncEnumList(enumListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncClassList(classListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map mapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncMap(mapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncStringMap(stringMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncIntMap(intMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncEnumMap(enumMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncClassMap(classMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnEnum anEnumArg = (AnEnum) args.get(0); - Result resultCallback = - new Result() { - public void success(AnEnum result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncEnum(anEnumArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); - Result resultCallback = - new Result() { - public void success(AnotherEnum result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAnotherAsyncEnum(anotherEnumArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncError" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - NullableResult resultCallback = - new NullableResult() { - public void success(Object result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.throwAsyncError(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncErrorFromVoid" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - VoidResult resultCallback = - new VoidResult() { - public void success() { - wrapped.add(0, null); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.throwAsyncErrorFromVoid(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncFlutterError" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - NullableResult resultCallback = - new NullableResult() { - public void success(Object result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.throwAsyncFlutterError(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncAllTypes" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllTypes everythingArg = (AllTypes) args.get(0); - Result resultCallback = - new Result() { - public void success(AllTypes result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncAllTypes(everythingArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(AllNullableTypes result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableAllNullableTypes(everythingArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = - (AllNullableTypesWithoutRecursion) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(AllNullableTypesWithoutRecursion result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableAllNullableTypesWithoutRecursion( - everythingArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableInt" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Long anIntArg = (Long) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(Long result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableInt(anIntArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableDouble" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Double aDoubleArg = (Double) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(Double result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableDouble(aDoubleArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableBool" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aBoolArg = (Boolean) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableBool(aBoolArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aStringArg = (String) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableString(aStringArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableUint8List" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - byte[] aUint8ListArg = (byte[]) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(byte[] result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableUint8List(aUint8ListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableObject" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Object anObjectArg = args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(Object result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableObject(anObjectArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List listArg = (List) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableList(listArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableEnumList(enumListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableClassList(classListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map mapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableMap(mapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableStringMap(stringMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableIntMap(intMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableEnumMap(enumMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableClassMap(classMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnEnum anEnumArg = (AnEnum) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(AnEnum result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAsyncNullableEnum(anEnumArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(AnotherEnum result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echoAnotherAsyncNullableEnum(anotherEnumArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.defaultIsMainThread" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - try { - Boolean output = api.defaultIsMainThread(); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.taskQueueIsBackgroundThread" - + messageChannelSuffix, - getCodec(), - taskQueue); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - try { - Boolean output = api.taskQueueIsBackgroundThread(); - wrapped.add(0, output); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterNoop" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - VoidResult resultCallback = - new VoidResult() { - public void success() { - wrapped.add(0, null); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterNoop(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowError" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - NullableResult resultCallback = - new NullableResult() { - public void success(Object result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterThrowError(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - VoidResult resultCallback = - new VoidResult() { - public void success() { - wrapped.add(0, null); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterThrowErrorFromVoid(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllTypes" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllTypes everythingArg = (AllTypes) args.get(0); - Result resultCallback = - new Result() { - public void success(AllTypes result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoAllTypes(everythingArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(AllNullableTypes result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoAllNullableTypes(everythingArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aNullableBoolArg = (Boolean) args.get(0); - Long aNullableIntArg = (Long) args.get(1); - String aNullableStringArg = (String) args.get(2); - Result resultCallback = - new Result() { - public void success(AllNullableTypes result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterSendMultipleNullableTypes( - aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = - (AllNullableTypesWithoutRecursion) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(AllNullableTypesWithoutRecursion result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoAllNullableTypesWithoutRecursion(everythingArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aNullableBoolArg = (Boolean) args.get(0); - Long aNullableIntArg = (Long) args.get(1); - String aNullableStringArg = (String) args.get(2); - Result resultCallback = - new Result() { - public void success(AllNullableTypesWithoutRecursion result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterSendMultipleNullableTypesWithoutRecursion( - aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoBool" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aBoolArg = (Boolean) args.get(0); - Result resultCallback = - new Result() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoBool(aBoolArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoInt" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Long anIntArg = (Long) args.get(0); - Result resultCallback = - new Result() { - public void success(Long result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoInt(anIntArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoDouble" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Double aDoubleArg = (Double) args.get(0); - Result resultCallback = - new Result() { - public void success(Double result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoDouble(aDoubleArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aStringArg = (String) args.get(0); - Result resultCallback = - new Result() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoString(aStringArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoUint8List" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - byte[] listArg = (byte[]) args.get(0); - Result resultCallback = - new Result() { - public void success(byte[] result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoUint8List(listArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List listArg = (List) args.get(0); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoList(listArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoEnumList(enumListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoClassList(classListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNonNullEnumList(enumListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - Result> resultCallback = - new Result>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNonNullClassList(classListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map mapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoMap(mapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoStringMap(stringMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoIntMap(intMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoEnumMap(enumMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoClassMap(classMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNonNullStringMap(stringMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNonNullIntMap(intMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNonNullEnumMap(enumMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - Result> resultCallback = - new Result>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNonNullClassMap(classMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnEnum anEnumArg = (AnEnum) args.get(0); - Result resultCallback = - new Result() { - public void success(AnEnum result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoEnum(anEnumArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); - Result resultCallback = - new Result() { - public void success(AnotherEnum result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoAnotherEnum(anotherEnumArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableBool" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Boolean aBoolArg = (Boolean) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(Boolean result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableBool(aBoolArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableInt" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Long anIntArg = (Long) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(Long result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableInt(anIntArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableDouble" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Double aDoubleArg = (Double) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(Double result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableDouble(aDoubleArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aStringArg = (String) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableString(aStringArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableUint8List" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - byte[] listArg = (byte[]) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(byte[] result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableUint8List(listArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List listArg = (List) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableList(listArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableEnumList(enumListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableClassList(classListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List enumListArg = (List) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableNonNullEnumList(enumListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - List classListArg = (List) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(List result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableNonNullClassList(classListArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map mapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableMap(mapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableStringMap(stringMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableIntMap(intMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableEnumMap(enumMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableClassMap(classMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map stringMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableNonNullStringMap(stringMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map intMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableNonNullIntMap(intMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map enumMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableNonNullEnumMap(enumMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - Map classMapArg = (Map) args.get(0); - NullableResult> resultCallback = - new NullableResult>() { - public void success(Map result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableNonNullClassMap(classMapArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnEnum anEnumArg = (AnEnum) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(AnEnum result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoNullableEnum(anEnumArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); - NullableResult resultCallback = - new NullableResult() { - public void success(AnotherEnum result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterEchoAnotherNullableEnum(anotherEnumArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSmallApiEchoString" - + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aStringArg = (String) args.get(0); - Result resultCallback = - new Result() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.callFlutterSmallApiEchoString(aStringArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } - /** - * The core interface that the Dart platform_test code implements for host integration tests to - * call into. - * - *

Generated class from Pigeon that represents Flutter messages that can be called from Java. - */ - public static class FlutterIntegrationCoreApi { - private final @NonNull BinaryMessenger binaryMessenger; - private final String messageChannelSuffix; - - public FlutterIntegrationCoreApi(@NonNull BinaryMessenger argBinaryMessenger) { - this(argBinaryMessenger, ""); - } - - public FlutterIntegrationCoreApi( - @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { - this.binaryMessenger = argBinaryMessenger; - this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; - } - - /** Public interface for sending reply. The codec used by FlutterIntegrationCoreApi. */ - static @NonNull MessageCodec getCodec() { - return PigeonCodec.INSTANCE; - } - /** - * A no-op function taking no arguments and returning no value, to sanity test basic calling. - */ - public void noop(@NonNull VoidResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noop" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - null, - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - result.success(); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Responds with an error from an async function returning a value. */ - public void throwError(@NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwError" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - null, - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Object output = listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Responds with an error from an async void function. */ - public void throwErrorFromVoid(@NonNull VoidResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwErrorFromVoid" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - null, - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - result.success(); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed object, to test serialization and deserialization. */ - public void echoAllTypes(@NonNull AllTypes everythingArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(everythingArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - AllTypes output = (AllTypes) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed object, to test serialization and deserialization. */ - public void echoAllNullableTypes( - @Nullable AllNullableTypes everythingArg, - @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(everythingArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - AllNullableTypes output = (AllNullableTypes) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** - * Returns passed in arguments of multiple types. - * - *

Tests multiple-arity FlutterApi handling. - */ - public void sendMultipleNullableTypes( - @Nullable Boolean aNullableBoolArg, - @Nullable Long aNullableIntArg, - @Nullable String aNullableStringArg, - @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - AllNullableTypes output = (AllNullableTypes) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed object, to test serialization and deserialization. */ - public void echoAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion everythingArg, - @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(everythingArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - AllNullableTypesWithoutRecursion output = - (AllNullableTypesWithoutRecursion) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** - * Returns passed in arguments of multiple types. - * - *

Tests multiple-arity FlutterApi handling. - */ - public void sendMultipleNullableTypesWithoutRecursion( - @Nullable Boolean aNullableBoolArg, - @Nullable Long aNullableIntArg, - @Nullable String aNullableStringArg, - @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - AllNullableTypesWithoutRecursion output = - (AllNullableTypesWithoutRecursion) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed boolean, to test serialization and deserialization. */ - public void echoBool(@NonNull Boolean aBoolArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(aBoolArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Boolean output = (Boolean) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed int, to test serialization and deserialization. */ - public void echoInt(@NonNull Long anIntArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(anIntArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Long output = (Long) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed double, to test serialization and deserialization. */ - public void echoDouble(@NonNull Double aDoubleArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(aDoubleArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Double output = (Double) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed string, to test serialization and deserialization. */ - public void echoString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(aStringArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - String output = (String) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed byte list, to test serialization and deserialization. */ - public void echoUint8List(@NonNull byte[] listArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(listArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - byte[] output = (byte[]) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoList(@NonNull List listArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(listArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoEnumList( - @NonNull List enumListArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(enumListArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoClassList( - @NonNull List classListArg, - @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(classListArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoNonNullEnumList( - @NonNull List enumListArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(enumListArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoNonNullClassList( - @NonNull List classListArg, - @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(classListArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoMap( - @NonNull Map mapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(mapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoStringMap( - @NonNull Map stringMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(stringMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoIntMap( - @NonNull Map intMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(intMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoEnumMap( - @NonNull Map enumMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(enumMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoClassMap( - @NonNull Map classMapArg, - @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(classMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullStringMap( - @NonNull Map stringMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(stringMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullIntMap( - @NonNull Map intMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(intMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullEnumMap( - @NonNull Map enumMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(enumMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullClassMap( - @NonNull Map classMapArg, - @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(classMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed enum to test serialization and deserialization. */ - public void echoEnum(@NonNull AnEnum anEnumArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(anEnumArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - AnEnum output = (AnEnum) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed enum to test serialization and deserialization. */ - public void echoAnotherEnum( - @NonNull AnotherEnum anotherEnumArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(anotherEnumArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - AnotherEnum output = (AnotherEnum) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed boolean, to test serialization and deserialization. */ - public void echoNullableBool( - @Nullable Boolean aBoolArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(aBoolArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Boolean output = (Boolean) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed int, to test serialization and deserialization. */ - public void echoNullableInt(@Nullable Long anIntArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(anIntArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Long output = (Long) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed double, to test serialization and deserialization. */ - public void echoNullableDouble( - @Nullable Double aDoubleArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(aDoubleArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Double output = (Double) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed string, to test serialization and deserialization. */ - public void echoNullableString( - @Nullable String aStringArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(aStringArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - String output = (String) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed byte list, to test serialization and deserialization. */ - public void echoNullableUint8List( - @Nullable byte[] listArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(listArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - byte[] output = (byte[]) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableList( - @Nullable List listArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(listArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableEnumList( - @Nullable List enumListArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(enumListArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableClassList( - @Nullable List classListArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(classListArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableNonNullEnumList( - @Nullable List enumListArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(enumListArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableNonNullClassList( - @Nullable List classListArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(classListArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - List output = (List) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableMap( - @Nullable Map mapArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(mapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableStringMap( - @Nullable Map stringMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(stringMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableIntMap( - @Nullable Map intMapArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(intMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableEnumMap( - @Nullable Map enumMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(enumMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableClassMap( - @Nullable Map classMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(classMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullStringMap( - @Nullable Map stringMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(stringMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullIntMap( - @Nullable Map intMapArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(intMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullEnumMap( - @Nullable Map enumMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(enumMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullClassMap( - @Nullable Map classMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(classMapArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - Map output = (Map) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed enum to test serialization and deserialization. */ - public void echoNullableEnum( - @Nullable AnEnum anEnumArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(anEnumArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - AnEnum output = (AnEnum) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed enum to test serialization and deserialization. */ - public void echoAnotherNullableEnum( - @Nullable AnotherEnum anotherEnumArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(anotherEnumArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - @SuppressWarnings("ConstantConditions") - AnotherEnum output = (AnotherEnum) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** - * A no-op function taking no arguments and returning no value, to sanity test basic - * asynchronous calling. - */ - public void noopAsync(@NonNull VoidResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noopAsync" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - null, - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else { - result.success(); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - /** Returns the passed in generic Object asynchronously. */ - public void echoAsyncString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString" - + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(aStringArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - String output = (String) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - } - /** - * An API that can be implemented for minimal, compile-only tests. - * - *

Generated interface from Pigeon that represents a handler of messages from Flutter. - */ - public interface HostTrivialApi { - - void noop(); - - /** The codec used by HostTrivialApi. */ - static @NonNull MessageCodec getCodec() { - return PigeonCodec.INSTANCE; - } - /** Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. */ - static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostTrivialApi api) { - setUp(binaryMessenger, "", api); - } - - static void setUp( - @NonNull BinaryMessenger binaryMessenger, - @NonNull String messageChannelSuffix, - @Nullable HostTrivialApi api) { - messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostTrivialApi.noop" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - try { - api.noop(); - wrapped.add(0, null); - } catch (Throwable exception) { - wrapped = wrapError(exception); - } - reply.reply(wrapped); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } - /** - * A simple API implemented in some unit tests. - * - *

Generated interface from Pigeon that represents a handler of messages from Flutter. - */ - public interface HostSmallApi { - - void echo(@NonNull String aString, @NonNull Result result); - - void voidVoid(@NonNull VoidResult result); - - /** The codec used by HostSmallApi. */ - static @NonNull MessageCodec getCodec() { - return PigeonCodec.INSTANCE; - } - /** Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. */ - static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostSmallApi api) { - setUp(binaryMessenger, "", api); - } - - static void setUp( - @NonNull BinaryMessenger binaryMessenger, - @NonNull String messageChannelSuffix, - @Nullable HostSmallApi api) { - messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostSmallApi.echo" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - ArrayList args = (ArrayList) message; - String aStringArg = (String) args.get(0); - Result resultCallback = - new Result() { - public void success(String result) { - wrapped.add(0, result); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.echo(aStringArg, resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - { - BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon.HostSmallApi.voidVoid" + messageChannelSuffix, - getCodec()); - if (api != null) { - channel.setMessageHandler( - (message, reply) -> { - ArrayList wrapped = new ArrayList<>(); - VoidResult resultCallback = - new VoidResult() { - public void success() { - wrapped.add(0, null); - reply.reply(wrapped); - } - - public void error(Throwable error) { - ArrayList wrappedError = wrapError(error); - reply.reply(wrappedError); - } - }; - - api.voidVoid(resultCallback); - }); - } else { - channel.setMessageHandler(null); - } - } - } - } - /** - * A simple API called in some unit tests. - * - *

Generated class from Pigeon that represents Flutter messages that can be called from Java. - */ - public static class FlutterSmallApi { - private final @NonNull BinaryMessenger binaryMessenger; - private final String messageChannelSuffix; - - public FlutterSmallApi(@NonNull BinaryMessenger argBinaryMessenger) { - this(argBinaryMessenger, ""); - } - - public FlutterSmallApi( - @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { - this.binaryMessenger = argBinaryMessenger; - this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; - } - - /** Public interface for sending reply. The codec used by FlutterSmallApi. */ - static @NonNull MessageCodec getCodec() { - return PigeonCodec.INSTANCE; - } - - public void echoWrappedList(@NonNull TestMessage msgArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(msgArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - TestMessage output = (TestMessage) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - - public void echoString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString" + messageChannelSuffix; - BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); - channel.send( - new ArrayList<>(Collections.singletonList(aStringArg)), - channelReply -> { - if (channelReply instanceof List) { - List listReply = (List) channelReply; - if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); - } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); - } else { - @SuppressWarnings("ConstantConditions") - String output = (String) listReply.get(0); - result.success(output); - } - } else { - result.error(createConnectionError(channelName)); - } - }); - } - } -} diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.h b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.h deleted file mode 100644 index c2de9d9a691e..000000000000 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.h +++ /dev/null @@ -1,1123 +0,0 @@ -// Autogenerated from Pigeon (v26.1.9), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -@import Foundation; - -@protocol FlutterBinaryMessenger; -@protocol FlutterMessageCodec; -@class FlutterError; -@class FlutterStandardTypedData; - -NS_ASSUME_NONNULL_BEGIN - -typedef NS_ENUM(NSUInteger, AnEnum) { - AnEnumOne = 0, - AnEnumTwo = 1, - AnEnumThree = 2, - AnEnumFortyTwo = 3, - AnEnumFourHundredTwentyTwo = 4, -}; - -/// Wrapper for AnEnum to allow for nullability. -@interface AnEnumBox : NSObject -@property(nonatomic, assign) AnEnum value; -- (instancetype)initWithValue:(AnEnum)value; -@end - -typedef NS_ENUM(NSUInteger, AnotherEnum) { - AnotherEnumJustInCase = 0, -}; - -/// Wrapper for AnotherEnum to allow for nullability. -@interface AnotherEnumBox : NSObject -@property(nonatomic, assign) AnotherEnum value; -- (instancetype)initWithValue:(AnotherEnum)value; -@end - -@class UnusedClass; -@class AllTypes; -@class AllNullableTypes; -@class AllNullableTypesWithoutRecursion; -@class AllClassesWrapper; -@class TestMessage; - -@interface UnusedClass : NSObject -+ (instancetype)makeWithAField:(nullable id)aField; -@property(nonatomic, strong, nullable) id aField; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; -@end - -/// A class containing all supported types. -@interface AllTypes : NSObject -/// `init` unavailable to enforce nonnull fields, see the `make` class method. -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)makeWithABool:(BOOL)aBool - anInt:(NSInteger)anInt - anInt64:(NSInteger)anInt64 - aDouble:(double)aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(AnEnum)anEnum - anotherEnum:(AnotherEnum)anotherEnum - aString:(NSString *)aString - anObject:(id)anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - enumList:(NSArray *)enumList - objectList:(NSArray *)objectList - listList:(NSArray *> *)listList - mapList:(NSArray *> *)mapList - map:(NSDictionary *)map - stringMap:(NSDictionary *)stringMap - intMap:(NSDictionary *)intMap - enumMap:(NSDictionary *)enumMap - objectMap:(NSDictionary *)objectMap - listMap:(NSDictionary *> *)listMap - mapMap:(NSDictionary *> *)mapMap; -@property(nonatomic, assign) BOOL aBool; -@property(nonatomic, assign) NSInteger anInt; -@property(nonatomic, assign) NSInteger anInt64; -@property(nonatomic, assign) double aDouble; -@property(nonatomic, strong) FlutterStandardTypedData *aByteArray; -@property(nonatomic, strong) FlutterStandardTypedData *a4ByteArray; -@property(nonatomic, strong) FlutterStandardTypedData *a8ByteArray; -@property(nonatomic, strong) FlutterStandardTypedData *aFloatArray; -@property(nonatomic, assign) AnEnum anEnum; -@property(nonatomic, assign) AnotherEnum anotherEnum; -@property(nonatomic, copy) NSString *aString; -@property(nonatomic, strong) id anObject; -@property(nonatomic, copy) NSArray *list; -@property(nonatomic, copy) NSArray *stringList; -@property(nonatomic, copy) NSArray *intList; -@property(nonatomic, copy) NSArray *doubleList; -@property(nonatomic, copy) NSArray *boolList; -@property(nonatomic, copy) NSArray *enumList; -@property(nonatomic, copy) NSArray *objectList; -@property(nonatomic, copy) NSArray *> *listList; -@property(nonatomic, copy) NSArray *> *mapList; -@property(nonatomic, copy) NSDictionary *map; -@property(nonatomic, copy) NSDictionary *stringMap; -@property(nonatomic, copy) NSDictionary *intMap; -@property(nonatomic, copy) NSDictionary *enumMap; -@property(nonatomic, copy) NSDictionary *objectMap; -@property(nonatomic, copy) NSDictionary *> *listMap; -@property(nonatomic, copy) NSDictionary *> *mapMap; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; -@end - -/// A class containing all supported nullable types. -@interface AllNullableTypes : NSObject -+ (instancetype) - makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable AnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - allNullableTypes:(nullable AllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - recursiveClassList:(nullable NSArray *)recursiveClassList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap - recursiveClassMap: - (nullable NSDictionary *)recursiveClassMap; -@property(nonatomic, strong, nullable) NSNumber *aNullableBool; -@property(nonatomic, strong, nullable) NSNumber *aNullableInt; -@property(nonatomic, strong, nullable) NSNumber *aNullableInt64; -@property(nonatomic, strong, nullable) NSNumber *aNullableDouble; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable4ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable8ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableFloatArray; -@property(nonatomic, strong, nullable) AnEnumBox *aNullableEnum; -@property(nonatomic, strong, nullable) AnotherEnumBox *anotherNullableEnum; -@property(nonatomic, copy, nullable) NSString *aNullableString; -@property(nonatomic, strong, nullable) id aNullableObject; -@property(nonatomic, strong, nullable) AllNullableTypes *allNullableTypes; -@property(nonatomic, copy, nullable) NSArray *list; -@property(nonatomic, copy, nullable) NSArray *stringList; -@property(nonatomic, copy, nullable) NSArray *intList; -@property(nonatomic, copy, nullable) NSArray *doubleList; -@property(nonatomic, copy, nullable) NSArray *boolList; -@property(nonatomic, copy, nullable) NSArray *enumList; -@property(nonatomic, copy, nullable) NSArray *objectList; -@property(nonatomic, copy, nullable) NSArray *> *listList; -@property(nonatomic, copy, nullable) NSArray *> *mapList; -@property(nonatomic, copy, nullable) NSArray *recursiveClassList; -@property(nonatomic, copy, nullable) NSDictionary *map; -@property(nonatomic, copy, nullable) NSDictionary *stringMap; -@property(nonatomic, copy, nullable) NSDictionary *intMap; -@property(nonatomic, copy, nullable) NSDictionary *enumMap; -@property(nonatomic, copy, nullable) NSDictionary *objectMap; -@property(nonatomic, copy, nullable) NSDictionary *> *listMap; -@property(nonatomic, copy, nullable) NSDictionary *> *mapMap; -@property(nonatomic, copy, nullable) - NSDictionary *recursiveClassMap; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; -@end - -/// The primary purpose for this class is to ensure coverage of Swift structs -/// with nullable items, as the primary [AllNullableTypes] class is being used to -/// test Swift classes. -@interface AllNullableTypesWithoutRecursion : NSObject -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable AnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *) - mapMap; -@property(nonatomic, strong, nullable) NSNumber *aNullableBool; -@property(nonatomic, strong, nullable) NSNumber *aNullableInt; -@property(nonatomic, strong, nullable) NSNumber *aNullableInt64; -@property(nonatomic, strong, nullable) NSNumber *aNullableDouble; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable4ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable8ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableFloatArray; -@property(nonatomic, strong, nullable) AnEnumBox *aNullableEnum; -@property(nonatomic, strong, nullable) AnotherEnumBox *anotherNullableEnum; -@property(nonatomic, copy, nullable) NSString *aNullableString; -@property(nonatomic, strong, nullable) id aNullableObject; -@property(nonatomic, copy, nullable) NSArray *list; -@property(nonatomic, copy, nullable) NSArray *stringList; -@property(nonatomic, copy, nullable) NSArray *intList; -@property(nonatomic, copy, nullable) NSArray *doubleList; -@property(nonatomic, copy, nullable) NSArray *boolList; -@property(nonatomic, copy, nullable) NSArray *enumList; -@property(nonatomic, copy, nullable) NSArray *objectList; -@property(nonatomic, copy, nullable) NSArray *> *listList; -@property(nonatomic, copy, nullable) NSArray *> *mapList; -@property(nonatomic, copy, nullable) NSDictionary *map; -@property(nonatomic, copy, nullable) NSDictionary *stringMap; -@property(nonatomic, copy, nullable) NSDictionary *intMap; -@property(nonatomic, copy, nullable) NSDictionary *enumMap; -@property(nonatomic, copy, nullable) NSDictionary *objectMap; -@property(nonatomic, copy, nullable) NSDictionary *> *listMap; -@property(nonatomic, copy, nullable) NSDictionary *> *mapMap; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; -@end - -/// A class for testing nested class handling. -/// -/// This is needed to test nested nullable and non-nullable classes, -/// `AllNullableTypes` is non-nullable here as it is easier to instantiate -/// than `AllTypes` when testing doesn't require both (ie. testing null classes). -@interface AllClassesWrapper : NSObject -/// `init` unavailable to enforce nonnull fields, see the `make` class method. -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype) - makeWithAllNullableTypes:(AllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion: - (nullable AllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable AllTypes *)allTypes - classList:(NSArray *)classList - nullableClassList: - (nullable NSArray *)nullableClassList - classMap:(NSDictionary *)classMap - nullableClassMap: - (nullable NSDictionary *) - nullableClassMap; -@property(nonatomic, strong) AllNullableTypes *allNullableTypes; -@property(nonatomic, strong, nullable) - AllNullableTypesWithoutRecursion *allNullableTypesWithoutRecursion; -@property(nonatomic, strong, nullable) AllTypes *allTypes; -@property(nonatomic, copy) NSArray *classList; -@property(nonatomic, copy, nullable) NSArray *nullableClassList; -@property(nonatomic, copy) NSDictionary *classMap; -@property(nonatomic, copy, nullable) - NSDictionary *nullableClassMap; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; -@end - -/// A data class containing a List, used in unit tests. -@interface TestMessage : NSObject -+ (instancetype)makeWithTestList:(nullable NSArray *)testList; -@property(nonatomic, copy, nullable) NSArray *testList; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; -@end - -/// The codec used by all APIs. -NSObject *nullGetCoreTestsCodec(void); - -/// The core interface that each host language plugin must implement in -/// platform_test integration tests. -@protocol HostIntegrationCoreApi -/// A no-op function taking no arguments and returning no value, to sanity -/// test basic calling. -- (void)noopWithError:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed object, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable AllTypes *)echoAllTypes:(AllTypes *)everything - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns an error, to test error handling. -- (nullable id)throwErrorWithError:(FlutterError *_Nullable *_Nonnull)error; -/// Returns an error from a void function, to test error handling. -- (void)throwErrorFromVoidWithError:(FlutterError *_Nullable *_Nonnull)error; -/// Returns a Flutter error, to test error handling. -- (nullable id)throwFlutterErrorWithError:(FlutterError *_Nullable *_Nonnull)error; -/// Returns passed in int. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoInt:(NSInteger)anInt error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns passed in double. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoDouble:(double)aDouble error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in boolean. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoBool:(BOOL)aBool error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in string. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSString *)echoString:(NSString *)aString - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in Uint8List. -/// -/// @return `nil` only when `error != nil`. -- (nullable FlutterStandardTypedData *)echoUint8List:(FlutterStandardTypedData *)aUint8List - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in generic Object. -/// -/// @return `nil` only when `error != nil`. -- (nullable id)echoObject:(id)anObject error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoList:(NSArray *)list - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoEnumList:(NSArray *)enumList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoClassList:(NSArray *)classList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoNonNullEnumList:(NSArray *)enumList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSArray *) - echoNonNullClassList:(NSArray *)classList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoMap:(NSDictionary *)map - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoStringMap:(NSDictionary *)stringMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoIntMap:(NSDictionary *)intMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoEnumMap:(NSDictionary *)enumMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoClassMap:(NSDictionary *)classMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoNonNullStringMap:(NSDictionary *)stringMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoNonNullIntMap:(NSDictionary *)intMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoNonNullEnumMap:(NSDictionary *)enumMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoNonNullClassMap:(NSDictionary *)classMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed class to test nested class serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (nullable AllClassesWrapper *)echoClassWrapper:(AllClassesWrapper *)wrapper - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed enum to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (AnEnumBox *_Nullable)echoEnum:(AnEnum)anEnum error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed enum to test serialization and deserialization. -/// -/// @return `nil` only when `error != nil`. -- (AnotherEnumBox *_Nullable)echoAnotherEnum:(AnotherEnum)anotherEnum - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the default string. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSString *)echoNamedDefaultString:(NSString *)aString - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns passed in double. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoOptionalDefaultDouble:(double)aDouble - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns passed in int. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoRequiredInt:(NSInteger)anInt - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed object, to test serialization and deserialization. -- (nullable AllNullableTypes *)echoAllNullableTypes:(nullable AllNullableTypes *)everything - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed object, to test serialization and deserialization. -- (nullable AllNullableTypesWithoutRecursion *) - echoAllNullableTypesWithoutRecursion:(nullable AllNullableTypesWithoutRecursion *)everything - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the inner `aString` value from the wrapped object, to test -/// sending of nested objects. -- (nullable NSString *)extractNestedNullableStringFrom:(AllClassesWrapper *)wrapper - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the inner `aString` value from the wrapped object, to test -/// sending of nested objects. -/// -/// @return `nil` only when `error != nil`. -- (nullable AllClassesWrapper *) - createNestedObjectWithNullableString:(nullable NSString *)nullableString - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns passed in arguments of multiple types. -/// -/// @return `nil` only when `error != nil`. -- (nullable AllNullableTypes *)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - error:(FlutterError *_Nullable *_Nonnull) - error; -/// Returns passed in arguments of multiple types. -/// -/// @return `nil` only when `error != nil`. -- (nullable AllNullableTypesWithoutRecursion *) - sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns passed in int. -- (nullable NSNumber *)echoNullableInt:(nullable NSNumber *)aNullableInt - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns passed in double. -- (nullable NSNumber *)echoNullableDouble:(nullable NSNumber *)aNullableDouble - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in boolean. -- (nullable NSNumber *)echoNullableBool:(nullable NSNumber *)aNullableBool - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in string. -- (nullable NSString *)echoNullableString:(nullable NSString *)aNullableString - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in Uint8List. -- (nullable FlutterStandardTypedData *) - echoNullableUint8List:(nullable FlutterStandardTypedData *)aNullableUint8List - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in generic Object. -- (nullable id)echoNullableObject:(nullable id)aNullableObject - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableList:(nullable NSArray *)aNullableList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableEnumList:(nullable NSArray *)enumList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *) - echoNullableClassList:(nullable NSArray *)classList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *) - echoNullableNonNullEnumList:(nullable NSArray *)enumList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *) - echoNullableNonNullClassList:(nullable NSArray *)classList - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableMap:(nullable NSDictionary *)map - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableStringMap:(nullable NSDictionary *)stringMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableIntMap:(nullable NSDictionary *)intMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableEnumMap:(nullable NSDictionary *)enumMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableClassMap:(nullable NSDictionary *)classMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableNonNullIntMap:(nullable NSDictionary *)intMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableNonNullClassMap:(nullable NSDictionary *)classMap - error:(FlutterError *_Nullable *_Nonnull)error; -- (AnEnumBox *_Nullable)echoNullableEnum:(nullable AnEnumBox *)anEnumBoxed - error:(FlutterError *_Nullable *_Nonnull)error; -- (AnotherEnumBox *_Nullable)echoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns passed in int. -- (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt - error:(FlutterError *_Nullable *_Nonnull)error; -/// Returns the passed in string. -- (nullable NSString *)echoNamedNullableString:(nullable NSString *)aNullableString - error:(FlutterError *_Nullable *_Nonnull)error; -/// A no-op function taking no arguments and returning no value, to sanity -/// test basic asynchronous calling. -- (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; -/// Returns passed in int asynchronously. -- (void)echoAsyncInt:(NSInteger)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns passed in double asynchronously. -- (void)echoAsyncDouble:(double)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed in boolean asynchronously. -- (void)echoAsyncBool:(BOOL)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed string asynchronously. -- (void)echoAsyncString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed in Uint8List asynchronously. -- (void)echoAsyncUint8List:(FlutterStandardTypedData *)aUint8List - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed in generic Object asynchronously. -- (void)echoAsyncObject:(id)anObject - completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncList:(NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnumList:(NSArray *)enumList - completion: - (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncMap:(NSDictionary *)map - completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncClassMap:(NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnum:(AnEnum)anEnum - completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAnotherAsyncEnum:(AnotherEnum)anotherEnum - completion: - (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; -/// Responds with an error from an async function returning a value. -- (void)throwAsyncErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; -/// Responds with an error from an async void function. -- (void)throwAsyncErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; -/// Responds with a Flutter error from an async function returning a value. -- (void)throwAsyncFlutterErrorWithCompletion:(void (^)(id _Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed object, to test async serialization and deserialization. -- (void)echoAsyncAllTypes:(AllTypes *)everything - completion:(void (^)(AllTypes *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed object, to test serialization and deserialization. -- (void)echoAsyncNullableAllNullableTypes:(nullable AllNullableTypes *)everything - completion:(void (^)(AllNullableTypes *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed object, to test serialization and deserialization. -- (void)echoAsyncNullableAllNullableTypesWithoutRecursion: - (nullable AllNullableTypesWithoutRecursion *)everything - completion: - (void (^)( - AllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion; -/// Returns passed in int asynchronously. -- (void)echoAsyncNullableInt:(nullable NSNumber *)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns passed in double asynchronously. -- (void)echoAsyncNullableDouble:(nullable NSNumber *)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed in boolean asynchronously. -- (void)echoAsyncNullableBool:(nullable NSNumber *)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed string asynchronously. -- (void)echoAsyncNullableString:(nullable NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed in Uint8List asynchronously. -- (void)echoAsyncNullableUint8List:(nullable FlutterStandardTypedData *)aUint8List - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed in generic Object asynchronously. -- (void)echoAsyncNullableObject:(nullable id)anObject - completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableList:(nullable NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableMap:(nullable NSDictionary *)map - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableStringMap:(nullable NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableIntMap:(nullable NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnumMap:(nullable NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableClassMap:(nullable NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnum:(nullable AnEnumBox *)anEnumBoxed - completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAnotherAsyncNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed - completion:(void (^)(AnotherEnumBox *_Nullable, - FlutterError *_Nullable))completion; -/// Returns true if the handler is run on a main thread, which should be -/// true since there is no TaskQueue annotation. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)defaultIsMainThreadWithError:(FlutterError *_Nullable *_Nonnull)error; -/// Returns true if the handler is run on a non-main thread, which should be -/// true for any platform with TaskQueue support. -/// -/// @return `nil` only when `error != nil`. -- (nullable NSNumber *)taskQueueIsBackgroundThreadWithError: - (FlutterError *_Nullable *_Nonnull)error; -- (void)callFlutterNoopWithCompletion:(void (^)(FlutterError *_Nullable))completion; -- (void)callFlutterThrowErrorWithCompletion:(void (^)(id _Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterThrowErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; -- (void)callFlutterEchoAllTypes:(AllTypes *)everything - completion:(void (^)(AllTypes *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAllNullableTypes:(nullable AllNullableTypes *)everything - completion:(void (^)(AllNullableTypes *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterSendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - completion:(void (^)(AllNullableTypes *_Nullable, - FlutterError *_Nullable))completion; -- (void) - callFlutterEchoAllNullableTypesWithoutRecursion: - (nullable AllNullableTypesWithoutRecursion *)everything - completion: - (void (^)(AllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion; -- (void) - callFlutterSendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - completion: - (void (^)(AllNullableTypesWithoutRecursion - *_Nullable, - FlutterError *_Nullable)) - completion; -- (void)callFlutterEchoBool:(BOOL)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoInt:(NSInteger)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoDouble:(double)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoUint8List:(FlutterStandardTypedData *)list - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoList:(NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnumList:(NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullEnumList:(NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoMap:(NSDictionary *)map - completion: - (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoClassMap:(NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullClassMap:(NSDictionary *)classMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnum:(AnEnum)anEnum - completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAnotherEnum:(AnotherEnum)anotherEnum - completion:(void (^)(AnotherEnumBox *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableBool:(nullable NSNumber *)aBool - completion: - (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableInt:(nullable NSNumber *)anInt - completion: - (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableDouble:(nullable NSNumber *)aDouble - completion: - (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableString:(nullable NSString *)aString - completion: - (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableUint8List:(nullable FlutterStandardTypedData *)list - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableList:(nullable NSArray *)list - completion: - (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableMap:(nullable NSDictionary *)map - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableStringMap:(nullable NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableIntMap:(nullable NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnumMap:(nullable NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableClassMap: - (nullable NSDictionary *)classMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullStringMap: - (nullable NSDictionary *)stringMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullIntMap:(nullable NSDictionary *)intMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullEnumMap: - (nullable NSDictionary *)enumMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullClassMap: - (nullable NSDictionary *)classMap - completion: - (void (^)( - NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnum:(nullable AnEnumBox *)anEnumBoxed - completion: - (void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed - completion:(void (^)(AnotherEnumBox *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterSmallApiEchoString:(NSString *)aString - completion: - (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -@end - -extern void SetUpHostIntegrationCoreApi(id binaryMessenger, - NSObject *_Nullable api); - -extern void SetUpHostIntegrationCoreApiWithSuffix(id binaryMessenger, - NSObject *_Nullable api, - NSString *messageChannelSuffix); - -/// The core interface that the Dart platform_test code implements for host -/// integration tests to call into. -@interface FlutterIntegrationCoreApi : NSObject -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger - messageChannelSuffix:(nullable NSString *)messageChannelSuffix; -/// A no-op function taking no arguments and returning no value, to sanity -/// test basic calling. -- (void)noopWithCompletion:(void (^)(FlutterError *_Nullable))completion; -/// Responds with an error from an async function returning a value. -- (void)throwErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; -/// Responds with an error from an async void function. -- (void)throwErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; -/// Returns the passed object, to test serialization and deserialization. -- (void)echoAllTypes:(AllTypes *)everything - completion:(void (^)(AllTypes *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed object, to test serialization and deserialization. -- (void)echoAllNullableTypes:(nullable AllNullableTypes *)everything - completion: - (void (^)(AllNullableTypes *_Nullable, FlutterError *_Nullable))completion; -/// Returns passed in arguments of multiple types. -/// -/// Tests multiple-arity FlutterApi handling. -- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - completion:(void (^)(AllNullableTypes *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed object, to test serialization and deserialization. -- (void)echoAllNullableTypesWithoutRecursion:(nullable AllNullableTypesWithoutRecursion *)everything - completion:(void (^)(AllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion; -/// Returns passed in arguments of multiple types. -/// -/// Tests multiple-arity FlutterApi handling. -- (void) - sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - completion: - (void (^)(AllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed boolean, to test serialization and deserialization. -- (void)echoBool:(BOOL)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed int, to test serialization and deserialization. -- (void)echoInt:(NSInteger)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed double, to test serialization and deserialization. -- (void)echoDouble:(double)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed string, to test serialization and deserialization. -- (void)echoString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed byte list, to test serialization and deserialization. -- (void)echoUint8List:(FlutterStandardTypedData *)list - completion: - (void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoList:(NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoEnumList:(NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoNonNullEnumList:(NSArray *)enumList - completion: - (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoNonNullClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoMap:(NSDictionary *)map - completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoClassMap:(NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullClassMap:(NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed enum to test serialization and deserialization. -- (void)echoEnum:(AnEnum)anEnum - completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed enum to test serialization and deserialization. -- (void)echoAnotherEnum:(AnotherEnum)anotherEnum - completion:(void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed boolean, to test serialization and deserialization. -- (void)echoNullableBool:(nullable NSNumber *)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed int, to test serialization and deserialization. -- (void)echoNullableInt:(nullable NSNumber *)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed double, to test serialization and deserialization. -- (void)echoNullableDouble:(nullable NSNumber *)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed string, to test serialization and deserialization. -- (void)echoNullableString:(nullable NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed byte list, to test serialization and deserialization. -- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)list - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableList:(nullable NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableNonNullEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableNonNullClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableMap:(nullable NSDictionary *)map - completion: - (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableStringMap:(nullable NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableIntMap:(nullable NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableEnumMap:(nullable NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableClassMap:(nullable NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed map, to test serialization and deserialization. -- (void) - echoNullableNonNullClassMap:(nullable NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -/// Returns the passed enum to test serialization and deserialization. -- (void)echoNullableEnum:(nullable AnEnumBox *)anEnumBoxed - completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; -/// Returns the passed enum to test serialization and deserialization. -- (void)echoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed - completion: - (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; -/// A no-op function taking no arguments and returning no value, to sanity -/// test basic asynchronous calling. -- (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; -/// Returns the passed in generic Object asynchronously. -- (void)echoAsyncString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -@end - -/// An API that can be implemented for minimal, compile-only tests. -@protocol HostTrivialApi -- (void)noopWithError:(FlutterError *_Nullable *_Nonnull)error; -@end - -extern void SetUpHostTrivialApi(id binaryMessenger, - NSObject *_Nullable api); - -extern void SetUpHostTrivialApiWithSuffix(id binaryMessenger, - NSObject *_Nullable api, - NSString *messageChannelSuffix); - -/// A simple API implemented in some unit tests. -@protocol HostSmallApi -- (void)echoString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)voidVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; -@end - -extern void SetUpHostSmallApi(id binaryMessenger, - NSObject *_Nullable api); - -extern void SetUpHostSmallApiWithSuffix(id binaryMessenger, - NSObject *_Nullable api, - NSString *messageChannelSuffix); - -/// A simple API called in some unit tests. -@interface FlutterSmallApi : NSObject -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger - messageChannelSuffix:(nullable NSString *)messageChannelSuffix; -- (void)echoWrappedList:(TestMessage *)msg - completion:(void (^)(TestMessage *_Nullable, FlutterError *_Nullable))completion; -- (void)echoString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -@end - -NS_ASSUME_NONNULL_END diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.m deleted file mode 100644 index 7a1e9c41b4ab..000000000000 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.m +++ /dev/null @@ -1,6705 +0,0 @@ -// Autogenerated from Pigeon (v26.1.9), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -#import "CoreTests.gen.h" - -#if TARGET_OS_OSX -@import FlutterMacOS; -#else -@import Flutter; -#endif - -static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { - if (a == b) { - return YES; - } - if (a == nil || b == nil) { - return NO; - } - if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { - NSNumber *na = (NSNumber *)a; - NSNumber *nb = (NSNumber *)b; - if (isnan(na.doubleValue) && isnan(nb.doubleValue)) { - return YES; - } - } - if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { - NSArray *arrayA = (NSArray *)a; - NSArray *arrayB = (NSArray *)b; - if (arrayA.count != arrayB.count) { - return NO; - } - for (NSUInteger i = 0; i < arrayA.count; i++) { - if (!FLTPigeonDeepEquals(arrayA[i], arrayB[i])) { - return NO; - } - } - return YES; - } - if ([a isKindOfClass:[NSDictionary class]] && [b isKindOfClass:[NSDictionary class]]) { - NSDictionary *dictA = (NSDictionary *)a; - NSDictionary *dictB = (NSDictionary *)b; - if (dictA.count != dictB.count) { - return NO; - } - for (id key in dictA) { - id valueA = dictA[key]; - id valueB = dictB[key]; - if (!FLTPigeonDeepEquals(valueA, valueB)) { - return NO; - } - } - return YES; - } - return [a isEqual:b]; -} - -static NSUInteger FLTPigeonDeepHash(id _Nullable value) { - if (value == nil) { - return 0; - } - if ([value isKindOfClass:[NSNumber class]]) { - NSNumber *n = (NSNumber *)value; - if (isnan(n.doubleValue)) { - return (NSUInteger)0x7FF8000000000000; - } - } - if ([value isKindOfClass:[NSArray class]]) { - NSUInteger result = 1; - for (id item in (NSArray *)value) { - result = result * 31 + FLTPigeonDeepHash(item); - } - return result; - } - if ([value isKindOfClass:[NSDictionary class]]) { - NSUInteger result = 0; - NSDictionary *dict = (NSDictionary *)value; - for (id key in dict) { - result += (FLTPigeonDeepHash(key) ^ FLTPigeonDeepHash(dict[key])); - } - return result; - } - return [value hash]; -} - -static NSArray *wrapResult(id result, FlutterError *error) { - if (error) { - return @[ - error.code ?: [NSNull null], error.message ?: [NSNull null], error.details ?: [NSNull null] - ]; - } - return @[ result ?: [NSNull null] ]; -} - -static FlutterError *createConnectionError(NSString *channelName) { - return [FlutterError - errorWithCode:@"channel-error" - message:[NSString stringWithFormat:@"%@/%@/%@", - @"Unable to establish connection on channel: '", - channelName, @"'."] - details:@""]; -} - -static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { - id result = array[key]; - return (result == [NSNull null]) ? nil : result; -} - -@implementation AnEnumBox -- (instancetype)initWithValue:(AnEnum)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation AnotherEnumBox -- (instancetype)initWithValue:(AnotherEnum)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@interface UnusedClass () -+ (UnusedClass *)fromList:(NSArray *)list; -+ (nullable UnusedClass *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface AllTypes () -+ (AllTypes *)fromList:(NSArray *)list; -+ (nullable AllTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface AllNullableTypes () -+ (AllNullableTypes *)fromList:(NSArray *)list; -+ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface AllNullableTypesWithoutRecursion () -+ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; -+ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface AllClassesWrapper () -+ (AllClassesWrapper *)fromList:(NSArray *)list; -+ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface TestMessage () -+ (TestMessage *)fromList:(NSArray *)list; -+ (nullable TestMessage *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@implementation UnusedClass -+ (instancetype)makeWithAField:(nullable id)aField { - UnusedClass *pigeonResult = [[UnusedClass alloc] init]; - pigeonResult.aField = aField; - return pigeonResult; -} -+ (UnusedClass *)fromList:(NSArray *)list { - UnusedClass *pigeonResult = [[UnusedClass alloc] init]; - pigeonResult.aField = GetNullableObjectAtIndex(list, 0); - return pigeonResult; -} -+ (nullable UnusedClass *)nullableFromList:(NSArray *)list { - return (list) ? [UnusedClass fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.aField ?: [NSNull null], - ]; -} -- (BOOL)isEqual:(id)object { - if (self == object) { - return YES; - } - if (![object isKindOfClass:[self class]]) { - return NO; - } - UnusedClass *other = (UnusedClass *)object; - return FLTPigeonDeepEquals(self.aField, other.aField); -} - -- (NSUInteger)hash { - NSUInteger result = [self class].hash; - result = result * 31 + FLTPigeonDeepHash(self.aField); - return result; -} -@end - -@implementation AllTypes -+ (instancetype)makeWithABool:(BOOL)aBool - anInt:(NSInteger)anInt - anInt64:(NSInteger)anInt64 - aDouble:(double)aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(AnEnum)anEnum - anotherEnum:(AnotherEnum)anotherEnum - aString:(NSString *)aString - anObject:(id)anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - enumList:(NSArray *)enumList - objectList:(NSArray *)objectList - listList:(NSArray *> *)listList - mapList:(NSArray *> *)mapList - map:(NSDictionary *)map - stringMap:(NSDictionary *)stringMap - intMap:(NSDictionary *)intMap - enumMap:(NSDictionary *)enumMap - objectMap:(NSDictionary *)objectMap - listMap:(NSDictionary *> *)listMap - mapMap:(NSDictionary *> *)mapMap { - AllTypes *pigeonResult = [[AllTypes alloc] init]; - pigeonResult.aBool = aBool; - pigeonResult.anInt = anInt; - pigeonResult.anInt64 = anInt64; - pigeonResult.aDouble = aDouble; - pigeonResult.aByteArray = aByteArray; - pigeonResult.a4ByteArray = a4ByteArray; - pigeonResult.a8ByteArray = a8ByteArray; - pigeonResult.aFloatArray = aFloatArray; - pigeonResult.anEnum = anEnum; - pigeonResult.anotherEnum = anotherEnum; - pigeonResult.aString = aString; - pigeonResult.anObject = anObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.enumList = enumList; - pigeonResult.objectList = objectList; - pigeonResult.listList = listList; - pigeonResult.mapList = mapList; - pigeonResult.map = map; - pigeonResult.stringMap = stringMap; - pigeonResult.intMap = intMap; - pigeonResult.enumMap = enumMap; - pigeonResult.objectMap = objectMap; - pigeonResult.listMap = listMap; - pigeonResult.mapMap = mapMap; - return pigeonResult; -} -+ (AllTypes *)fromList:(NSArray *)list { - AllTypes *pigeonResult = [[AllTypes alloc] init]; - pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; - pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; - pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; - pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; - pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); - AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(list, 8); - pigeonResult.anEnum = boxedAnEnum.value; - AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(list, 9); - pigeonResult.anotherEnum = boxedAnotherEnum.value; - pigeonResult.aString = GetNullableObjectAtIndex(list, 10); - pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); - pigeonResult.list = GetNullableObjectAtIndex(list, 12); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); - pigeonResult.intList = GetNullableObjectAtIndex(list, 14); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); - pigeonResult.enumList = GetNullableObjectAtIndex(list, 17); - pigeonResult.objectList = GetNullableObjectAtIndex(list, 18); - pigeonResult.listList = GetNullableObjectAtIndex(list, 19); - pigeonResult.mapList = GetNullableObjectAtIndex(list, 20); - pigeonResult.map = GetNullableObjectAtIndex(list, 21); - pigeonResult.stringMap = GetNullableObjectAtIndex(list, 22); - pigeonResult.intMap = GetNullableObjectAtIndex(list, 23); - pigeonResult.enumMap = GetNullableObjectAtIndex(list, 24); - pigeonResult.objectMap = GetNullableObjectAtIndex(list, 25); - pigeonResult.listMap = GetNullableObjectAtIndex(list, 26); - pigeonResult.mapMap = GetNullableObjectAtIndex(list, 27); - return pigeonResult; -} -+ (nullable AllTypes *)nullableFromList:(NSArray *)list { - return (list) ? [AllTypes fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - @(self.aBool), - @(self.anInt), - @(self.anInt64), - @(self.aDouble), - self.aByteArray ?: [NSNull null], - self.a4ByteArray ?: [NSNull null], - self.a8ByteArray ?: [NSNull null], - self.aFloatArray ?: [NSNull null], - [[AnEnumBox alloc] initWithValue:self.anEnum], - [[AnotherEnumBox alloc] initWithValue:self.anotherEnum], - self.aString ?: [NSNull null], - self.anObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.enumList ?: [NSNull null], - self.objectList ?: [NSNull null], - self.listList ?: [NSNull null], - self.mapList ?: [NSNull null], - self.map ?: [NSNull null], - self.stringMap ?: [NSNull null], - self.intMap ?: [NSNull null], - self.enumMap ?: [NSNull null], - self.objectMap ?: [NSNull null], - self.listMap ?: [NSNull null], - self.mapMap ?: [NSNull null], - ]; -} -- (BOOL)isEqual:(id)object { - if (self == object) { - return YES; - } - if (![object isKindOfClass:[self class]]) { - return NO; - } - AllTypes *other = (AllTypes *)object; - return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && - (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && - FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && - FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && - FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && - FLTPigeonDeepEquals(self.aFloatArray, other.aFloatArray) && self.anEnum == other.anEnum && - self.anotherEnum == other.anotherEnum && - FLTPigeonDeepEquals(self.aString, other.aString) && - FLTPigeonDeepEquals(self.anObject, other.anObject) && - FLTPigeonDeepEquals(self.list, other.list) && - FLTPigeonDeepEquals(self.stringList, other.stringList) && - FLTPigeonDeepEquals(self.intList, other.intList) && - FLTPigeonDeepEquals(self.doubleList, other.doubleList) && - FLTPigeonDeepEquals(self.boolList, other.boolList) && - FLTPigeonDeepEquals(self.enumList, other.enumList) && - FLTPigeonDeepEquals(self.objectList, other.objectList) && - FLTPigeonDeepEquals(self.listList, other.listList) && - FLTPigeonDeepEquals(self.mapList, other.mapList) && - FLTPigeonDeepEquals(self.map, other.map) && - FLTPigeonDeepEquals(self.stringMap, other.stringMap) && - FLTPigeonDeepEquals(self.intMap, other.intMap) && - FLTPigeonDeepEquals(self.enumMap, other.enumMap) && - FLTPigeonDeepEquals(self.objectMap, other.objectMap) && - FLTPigeonDeepEquals(self.listMap, other.listMap) && - FLTPigeonDeepEquals(self.mapMap, other.mapMap); -} - -- (NSUInteger)hash { - NSUInteger result = [self class].hash; - result = result * 31 + @(self.aBool).hash; - result = result * 31 + @(self.anInt).hash; - result = result * 31 + @(self.anInt64).hash; - result = - result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); - result = result * 31 + FLTPigeonDeepHash(self.aByteArray); - result = result * 31 + FLTPigeonDeepHash(self.a4ByteArray); - result = result * 31 + FLTPigeonDeepHash(self.a8ByteArray); - result = result * 31 + FLTPigeonDeepHash(self.aFloatArray); - result = result * 31 + @(self.anEnum).hash; - result = result * 31 + @(self.anotherEnum).hash; - result = result * 31 + FLTPigeonDeepHash(self.aString); - result = result * 31 + FLTPigeonDeepHash(self.anObject); - result = result * 31 + FLTPigeonDeepHash(self.list); - result = result * 31 + FLTPigeonDeepHash(self.stringList); - result = result * 31 + FLTPigeonDeepHash(self.intList); - result = result * 31 + FLTPigeonDeepHash(self.doubleList); - result = result * 31 + FLTPigeonDeepHash(self.boolList); - result = result * 31 + FLTPigeonDeepHash(self.enumList); - result = result * 31 + FLTPigeonDeepHash(self.objectList); - result = result * 31 + FLTPigeonDeepHash(self.listList); - result = result * 31 + FLTPigeonDeepHash(self.mapList); - result = result * 31 + FLTPigeonDeepHash(self.map); - result = result * 31 + FLTPigeonDeepHash(self.stringMap); - result = result * 31 + FLTPigeonDeepHash(self.intMap); - result = result * 31 + FLTPigeonDeepHash(self.enumMap); - result = result * 31 + FLTPigeonDeepHash(self.objectMap); - result = result * 31 + FLTPigeonDeepHash(self.listMap); - result = result * 31 + FLTPigeonDeepHash(self.mapMap); - return result; -} -@end - -@implementation AllNullableTypes -+ (instancetype) - makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable AnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - allNullableTypes:(nullable AllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - recursiveClassList:(nullable NSArray *)recursiveClassList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap - recursiveClassMap: - (nullable NSDictionary *)recursiveClassMap { - AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.anotherNullableEnum = anotherNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.enumList = enumList; - pigeonResult.objectList = objectList; - pigeonResult.listList = listList; - pigeonResult.mapList = mapList; - pigeonResult.recursiveClassList = recursiveClassList; - pigeonResult.map = map; - pigeonResult.stringMap = stringMap; - pigeonResult.intMap = intMap; - pigeonResult.enumMap = enumMap; - pigeonResult.objectMap = objectMap; - pigeonResult.listMap = listMap; - pigeonResult.mapMap = mapMap; - pigeonResult.recursiveClassMap = recursiveClassMap; - return pigeonResult; -} -+ (AllNullableTypes *)fromList:(NSArray *)list { - AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 8); - pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 9); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 11); - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 12); - pigeonResult.list = GetNullableObjectAtIndex(list, 13); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 14); - pigeonResult.intList = GetNullableObjectAtIndex(list, 15); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 16); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 17); - pigeonResult.enumList = GetNullableObjectAtIndex(list, 18); - pigeonResult.objectList = GetNullableObjectAtIndex(list, 19); - pigeonResult.listList = GetNullableObjectAtIndex(list, 20); - pigeonResult.mapList = GetNullableObjectAtIndex(list, 21); - pigeonResult.recursiveClassList = GetNullableObjectAtIndex(list, 22); - pigeonResult.map = GetNullableObjectAtIndex(list, 23); - pigeonResult.stringMap = GetNullableObjectAtIndex(list, 24); - pigeonResult.intMap = GetNullableObjectAtIndex(list, 25); - pigeonResult.enumMap = GetNullableObjectAtIndex(list, 26); - pigeonResult.objectMap = GetNullableObjectAtIndex(list, 27); - pigeonResult.listMap = GetNullableObjectAtIndex(list, 28); - pigeonResult.mapMap = GetNullableObjectAtIndex(list, 29); - pigeonResult.recursiveClassMap = GetNullableObjectAtIndex(list, 30); - return pigeonResult; -} -+ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list { - return (list) ? [AllNullableTypes fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.anotherNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.allNullableTypes ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.enumList ?: [NSNull null], - self.objectList ?: [NSNull null], - self.listList ?: [NSNull null], - self.mapList ?: [NSNull null], - self.recursiveClassList ?: [NSNull null], - self.map ?: [NSNull null], - self.stringMap ?: [NSNull null], - self.intMap ?: [NSNull null], - self.enumMap ?: [NSNull null], - self.objectMap ?: [NSNull null], - self.listMap ?: [NSNull null], - self.mapMap ?: [NSNull null], - self.recursiveClassMap ?: [NSNull null], - ]; -} -- (BOOL)isEqual:(id)object { - if (self == object) { - return YES; - } - if (![object isKindOfClass:[self class]]) { - return NO; - } - AllNullableTypes *other = (AllNullableTypes *)object; - return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && - FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && - FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && - FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && - FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && - FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && - FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && - FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && - FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && - FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && - FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && - FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && - FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && - FLTPigeonDeepEquals(self.list, other.list) && - FLTPigeonDeepEquals(self.stringList, other.stringList) && - FLTPigeonDeepEquals(self.intList, other.intList) && - FLTPigeonDeepEquals(self.doubleList, other.doubleList) && - FLTPigeonDeepEquals(self.boolList, other.boolList) && - FLTPigeonDeepEquals(self.enumList, other.enumList) && - FLTPigeonDeepEquals(self.objectList, other.objectList) && - FLTPigeonDeepEquals(self.listList, other.listList) && - FLTPigeonDeepEquals(self.mapList, other.mapList) && - FLTPigeonDeepEquals(self.recursiveClassList, other.recursiveClassList) && - FLTPigeonDeepEquals(self.map, other.map) && - FLTPigeonDeepEquals(self.stringMap, other.stringMap) && - FLTPigeonDeepEquals(self.intMap, other.intMap) && - FLTPigeonDeepEquals(self.enumMap, other.enumMap) && - FLTPigeonDeepEquals(self.objectMap, other.objectMap) && - FLTPigeonDeepEquals(self.listMap, other.listMap) && - FLTPigeonDeepEquals(self.mapMap, other.mapMap) && - FLTPigeonDeepEquals(self.recursiveClassMap, other.recursiveClassMap); -} - -- (NSUInteger)hash { - NSUInteger result = [self class].hash; - result = result * 31 + FLTPigeonDeepHash(self.aNullableBool); - result = result * 31 + FLTPigeonDeepHash(self.aNullableInt); - result = result * 31 + FLTPigeonDeepHash(self.aNullableInt64); - result = result * 31 + FLTPigeonDeepHash(self.aNullableDouble); - result = result * 31 + FLTPigeonDeepHash(self.aNullableByteArray); - result = result * 31 + FLTPigeonDeepHash(self.aNullable4ByteArray); - result = result * 31 + FLTPigeonDeepHash(self.aNullable8ByteArray); - result = result * 31 + FLTPigeonDeepHash(self.aNullableFloatArray); - result = result * 31 + FLTPigeonDeepHash(self.aNullableEnum); - result = result * 31 + FLTPigeonDeepHash(self.anotherNullableEnum); - result = result * 31 + FLTPigeonDeepHash(self.aNullableString); - result = result * 31 + FLTPigeonDeepHash(self.aNullableObject); - result = result * 31 + FLTPigeonDeepHash(self.allNullableTypes); - result = result * 31 + FLTPigeonDeepHash(self.list); - result = result * 31 + FLTPigeonDeepHash(self.stringList); - result = result * 31 + FLTPigeonDeepHash(self.intList); - result = result * 31 + FLTPigeonDeepHash(self.doubleList); - result = result * 31 + FLTPigeonDeepHash(self.boolList); - result = result * 31 + FLTPigeonDeepHash(self.enumList); - result = result * 31 + FLTPigeonDeepHash(self.objectList); - result = result * 31 + FLTPigeonDeepHash(self.listList); - result = result * 31 + FLTPigeonDeepHash(self.mapList); - result = result * 31 + FLTPigeonDeepHash(self.recursiveClassList); - result = result * 31 + FLTPigeonDeepHash(self.map); - result = result * 31 + FLTPigeonDeepHash(self.stringMap); - result = result * 31 + FLTPigeonDeepHash(self.intMap); - result = result * 31 + FLTPigeonDeepHash(self.enumMap); - result = result * 31 + FLTPigeonDeepHash(self.objectMap); - result = result * 31 + FLTPigeonDeepHash(self.listMap); - result = result * 31 + FLTPigeonDeepHash(self.mapMap); - result = result * 31 + FLTPigeonDeepHash(self.recursiveClassMap); - return result; -} -@end - -@implementation AllNullableTypesWithoutRecursion -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable AnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *) - mapMap { - AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.anotherNullableEnum = anotherNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.enumList = enumList; - pigeonResult.objectList = objectList; - pigeonResult.listList = listList; - pigeonResult.mapList = mapList; - pigeonResult.map = map; - pigeonResult.stringMap = stringMap; - pigeonResult.intMap = intMap; - pigeonResult.enumMap = enumMap; - pigeonResult.objectMap = objectMap; - pigeonResult.listMap = listMap; - pigeonResult.mapMap = mapMap; - return pigeonResult; -} -+ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { - AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 8); - pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 9); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 11); - pigeonResult.list = GetNullableObjectAtIndex(list, 12); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); - pigeonResult.intList = GetNullableObjectAtIndex(list, 14); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); - pigeonResult.enumList = GetNullableObjectAtIndex(list, 17); - pigeonResult.objectList = GetNullableObjectAtIndex(list, 18); - pigeonResult.listList = GetNullableObjectAtIndex(list, 19); - pigeonResult.mapList = GetNullableObjectAtIndex(list, 20); - pigeonResult.map = GetNullableObjectAtIndex(list, 21); - pigeonResult.stringMap = GetNullableObjectAtIndex(list, 22); - pigeonResult.intMap = GetNullableObjectAtIndex(list, 23); - pigeonResult.enumMap = GetNullableObjectAtIndex(list, 24); - pigeonResult.objectMap = GetNullableObjectAtIndex(list, 25); - pigeonResult.listMap = GetNullableObjectAtIndex(list, 26); - pigeonResult.mapMap = GetNullableObjectAtIndex(list, 27); - return pigeonResult; -} -+ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { - return (list) ? [AllNullableTypesWithoutRecursion fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.anotherNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.enumList ?: [NSNull null], - self.objectList ?: [NSNull null], - self.listList ?: [NSNull null], - self.mapList ?: [NSNull null], - self.map ?: [NSNull null], - self.stringMap ?: [NSNull null], - self.intMap ?: [NSNull null], - self.enumMap ?: [NSNull null], - self.objectMap ?: [NSNull null], - self.listMap ?: [NSNull null], - self.mapMap ?: [NSNull null], - ]; -} -- (BOOL)isEqual:(id)object { - if (self == object) { - return YES; - } - if (![object isKindOfClass:[self class]]) { - return NO; - } - AllNullableTypesWithoutRecursion *other = (AllNullableTypesWithoutRecursion *)object; - return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && - FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && - FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && - FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && - FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && - FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && - FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && - FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && - FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && - FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && - FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && - FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && - FLTPigeonDeepEquals(self.list, other.list) && - FLTPigeonDeepEquals(self.stringList, other.stringList) && - FLTPigeonDeepEquals(self.intList, other.intList) && - FLTPigeonDeepEquals(self.doubleList, other.doubleList) && - FLTPigeonDeepEquals(self.boolList, other.boolList) && - FLTPigeonDeepEquals(self.enumList, other.enumList) && - FLTPigeonDeepEquals(self.objectList, other.objectList) && - FLTPigeonDeepEquals(self.listList, other.listList) && - FLTPigeonDeepEquals(self.mapList, other.mapList) && - FLTPigeonDeepEquals(self.map, other.map) && - FLTPigeonDeepEquals(self.stringMap, other.stringMap) && - FLTPigeonDeepEquals(self.intMap, other.intMap) && - FLTPigeonDeepEquals(self.enumMap, other.enumMap) && - FLTPigeonDeepEquals(self.objectMap, other.objectMap) && - FLTPigeonDeepEquals(self.listMap, other.listMap) && - FLTPigeonDeepEquals(self.mapMap, other.mapMap); -} - -- (NSUInteger)hash { - NSUInteger result = [self class].hash; - result = result * 31 + FLTPigeonDeepHash(self.aNullableBool); - result = result * 31 + FLTPigeonDeepHash(self.aNullableInt); - result = result * 31 + FLTPigeonDeepHash(self.aNullableInt64); - result = result * 31 + FLTPigeonDeepHash(self.aNullableDouble); - result = result * 31 + FLTPigeonDeepHash(self.aNullableByteArray); - result = result * 31 + FLTPigeonDeepHash(self.aNullable4ByteArray); - result = result * 31 + FLTPigeonDeepHash(self.aNullable8ByteArray); - result = result * 31 + FLTPigeonDeepHash(self.aNullableFloatArray); - result = result * 31 + FLTPigeonDeepHash(self.aNullableEnum); - result = result * 31 + FLTPigeonDeepHash(self.anotherNullableEnum); - result = result * 31 + FLTPigeonDeepHash(self.aNullableString); - result = result * 31 + FLTPigeonDeepHash(self.aNullableObject); - result = result * 31 + FLTPigeonDeepHash(self.list); - result = result * 31 + FLTPigeonDeepHash(self.stringList); - result = result * 31 + FLTPigeonDeepHash(self.intList); - result = result * 31 + FLTPigeonDeepHash(self.doubleList); - result = result * 31 + FLTPigeonDeepHash(self.boolList); - result = result * 31 + FLTPigeonDeepHash(self.enumList); - result = result * 31 + FLTPigeonDeepHash(self.objectList); - result = result * 31 + FLTPigeonDeepHash(self.listList); - result = result * 31 + FLTPigeonDeepHash(self.mapList); - result = result * 31 + FLTPigeonDeepHash(self.map); - result = result * 31 + FLTPigeonDeepHash(self.stringMap); - result = result * 31 + FLTPigeonDeepHash(self.intMap); - result = result * 31 + FLTPigeonDeepHash(self.enumMap); - result = result * 31 + FLTPigeonDeepHash(self.objectMap); - result = result * 31 + FLTPigeonDeepHash(self.listMap); - result = result * 31 + FLTPigeonDeepHash(self.mapMap); - return result; -} -@end - -@implementation AllClassesWrapper -+ (instancetype) - makeWithAllNullableTypes:(AllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion: - (nullable AllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable AllTypes *)allTypes - classList:(NSArray *)classList - nullableClassList: - (nullable NSArray *)nullableClassList - classMap:(NSDictionary *)classMap - nullableClassMap: - (nullable NSDictionary *) - nullableClassMap { - AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; - pigeonResult.allTypes = allTypes; - pigeonResult.classList = classList; - pigeonResult.nullableClassList = nullableClassList; - pigeonResult.classMap = classMap; - pigeonResult.nullableClassMap = nullableClassMap; - return pigeonResult; -} -+ (AllClassesWrapper *)fromList:(NSArray *)list { - AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); - pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); - pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); - pigeonResult.classList = GetNullableObjectAtIndex(list, 3); - pigeonResult.nullableClassList = GetNullableObjectAtIndex(list, 4); - pigeonResult.classMap = GetNullableObjectAtIndex(list, 5); - pigeonResult.nullableClassMap = GetNullableObjectAtIndex(list, 6); - return pigeonResult; -} -+ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list { - return (list) ? [AllClassesWrapper fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.allNullableTypes ?: [NSNull null], - self.allNullableTypesWithoutRecursion ?: [NSNull null], - self.allTypes ?: [NSNull null], - self.classList ?: [NSNull null], - self.nullableClassList ?: [NSNull null], - self.classMap ?: [NSNull null], - self.nullableClassMap ?: [NSNull null], - ]; -} -- (BOOL)isEqual:(id)object { - if (self == object) { - return YES; - } - if (![object isKindOfClass:[self class]]) { - return NO; - } - AllClassesWrapper *other = (AllClassesWrapper *)object; - return FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && - FLTPigeonDeepEquals(self.allNullableTypesWithoutRecursion, - other.allNullableTypesWithoutRecursion) && - FLTPigeonDeepEquals(self.allTypes, other.allTypes) && - FLTPigeonDeepEquals(self.classList, other.classList) && - FLTPigeonDeepEquals(self.nullableClassList, other.nullableClassList) && - FLTPigeonDeepEquals(self.classMap, other.classMap) && - FLTPigeonDeepEquals(self.nullableClassMap, other.nullableClassMap); -} - -- (NSUInteger)hash { - NSUInteger result = [self class].hash; - result = result * 31 + FLTPigeonDeepHash(self.allNullableTypes); - result = result * 31 + FLTPigeonDeepHash(self.allNullableTypesWithoutRecursion); - result = result * 31 + FLTPigeonDeepHash(self.allTypes); - result = result * 31 + FLTPigeonDeepHash(self.classList); - result = result * 31 + FLTPigeonDeepHash(self.nullableClassList); - result = result * 31 + FLTPigeonDeepHash(self.classMap); - result = result * 31 + FLTPigeonDeepHash(self.nullableClassMap); - return result; -} -@end - -@implementation TestMessage -+ (instancetype)makeWithTestList:(nullable NSArray *)testList { - TestMessage *pigeonResult = [[TestMessage alloc] init]; - pigeonResult.testList = testList; - return pigeonResult; -} -+ (TestMessage *)fromList:(NSArray *)list { - TestMessage *pigeonResult = [[TestMessage alloc] init]; - pigeonResult.testList = GetNullableObjectAtIndex(list, 0); - return pigeonResult; -} -+ (nullable TestMessage *)nullableFromList:(NSArray *)list { - return (list) ? [TestMessage fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.testList ?: [NSNull null], - ]; -} -- (BOOL)isEqual:(id)object { - if (self == object) { - return YES; - } - if (![object isKindOfClass:[self class]]) { - return NO; - } - TestMessage *other = (TestMessage *)object; - return FLTPigeonDeepEquals(self.testList, other.testList); -} - -- (NSUInteger)hash { - NSUInteger result = [self class].hash; - result = result * 31 + FLTPigeonDeepHash(self.testList); - return result; -} -@end - -@interface nullCoreTestsPigeonCodecReader : FlutterStandardReader -@end -@implementation nullCoreTestsPigeonCodecReader -- (nullable id)readValueOfType:(UInt8)type { - switch (type) { - case 129: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil - : [[AnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 130: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[AnotherEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 131: - return [UnusedClass fromList:[self readValue]]; - case 132: - return [AllTypes fromList:[self readValue]]; - case 133: - return [AllNullableTypes fromList:[self readValue]]; - case 134: - return [AllNullableTypesWithoutRecursion fromList:[self readValue]]; - case 135: - return [AllClassesWrapper fromList:[self readValue]]; - case 136: - return [TestMessage fromList:[self readValue]]; - default: - return [super readValueOfType:type]; - } -} -@end - -@interface nullCoreTestsPigeonCodecWriter : FlutterStandardWriter -@end -@implementation nullCoreTestsPigeonCodecWriter -- (void)writeValue:(id)value { - if ([value isKindOfClass:[AnEnumBox class]]) { - AnEnumBox *box = (AnEnumBox *)value; - [self writeByte:129]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[AnotherEnumBox class]]) { - AnotherEnumBox *box = (AnotherEnumBox *)value; - [self writeByte:130]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[UnusedClass class]]) { - [self writeByte:131]; - [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[AllTypes class]]) { - [self writeByte:132]; - [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[AllNullableTypes class]]) { - [self writeByte:133]; - [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[AllNullableTypesWithoutRecursion class]]) { - [self writeByte:134]; - [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[AllClassesWrapper class]]) { - [self writeByte:135]; - [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[TestMessage class]]) { - [self writeByte:136]; - [self writeValue:[value toList]]; - } else { - [super writeValue:value]; - } -} -@end - -@interface nullCoreTestsPigeonCodecReaderWriter : FlutterStandardReaderWriter -@end -@implementation nullCoreTestsPigeonCodecReaderWriter -- (FlutterStandardWriter *)writerWithData:(NSMutableData *)data { - return [[nullCoreTestsPigeonCodecWriter alloc] initWithData:data]; -} -- (FlutterStandardReader *)readerWithData:(NSData *)data { - return [[nullCoreTestsPigeonCodecReader alloc] initWithData:data]; -} -@end - -NSObject *nullGetCoreTestsCodec(void) { - static FlutterStandardMessageCodec *sSharedObject = nil; - static dispatch_once_t sPred = 0; - dispatch_once(&sPred, ^{ - nullCoreTestsPigeonCodecReaderWriter *readerWriter = - [[nullCoreTestsPigeonCodecReaderWriter alloc] init]; - sSharedObject = [FlutterStandardMessageCodec codecWithReaderWriter:readerWriter]; - }); - return sSharedObject; -} -void SetUpHostIntegrationCoreApi(id binaryMessenger, - NSObject *api) { - SetUpHostIntegrationCoreApiWithSuffix(binaryMessenger, api, @""); -} - -void SetUpHostIntegrationCoreApiWithSuffix(id binaryMessenger, - NSObject *api, - NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 - ? [NSString stringWithFormat:@".%@", messageChannelSuffix] - : @""; -#if TARGET_OS_IOS - NSObject *taskQueue = [binaryMessenger makeBackgroundTaskQueue]; -#else - NSObject *taskQueue = nil; -#endif - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic calling. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noop", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(noopWithError:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(noopWithError:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api noopWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed object, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllTypes", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoAllTypes:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllTypes:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - AllTypes *output = [api echoAllTypes:arg_everything error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns an error, to test error handling. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwError", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(throwErrorWithError:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(throwErrorWithError:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - id output = [api throwErrorWithError:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns an error from a void function, to test error handling. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.throwErrorFromVoid", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(throwErrorFromVoidWithError:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwErrorFromVoidWithError:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api throwErrorFromVoidWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns a Flutter error, to test error handling. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.throwFlutterError", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(throwFlutterErrorWithError:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwFlutterErrorWithError:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - id output = [api throwFlutterErrorWithError:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in int. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoInt", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoInt:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoInt:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; - FlutterError *error; - NSNumber *output = [api echoInt:arg_anInt error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in double. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoDouble", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoDouble:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoDouble:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; - FlutterError *error; - NSNumber *output = [api echoDouble:arg_aDouble error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in boolean. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoBool", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoBool:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoBool:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; - FlutterError *error; - NSNumber *output = [api echoBool:arg_aBool error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in string. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoString:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoString:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSString *output = [api echoString:arg_aString error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in Uint8List. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoUint8List", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoUint8List:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoUint8List:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - FlutterStandardTypedData *output = [api echoUint8List:arg_aUint8List error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in generic Object. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoObject", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoObject:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoObject:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - id arg_anObject = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - id output = [api echoObject:arg_anObject error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoList:arg_list error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoEnumList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoEnumList:arg_enumList error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoClassList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoClassList:arg_classList error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNonNullEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullEnumList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullEnumList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoNonNullEnumList:arg_enumList error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNonNullClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullClassList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullClassList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoNonNullClassList:arg_classList error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoMap:arg_map error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoStringMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoStringMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoStringMap:arg_stringMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoIntMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoIntMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoIntMap:arg_intMap error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoEnumMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoEnumMap:arg_enumMap error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoClassMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoClassMap:arg_classMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNonNullStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullStringMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullStringMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNonNullStringMap:arg_stringMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNonNullIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoNonNullIntMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullIntMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNonNullIntMap:arg_intMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNonNullEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullEnumMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullEnumMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNonNullEnumMap:arg_enumMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNonNullClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullClassMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullClassMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNonNullClassMap:arg_classMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed class to test nested class serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoClassWrapper", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoClassWrapper:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassWrapper:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllClassesWrapper *arg_wrapper = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - AllClassesWrapper *output = [api echoClassWrapper:arg_wrapper error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed enum to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoEnum:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnum:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = boxedAnEnum.value; - FlutterError *error; - AnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed enum to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoAnotherEnum:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherEnum:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); - AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; - FlutterError *error; - AnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the default string. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNamedDefaultString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNamedDefaultString:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNamedDefaultString:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSString *output = [api echoNamedDefaultString:arg_aString error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in double. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoOptionalDefaultDouble", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoOptionalDefaultDouble:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoOptionalDefaultDouble:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; - FlutterError *error; - NSNumber *output = [api echoOptionalDefaultDouble:arg_aDouble error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in int. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoRequiredInt", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoRequiredInt:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoRequiredInt:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; - FlutterError *error; - NSNumber *output = [api echoRequiredInt:arg_anInt error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed object, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAllNullableTypes", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAllNullableTypes:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAllNullableTypes:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - AllNullableTypes *output = [api echoAllNullableTypes:arg_everything error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed object, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAllNullableTypesWithoutRecursion", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAllNullableTypesWithoutRecursion:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAllNullableTypesWithoutRecursion:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - AllNullableTypesWithoutRecursion *output = - [api echoAllNullableTypesWithoutRecursion:arg_everything error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the inner `aString` value from the wrapped object, to test - /// sending of nested objects. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"extractNestedNullableString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(extractNestedNullableStringFrom:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(extractNestedNullableStringFrom:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllClassesWrapper *arg_wrapper = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSString *output = [api extractNestedNullableStringFrom:arg_wrapper error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the inner `aString` value from the wrapped object, to test - /// sending of nested objects. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"createNestedNullableString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(createNestedObjectWithNullableString:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(createNestedObjectWithNullableString:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_nullableString = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - AllClassesWrapper *output = [api createNestedObjectWithNullableString:arg_nullableString - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in arguments of multiple types. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"sendMultipleNullableTypes", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(sendMultipleNullableTypesABool: - anInt:aString:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(sendMultipleNullableTypesABool:anInt:aString:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); - NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - AllNullableTypes *output = [api sendMultipleNullableTypesABool:arg_aNullableBool - anInt:arg_aNullableInt - aString:arg_aNullableString - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in arguments of multiple types. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"sendMultipleNullableTypesWithoutRecursion", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector - (sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); - NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); - FlutterError *error; - AllNullableTypesWithoutRecursion *output = - [api sendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool - anInt:arg_aNullableInt - aString:arg_aNullableString - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in int. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableInt", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoNullableInt:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableInt:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSNumber *output = [api echoNullableInt:arg_aNullableInt error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in double. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableDouble", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableDouble:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableDouble:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aNullableDouble = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSNumber *output = [api echoNullableDouble:arg_aNullableDouble error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in boolean. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableBool", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoNullableBool:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableBool:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSNumber *output = [api echoNullableBool:arg_aNullableBool error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in string. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableString:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableString:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSString *output = [api echoNullableString:arg_aNullableString error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in Uint8List. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableUint8List", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableUint8List:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableUint8List:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - FlutterStandardTypedData *arg_aNullableUint8List = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - FlutterStandardTypedData *output = [api echoNullableUint8List:arg_aNullableUint8List - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in generic Object. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableObject", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableObject:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableObject:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - id arg_aNullableObject = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - id output = [api echoNullableObject:arg_aNullableObject error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoNullableList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_aNullableList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoNullableList:arg_aNullableList error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableEnumList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableEnumList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoNullableEnumList:arg_enumList error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableClassList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableClassList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoNullableClassList:arg_classList - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoNullableNonNullEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullEnumList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoNullableNonNullEnumList:arg_enumList error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoNullableNonNullClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassList:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullClassList:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSArray *output = [api echoNullableNonNullClassList:arg_classList - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoNullableMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNullableMap:arg_map error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableStringMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableStringMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNullableStringMap:arg_stringMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableIntMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableIntMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNullableIntMap:arg_intMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableEnumMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableEnumMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNullableEnumMap:arg_enumMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableClassMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableClassMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = - [api echoNullableClassMap:arg_classMap error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoNullableNonNullStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullStringMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullStringMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = - [api echoNullableNonNullStringMap:arg_stringMap error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoNullableNonNullIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullIntMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullIntMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNullableNonNullIntMap:arg_intMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoNullableNonNullEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullEnumMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = [api echoNullableNonNullEnumMap:arg_enumMap - error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoNullableNonNullClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassMap:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullClassMap:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSDictionary *output = - [api echoNullableNonNullClassMap:arg_classMap error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoNullableEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoNullableEnum:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableEnum:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - AnEnumBox *output = [api echoNullableEnum:arg_anEnum error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAnotherNullableEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherNullableEnum:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAnotherNullableEnum:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - AnotherEnumBox *output = [api echoAnotherNullableEnum:arg_anotherEnum error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in int. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoOptionalNullableInt", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoOptionalNullableInt:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoOptionalNullableInt:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSNumber *output = [api echoOptionalNullableInt:arg_aNullableInt error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in string. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoNamedNullableString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoNamedNullableString:error:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNamedNullableString:error:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 0); - FlutterError *error; - NSString *output = [api echoNamedNullableString:arg_aNullableString error:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic asynchronous calling. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noopAsync", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(noopAsyncWithCompletion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(noopAsyncWithCompletion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api noopAsyncWithCompletion:^(FlutterError *_Nullable error) { - callback(wrapResult(nil, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in int asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncInt", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoAsyncInt:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncInt:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; - [api echoAsyncInt:arg_anInt - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in double asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncDouble", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncDouble:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncDouble:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; - [api echoAsyncDouble:arg_aDouble - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in boolean asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncBool", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncBool:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncBool:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; - [api echoAsyncBool:arg_aBool - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed string asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncString:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncString:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoAsyncString:arg_aString - completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in Uint8List asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncUint8List", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncUint8List:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncUint8List:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); - [api echoAsyncUint8List:arg_aUint8List - completion:^(FlutterStandardTypedData *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in generic Object asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncObject", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncObject:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncObject:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - id arg_anObject = GetNullableObjectAtIndex(args, 0); - [api echoAsyncObject:arg_anObject - completion:^(id _Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api echoAsyncList:arg_list - completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnumList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncEnumList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncClassList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncClassList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoAsyncMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api echoAsyncMap:arg_map - completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncStringMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncStringMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncStringMap:arg_stringMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncIntMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncIntMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnumMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncEnumMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncEnumMap:arg_enumMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncClassMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncClassMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api echoAsyncClassMap:arg_classMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed enum, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnum:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncEnum:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = boxedAnEnum.value; - [api echoAsyncEnum:arg_anEnum - completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed enum, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAnotherAsyncEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncEnum:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAnotherAsyncEnum:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); - AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; - [api echoAnotherAsyncEnum:arg_anotherEnum - completion:^(AnotherEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Responds with an error from an async function returning a value. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncError", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncErrorWithCompletion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwAsyncErrorWithCompletion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api throwAsyncErrorWithCompletion:^(id _Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Responds with an error from an async void function. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"throwAsyncErrorFromVoid", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncErrorFromVoidWithCompletion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwAsyncErrorFromVoidWithCompletion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api throwAsyncErrorFromVoidWithCompletion:^(FlutterError *_Nullable error) { - callback(wrapResult(nil, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Responds with a Flutter error from an async function returning a value. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.throwAsyncFlutterError", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncFlutterErrorWithCompletion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwAsyncFlutterErrorWithCompletion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api throwAsyncFlutterErrorWithCompletion:^(id _Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed object, to test async serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncAllTypes", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncAllTypes:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncAllTypes:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncAllTypes:arg_everything - completion:^(AllTypes *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed object, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableAllNullableTypes", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableAllNullableTypes:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableAllNullableTypes:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableAllNullableTypes:arg_everything - completion:^(AllNullableTypes *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed object, to test serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableAllNullableTypesWithoutRecursion", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector - (echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableAllNullableTypesWithoutRecursion:arg_everything - completion:^(AllNullableTypesWithoutRecursion - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in int asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncNullableInt", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableInt:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableInt:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_anInt = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableInt:arg_anInt - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns passed in double asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableDouble", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableDouble:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableDouble:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aDouble = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableDouble:arg_aDouble - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in boolean asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncNullableBool", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableBool:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableBool:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aBool = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableBool:arg_aBool - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed string asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableString:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableString:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableString:arg_aString - completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in Uint8List asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableUint8List", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableUint8List:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableUint8List:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableUint8List:arg_aUint8List - completion:^(FlutterStandardTypedData *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed in generic Object asynchronously. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableObject", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableObject:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableObject:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - id arg_anObject = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableObject:arg_anObject - completion:^(id _Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncNullableList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableList:arg_list - completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableEnumList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableClassList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncNullableMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableMap:arg_map - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableStringMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableStringMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableStringMap:arg_stringMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableIntMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableIntMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableEnumMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableEnumMap:arg_enumMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAsyncNullableClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableClassMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableClassMap:arg_classMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed enum, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.echoAsyncNullableEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnum:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableEnum:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableEnum:arg_anEnum - completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns the passed enum, to test asynchronous serialization and deserialization. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"echoAnotherAsyncNullableEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncNullableEnum:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAnotherAsyncNullableEnum:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); - [api echoAnotherAsyncNullableEnum:arg_anotherEnum - completion:^(AnotherEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns true if the handler is run on a main thread, which should be - /// true since there is no TaskQueue annotation. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.defaultIsMainThread", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(defaultIsMainThreadWithError:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(defaultIsMainThreadWithError:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - NSNumber *output = [api defaultIsMainThreadWithError:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - /// Returns true if the handler is run on a non-main thread, which should be - /// true for any platform with TaskQueue support. - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"taskQueueIsBackgroundThread", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec() -#ifdef TARGET_OS_IOS - taskQueue:taskQueue -#endif - ]; - - if (api) { - NSCAssert([api respondsToSelector:@selector(taskQueueIsBackgroundThreadWithError:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(taskQueueIsBackgroundThreadWithError:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - NSNumber *output = [api taskQueueIsBackgroundThreadWithError:&error]; - callback(wrapResult(output, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterNoop", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterNoopWithCompletion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterNoopWithCompletion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api callFlutterNoopWithCompletion:^(FlutterError *_Nullable error) { - callback(wrapResult(nil, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterThrowError", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorWithCompletion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterThrowErrorWithCompletion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api callFlutterThrowErrorWithCompletion:^(id _Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterThrowErrorFromVoid", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorFromVoidWithCompletion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterThrowErrorFromVoidWithCompletion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api callFlutterThrowErrorFromVoidWithCompletion:^(FlutterError *_Nullable error) { - callback(wrapResult(nil, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoAllTypes", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllTypes:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAllTypes:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllTypes:arg_everything - completion:^(AllTypes *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoAllNullableTypes", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllNullableTypes:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAllNullableTypes:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllNullableTypes:arg_everything - completion:^(AllNullableTypes *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterSendMultipleNullableTypes", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector - (callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); - NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); - [api callFlutterSendMultipleNullableTypesABool:arg_aNullableBool - anInt:arg_aNullableInt - aString:arg_aNullableString - completion:^(AllNullableTypes *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoAllNullableTypesWithoutRecursion", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector - (callFlutterEchoAllNullableTypesWithoutRecursion:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAllNullableTypesWithoutRecursion:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllNullableTypesWithoutRecursion:arg_everything - completion:^(AllNullableTypesWithoutRecursion - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterSendMultipleNullableTypesWithoutRecursion", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert( - [api respondsToSelector:@selector - (callFlutterSendMultipleNullableTypesWithoutRecursionABool: - anInt:aString:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterSendMultipleNullableTypesWithoutRecursionABool:anInt:aString:" - @"completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); - NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); - NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); - [api callFlutterSendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool - anInt:arg_aNullableInt - aString:arg_aNullableString - completion:^( - AllNullableTypesWithoutRecursion - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoBool", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoBool:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoBool:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; - [api callFlutterEchoBool:arg_aBool - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoInt", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoInt:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoInt:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; - [api callFlutterEchoInt:arg_anInt - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoDouble", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoDouble:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoDouble:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; - [api callFlutterEchoDouble:arg_aDouble - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoString:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoString:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoString:arg_aString - completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoUint8List", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoUint8List:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoUint8List:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - FlutterStandardTypedData *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoUint8List:arg_list - completion:^(FlutterStandardTypedData *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoList:arg_list - completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoEnumList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoClassList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNonNullEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullEnumList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNonNullClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullClassList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoMap:arg_map - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoStringMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoStringMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoStringMap:arg_stringMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoIntMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoIntMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoEnumMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoEnumMap:arg_enumMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoClassMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoClassMap:arg_classMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNonNullStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullStringMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullStringMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullStringMap:arg_stringMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNonNullIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullIntMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullIntMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNonNullEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullEnumMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullEnumMap:arg_enumMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNonNullClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullClassMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullClassMap:arg_classMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon." - @"HostIntegrationCoreApi.callFlutterEchoEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnum:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoEnum:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = boxedAnEnum.value; - [api callFlutterEchoEnum:arg_anEnum - completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoAnotherEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherEnum:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAnotherEnum:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); - AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; - [api callFlutterEchoAnotherEnum:arg_anotherEnum - completion:^(AnotherEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableBool", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableBool:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableBool:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aBool = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableBool:arg_aBool - completion:^(NSNumber *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableInt", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableInt:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableInt:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_anInt = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableInt:arg_anInt - completion:^(NSNumber *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableDouble", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableDouble:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableDouble:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSNumber *arg_aDouble = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableDouble:arg_aDouble - completion:^(NSNumber *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableString:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableString:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableString:arg_aString - completion:^(NSString *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableUint8List", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableUint8List:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableUint8List:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - FlutterStandardTypedData *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableUint8List:arg_list - completion:^(FlutterStandardTypedData *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableList:arg_list - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableEnumList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassList:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableClassList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableNonNullEnumList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumList: - completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullEnumList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableNonNullClassList", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassList: - completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullClassList:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api - callFlutterEchoNullableNonNullClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableMap:arg_map - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableStringMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableStringMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableStringMap:arg_stringMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableIntMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableIntMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableEnumMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnumMap:arg_enumMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassMap:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableClassMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api - callFlutterEchoNullableClassMap:arg_classMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableNonNullStringMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullStringMap: - completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullStringMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api - callFlutterEchoNullableNonNullStringMap:arg_stringMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableNonNullIntMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullIntMap: - completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullIntMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullIntMap:arg_intMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableNonNullEnumMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumMap: - completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullEnumMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api - callFlutterEchoNullableNonNullEnumMap:arg_enumMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableNonNullClassMap", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassMap: - completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullClassMap:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullClassMap:arg_classMap - completion:^(NSDictionary - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoNullableEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnum:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableEnum:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnum:arg_anEnum - completion:^(AnEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterEchoAnotherNullableEnum", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherNullableEnum:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAnotherNullableEnum:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAnotherNullableEnum:arg_anotherEnum - completion:^(AnotherEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostIntegrationCoreApi." - @"callFlutterSmallApiEchoString", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterSmallApiEchoString:completion:)], - @"HostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterSmallApiEchoString:completion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterSmallApiEchoString:arg_aString - completion:^(NSString *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} -@interface FlutterIntegrationCoreApi () -@property(nonatomic, strong) NSObject *binaryMessenger; -@property(nonatomic, strong) NSString *messageChannelSuffix; -@end - -@implementation FlutterIntegrationCoreApi - -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { - return [self initWithBinaryMessenger:binaryMessenger messageChannelSuffix:@""]; -} -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger - messageChannelSuffix:(nullable NSString *)messageChannelSuffix { - self = [self init]; - if (self) { - _binaryMessenger = binaryMessenger; - _messageChannelSuffix = [messageChannelSuffix length] == 0 - ? @"" - : [NSString stringWithFormat:@".%@", messageChannelSuffix]; - } - return self; -} -- (void)noopWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noop", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:nil - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; -} -- (void)throwErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwError", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:nil - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - id output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)throwErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwErrorFromVoid", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:nil - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; -} -- (void)echoAllTypes:(AllTypes *)arg_everything - completion:(void (^)(AllTypes *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_everything ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AllTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoAllNullableTypes:(nullable AllNullableTypes *)arg_everything - completion: - (void (^)(AllNullableTypes *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_everything ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)arg_aNullableBool - anInt:(nullable NSNumber *)arg_aNullableInt - aString:(nullable NSString *)arg_aNullableString - completion:(void (^)(AllNullableTypes *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ - arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], - arg_aNullableString ?: [NSNull null] - ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoAllNullableTypesWithoutRecursion: - (nullable AllNullableTypesWithoutRecursion *)arg_everything - completion:(void (^)(AllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi." - @"echoAllNullableTypesWithoutRecursion", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_everything ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AllNullableTypesWithoutRecursion *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void) - sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)arg_aNullableBool - anInt:(nullable NSNumber *)arg_aNullableInt - aString:(nullable NSString *)arg_aNullableString - completion: - (void (^)(AllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi." - @"sendMultipleNullableTypesWithoutRecursion", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ - arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], - arg_aNullableString ?: [NSNull null] - ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AllNullableTypesWithoutRecursion *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoBool:(BOOL)arg_aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ @(arg_aBool) ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoInt:(NSInteger)arg_anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ @(arg_anInt) ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoDouble:(double)arg_aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ @(arg_aDouble) ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoString:(NSString *)arg_aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aString ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoUint8List:(FlutterStandardTypedData *)arg_list - completion: - (void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_list ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FlutterStandardTypedData *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoList:(NSArray *)arg_list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_list ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoEnumList:(NSArray *)arg_enumList - completion: - (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoClassList:(NSArray *)arg_classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNonNullEnumList:(NSArray *)arg_enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNonNullClassList:(NSArray *)arg_classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoMap:(NSDictionary *)arg_map - completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_map ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoStringMap:(NSDictionary *)arg_stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoIntMap:(NSDictionary *)arg_intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoEnumMap:(NSDictionary *)arg_enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoClassMap:(NSDictionary *)arg_classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNonNullStringMap:(NSDictionary *)arg_stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNonNullIntMap:(NSDictionary *)arg_intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNonNullEnumMap:(NSDictionary *)arg_enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNonNullClassMap:(NSDictionary *)arg_classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoEnum:(AnEnum)arg_anEnum - completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ [[AnEnumBox alloc] initWithValue:arg_anEnum] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoAnotherEnum:(AnotherEnum)arg_anotherEnum - completion:(void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ [[AnotherEnumBox alloc] initWithValue:arg_anotherEnum] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableBool:(nullable NSNumber *)arg_aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aBool ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableInt:(nullable NSNumber *)arg_anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_anInt ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableDouble:(nullable NSNumber *)arg_aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aDouble ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableString:(nullable NSString *)arg_aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aString ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)arg_list - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_list ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FlutterStandardTypedData *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableList:(nullable NSArray *)arg_list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_list ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableEnumList:(nullable NSArray *)arg_enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableClassList:(nullable NSArray *)arg_classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableNonNullEnumList:(nullable NSArray *)arg_enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableNonNullClassList:(nullable NSArray *)arg_classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableMap:(nullable NSDictionary *)arg_map - completion: - (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_map ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableStringMap:(nullable NSDictionary *)arg_stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableIntMap:(nullable NSDictionary *)arg_intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableEnumMap:(nullable NSDictionary *)arg_enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableClassMap:(nullable NSDictionary *)arg_classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)arg_stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)arg_intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)arg_enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableNonNullClassMap: - (nullable NSDictionary *)arg_classMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoNullableEnum:(nullable AnEnumBox *)arg_anEnum - completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_anEnum == nil ? [NSNull null] : arg_anEnum ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoAnotherNullableEnum:(nullable AnotherEnumBox *)arg_anotherEnum - completion: - (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_anotherEnum == nil ? [NSNull null] : arg_anotherEnum ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - AnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noopAsync", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:nil - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; -} -- (void)echoAsyncString:(NSString *)arg_aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aString ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -@end - -void SetUpHostTrivialApi(id binaryMessenger, - NSObject *api) { - SetUpHostTrivialApiWithSuffix(binaryMessenger, api, @""); -} - -void SetUpHostTrivialApiWithSuffix(id binaryMessenger, - NSObject *api, NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 - ? [NSString stringWithFormat:@".%@", messageChannelSuffix] - : @""; - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostTrivialApi.noop", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(noopWithError:)], - @"HostTrivialApi api (%@) doesn't respond to @selector(noopWithError:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - FlutterError *error; - [api noopWithError:&error]; - callback(wrapResult(nil, error)); - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} -void SetUpHostSmallApi(id binaryMessenger, NSObject *api) { - SetUpHostSmallApiWithSuffix(binaryMessenger, api, @""); -} - -void SetUpHostSmallApiWithSuffix(id binaryMessenger, - NSObject *api, NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 - ? [NSString stringWithFormat:@".%@", messageChannelSuffix] - : @""; - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostSmallApi.echo", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(echoString:completion:)], - @"HostSmallApi api (%@) doesn't respond to @selector(echoString:completion:)", api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - NSArray *args = message; - NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoString:arg_aString - completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } - { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon.HostSmallApi.voidVoid", - messageChannelSuffix] - binaryMessenger:binaryMessenger - codec:nullGetCoreTestsCodec()]; - if (api) { - NSCAssert([api respondsToSelector:@selector(voidVoidWithCompletion:)], - @"HostSmallApi api (%@) doesn't respond to @selector(voidVoidWithCompletion:)", - api); - [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api voidVoidWithCompletion:^(FlutterError *_Nullable error) { - callback(wrapResult(nil, error)); - }]; - }]; - } else { - [channel setMessageHandler:nil]; - } - } -} -@interface FlutterSmallApi () -@property(nonatomic, strong) NSObject *binaryMessenger; -@property(nonatomic, strong) NSString *messageChannelSuffix; -@end - -@implementation FlutterSmallApi - -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { - return [self initWithBinaryMessenger:binaryMessenger messageChannelSuffix:@""]; -} -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger - messageChannelSuffix:(nullable NSString *)messageChannelSuffix { - self = [self init]; - if (self) { - _binaryMessenger = binaryMessenger; - _messageChannelSuffix = [messageChannelSuffix length] == 0 - ? @"" - : [NSString stringWithFormat:@".%@", messageChannelSuffix]; - } - return self; -} -- (void)echoWrappedList:(TestMessage *)arg_msg - completion:(void (^)(TestMessage *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_msg ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - TestMessage *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -- (void)echoString:(NSString *)arg_aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString", - _messageChannelSuffix]; - FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:nullGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aString ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; -} -@end diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift deleted file mode 100644 index 700e5fbfdc96..000000000000 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ /dev/null @@ -1,6151 +0,0 @@ -// Autogenerated from Pigeon (v26.1.9), do not edit directly. -// See also: https://pub.dev/packages/pigeon - -import Foundation - -#if os(iOS) - import Flutter -#elseif os(macOS) - import FlutterMacOS -#else - #error("Unsupported platform.") -#endif - -/// Error class for passing custom error details to Dart side. -final class PigeonError: Error { - let code: String - let message: String? - let details: Sendable? - - init(code: String, message: String?, details: Sendable?) { - self.code = code - self.message = message - self.details = details - } - - var localizedDescription: String { - return - "PigeonError(code: \(code), message: \(message ?? ""), details: \(details ?? "")" - } -} - -private func wrapResult(_ result: Any?) -> [Any?] { - return [result] -} - -private func wrapError(_ error: Any) -> [Any?] { - if let pigeonError = error as? PigeonError { - return [ - pigeonError.code, - pigeonError.message, - pigeonError.details, - ] - } - if let flutterError = error as? FlutterError { - return [ - flutterError.code, - flutterError.message, - flutterError.details, - ] - } - return [ - "\(error)", - "\(Swift.type(of: error))", - "Stacktrace: \(Thread.callStackSymbols)", - ] -} - -private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") -} - -private func isNullish(_ value: Any?) -> Bool { - return value is NSNull || value == nil -} - -private func nilOrValue(_ value: Any?) -> T? { - if value is NSNull { return nil } - return value as! T? -} - -func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { - let cleanLhs = nilOrValue(lhs) as Any? - let cleanRhs = nilOrValue(rhs) as Any? - switch (cleanLhs, cleanRhs) { - case (nil, nil): - return true - - case (nil, _), (_, nil): - return false - - case (let lhs as AnyObject, let rhs as AnyObject) where lhs === rhs: - return true - - case is (Void, Void): - return true - - case (let lhsArray, let rhsArray) as ([Any?], [Any?]): - guard lhsArray.count == rhsArray.count else { return false } - for (index, element) in lhsArray.enumerated() { - if !deepEqualsCoreTests(element, rhsArray[index]) { - return false - } - } - return true - - case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): - guard lhsDictionary.count == rhsDictionary.count else { return false } - for (key, lhsValue) in lhsDictionary { - guard let rhsValue = rhsDictionary[key] else { return false } - if !deepEqualsCoreTests(lhsValue, rhsValue) { - return false - } - } - return true - - case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: - return true - - case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): - return lhsHashable == rhsHashable - - default: - return false - } -} - -func deepHashCoreTests(value: Any?, hasher: inout Hasher) { - let cleanValue = nilOrValue(value) as Any? - if let cleanValue = cleanValue { - if let doubleValue = cleanValue as? Double, doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) - } else if let valueList = cleanValue as? [Any?] { - for item in valueList { - deepHashCoreTests(value: item, hasher: &hasher) - } - } else if let valueDict = cleanValue as? [AnyHashable: Any?] { - for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { - hasher.combine(key) - deepHashCoreTests(value: valueDict[key]!, hasher: &hasher) - } - } else if let hashableValue = cleanValue as? AnyHashable { - hasher.combine(hashableValue) - } else { - hasher.combine(String(describing: cleanValue)) - } - } else { - hasher.combine(0) - } -} - -enum AnEnum: Int { - case one = 0 - case two = 1 - case three = 2 - case fortyTwo = 3 - case fourHundredTwentyTwo = 4 -} - -enum AnotherEnum: Int { - case justInCase = 0 -} - -/// Generated class from Pigeon that represents data sent in messages. -struct UnusedClass: Hashable { - var aField: Any? = nil - - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> UnusedClass? { - let aField: Any? = pigeonVar_list[0] - - return UnusedClass( - aField: aField - ) - } - func toList() -> [Any?] { - return [ - aField - ] - } - static func == (lhs: UnusedClass, rhs: UnusedClass) -> Bool { - if Swift.type(of: lhs) != Swift.type(of: rhs) { - return false - } - return deepEqualsCoreTests(lhs.aField, rhs.aField) - } - - func hash(into hasher: inout Hasher) { - hasher.combine("UnusedClass") - deepHashCoreTests(value: aField, hasher: &hasher) - } -} - -/// A class containing all supported types. -/// -/// Generated class from Pigeon that represents data sent in messages. -struct AllTypes: Hashable { - var aBool: Bool - var anInt: Int64 - var anInt64: Int64 - var aDouble: Double - var aByteArray: FlutterStandardTypedData - var a4ByteArray: FlutterStandardTypedData - var a8ByteArray: FlutterStandardTypedData - var aFloatArray: FlutterStandardTypedData - var anEnum: AnEnum - var anotherEnum: AnotherEnum - var aString: String - var anObject: Any - var list: [Any?] - var stringList: [String] - var intList: [Int64] - var doubleList: [Double] - var boolList: [Bool] - var enumList: [AnEnum] - var objectList: [Any] - var listList: [[Any?]] - var mapList: [[AnyHashable?: Any?]] - var map: [AnyHashable?: Any?] - var stringMap: [String: String] - var intMap: [Int64: Int64] - var enumMap: [AnEnum: AnEnum] - var objectMap: [AnyHashable: Any] - var listMap: [Int64: [Any?]] - var mapMap: [Int64: [AnyHashable?: Any?]] - - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> AllTypes? { - let aBool = pigeonVar_list[0] as! Bool - let anInt = pigeonVar_list[1] as! Int64 - let anInt64 = pigeonVar_list[2] as! Int64 - let aDouble = pigeonVar_list[3] as! Double - let aByteArray = pigeonVar_list[4] as! FlutterStandardTypedData - let a4ByteArray = pigeonVar_list[5] as! FlutterStandardTypedData - let a8ByteArray = pigeonVar_list[6] as! FlutterStandardTypedData - let aFloatArray = pigeonVar_list[7] as! FlutterStandardTypedData - let anEnum = pigeonVar_list[8] as! AnEnum - let anotherEnum = pigeonVar_list[9] as! AnotherEnum - let aString = pigeonVar_list[10] as! String - let anObject = pigeonVar_list[11]! - let list = pigeonVar_list[12] as! [Any?] - let stringList = pigeonVar_list[13] as! [String] - let intList = pigeonVar_list[14] as! [Int64] - let doubleList = pigeonVar_list[15] as! [Double] - let boolList = pigeonVar_list[16] as! [Bool] - let enumList = pigeonVar_list[17] as! [AnEnum] - let objectList = pigeonVar_list[18] as! [Any] - let listList = pigeonVar_list[19] as! [[Any?]] - let mapList = pigeonVar_list[20] as! [[AnyHashable?: Any?]] - let map = pigeonVar_list[21] as! [AnyHashable?: Any?] - let stringMap = pigeonVar_list[22] as! [String: String] - let intMap = pigeonVar_list[23] as! [Int64: Int64] - let enumMap = pigeonVar_list[24] as? [AnEnum: AnEnum] - let objectMap = pigeonVar_list[25] as! [AnyHashable: Any] - let listMap = pigeonVar_list[26] as! [Int64: [Any?]] - let mapMap = pigeonVar_list[27] as! [Int64: [AnyHashable?: Any?]] - - return AllTypes( - aBool: aBool, - anInt: anInt, - anInt64: anInt64, - aDouble: aDouble, - aByteArray: aByteArray, - a4ByteArray: a4ByteArray, - a8ByteArray: a8ByteArray, - aFloatArray: aFloatArray, - anEnum: anEnum, - anotherEnum: anotherEnum, - aString: aString, - anObject: anObject, - list: list, - stringList: stringList, - intList: intList, - doubleList: doubleList, - boolList: boolList, - enumList: enumList, - objectList: objectList, - listList: listList, - mapList: mapList, - map: map, - stringMap: stringMap, - intMap: intMap, - enumMap: enumMap!, - objectMap: objectMap, - listMap: listMap, - mapMap: mapMap - ) - } - func toList() -> [Any?] { - return [ - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - ] - } - static func == (lhs: AllTypes, rhs: AllTypes) -> Bool { - if Swift.type(of: lhs) != Swift.type(of: rhs) { - return false - } - return deepEqualsCoreTests(lhs.aBool, rhs.aBool) && deepEqualsCoreTests(lhs.anInt, rhs.anInt) - && deepEqualsCoreTests(lhs.anInt64, rhs.anInt64) - && deepEqualsCoreTests(lhs.aDouble, rhs.aDouble) - && deepEqualsCoreTests(lhs.aByteArray, rhs.aByteArray) - && deepEqualsCoreTests(lhs.a4ByteArray, rhs.a4ByteArray) - && deepEqualsCoreTests(lhs.a8ByteArray, rhs.a8ByteArray) - && deepEqualsCoreTests(lhs.aFloatArray, rhs.aFloatArray) - && deepEqualsCoreTests(lhs.anEnum, rhs.anEnum) - && deepEqualsCoreTests(lhs.anotherEnum, rhs.anotherEnum) - && deepEqualsCoreTests(lhs.aString, rhs.aString) - && deepEqualsCoreTests(lhs.anObject, rhs.anObject) && deepEqualsCoreTests(lhs.list, rhs.list) - && deepEqualsCoreTests(lhs.stringList, rhs.stringList) - && deepEqualsCoreTests(lhs.intList, rhs.intList) - && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) - && deepEqualsCoreTests(lhs.boolList, rhs.boolList) - && deepEqualsCoreTests(lhs.enumList, rhs.enumList) - && deepEqualsCoreTests(lhs.objectList, rhs.objectList) - && deepEqualsCoreTests(lhs.listList, rhs.listList) - && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) - && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) - && deepEqualsCoreTests(lhs.intMap, rhs.intMap) - && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) - && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) - && deepEqualsCoreTests(lhs.listMap, rhs.listMap) - && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) - } - - func hash(into hasher: inout Hasher) { - hasher.combine("AllTypes") - deepHashCoreTests(value: aBool, hasher: &hasher) - deepHashCoreTests(value: anInt, hasher: &hasher) - deepHashCoreTests(value: anInt64, hasher: &hasher) - deepHashCoreTests(value: aDouble, hasher: &hasher) - deepHashCoreTests(value: aByteArray, hasher: &hasher) - deepHashCoreTests(value: a4ByteArray, hasher: &hasher) - deepHashCoreTests(value: a8ByteArray, hasher: &hasher) - deepHashCoreTests(value: aFloatArray, hasher: &hasher) - deepHashCoreTests(value: anEnum, hasher: &hasher) - deepHashCoreTests(value: anotherEnum, hasher: &hasher) - deepHashCoreTests(value: aString, hasher: &hasher) - deepHashCoreTests(value: anObject, hasher: &hasher) - deepHashCoreTests(value: list, hasher: &hasher) - deepHashCoreTests(value: stringList, hasher: &hasher) - deepHashCoreTests(value: intList, hasher: &hasher) - deepHashCoreTests(value: doubleList, hasher: &hasher) - deepHashCoreTests(value: boolList, hasher: &hasher) - deepHashCoreTests(value: enumList, hasher: &hasher) - deepHashCoreTests(value: objectList, hasher: &hasher) - deepHashCoreTests(value: listList, hasher: &hasher) - deepHashCoreTests(value: mapList, hasher: &hasher) - deepHashCoreTests(value: map, hasher: &hasher) - deepHashCoreTests(value: stringMap, hasher: &hasher) - deepHashCoreTests(value: intMap, hasher: &hasher) - deepHashCoreTests(value: enumMap, hasher: &hasher) - deepHashCoreTests(value: objectMap, hasher: &hasher) - deepHashCoreTests(value: listMap, hasher: &hasher) - deepHashCoreTests(value: mapMap, hasher: &hasher) - } -} - -/// A class containing all supported nullable types. -/// -/// Generated class from Pigeon that represents data sent in messages. -class AllNullableTypes: Hashable { - init( - aNullableBool: Bool? = nil, - aNullableInt: Int64? = nil, - aNullableInt64: Int64? = nil, - aNullableDouble: Double? = nil, - aNullableByteArray: FlutterStandardTypedData? = nil, - aNullable4ByteArray: FlutterStandardTypedData? = nil, - aNullable8ByteArray: FlutterStandardTypedData? = nil, - aNullableFloatArray: FlutterStandardTypedData? = nil, - aNullableEnum: AnEnum? = nil, - anotherNullableEnum: AnotherEnum? = nil, - aNullableString: String? = nil, - aNullableObject: Any? = nil, - allNullableTypes: AllNullableTypes? = nil, - list: [Any?]? = nil, - stringList: [String?]? = nil, - intList: [Int64?]? = nil, - doubleList: [Double?]? = nil, - boolList: [Bool?]? = nil, - enumList: [AnEnum?]? = nil, - objectList: [Any?]? = nil, - listList: [[Any?]?]? = nil, - mapList: [[AnyHashable?: Any?]?]? = nil, - recursiveClassList: [AllNullableTypes?]? = nil, - map: [AnyHashable?: Any?]? = nil, - stringMap: [String?: String?]? = nil, - intMap: [Int64?: Int64?]? = nil, - enumMap: [AnEnum?: AnEnum?]? = nil, - objectMap: [AnyHashable?: Any?]? = nil, - listMap: [Int64?: [Any?]?]? = nil, - mapMap: [Int64?: [AnyHashable?: Any?]?]? = nil, - recursiveClassMap: [Int64?: AllNullableTypes?]? = nil - ) { - self.aNullableBool = aNullableBool - self.aNullableInt = aNullableInt - self.aNullableInt64 = aNullableInt64 - self.aNullableDouble = aNullableDouble - self.aNullableByteArray = aNullableByteArray - self.aNullable4ByteArray = aNullable4ByteArray - self.aNullable8ByteArray = aNullable8ByteArray - self.aNullableFloatArray = aNullableFloatArray - self.aNullableEnum = aNullableEnum - self.anotherNullableEnum = anotherNullableEnum - self.aNullableString = aNullableString - self.aNullableObject = aNullableObject - self.allNullableTypes = allNullableTypes - self.list = list - self.stringList = stringList - self.intList = intList - self.doubleList = doubleList - self.boolList = boolList - self.enumList = enumList - self.objectList = objectList - self.listList = listList - self.mapList = mapList - self.recursiveClassList = recursiveClassList - self.map = map - self.stringMap = stringMap - self.intMap = intMap - self.enumMap = enumMap - self.objectMap = objectMap - self.listMap = listMap - self.mapMap = mapMap - self.recursiveClassMap = recursiveClassMap - } - var aNullableBool: Bool? - var aNullableInt: Int64? - var aNullableInt64: Int64? - var aNullableDouble: Double? - var aNullableByteArray: FlutterStandardTypedData? - var aNullable4ByteArray: FlutterStandardTypedData? - var aNullable8ByteArray: FlutterStandardTypedData? - var aNullableFloatArray: FlutterStandardTypedData? - var aNullableEnum: AnEnum? - var anotherNullableEnum: AnotherEnum? - var aNullableString: String? - var aNullableObject: Any? - var allNullableTypes: AllNullableTypes? - var list: [Any?]? - var stringList: [String?]? - var intList: [Int64?]? - var doubleList: [Double?]? - var boolList: [Bool?]? - var enumList: [AnEnum?]? - var objectList: [Any?]? - var listList: [[Any?]?]? - var mapList: [[AnyHashable?: Any?]?]? - var recursiveClassList: [AllNullableTypes?]? - var map: [AnyHashable?: Any?]? - var stringMap: [String?: String?]? - var intMap: [Int64?: Int64?]? - var enumMap: [AnEnum?: AnEnum?]? - var objectMap: [AnyHashable?: Any?]? - var listMap: [Int64?: [Any?]?]? - var mapMap: [Int64?: [AnyHashable?: Any?]?]? - var recursiveClassMap: [Int64?: AllNullableTypes?]? - - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypes? { - let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) - let aNullableInt: Int64? = nilOrValue(pigeonVar_list[1]) - let aNullableInt64: Int64? = nilOrValue(pigeonVar_list[2]) - let aNullableDouble: Double? = nilOrValue(pigeonVar_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[7]) - let aNullableEnum: AnEnum? = nilOrValue(pigeonVar_list[8]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeonVar_list[9]) - let aNullableString: String? = nilOrValue(pigeonVar_list[10]) - let aNullableObject: Any? = pigeonVar_list[11] - let allNullableTypes: AllNullableTypes? = nilOrValue(pigeonVar_list[12]) - let list: [Any?]? = nilOrValue(pigeonVar_list[13]) - let stringList: [String?]? = nilOrValue(pigeonVar_list[14]) - let intList: [Int64?]? = nilOrValue(pigeonVar_list[15]) - let doubleList: [Double?]? = nilOrValue(pigeonVar_list[16]) - let boolList: [Bool?]? = nilOrValue(pigeonVar_list[17]) - let enumList: [AnEnum?]? = nilOrValue(pigeonVar_list[18]) - let objectList: [Any?]? = nilOrValue(pigeonVar_list[19]) - let listList: [[Any?]?]? = nilOrValue(pigeonVar_list[20]) - let mapList: [[AnyHashable?: Any?]?]? = nilOrValue(pigeonVar_list[21]) - let recursiveClassList: [AllNullableTypes?]? = nilOrValue(pigeonVar_list[22]) - let map: [AnyHashable?: Any?]? = nilOrValue(pigeonVar_list[23]) - let stringMap: [String?: String?]? = nilOrValue(pigeonVar_list[24]) - let intMap: [Int64?: Int64?]? = nilOrValue(pigeonVar_list[25]) - let enumMap: [AnEnum?: AnEnum?]? = pigeonVar_list[26] as? [AnEnum?: AnEnum?] - let objectMap: [AnyHashable?: Any?]? = nilOrValue(pigeonVar_list[27]) - let listMap: [Int64?: [Any?]?]? = nilOrValue(pigeonVar_list[28]) - let mapMap: [Int64?: [AnyHashable?: Any?]?]? = nilOrValue(pigeonVar_list[29]) - let recursiveClassMap: [Int64?: AllNullableTypes?]? = nilOrValue(pigeonVar_list[30]) - - return AllNullableTypes( - aNullableBool: aNullableBool, - aNullableInt: aNullableInt, - aNullableInt64: aNullableInt64, - aNullableDouble: aNullableDouble, - aNullableByteArray: aNullableByteArray, - aNullable4ByteArray: aNullable4ByteArray, - aNullable8ByteArray: aNullable8ByteArray, - aNullableFloatArray: aNullableFloatArray, - aNullableEnum: aNullableEnum, - anotherNullableEnum: anotherNullableEnum, - aNullableString: aNullableString, - aNullableObject: aNullableObject, - allNullableTypes: allNullableTypes, - list: list, - stringList: stringList, - intList: intList, - doubleList: doubleList, - boolList: boolList, - enumList: enumList, - objectList: objectList, - listList: listList, - mapList: mapList, - recursiveClassList: recursiveClassList, - map: map, - stringMap: stringMap, - intMap: intMap, - enumMap: enumMap, - objectMap: objectMap, - listMap: listMap, - mapMap: mapMap, - recursiveClassMap: recursiveClassMap - ) - } - func toList() -> [Any?] { - return [ - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap, - ] - } - static func == (lhs: AllNullableTypes, rhs: AllNullableTypes) -> Bool { - if Swift.type(of: lhs) != Swift.type(of: rhs) { - return false - } - if lhs === rhs { - return true - } - return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) - && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) - && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) - && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) - && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) - && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) - && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) - && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) - && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) - && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) - && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) - && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) - && deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) - && deepEqualsCoreTests(lhs.list, rhs.list) - && deepEqualsCoreTests(lhs.stringList, rhs.stringList) - && deepEqualsCoreTests(lhs.intList, rhs.intList) - && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) - && deepEqualsCoreTests(lhs.boolList, rhs.boolList) - && deepEqualsCoreTests(lhs.enumList, rhs.enumList) - && deepEqualsCoreTests(lhs.objectList, rhs.objectList) - && deepEqualsCoreTests(lhs.listList, rhs.listList) - && deepEqualsCoreTests(lhs.mapList, rhs.mapList) - && deepEqualsCoreTests(lhs.recursiveClassList, rhs.recursiveClassList) - && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) - && deepEqualsCoreTests(lhs.intMap, rhs.intMap) - && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) - && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) - && deepEqualsCoreTests(lhs.listMap, rhs.listMap) - && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) - && deepEqualsCoreTests(lhs.recursiveClassMap, rhs.recursiveClassMap) - } - - func hash(into hasher: inout Hasher) { - hasher.combine("AllNullableTypes") - deepHashCoreTests(value: aNullableBool, hasher: &hasher) - deepHashCoreTests(value: aNullableInt, hasher: &hasher) - deepHashCoreTests(value: aNullableInt64, hasher: &hasher) - deepHashCoreTests(value: aNullableDouble, hasher: &hasher) - deepHashCoreTests(value: aNullableByteArray, hasher: &hasher) - deepHashCoreTests(value: aNullable4ByteArray, hasher: &hasher) - deepHashCoreTests(value: aNullable8ByteArray, hasher: &hasher) - deepHashCoreTests(value: aNullableFloatArray, hasher: &hasher) - deepHashCoreTests(value: aNullableEnum, hasher: &hasher) - deepHashCoreTests(value: anotherNullableEnum, hasher: &hasher) - deepHashCoreTests(value: aNullableString, hasher: &hasher) - deepHashCoreTests(value: aNullableObject, hasher: &hasher) - deepHashCoreTests(value: allNullableTypes, hasher: &hasher) - deepHashCoreTests(value: list, hasher: &hasher) - deepHashCoreTests(value: stringList, hasher: &hasher) - deepHashCoreTests(value: intList, hasher: &hasher) - deepHashCoreTests(value: doubleList, hasher: &hasher) - deepHashCoreTests(value: boolList, hasher: &hasher) - deepHashCoreTests(value: enumList, hasher: &hasher) - deepHashCoreTests(value: objectList, hasher: &hasher) - deepHashCoreTests(value: listList, hasher: &hasher) - deepHashCoreTests(value: mapList, hasher: &hasher) - deepHashCoreTests(value: recursiveClassList, hasher: &hasher) - deepHashCoreTests(value: map, hasher: &hasher) - deepHashCoreTests(value: stringMap, hasher: &hasher) - deepHashCoreTests(value: intMap, hasher: &hasher) - deepHashCoreTests(value: enumMap, hasher: &hasher) - deepHashCoreTests(value: objectMap, hasher: &hasher) - deepHashCoreTests(value: listMap, hasher: &hasher) - deepHashCoreTests(value: mapMap, hasher: &hasher) - deepHashCoreTests(value: recursiveClassMap, hasher: &hasher) - } -} - -/// The primary purpose for this class is to ensure coverage of Swift structs -/// with nullable items, as the primary [AllNullableTypes] class is being used to -/// test Swift classes. -/// -/// Generated class from Pigeon that represents data sent in messages. -struct AllNullableTypesWithoutRecursion: Hashable { - var aNullableBool: Bool? = nil - var aNullableInt: Int64? = nil - var aNullableInt64: Int64? = nil - var aNullableDouble: Double? = nil - var aNullableByteArray: FlutterStandardTypedData? = nil - var aNullable4ByteArray: FlutterStandardTypedData? = nil - var aNullable8ByteArray: FlutterStandardTypedData? = nil - var aNullableFloatArray: FlutterStandardTypedData? = nil - var aNullableEnum: AnEnum? = nil - var anotherNullableEnum: AnotherEnum? = nil - var aNullableString: String? = nil - var aNullableObject: Any? = nil - var list: [Any?]? = nil - var stringList: [String?]? = nil - var intList: [Int64?]? = nil - var doubleList: [Double?]? = nil - var boolList: [Bool?]? = nil - var enumList: [AnEnum?]? = nil - var objectList: [Any?]? = nil - var listList: [[Any?]?]? = nil - var mapList: [[AnyHashable?: Any?]?]? = nil - var map: [AnyHashable?: Any?]? = nil - var stringMap: [String?: String?]? = nil - var intMap: [Int64?: Int64?]? = nil - var enumMap: [AnEnum?: AnEnum?]? = nil - var objectMap: [AnyHashable?: Any?]? = nil - var listMap: [Int64?: [Any?]?]? = nil - var mapMap: [Int64?: [AnyHashable?: Any?]?]? = nil - - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypesWithoutRecursion? { - let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) - let aNullableInt: Int64? = nilOrValue(pigeonVar_list[1]) - let aNullableInt64: Int64? = nilOrValue(pigeonVar_list[2]) - let aNullableDouble: Double? = nilOrValue(pigeonVar_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[7]) - let aNullableEnum: AnEnum? = nilOrValue(pigeonVar_list[8]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeonVar_list[9]) - let aNullableString: String? = nilOrValue(pigeonVar_list[10]) - let aNullableObject: Any? = pigeonVar_list[11] - let list: [Any?]? = nilOrValue(pigeonVar_list[12]) - let stringList: [String?]? = nilOrValue(pigeonVar_list[13]) - let intList: [Int64?]? = nilOrValue(pigeonVar_list[14]) - let doubleList: [Double?]? = nilOrValue(pigeonVar_list[15]) - let boolList: [Bool?]? = nilOrValue(pigeonVar_list[16]) - let enumList: [AnEnum?]? = nilOrValue(pigeonVar_list[17]) - let objectList: [Any?]? = nilOrValue(pigeonVar_list[18]) - let listList: [[Any?]?]? = nilOrValue(pigeonVar_list[19]) - let mapList: [[AnyHashable?: Any?]?]? = nilOrValue(pigeonVar_list[20]) - let map: [AnyHashable?: Any?]? = nilOrValue(pigeonVar_list[21]) - let stringMap: [String?: String?]? = nilOrValue(pigeonVar_list[22]) - let intMap: [Int64?: Int64?]? = nilOrValue(pigeonVar_list[23]) - let enumMap: [AnEnum?: AnEnum?]? = pigeonVar_list[24] as? [AnEnum?: AnEnum?] - let objectMap: [AnyHashable?: Any?]? = nilOrValue(pigeonVar_list[25]) - let listMap: [Int64?: [Any?]?]? = nilOrValue(pigeonVar_list[26]) - let mapMap: [Int64?: [AnyHashable?: Any?]?]? = nilOrValue(pigeonVar_list[27]) - - return AllNullableTypesWithoutRecursion( - aNullableBool: aNullableBool, - aNullableInt: aNullableInt, - aNullableInt64: aNullableInt64, - aNullableDouble: aNullableDouble, - aNullableByteArray: aNullableByteArray, - aNullable4ByteArray: aNullable4ByteArray, - aNullable8ByteArray: aNullable8ByteArray, - aNullableFloatArray: aNullableFloatArray, - aNullableEnum: aNullableEnum, - anotherNullableEnum: anotherNullableEnum, - aNullableString: aNullableString, - aNullableObject: aNullableObject, - list: list, - stringList: stringList, - intList: intList, - doubleList: doubleList, - boolList: boolList, - enumList: enumList, - objectList: objectList, - listList: listList, - mapList: mapList, - map: map, - stringMap: stringMap, - intMap: intMap, - enumMap: enumMap, - objectMap: objectMap, - listMap: listMap, - mapMap: mapMap - ) - } - func toList() -> [Any?] { - return [ - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - ] - } - static func == (lhs: AllNullableTypesWithoutRecursion, rhs: AllNullableTypesWithoutRecursion) - -> Bool - { - if Swift.type(of: lhs) != Swift.type(of: rhs) { - return false - } - return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) - && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) - && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) - && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) - && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) - && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) - && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) - && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) - && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) - && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) - && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) - && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) - && deepEqualsCoreTests(lhs.list, rhs.list) - && deepEqualsCoreTests(lhs.stringList, rhs.stringList) - && deepEqualsCoreTests(lhs.intList, rhs.intList) - && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) - && deepEqualsCoreTests(lhs.boolList, rhs.boolList) - && deepEqualsCoreTests(lhs.enumList, rhs.enumList) - && deepEqualsCoreTests(lhs.objectList, rhs.objectList) - && deepEqualsCoreTests(lhs.listList, rhs.listList) - && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) - && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) - && deepEqualsCoreTests(lhs.intMap, rhs.intMap) - && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) - && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) - && deepEqualsCoreTests(lhs.listMap, rhs.listMap) - && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) - } - - func hash(into hasher: inout Hasher) { - hasher.combine("AllNullableTypesWithoutRecursion") - deepHashCoreTests(value: aNullableBool, hasher: &hasher) - deepHashCoreTests(value: aNullableInt, hasher: &hasher) - deepHashCoreTests(value: aNullableInt64, hasher: &hasher) - deepHashCoreTests(value: aNullableDouble, hasher: &hasher) - deepHashCoreTests(value: aNullableByteArray, hasher: &hasher) - deepHashCoreTests(value: aNullable4ByteArray, hasher: &hasher) - deepHashCoreTests(value: aNullable8ByteArray, hasher: &hasher) - deepHashCoreTests(value: aNullableFloatArray, hasher: &hasher) - deepHashCoreTests(value: aNullableEnum, hasher: &hasher) - deepHashCoreTests(value: anotherNullableEnum, hasher: &hasher) - deepHashCoreTests(value: aNullableString, hasher: &hasher) - deepHashCoreTests(value: aNullableObject, hasher: &hasher) - deepHashCoreTests(value: list, hasher: &hasher) - deepHashCoreTests(value: stringList, hasher: &hasher) - deepHashCoreTests(value: intList, hasher: &hasher) - deepHashCoreTests(value: doubleList, hasher: &hasher) - deepHashCoreTests(value: boolList, hasher: &hasher) - deepHashCoreTests(value: enumList, hasher: &hasher) - deepHashCoreTests(value: objectList, hasher: &hasher) - deepHashCoreTests(value: listList, hasher: &hasher) - deepHashCoreTests(value: mapList, hasher: &hasher) - deepHashCoreTests(value: map, hasher: &hasher) - deepHashCoreTests(value: stringMap, hasher: &hasher) - deepHashCoreTests(value: intMap, hasher: &hasher) - deepHashCoreTests(value: enumMap, hasher: &hasher) - deepHashCoreTests(value: objectMap, hasher: &hasher) - deepHashCoreTests(value: listMap, hasher: &hasher) - deepHashCoreTests(value: mapMap, hasher: &hasher) - } -} - -/// A class for testing nested class handling. -/// -/// This is needed to test nested nullable and non-nullable classes, -/// `AllNullableTypes` is non-nullable here as it is easier to instantiate -/// than `AllTypes` when testing doesn't require both (ie. testing null classes). -/// -/// Generated class from Pigeon that represents data sent in messages. -struct AllClassesWrapper: Hashable { - var allNullableTypes: AllNullableTypes - var allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nil - var allTypes: AllTypes? = nil - var classList: [AllTypes?] - var nullableClassList: [AllNullableTypesWithoutRecursion?]? = nil - var classMap: [Int64?: AllTypes?] - var nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nil - - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> AllClassesWrapper? { - let allNullableTypes = pigeonVar_list[0] as! AllNullableTypes - let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( - pigeonVar_list[1]) - let allTypes: AllTypes? = nilOrValue(pigeonVar_list[2]) - let classList = pigeonVar_list[3] as! [AllTypes?] - let nullableClassList: [AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[4]) - let classMap = pigeonVar_list[5] as! [Int64?: AllTypes?] - let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue( - pigeonVar_list[6]) - - return AllClassesWrapper( - allNullableTypes: allNullableTypes, - allNullableTypesWithoutRecursion: allNullableTypesWithoutRecursion, - allTypes: allTypes, - classList: classList, - nullableClassList: nullableClassList, - classMap: classMap, - nullableClassMap: nullableClassMap - ) - } - func toList() -> [Any?] { - return [ - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap, - ] - } - static func == (lhs: AllClassesWrapper, rhs: AllClassesWrapper) -> Bool { - if Swift.type(of: lhs) != Swift.type(of: rhs) { - return false - } - return deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) - && deepEqualsCoreTests( - lhs.allNullableTypesWithoutRecursion, rhs.allNullableTypesWithoutRecursion) - && deepEqualsCoreTests(lhs.allTypes, rhs.allTypes) - && deepEqualsCoreTests(lhs.classList, rhs.classList) - && deepEqualsCoreTests(lhs.nullableClassList, rhs.nullableClassList) - && deepEqualsCoreTests(lhs.classMap, rhs.classMap) - && deepEqualsCoreTests(lhs.nullableClassMap, rhs.nullableClassMap) - } - - func hash(into hasher: inout Hasher) { - hasher.combine("AllClassesWrapper") - deepHashCoreTests(value: allNullableTypes, hasher: &hasher) - deepHashCoreTests(value: allNullableTypesWithoutRecursion, hasher: &hasher) - deepHashCoreTests(value: allTypes, hasher: &hasher) - deepHashCoreTests(value: classList, hasher: &hasher) - deepHashCoreTests(value: nullableClassList, hasher: &hasher) - deepHashCoreTests(value: classMap, hasher: &hasher) - deepHashCoreTests(value: nullableClassMap, hasher: &hasher) - } -} - -/// A data class containing a List, used in unit tests. -/// -/// Generated class from Pigeon that represents data sent in messages. -struct TestMessage: Hashable { - var testList: [Any?]? = nil - - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> TestMessage? { - let testList: [Any?]? = nilOrValue(pigeonVar_list[0]) - - return TestMessage( - testList: testList - ) - } - func toList() -> [Any?] { - return [ - testList - ] - } - static func == (lhs: TestMessage, rhs: TestMessage) -> Bool { - if Swift.type(of: lhs) != Swift.type(of: rhs) { - return false - } - return deepEqualsCoreTests(lhs.testList, rhs.testList) - } - - func hash(into hasher: inout Hasher) { - hasher.combine("TestMessage") - deepHashCoreTests(value: testList, hasher: &hasher) - } -} - -private class CoreTestsPigeonCodecReader: FlutterStandardReader { - override func readValue(ofType type: UInt8) -> Any? { - switch type { - case 129: - let enumResultAsInt: Int? = nilOrValue(self.readValue() as! Int?) - if let enumResultAsInt = enumResultAsInt { - return AnEnum(rawValue: enumResultAsInt) - } - return nil - case 130: - let enumResultAsInt: Int? = nilOrValue(self.readValue() as! Int?) - if let enumResultAsInt = enumResultAsInt { - return AnotherEnum(rawValue: enumResultAsInt) - } - return nil - case 131: - return UnusedClass.fromList(self.readValue() as! [Any?]) - case 132: - return AllTypes.fromList(self.readValue() as! [Any?]) - case 133: - return AllNullableTypes.fromList(self.readValue() as! [Any?]) - case 134: - return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) - case 135: - return AllClassesWrapper.fromList(self.readValue() as! [Any?]) - case 136: - return TestMessage.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) - } - } -} - -private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { - override func writeValue(_ value: Any) { - if let value = value as? AnEnum { - super.writeByte(129) - super.writeValue(value.rawValue) - } else if let value = value as? AnotherEnum { - super.writeByte(130) - super.writeValue(value.rawValue) - } else if let value = value as? UnusedClass { - super.writeByte(131) - super.writeValue(value.toList()) - } else if let value = value as? AllTypes { - super.writeByte(132) - super.writeValue(value.toList()) - } else if let value = value as? AllNullableTypes { - super.writeByte(133) - super.writeValue(value.toList()) - } else if let value = value as? AllNullableTypesWithoutRecursion { - super.writeByte(134) - super.writeValue(value.toList()) - } else if let value = value as? AllClassesWrapper { - super.writeByte(135) - super.writeValue(value.toList()) - } else if let value = value as? TestMessage { - super.writeByte(136) - super.writeValue(value.toList()) - } else { - super.writeValue(value) - } - } -} - -private class CoreTestsPigeonCodecReaderWriter: FlutterStandardReaderWriter { - override func reader(with data: Data) -> FlutterStandardReader { - return CoreTestsPigeonCodecReader(data: data) - } - - override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return CoreTestsPigeonCodecWriter(data: data) - } -} - -class CoreTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { - static let shared = CoreTestsPigeonCodec(readerWriter: CoreTestsPigeonCodecReaderWriter()) -} - -/// The core interface that each host language plugin must implement in -/// platform_test integration tests. -/// -/// Generated protocol from Pigeon that represents a handler of messages from Flutter. -protocol HostIntegrationCoreApi { - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic calling. - func noop() throws - /// Returns the passed object, to test serialization and deserialization. - func echo(_ everything: AllTypes) throws -> AllTypes - /// Returns an error, to test error handling. - func throwError() throws -> Any? - /// Returns an error from a void function, to test error handling. - func throwErrorFromVoid() throws - /// Returns a Flutter error, to test error handling. - func throwFlutterError() throws -> Any? - /// Returns passed in int. - func echo(_ anInt: Int64) throws -> Int64 - /// Returns passed in double. - func echo(_ aDouble: Double) throws -> Double - /// Returns the passed in boolean. - func echo(_ aBool: Bool) throws -> Bool - /// Returns the passed in string. - func echo(_ aString: String) throws -> String - /// Returns the passed in Uint8List. - func echo(_ aUint8List: FlutterStandardTypedData) throws -> FlutterStandardTypedData - /// Returns the passed in generic Object. - func echo(_ anObject: Any) throws -> Any - /// Returns the passed list, to test serialization and deserialization. - func echo(_ list: [Any?]) throws -> [Any?] - /// Returns the passed list, to test serialization and deserialization. - func echo(enumList: [AnEnum?]) throws -> [AnEnum?] - /// Returns the passed list, to test serialization and deserialization. - func echo(classList: [AllNullableTypes?]) throws -> [AllNullableTypes?] - /// Returns the passed list, to test serialization and deserialization. - func echoNonNull(enumList: [AnEnum]) throws -> [AnEnum] - /// Returns the passed list, to test serialization and deserialization. - func echoNonNull(classList: [AllNullableTypes]) throws -> [AllNullableTypes] - /// Returns the passed map, to test serialization and deserialization. - func echo(_ map: [AnyHashable?: Any?]) throws -> [AnyHashable?: Any?] - /// Returns the passed map, to test serialization and deserialization. - func echo(stringMap: [String?: String?]) throws -> [String?: String?] - /// Returns the passed map, to test serialization and deserialization. - func echo(intMap: [Int64?: Int64?]) throws -> [Int64?: Int64?] - /// Returns the passed map, to test serialization and deserialization. - func echo(enumMap: [AnEnum?: AnEnum?]) throws -> [AnEnum?: AnEnum?] - /// Returns the passed map, to test serialization and deserialization. - func echo(classMap: [Int64?: AllNullableTypes?]) throws -> [Int64?: AllNullableTypes?] - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(stringMap: [String: String]) throws -> [String: String] - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(intMap: [Int64: Int64]) throws -> [Int64: Int64] - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(enumMap: [AnEnum: AnEnum]) throws -> [AnEnum: AnEnum] - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(classMap: [Int64: AllNullableTypes]) throws -> [Int64: AllNullableTypes] - /// Returns the passed class to test nested class serialization and deserialization. - func echo(_ wrapper: AllClassesWrapper) throws -> AllClassesWrapper - /// Returns the passed enum to test serialization and deserialization. - func echo(_ anEnum: AnEnum) throws -> AnEnum - /// Returns the passed enum to test serialization and deserialization. - func echo(_ anotherEnum: AnotherEnum) throws -> AnotherEnum - /// Returns the default string. - func echoNamedDefault(_ aString: String) throws -> String - /// Returns passed in double. - func echoOptionalDefault(_ aDouble: Double) throws -> Double - /// Returns passed in int. - func echoRequired(_ anInt: Int64) throws -> Int64 - /// Returns the passed object, to test serialization and deserialization. - func echo(_ everything: AllNullableTypes?) throws -> AllNullableTypes? - /// Returns the passed object, to test serialization and deserialization. - func echo(_ everything: AllNullableTypesWithoutRecursion?) throws - -> AllNullableTypesWithoutRecursion? - /// Returns the inner `aString` value from the wrapped object, to test - /// sending of nested objects. - func extractNestedNullableString(from wrapper: AllClassesWrapper) throws -> String? - /// Returns the inner `aString` value from the wrapped object, to test - /// sending of nested objects. - func createNestedObject(with nullableString: String?) throws -> AllClassesWrapper - /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypes( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? - ) throws -> AllNullableTypes - /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? - ) throws -> AllNullableTypesWithoutRecursion - /// Returns passed in int. - func echo(_ aNullableInt: Int64?) throws -> Int64? - /// Returns passed in double. - func echo(_ aNullableDouble: Double?) throws -> Double? - /// Returns the passed in boolean. - func echo(_ aNullableBool: Bool?) throws -> Bool? - /// Returns the passed in string. - func echo(_ aNullableString: String?) throws -> String? - /// Returns the passed in Uint8List. - func echo(_ aNullableUint8List: FlutterStandardTypedData?) throws -> FlutterStandardTypedData? - /// Returns the passed in generic Object. - func echo(_ aNullableObject: Any?) throws -> Any? - /// Returns the passed list, to test serialization and deserialization. - func echoNullable(_ aNullableList: [Any?]?) throws -> [Any?]? - /// Returns the passed list, to test serialization and deserialization. - func echoNullable(enumList: [AnEnum?]?) throws -> [AnEnum?]? - /// Returns the passed list, to test serialization and deserialization. - func echoNullable(classList: [AllNullableTypes?]?) throws -> [AllNullableTypes?]? - /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull(enumList: [AnEnum]?) throws -> [AnEnum]? - /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull(classList: [AllNullableTypes]?) throws -> [AllNullableTypes]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullable(_ map: [AnyHashable?: Any?]?) throws -> [AnyHashable?: Any?]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullable(stringMap: [String?: String?]?) throws -> [String?: String?]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullable(intMap: [Int64?: Int64?]?) throws -> [Int64?: Int64?]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullable(enumMap: [AnEnum?: AnEnum?]?) throws -> [AnEnum?: AnEnum?]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullable(classMap: [Int64?: AllNullableTypes?]?) throws -> [Int64?: AllNullableTypes?]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(stringMap: [String: String]?) throws -> [String: String]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(intMap: [Int64: Int64]?) throws -> [Int64: Int64]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(enumMap: [AnEnum: AnEnum]?) throws -> [AnEnum: AnEnum]? - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: - AllNullableTypes]? - func echoNullable(_ anEnum: AnEnum?) throws -> AnEnum? - func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? - /// Returns passed in int. - func echoOptional(_ aNullableInt: Int64?) throws -> Int64? - /// Returns the passed in string. - func echoNamed(_ aNullableString: String?) throws -> String? - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic asynchronous calling. - func noopAsync(completion: @escaping (Result) -> Void) - /// Returns passed in int asynchronously. - func echoAsync(_ anInt: Int64, completion: @escaping (Result) -> Void) - /// Returns passed in double asynchronously. - func echoAsync(_ aDouble: Double, completion: @escaping (Result) -> Void) - /// Returns the passed in boolean asynchronously. - func echoAsync(_ aBool: Bool, completion: @escaping (Result) -> Void) - /// Returns the passed string asynchronously. - func echoAsync(_ aString: String, completion: @escaping (Result) -> Void) - /// Returns the passed in Uint8List asynchronously. - func echoAsync( - _ aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) - /// Returns the passed in generic Object asynchronously. - func echoAsync(_ anObject: Any, completion: @escaping (Result) -> Void) - /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsync(_ list: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) - /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsync(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) - /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsync( - classList: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void - ) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void - ) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - classMap: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) - /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsync(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) - /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsync( - _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) - /// Responds with an error from an async function returning a value. - func throwAsyncError(completion: @escaping (Result) -> Void) - /// Responds with an error from an async void function. - func throwAsyncErrorFromVoid(completion: @escaping (Result) -> Void) - /// Responds with a Flutter error from an async function returning a value. - func throwAsyncFlutterError(completion: @escaping (Result) -> Void) - /// Returns the passed object, to test async serialization and deserialization. - func echoAsync(_ everything: AllTypes, completion: @escaping (Result) -> Void) - /// Returns the passed object, to test serialization and deserialization. - func echoAsync( - _ everything: AllNullableTypes?, - completion: @escaping (Result) -> Void) - /// Returns the passed object, to test serialization and deserialization. - func echoAsync( - _ everything: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) - /// Returns passed in int asynchronously. - func echoAsyncNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) - /// Returns passed in double asynchronously. - func echoAsyncNullable(_ aDouble: Double?, completion: @escaping (Result) -> Void) - /// Returns the passed in boolean asynchronously. - func echoAsyncNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) - /// Returns the passed string asynchronously. - func echoAsyncNullable(_ aString: String?, completion: @escaping (Result) -> Void) - /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullable( - _ aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - /// Returns the passed in generic Object asynchronously. - func echoAsyncNullable(_ anObject: Any?, completion: @escaping (Result) -> Void) - /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) - /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) - /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - classList: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - _ map: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - stringMap: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, Error>) -> Void) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void - ) - /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - classMap: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) - /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) - /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) - /// Returns true if the handler is run on a main thread, which should be - /// true since there is no TaskQueue annotation. - func defaultIsMainThread() throws -> Bool - /// Returns true if the handler is run on a non-main thread, which should be - /// true for any platform with TaskQueue support. - func taskQueueIsBackgroundThread() throws -> Bool - func callFlutterNoop(completion: @escaping (Result) -> Void) - func callFlutterThrowError(completion: @escaping (Result) -> Void) - func callFlutterThrowErrorFromVoid(completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllTypes, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllNullableTypes?, - completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypes( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, - completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypesWithoutRecursion( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, - completion: @escaping (Result) -> Void) - func callFlutterEcho(_ aBool: Bool, completion: @escaping (Result) -> Void) - func callFlutterEcho(_ anInt: Int64, completion: @escaping (Result) -> Void) - func callFlutterEcho(_ aDouble: Double, completion: @escaping (Result) -> Void) - func callFlutterEcho(_ aString: String, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ list: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) - func callFlutterEcho(_ list: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEcho( - enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) - func callFlutterEcho( - classList: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull( - enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) - func callFlutterEchoNonNull( - classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void - ) - func callFlutterEcho( - _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void - ) - func callFlutterEcho( - stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void - ) - func callFlutterEcho( - intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) - func callFlutterEcho( - enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) - func callFlutterEcho( - classMap: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull( - stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) - func callFlutterEchoNonNull( - intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) - func callFlutterEchoNonNull( - enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) - func callFlutterEchoNonNull( - classMap: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) - func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ anInt: Int64?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ aDouble: Double?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ aString: String?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ list: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullable( - enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) - func callFlutterEchoNullable( - classList: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - classList: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable( - _ map: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) - func callFlutterEchoNullable( - stringMap: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, Error>) -> Void) - func callFlutterEchoNullable( - intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) - func callFlutterEchoNullable( - enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void - ) - func callFlutterEchoNullable( - classMap: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - classMap: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable( - _ anEnum: AnEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) - func callFlutterSmallApiEcho( - _ aString: String, completion: @escaping (Result) -> Void) -} - -/// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -class HostIntegrationCoreApiSetup { - static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } - /// Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, - messageChannelSuffix: String = "" - ) { - let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - #if os(iOS) - let taskQueue = binaryMessenger.makeBackgroundTaskQueue?() - #else - let taskQueue: FlutterTaskQueue? = nil - #endif - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic calling. - let noopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - noopChannel.setMessageHandler { _, reply in - do { - try api.noop() - reply(wrapResult(nil)) - } catch { - reply(wrapError(error)) - } - } - } else { - noopChannel.setMessageHandler(nil) - } - /// Returns the passed object, to test serialization and deserialization. - let echoAllTypesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAllTypesChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg = args[0] as! AllTypes - do { - let result = try api.echo(everythingArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoAllTypesChannel.setMessageHandler(nil) - } - /// Returns an error, to test error handling. - let throwErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - throwErrorChannel.setMessageHandler { _, reply in - do { - let result = try api.throwError() - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - throwErrorChannel.setMessageHandler(nil) - } - /// Returns an error from a void function, to test error handling. - let throwErrorFromVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - throwErrorFromVoidChannel.setMessageHandler { _, reply in - do { - try api.throwErrorFromVoid() - reply(wrapResult(nil)) - } catch { - reply(wrapError(error)) - } - } - } else { - throwErrorFromVoidChannel.setMessageHandler(nil) - } - /// Returns a Flutter error, to test error handling. - let throwFlutterErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - throwFlutterErrorChannel.setMessageHandler { _, reply in - do { - let result = try api.throwFlutterError() - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - throwFlutterErrorChannel.setMessageHandler(nil) - } - /// Returns passed in int. - let echoIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoIntChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anIntArg = args[0] as! Int64 - do { - let result = try api.echo(anIntArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoIntChannel.setMessageHandler(nil) - } - /// Returns passed in double. - let echoDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoDoubleChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aDoubleArg = args[0] as! Double - do { - let result = try api.echo(aDoubleArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoDoubleChannel.setMessageHandler(nil) - } - /// Returns the passed in boolean. - let echoBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoBoolChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aBoolArg = args[0] as! Bool - do { - let result = try api.echo(aBoolArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoBoolChannel.setMessageHandler(nil) - } - /// Returns the passed in string. - let echoStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aStringArg = args[0] as! String - do { - let result = try api.echo(aStringArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoStringChannel.setMessageHandler(nil) - } - /// Returns the passed in Uint8List. - let echoUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoUint8ListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aUint8ListArg = args[0] as! FlutterStandardTypedData - do { - let result = try api.echo(aUint8ListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoUint8ListChannel.setMessageHandler(nil) - } - /// Returns the passed in generic Object. - let echoObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoObjectChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anObjectArg = args[0]! - do { - let result = try api.echo(anObjectArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoObjectChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let listArg = args[0] as! [Any?] - do { - let result = try api.echo(listArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoEnumListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg = args[0] as! [AnEnum?] - do { - let result = try api.echo(enumList: enumListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoEnumListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoClassListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg = args[0] as! [AllNullableTypes?] - do { - let result = try api.echo(classList: classListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoClassListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoNonNullEnumListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNonNullEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg = args[0] as! [AnEnum] - do { - let result = try api.echoNonNull(enumList: enumListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNonNullEnumListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoNonNullClassListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNonNullClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg = args[0] as! [AllNullableTypes] - do { - let result = try api.echoNonNull(classList: classListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNonNullClassListChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let mapArg = args[0] as! [AnyHashable?: Any?] - do { - let result = try api.echo(mapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoStringMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg = args[0] as! [String?: String?] - do { - let result = try api.echo(stringMap: stringMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoStringMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoIntMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg = args[0] as! [Int64?: Int64?] - do { - let result = try api.echo(intMap: intMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoIntMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoEnumMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg = args[0] as? [AnEnum?: AnEnum?] - do { - let result = try api.echo(enumMap: enumMapArg!) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoEnumMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoClassMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg = args[0] as! [Int64?: AllNullableTypes?] - do { - let result = try api.echo(classMap: classMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoClassMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNonNullStringMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNonNullStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg = args[0] as! [String: String] - do { - let result = try api.echoNonNull(stringMap: stringMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNonNullStringMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNonNullIntMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNonNullIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg = args[0] as! [Int64: Int64] - do { - let result = try api.echoNonNull(intMap: intMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNonNullIntMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNonNullEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg = args[0] as? [AnEnum: AnEnum] - do { - let result = try api.echoNonNull(enumMap: enumMapArg!) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNonNullEnumMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNonNullClassMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNonNullClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg = args[0] as! [Int64: AllNullableTypes] - do { - let result = try api.echoNonNull(classMap: classMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNonNullClassMapChannel.setMessageHandler(nil) - } - /// Returns the passed class to test nested class serialization and deserialization. - let echoClassWrapperChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoClassWrapperChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let wrapperArg = args[0] as! AllClassesWrapper - do { - let result = try api.echo(wrapperArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoClassWrapperChannel.setMessageHandler(nil) - } - /// Returns the passed enum to test serialization and deserialization. - let echoEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anEnumArg = args[0] as! AnEnum - do { - let result = try api.echo(anEnumArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoEnumChannel.setMessageHandler(nil) - } - /// Returns the passed enum to test serialization and deserialization. - let echoAnotherEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAnotherEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anotherEnumArg = args[0] as! AnotherEnum - do { - let result = try api.echo(anotherEnumArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoAnotherEnumChannel.setMessageHandler(nil) - } - /// Returns the default string. - let echoNamedDefaultStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNamedDefaultStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aStringArg = args[0] as! String - do { - let result = try api.echoNamedDefault(aStringArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNamedDefaultStringChannel.setMessageHandler(nil) - } - /// Returns passed in double. - let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoOptionalDefaultDoubleChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aDoubleArg = args[0] as! Double - do { - let result = try api.echoOptionalDefault(aDoubleArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoOptionalDefaultDoubleChannel.setMessageHandler(nil) - } - /// Returns passed in int. - let echoRequiredIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoRequiredIntChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anIntArg = args[0] as! Int64 - do { - let result = try api.echoRequired(anIntArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoRequiredIntChannel.setMessageHandler(nil) - } - /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAllNullableTypesChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg: AllNullableTypes? = nilOrValue(args[0]) - do { - let result = try api.echo(everythingArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoAllNullableTypesChannel.setMessageHandler(nil) - } - /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg: AllNullableTypesWithoutRecursion? = nilOrValue(args[0]) - do { - let result = try api.echo(everythingArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) - } - /// Returns the inner `aString` value from the wrapped object, to test - /// sending of nested objects. - let extractNestedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - extractNestedNullableStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let wrapperArg = args[0] as! AllClassesWrapper - do { - let result = try api.extractNestedNullableString(from: wrapperArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - extractNestedNullableStringChannel.setMessageHandler(nil) - } - /// Returns the inner `aString` value from the wrapped object, to test - /// sending of nested objects. - let createNestedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - createNestedNullableStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let nullableStringArg: String? = nilOrValue(args[0]) - do { - let result = try api.createNestedObject(with: nullableStringArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - createNestedNullableStringChannel.setMessageHandler(nil) - } - /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - sendMultipleNullableTypesChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableBoolArg: Bool? = nilOrValue(args[0]) - let aNullableIntArg: Int64? = nilOrValue(args[1]) - let aNullableStringArg: String? = nilOrValue(args[2]) - do { - let result = try api.sendMultipleNullableTypes( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - sendMultipleNullableTypesChannel.setMessageHandler(nil) - } - /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableBoolArg: Bool? = nilOrValue(args[0]) - let aNullableIntArg: Int64? = nilOrValue(args[1]) - let aNullableStringArg: String? = nilOrValue(args[2]) - do { - let result = try api.sendMultipleNullableTypesWithoutRecursion( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) - } - /// Returns passed in int. - let echoNullableIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableIntChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableIntArg: Int64? = nilOrValue(args[0]) - do { - let result = try api.echo(aNullableIntArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableIntChannel.setMessageHandler(nil) - } - /// Returns passed in double. - let echoNullableDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableDoubleChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableDoubleArg: Double? = nilOrValue(args[0]) - do { - let result = try api.echo(aNullableDoubleArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableDoubleChannel.setMessageHandler(nil) - } - /// Returns the passed in boolean. - let echoNullableBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableBoolChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableBoolArg: Bool? = nilOrValue(args[0]) - do { - let result = try api.echo(aNullableBoolArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableBoolChannel.setMessageHandler(nil) - } - /// Returns the passed in string. - let echoNullableStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableStringArg: String? = nilOrValue(args[0]) - do { - let result = try api.echo(aNullableStringArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableStringChannel.setMessageHandler(nil) - } - /// Returns the passed in Uint8List. - let echoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableUint8ListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[0]) - do { - let result = try api.echo(aNullableUint8ListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableUint8ListChannel.setMessageHandler(nil) - } - /// Returns the passed in generic Object. - let echoNullableObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableObjectChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableObjectArg: Any? = args[0] - do { - let result = try api.echo(aNullableObjectArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableObjectChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoNullableListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableListArg: [Any?]? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(aNullableListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoNullableEnumListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg: [AnEnum?]? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(enumList: enumListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableEnumListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg: [AllNullableTypes?]? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(classList: classListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableClassListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableNonNullEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg: [AnEnum]? = nilOrValue(args[0]) - do { - let result = try api.echoNullableNonNull(enumList: enumListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableNonNullEnumListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableNonNullClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg: [AllNullableTypes]? = nilOrValue(args[0]) - do { - let result = try api.echoNullableNonNull(classList: classListArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableNonNullClassListChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let mapArg: [AnyHashable?: Any?]? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(mapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg: [String?: String?]? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(stringMap: stringMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableStringMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableIntMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg: [Int64?: Int64?]? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(intMap: intMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableIntMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableEnumMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg: [AnEnum?: AnEnum?]? = args[0] as? [AnEnum?: AnEnum?] - do { - let result = try api.echoNullable(enumMap: enumMapArg!) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableEnumMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableClassMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg: [Int64?: AllNullableTypes?]? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(classMap: classMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableClassMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableNonNullStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg: [String: String]? = nilOrValue(args[0]) - do { - let result = try api.echoNullableNonNull(stringMap: stringMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableNonNullStringMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableNonNullIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg: [Int64: Int64]? = nilOrValue(args[0]) - do { - let result = try api.echoNullableNonNull(intMap: intMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableNonNullIntMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg: [AnEnum: AnEnum]? = args[0] as? [AnEnum: AnEnum] - do { - let result = try api.echoNullableNonNull(enumMap: enumMapArg!) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableNonNullEnumMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableNonNullClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg: [Int64: AllNullableTypes]? = nilOrValue(args[0]) - do { - let result = try api.echoNullableNonNull(classMap: classMapArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableNonNullClassMapChannel.setMessageHandler(nil) - } - let echoNullableEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNullableEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anEnumArg: AnEnum? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(anEnumArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNullableEnumChannel.setMessageHandler(nil) - } - let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAnotherNullableEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) - do { - let result = try api.echoNullable(anotherEnumArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoAnotherNullableEnumChannel.setMessageHandler(nil) - } - /// Returns passed in int. - let echoOptionalNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoOptionalNullableIntChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableIntArg: Int64? = nilOrValue(args[0]) - do { - let result = try api.echoOptional(aNullableIntArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoOptionalNullableIntChannel.setMessageHandler(nil) - } - /// Returns the passed in string. - let echoNamedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoNamedNullableStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableStringArg: String? = nilOrValue(args[0]) - do { - let result = try api.echoNamed(aNullableStringArg) - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - echoNamedNullableStringChannel.setMessageHandler(nil) - } - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic asynchronous calling. - let noopAsyncChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.noopAsync\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - noopAsyncChannel.setMessageHandler { _, reply in - api.noopAsync { result in - switch result { - case .success: - reply(wrapResult(nil)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - noopAsyncChannel.setMessageHandler(nil) - } - /// Returns passed in int asynchronously. - let echoAsyncIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncIntChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anIntArg = args[0] as! Int64 - api.echoAsync(anIntArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncIntChannel.setMessageHandler(nil) - } - /// Returns passed in double asynchronously. - let echoAsyncDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncDoubleChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aDoubleArg = args[0] as! Double - api.echoAsync(aDoubleArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncDoubleChannel.setMessageHandler(nil) - } - /// Returns the passed in boolean asynchronously. - let echoAsyncBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncBoolChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aBoolArg = args[0] as! Bool - api.echoAsync(aBoolArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncBoolChannel.setMessageHandler(nil) - } - /// Returns the passed string asynchronously. - let echoAsyncStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aStringArg = args[0] as! String - api.echoAsync(aStringArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncStringChannel.setMessageHandler(nil) - } - /// Returns the passed in Uint8List asynchronously. - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncUint8ListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aUint8ListArg = args[0] as! FlutterStandardTypedData - api.echoAsync(aUint8ListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncUint8ListChannel.setMessageHandler(nil) - } - /// Returns the passed in generic Object asynchronously. - let echoAsyncObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncObjectChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anObjectArg = args[0]! - api.echoAsync(anObjectArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncObjectChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let listArg = args[0] as! [Any?] - api.echoAsync(listArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncEnumListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg = args[0] as! [AnEnum?] - api.echoAsync(enumList: enumListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncEnumListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncClassListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg = args[0] as! [AllNullableTypes?] - api.echoAsync(classList: classListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncClassListChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let mapArg = args[0] as! [AnyHashable?: Any?] - api.echoAsync(mapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncStringMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg = args[0] as! [String?: String?] - api.echoAsync(stringMap: stringMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncStringMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncIntMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg = args[0] as! [Int64?: Int64?] - api.echoAsync(intMap: intMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncIntMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncEnumMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg = args[0] as? [AnEnum?: AnEnum?] - api.echoAsync(enumMap: enumMapArg!) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncEnumMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncClassMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg = args[0] as! [Int64?: AllNullableTypes?] - api.echoAsync(classMap: classMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncClassMapChannel.setMessageHandler(nil) - } - /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anEnumArg = args[0] as! AnEnum - api.echoAsync(anEnumArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncEnumChannel.setMessageHandler(nil) - } - /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAnotherAsyncEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anotherEnumArg = args[0] as! AnotherEnum - api.echoAsync(anotherEnumArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAnotherAsyncEnumChannel.setMessageHandler(nil) - } - /// Responds with an error from an async function returning a value. - let throwAsyncErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - throwAsyncErrorChannel.setMessageHandler { _, reply in - api.throwAsyncError { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - throwAsyncErrorChannel.setMessageHandler(nil) - } - /// Responds with an error from an async void function. - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - throwAsyncErrorFromVoidChannel.setMessageHandler { _, reply in - api.throwAsyncErrorFromVoid { result in - switch result { - case .success: - reply(wrapResult(nil)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - throwAsyncErrorFromVoidChannel.setMessageHandler(nil) - } - /// Responds with a Flutter error from an async function returning a value. - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - throwAsyncFlutterErrorChannel.setMessageHandler { _, reply in - api.throwAsyncFlutterError { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - throwAsyncFlutterErrorChannel.setMessageHandler(nil) - } - /// Returns the passed object, to test async serialization and deserialization. - let echoAsyncAllTypesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncAllTypesChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg = args[0] as! AllTypes - api.echoAsync(everythingArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncAllTypesChannel.setMessageHandler(nil) - } - /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableAllNullableTypesChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg: AllNullableTypes? = nilOrValue(args[0]) - api.echoAsync(everythingArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableAllNullableTypesChannel.setMessageHandler(nil) - } - /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg: AllNullableTypesWithoutRecursion? = nilOrValue(args[0]) - api.echoAsync(everythingArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) - } - /// Returns passed in int asynchronously. - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableIntChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anIntArg: Int64? = nilOrValue(args[0]) - api.echoAsyncNullable(anIntArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableIntChannel.setMessageHandler(nil) - } - /// Returns passed in double asynchronously. - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aDoubleArg: Double? = nilOrValue(args[0]) - api.echoAsyncNullable(aDoubleArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableDoubleChannel.setMessageHandler(nil) - } - /// Returns the passed in boolean asynchronously. - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableBoolChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aBoolArg: Bool? = nilOrValue(args[0]) - api.echoAsyncNullable(aBoolArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableBoolChannel.setMessageHandler(nil) - } - /// Returns the passed string asynchronously. - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aStringArg: String? = nilOrValue(args[0]) - api.echoAsyncNullable(aStringArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableStringChannel.setMessageHandler(nil) - } - /// Returns the passed in Uint8List asynchronously. - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[0]) - api.echoAsyncNullable(aUint8ListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableUint8ListChannel.setMessageHandler(nil) - } - /// Returns the passed in generic Object asynchronously. - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableObjectChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anObjectArg: Any? = args[0] - api.echoAsyncNullable(anObjectArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableObjectChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let listArg: [Any?]? = nilOrValue(args[0]) - api.echoAsyncNullable(listArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg: [AnEnum?]? = nilOrValue(args[0]) - api.echoAsyncNullable(enumList: enumListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableEnumListChannel.setMessageHandler(nil) - } - /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg: [AllNullableTypes?]? = nilOrValue(args[0]) - api.echoAsyncNullable(classList: classListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableClassListChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let mapArg: [AnyHashable?: Any?]? = nilOrValue(args[0]) - api.echoAsyncNullable(mapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg: [String?: String?]? = nilOrValue(args[0]) - api.echoAsyncNullable(stringMap: stringMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableStringMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg: [Int64?: Int64?]? = nilOrValue(args[0]) - api.echoAsyncNullable(intMap: intMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableIntMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg: [AnEnum?: AnEnum?]? = args[0] as? [AnEnum?: AnEnum?] - api.echoAsyncNullable(enumMap: enumMapArg!) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableEnumMapChannel.setMessageHandler(nil) - } - /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg: [Int64?: AllNullableTypes?]? = nilOrValue(args[0]) - api.echoAsyncNullable(classMap: classMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableClassMapChannel.setMessageHandler(nil) - } - /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAsyncNullableEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anEnumArg: AnEnum? = nilOrValue(args[0]) - api.echoAsyncNullable(anEnumArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAsyncNullableEnumChannel.setMessageHandler(nil) - } - /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoAnotherAsyncNullableEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) - api.echoAsyncNullable(anotherEnumArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoAnotherAsyncNullableEnumChannel.setMessageHandler(nil) - } - /// Returns true if the handler is run on a main thread, which should be - /// true since there is no TaskQueue annotation. - let defaultIsMainThreadChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.defaultIsMainThread\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - defaultIsMainThreadChannel.setMessageHandler { _, reply in - do { - let result = try api.defaultIsMainThread() - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - defaultIsMainThreadChannel.setMessageHandler(nil) - } - /// Returns true if the handler is run on a non-main thread, which should be - /// true for any platform with TaskQueue support. - let taskQueueIsBackgroundThreadChannel = - taskQueue == nil - ? FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - : FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec, taskQueue: taskQueue) - if let api = api { - taskQueueIsBackgroundThreadChannel.setMessageHandler { _, reply in - do { - let result = try api.taskQueueIsBackgroundThread() - reply(wrapResult(result)) - } catch { - reply(wrapError(error)) - } - } - } else { - taskQueueIsBackgroundThreadChannel.setMessageHandler(nil) - } - let callFlutterNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterNoopChannel.setMessageHandler { _, reply in - api.callFlutterNoop { result in - switch result { - case .success: - reply(wrapResult(nil)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterNoopChannel.setMessageHandler(nil) - } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterThrowErrorChannel.setMessageHandler { _, reply in - api.callFlutterThrowError { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterThrowErrorChannel.setMessageHandler(nil) - } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterThrowErrorFromVoidChannel.setMessageHandler { _, reply in - api.callFlutterThrowErrorFromVoid { result in - switch result { - case .success: - reply(wrapResult(nil)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) - } - let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoAllTypesChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg = args[0] as! AllTypes - api.callFlutterEcho(everythingArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoAllTypesChannel.setMessageHandler(nil) - } - let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoAllNullableTypesChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg: AllNullableTypes? = nilOrValue(args[0]) - api.callFlutterEcho(everythingArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoAllNullableTypesChannel.setMessageHandler(nil) - } - let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterSendMultipleNullableTypesChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aNullableBoolArg: Bool? = nilOrValue(args[0]) - let aNullableIntArg: Int64? = nilOrValue(args[1]) - let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypes( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg - ) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterSendMultipleNullableTypesChannel.setMessageHandler(nil) - } - let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let everythingArg: AllNullableTypesWithoutRecursion? = nilOrValue(args[0]) - api.callFlutterEcho(everythingArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) - } - let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { - message, reply in - let args = message as! [Any?] - let aNullableBoolArg: Bool? = nilOrValue(args[0]) - let aNullableIntArg: Int64? = nilOrValue(args[1]) - let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypesWithoutRecursion( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg - ) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) - } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoBoolChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aBoolArg = args[0] as! Bool - api.callFlutterEcho(aBoolArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoBoolChannel.setMessageHandler(nil) - } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoIntChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anIntArg = args[0] as! Int64 - api.callFlutterEcho(anIntArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoIntChannel.setMessageHandler(nil) - } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoDoubleChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aDoubleArg = args[0] as! Double - api.callFlutterEcho(aDoubleArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoDoubleChannel.setMessageHandler(nil) - } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aStringArg = args[0] as! String - api.callFlutterEcho(aStringArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoStringChannel.setMessageHandler(nil) - } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let listArg = args[0] as! FlutterStandardTypedData - api.callFlutterEcho(listArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoUint8ListChannel.setMessageHandler(nil) - } - let callFlutterEchoListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let listArg = args[0] as! [Any?] - api.callFlutterEcho(listArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoListChannel.setMessageHandler(nil) - } - let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg = args[0] as! [AnEnum?] - api.callFlutterEcho(enumList: enumListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoEnumListChannel.setMessageHandler(nil) - } - let callFlutterEchoClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg = args[0] as! [AllNullableTypes?] - api.callFlutterEcho(classList: classListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoClassListChannel.setMessageHandler(nil) - } - let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNonNullEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg = args[0] as! [AnEnum] - api.callFlutterEchoNonNull(enumList: enumListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNonNullEnumListChannel.setMessageHandler(nil) - } - let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNonNullClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg = args[0] as! [AllNullableTypes] - api.callFlutterEchoNonNull(classList: classListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNonNullClassListChannel.setMessageHandler(nil) - } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let mapArg = args[0] as! [AnyHashable?: Any?] - api.callFlutterEcho(mapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoMapChannel.setMessageHandler(nil) - } - let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg = args[0] as! [String?: String?] - api.callFlutterEcho(stringMap: stringMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoStringMapChannel.setMessageHandler(nil) - } - let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg = args[0] as! [Int64?: Int64?] - api.callFlutterEcho(intMap: intMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoIntMapChannel.setMessageHandler(nil) - } - let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg = args[0] as? [AnEnum?: AnEnum?] - api.callFlutterEcho(enumMap: enumMapArg!) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoEnumMapChannel.setMessageHandler(nil) - } - let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg = args[0] as! [Int64?: AllNullableTypes?] - api.callFlutterEcho(classMap: classMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoClassMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNonNullStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg = args[0] as! [String: String] - api.callFlutterEchoNonNull(stringMap: stringMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNonNullStringMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNonNullIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg = args[0] as! [Int64: Int64] - api.callFlutterEchoNonNull(intMap: intMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNonNullIntMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNonNullEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg = args[0] as? [AnEnum: AnEnum] - api.callFlutterEchoNonNull(enumMap: enumMapArg!) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNonNullEnumMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNonNullClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg = args[0] as! [Int64: AllNullableTypes] - api.callFlutterEchoNonNull(classMap: classMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNonNullClassMapChannel.setMessageHandler(nil) - } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anEnumArg = args[0] as! AnEnum - api.callFlutterEcho(anEnumArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoEnumChannel.setMessageHandler(nil) - } - let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoAnotherEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anotherEnumArg = args[0] as! AnotherEnum - api.callFlutterEcho(anotherEnumArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoAnotherEnumChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aBoolArg: Bool? = nilOrValue(args[0]) - api.callFlutterEchoNullable(aBoolArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableBoolChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anIntArg: Int64? = nilOrValue(args[0]) - api.callFlutterEchoNullable(anIntArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableIntChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aDoubleArg: Double? = nilOrValue(args[0]) - api.callFlutterEchoNullable(aDoubleArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aStringArg: String? = nilOrValue(args[0]) - api.callFlutterEchoNullable(aStringArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableStringChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let listArg: FlutterStandardTypedData? = nilOrValue(args[0]) - api.callFlutterEchoNullable(listArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let listArg: [Any?]? = nilOrValue(args[0]) - api.callFlutterEchoNullable(listArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableListChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg: [AnEnum?]? = nilOrValue(args[0]) - api.callFlutterEchoNullable(enumList: enumListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableEnumListChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg: [AllNullableTypes?]? = nilOrValue(args[0]) - api.callFlutterEchoNullable(classList: classListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableClassListChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumListArg: [AnEnum]? = nilOrValue(args[0]) - api.callFlutterEchoNullableNonNull(enumList: enumListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableNonNullClassListChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classListArg: [AllNullableTypes]? = nilOrValue(args[0]) - api.callFlutterEchoNullableNonNull(classList: classListArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableNonNullClassListChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let mapArg: [AnyHashable?: Any?]? = nilOrValue(args[0]) - api.callFlutterEchoNullable(mapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg: [String?: String?]? = nilOrValue(args[0]) - api.callFlutterEchoNullable(stringMap: stringMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableStringMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg: [Int64?: Int64?]? = nilOrValue(args[0]) - api.callFlutterEchoNullable(intMap: intMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableIntMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg: [AnEnum?: AnEnum?]? = args[0] as? [AnEnum?: AnEnum?] - api.callFlutterEchoNullable(enumMap: enumMapArg!) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableEnumMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg: [Int64?: AllNullableTypes?]? = nilOrValue(args[0]) - api.callFlutterEchoNullable(classMap: classMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableClassMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let stringMapArg: [String: String]? = nilOrValue(args[0]) - api.callFlutterEchoNullableNonNull(stringMap: stringMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let intMapArg: [Int64: Int64]? = nilOrValue(args[0]) - api.callFlutterEchoNullableNonNull(intMap: intMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let enumMapArg: [AnEnum: AnEnum]? = args[0] as? [AnEnum: AnEnum] - api.callFlutterEchoNullableNonNull(enumMap: enumMapArg!) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let classMapArg: [Int64: AllNullableTypes]? = nilOrValue(args[0]) - api.callFlutterEchoNullableNonNull(classMap: classMapArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler(nil) - } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anEnumArg: AnEnum? = nilOrValue(args[0]) - api.callFlutterEchoNullable(anEnumArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoNullableEnumChannel.setMessageHandler(nil) - } - let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterEchoAnotherNullableEnumChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) - api.callFlutterEchoNullable(anotherEnumArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterEchoAnotherNullableEnumChannel.setMessageHandler(nil) - } - let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - callFlutterSmallApiEchoStringChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aStringArg = args[0] as! String - api.callFlutterSmallApiEcho(aStringArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - callFlutterSmallApiEchoStringChannel.setMessageHandler(nil) - } - } -} -/// The core interface that the Dart platform_test code implements for host -/// integration tests to call into. -/// -/// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. -protocol FlutterIntegrationCoreApiProtocol { - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic calling. - func noop(completion: @escaping (Result) -> Void) - /// Responds with an error from an async function returning a value. - func throwError(completion: @escaping (Result) -> Void) - /// Responds with an error from an async void function. - func throwErrorFromVoid(completion: @escaping (Result) -> Void) - /// Returns the passed object, to test serialization and deserialization. - func echo( - _ everythingArg: AllTypes, completion: @escaping (Result) -> Void) - /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypes?, - completion: @escaping (Result) -> Void) - /// Returns passed in arguments of multiple types. - /// - /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void) - /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) - /// Returns passed in arguments of multiple types. - /// - /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void) - /// Returns the passed boolean, to test serialization and deserialization. - func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) - /// Returns the passed int, to test serialization and deserialization. - func echo(_ anIntArg: Int64, completion: @escaping (Result) -> Void) - /// Returns the passed double, to test serialization and deserialization. - func echo(_ aDoubleArg: Double, completion: @escaping (Result) -> Void) - /// Returns the passed string, to test serialization and deserialization. - func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) - /// Returns the passed byte list, to test serialization and deserialization. - func echo( - _ listArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echo( - enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echo( - classList classListArg: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - classList classListArg: [AllNullableTypes], - completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echo( - _ mapArg: [AnyHashable?: Any?], - completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echo( - stringMap stringMapArg: [String?: String?], - completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echo( - intMap intMapArg: [Int64?: Int64?], - completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echo( - enumMap enumMapArg: [AnEnum?: AnEnum?], - completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echo( - classMap classMapArg: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - stringMap stringMapArg: [String: String], - completion: @escaping (Result<[String: String], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - intMap intMapArg: [Int64: Int64], - completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - enumMap enumMapArg: [AnEnum: AnEnum], - completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - classMap classMapArg: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) - /// Returns the passed enum to test serialization and deserialization. - func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) - /// Returns the passed enum to test serialization and deserialization. - func echo( - _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) - /// Returns the passed boolean, to test serialization and deserialization. - func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) - /// Returns the passed int, to test serialization and deserialization. - func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) - /// Returns the passed double, to test serialization and deserialization. - func echoNullable( - _ aDoubleArg: Double?, completion: @escaping (Result) -> Void) - /// Returns the passed string, to test serialization and deserialization. - func echoNullable( - _ aStringArg: String?, completion: @escaping (Result) -> Void) - /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable( - _ listArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - enumList enumListArg: [AnEnum?]?, - completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - classList classListArg: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) - /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - classList classListArg: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - _ mapArg: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - stringMap stringMapArg: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - intMap intMapArg: [Int64?: Int64?]?, - completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - enumMap enumMapArg: [AnEnum?: AnEnum?]?, - completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - classMap classMapArg: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - stringMap stringMapArg: [String: String]?, - completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - intMap intMapArg: [Int64: Int64]?, - completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - enumMap enumMapArg: [AnEnum: AnEnum]?, - completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - classMap classMapArg: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) - /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) - /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anotherEnumArg: AnotherEnum?, - completion: @escaping (Result) -> Void) - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic asynchronous calling. - func noopAsync(completion: @escaping (Result) -> Void) - /// Returns the passed in generic Object asynchronously. - func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) -} -class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { - private let binaryMessenger: FlutterBinaryMessenger - private let messageChannelSuffix: String - init(binaryMessenger: FlutterBinaryMessenger, messageChannelSuffix: String = "") { - self.binaryMessenger = binaryMessenger - self.messageChannelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - } - var codec: CoreTestsPigeonCodec { - return CoreTestsPigeonCodec.shared - } - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic calling. - func noop(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage(nil) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - completion(.success(())) - } - } - } - /// Responds with an error from an async function returning a value. - func throwError(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage(nil) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: Any? = listResponse[0] - completion(.success(result)) - } - } - } - /// Responds with an error from an async void function. - func throwErrorFromVoid(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage(nil) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - completion(.success(())) - } - } - } - /// Returns the passed object, to test serialization and deserialization. - func echo( - _ everythingArg: AllTypes, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([everythingArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! AllTypes - completion(.success(result)) - } - } - } - /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypes?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([everythingArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: AllNullableTypes? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns passed in arguments of multiple types. - /// - /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { - response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! AllNullableTypes - completion(.success(result)) - } - } - } - /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([everythingArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: AllNullableTypesWithoutRecursion? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns passed in arguments of multiple types. - /// - /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { - response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! AllNullableTypesWithoutRecursion - completion(.success(result)) - } - } - } - /// Returns the passed boolean, to test serialization and deserialization. - func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aBoolArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! Bool - completion(.success(result)) - } - } - } - /// Returns the passed int, to test serialization and deserialization. - func echo(_ anIntArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([anIntArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! Int64 - completion(.success(result)) - } - } - } - /// Returns the passed double, to test serialization and deserialization. - func echo(_ aDoubleArg: Double, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aDoubleArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! Double - completion(.success(result)) - } - } - } - /// Returns the passed string, to test serialization and deserialization. - func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aStringArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! String - completion(.success(result)) - } - } - } - /// Returns the passed byte list, to test serialization and deserialization. - func echo( - _ listArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([listArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! FlutterStandardTypedData - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([listArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [Any?] - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echo( - enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([enumListArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [AnEnum?] - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echo( - classList classListArg: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([classListArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [AllNullableTypes?] - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([enumListArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [AnEnum] - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - classList classListArg: [AllNullableTypes], - completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([classListArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [AllNullableTypes] - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echo( - _ mapArg: [AnyHashable?: Any?], - completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([mapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [AnyHashable?: Any?] - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echo( - stringMap stringMapArg: [String?: String?], - completion: @escaping (Result<[String?: String?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([stringMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [String?: String?] - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echo( - intMap intMapArg: [Int64?: Int64?], - completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([intMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [Int64?: Int64?] - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echo( - enumMap enumMapArg: [AnEnum?: AnEnum?], - completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([enumMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as? [AnEnum?: AnEnum?] - completion(.success(result!)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echo( - classMap classMapArg: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([classMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [Int64?: AllNullableTypes?] - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - stringMap stringMapArg: [String: String], - completion: @escaping (Result<[String: String], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([stringMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [String: String] - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - intMap intMapArg: [Int64: Int64], - completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([intMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [Int64: Int64] - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - enumMap enumMapArg: [AnEnum: AnEnum], - completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([enumMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as? [AnEnum: AnEnum] - completion(.success(result!)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - classMap classMapArg: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([classMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! [Int64: AllNullableTypes] - completion(.success(result)) - } - } - } - /// Returns the passed enum to test serialization and deserialization. - func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([anEnumArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! AnEnum - completion(.success(result)) - } - } - } - /// Returns the passed enum to test serialization and deserialization. - func echo( - _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([anotherEnumArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! AnotherEnum - completion(.success(result)) - } - } - } - /// Returns the passed boolean, to test serialization and deserialization. - func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aBoolArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: Bool? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed int, to test serialization and deserialization. - func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([anIntArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: Int64? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed double, to test serialization and deserialization. - func echoNullable( - _ aDoubleArg: Double?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aDoubleArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: Double? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed string, to test serialization and deserialization. - func echoNullable( - _ aStringArg: String?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aStringArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: String? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable( - _ listArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([listArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: FlutterStandardTypedData? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([listArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [Any?]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - enumList enumListArg: [AnEnum?]?, - completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([enumListArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [AnEnum?]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - classList classListArg: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([classListArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [AllNullableTypes?]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([enumListArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [AnEnum]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - classList classListArg: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([classListArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [AllNullableTypes]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - _ mapArg: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([mapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [AnyHashable?: Any?]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - stringMap stringMapArg: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([stringMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [String?: String?]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - intMap intMapArg: [Int64?: Int64?]?, - completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([intMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [Int64?: Int64?]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - enumMap enumMapArg: [AnEnum?: AnEnum?]?, - completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([enumMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [AnEnum?: AnEnum?]? = listResponse[0] as? [AnEnum?: AnEnum?] - completion(.success(result!)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - classMap classMapArg: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([classMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [Int64?: AllNullableTypes?]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - stringMap stringMapArg: [String: String]?, - completion: @escaping (Result<[String: String]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([stringMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [String: String]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - intMap intMapArg: [Int64: Int64]?, - completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([intMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [Int64: Int64]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - enumMap enumMapArg: [AnEnum: AnEnum]?, - completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([enumMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [AnEnum: AnEnum]? = listResponse[0] as? [AnEnum: AnEnum] - completion(.success(result!)) - } - } - } - /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - classMap classMapArg: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([classMapArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: [Int64: AllNullableTypes]? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([anEnumArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: AnEnum? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anotherEnumArg: AnotherEnum?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([anotherEnumArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - let result: AnotherEnum? = nilOrValue(listResponse[0]) - completion(.success(result)) - } - } - } - /// A no-op function taking no arguments and returning no value, to sanity - /// test basic asynchronous calling. - func noopAsync(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage(nil) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else { - completion(.success(())) - } - } - } - /// Returns the passed in generic Object asynchronously. - func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aStringArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! String - completion(.success(result)) - } - } - } -} -/// An API that can be implemented for minimal, compile-only tests. -/// -/// Generated protocol from Pigeon that represents a handler of messages from Flutter. -protocol HostTrivialApi { - func noop() throws -} - -/// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -class HostTrivialApiSetup { - static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } - /// Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "" - ) { - let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let noopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostTrivialApi.noop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - noopChannel.setMessageHandler { _, reply in - do { - try api.noop() - reply(wrapResult(nil)) - } catch { - reply(wrapError(error)) - } - } - } else { - noopChannel.setMessageHandler(nil) - } - } -} -/// A simple API implemented in some unit tests. -/// -/// Generated protocol from Pigeon that represents a handler of messages from Flutter. -protocol HostSmallApi { - func echo(aString: String, completion: @escaping (Result) -> Void) - func voidVoid(completion: @escaping (Result) -> Void) -} - -/// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. -class HostSmallApiSetup { - static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } - /// Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "" - ) { - let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let echoChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostSmallApi.echo\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - echoChannel.setMessageHandler { message, reply in - let args = message as! [Any?] - let aStringArg = args[0] as! String - api.echo(aString: aStringArg) { result in - switch result { - case .success(let res): - reply(wrapResult(res)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - echoChannel.setMessageHandler(nil) - } - let voidVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon.HostSmallApi.voidVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - if let api = api { - voidVoidChannel.setMessageHandler { _, reply in - api.voidVoid { result in - switch result { - case .success: - reply(wrapResult(nil)) - case .failure(let error): - reply(wrapError(error)) - } - } - } - } else { - voidVoidChannel.setMessageHandler(nil) - } - } -} -/// A simple API called in some unit tests. -/// -/// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. -protocol FlutterSmallApiProtocol { - func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) - func echo(string aStringArg: String, completion: @escaping (Result) -> Void) -} -class FlutterSmallApi: FlutterSmallApiProtocol { - private let binaryMessenger: FlutterBinaryMessenger - private let messageChannelSuffix: String - init(binaryMessenger: FlutterBinaryMessenger, messageChannelSuffix: String = "") { - self.binaryMessenger = binaryMessenger - self.messageChannelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - } - var codec: CoreTestsPigeonCodec { - return CoreTestsPigeonCodec.shared - } - func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([msgArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! TestMessage - completion(.success(result)) - } - } - } - func echo(string aStringArg: String, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon.FlutterSmallApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aStringArg] as [Any?]) { response in - guard let listResponse = response as? [Any?] else { - completion(.failure(createConnectionError(withChannelName: channelName))) - return - } - if listResponse.count > 1 { - let code: String = listResponse[0] as! String - let message: String? = nilOrValue(listResponse[1]) - let details: String? = nilOrValue(listResponse[2]) - completion(.failure(PigeonError(code: code, message: message, details: details))) - } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) - } else { - let result = listResponse[0] as! String - completion(.success(result)) - } - } - } -} From 0a08ef547439ea351da95e05adca3e8a5b7f6acf Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 14:57:53 -0800 Subject: [PATCH 12/33] fix kotlin generator change that broke unit test --- .../lib/src/kotlin/kotlin_generator.dart | 4 +- .../com/example/test_plugin/CoreTests.gen.kt | 212 +++++++++--------- .../test_plugin/EventChannelTests.gen.kt | 97 ++++---- 3 files changed, 150 insertions(+), 163 deletions(-) diff --git a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart index d4ff478d2d2d..2e5b698f9b33 100644 --- a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart +++ b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart @@ -331,7 +331,7 @@ class KotlinGenerator extends StructuredGenerator { indent.writeln('return true'); }); - indent.writeln('val otherActual = other as ${classDefinition.name}'); + indent.writeln('val other = other as ${classDefinition.name}'); final Iterable fields = getFieldsInSerializationOrder( classDefinition, ); @@ -342,7 +342,7 @@ class KotlinGenerator extends StructuredGenerator { final String comparisons = fields .map( (NamedType field) => - '$utils.deepEquals(this.${field.name}, otherActual.${field.name})', + '$utils.deepEquals(this.${field.name}, other.${field.name})', ) .join(' && '); indent.writeln('return $comparisons'); diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index 3348ea9434e4..a2b0c90d0673 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -157,8 +157,8 @@ data class UnusedClass(val aField: Any? = null) { if (this === other) { return true } - val otherActual = other as UnusedClass - return CoreTestsPigeonUtils.deepEquals(this.aField, otherActual.aField) + val other = other as UnusedClass + return CoreTestsPigeonUtils.deepEquals(this.aField, other.aField) } override fun hashCode(): Int { @@ -305,35 +305,35 @@ data class AllTypes( if (this === other) { return true } - val otherActual = other as AllTypes - return CoreTestsPigeonUtils.deepEquals(this.aBool, otherActual.aBool) && - CoreTestsPigeonUtils.deepEquals(this.anInt, otherActual.anInt) && - CoreTestsPigeonUtils.deepEquals(this.anInt64, otherActual.anInt64) && - CoreTestsPigeonUtils.deepEquals(this.aDouble, otherActual.aDouble) && - CoreTestsPigeonUtils.deepEquals(this.aByteArray, otherActual.aByteArray) && - CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, otherActual.a4ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, otherActual.a8ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aFloatArray, otherActual.aFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.anEnum, otherActual.anEnum) && - CoreTestsPigeonUtils.deepEquals(this.anotherEnum, otherActual.anotherEnum) && - CoreTestsPigeonUtils.deepEquals(this.aString, otherActual.aString) && - CoreTestsPigeonUtils.deepEquals(this.anObject, otherActual.anObject) && - CoreTestsPigeonUtils.deepEquals(this.list, otherActual.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, otherActual.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, otherActual.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, otherActual.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, otherActual.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, otherActual.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, otherActual.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, otherActual.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, otherActual.mapList) && - CoreTestsPigeonUtils.deepEquals(this.map, otherActual.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, otherActual.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, otherActual.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, otherActual.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, otherActual.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, otherActual.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, otherActual.mapMap) + val other = other as AllTypes + return CoreTestsPigeonUtils.deepEquals(this.aBool, other.aBool) && + CoreTestsPigeonUtils.deepEquals(this.anInt, other.anInt) && + CoreTestsPigeonUtils.deepEquals(this.anInt64, other.anInt64) && + CoreTestsPigeonUtils.deepEquals(this.aDouble, other.aDouble) && + CoreTestsPigeonUtils.deepEquals(this.aByteArray, other.aByteArray) && + CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, other.a4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, other.a8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aFloatArray, other.aFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.anEnum, other.anEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherEnum, other.anotherEnum) && + CoreTestsPigeonUtils.deepEquals(this.aString, other.aString) && + CoreTestsPigeonUtils.deepEquals(this.anObject, other.anObject) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) } override fun hashCode(): Int { @@ -519,42 +519,38 @@ data class AllNullableTypes( if (this === other) { return true } - val otherActual = other as AllNullableTypes - return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, otherActual.aNullableBool) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt, otherActual.aNullableInt) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, otherActual.aNullableInt64) && - CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, otherActual.aNullableDouble) && - CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, otherActual.aNullableByteArray) && - CoreTestsPigeonUtils.deepEquals( - this.aNullable4ByteArray, otherActual.aNullable4ByteArray) && - CoreTestsPigeonUtils.deepEquals( - this.aNullable8ByteArray, otherActual.aNullable8ByteArray) && - CoreTestsPigeonUtils.deepEquals( - this.aNullableFloatArray, otherActual.aNullableFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, otherActual.aNullableEnum) && - CoreTestsPigeonUtils.deepEquals( - this.anotherNullableEnum, otherActual.anotherNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.aNullableString, otherActual.aNullableString) && - CoreTestsPigeonUtils.deepEquals(this.aNullableObject, otherActual.aNullableObject) && - CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, otherActual.allNullableTypes) && - CoreTestsPigeonUtils.deepEquals(this.list, otherActual.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, otherActual.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, otherActual.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, otherActual.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, otherActual.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, otherActual.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, otherActual.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, otherActual.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, otherActual.mapList) && - CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, otherActual.recursiveClassList) && - CoreTestsPigeonUtils.deepEquals(this.map, otherActual.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, otherActual.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, otherActual.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, otherActual.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, otherActual.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, otherActual.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, otherActual.mapMap) && - CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, otherActual.recursiveClassMap) + val other = other as AllNullableTypes + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && + CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) } override fun hashCode(): Int { @@ -732,39 +728,35 @@ data class AllNullableTypesWithoutRecursion( if (this === other) { return true } - val otherActual = other as AllNullableTypesWithoutRecursion - return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, otherActual.aNullableBool) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt, otherActual.aNullableInt) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, otherActual.aNullableInt64) && - CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, otherActual.aNullableDouble) && - CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, otherActual.aNullableByteArray) && - CoreTestsPigeonUtils.deepEquals( - this.aNullable4ByteArray, otherActual.aNullable4ByteArray) && - CoreTestsPigeonUtils.deepEquals( - this.aNullable8ByteArray, otherActual.aNullable8ByteArray) && - CoreTestsPigeonUtils.deepEquals( - this.aNullableFloatArray, otherActual.aNullableFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, otherActual.aNullableEnum) && - CoreTestsPigeonUtils.deepEquals( - this.anotherNullableEnum, otherActual.anotherNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.aNullableString, otherActual.aNullableString) && - CoreTestsPigeonUtils.deepEquals(this.aNullableObject, otherActual.aNullableObject) && - CoreTestsPigeonUtils.deepEquals(this.list, otherActual.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, otherActual.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, otherActual.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, otherActual.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, otherActual.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, otherActual.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, otherActual.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, otherActual.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, otherActual.mapList) && - CoreTestsPigeonUtils.deepEquals(this.map, otherActual.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, otherActual.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, otherActual.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, otherActual.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, otherActual.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, otherActual.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, otherActual.mapMap) + val other = other as AllNullableTypesWithoutRecursion + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) } override fun hashCode(): Int { @@ -858,15 +850,15 @@ data class AllClassesWrapper( if (this === other) { return true } - val otherActual = other as AllClassesWrapper - return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, otherActual.allNullableTypes) && + val other = other as AllClassesWrapper + return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && CoreTestsPigeonUtils.deepEquals( - this.allNullableTypesWithoutRecursion, otherActual.allNullableTypesWithoutRecursion) && - CoreTestsPigeonUtils.deepEquals(this.allTypes, otherActual.allTypes) && - CoreTestsPigeonUtils.deepEquals(this.classList, otherActual.classList) && - CoreTestsPigeonUtils.deepEquals(this.nullableClassList, otherActual.nullableClassList) && - CoreTestsPigeonUtils.deepEquals(this.classMap, otherActual.classMap) && - CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, otherActual.nullableClassMap) + this.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && + CoreTestsPigeonUtils.deepEquals(this.allTypes, other.allTypes) && + CoreTestsPigeonUtils.deepEquals(this.classList, other.classList) && + CoreTestsPigeonUtils.deepEquals(this.nullableClassList, other.nullableClassList) && + CoreTestsPigeonUtils.deepEquals(this.classMap, other.classMap) && + CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, other.nullableClassMap) } override fun hashCode(): Int { @@ -908,8 +900,8 @@ data class TestMessage(val testList: List? = null) { if (this === other) { return true } - val otherActual = other as TestMessage - return CoreTestsPigeonUtils.deepEquals(this.testList, otherActual.testList) + val other = other as TestMessage + return CoreTestsPigeonUtils.deepEquals(this.testList, other.testList) } override fun hashCode(): Int { diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt index a8db5f482dd9..3126aa07aa0f 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt @@ -262,49 +262,44 @@ data class EventAllNullableTypes( if (this === other) { return true } - val otherActual = other as EventAllNullableTypes - return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, otherActual.aNullableBool) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, otherActual.aNullableInt) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, otherActual.aNullableInt64) && + val other = other as EventAllNullableTypes + return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullableDouble, otherActual.aNullableDouble) && + this.aNullableByteArray, other.aNullableByteArray) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullableByteArray, otherActual.aNullableByteArray) && + this.aNullable4ByteArray, other.aNullable4ByteArray) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullable4ByteArray, otherActual.aNullable4ByteArray) && + this.aNullable8ByteArray, other.aNullable8ByteArray) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullable8ByteArray, otherActual.aNullable8ByteArray) && + this.aNullableFloatArray, other.aNullableFloatArray) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && EventChannelTestsPigeonUtils.deepEquals( - this.aNullableFloatArray, otherActual.aNullableFloatArray) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, otherActual.aNullableEnum) && + this.anotherNullableEnum, other.anotherNullableEnum) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + EventChannelTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + EventChannelTestsPigeonUtils.deepEquals(this.list, other.list) && + EventChannelTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + EventChannelTestsPigeonUtils.deepEquals(this.intList, other.intList) && + EventChannelTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + EventChannelTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + EventChannelTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + EventChannelTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + EventChannelTestsPigeonUtils.deepEquals(this.listList, other.listList) && + EventChannelTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && EventChannelTestsPigeonUtils.deepEquals( - this.anotherNullableEnum, otherActual.anotherNullableEnum) && - EventChannelTestsPigeonUtils.deepEquals( - this.aNullableString, otherActual.aNullableString) && - EventChannelTestsPigeonUtils.deepEquals( - this.aNullableObject, otherActual.aNullableObject) && - EventChannelTestsPigeonUtils.deepEquals( - this.allNullableTypes, otherActual.allNullableTypes) && - EventChannelTestsPigeonUtils.deepEquals(this.list, otherActual.list) && - EventChannelTestsPigeonUtils.deepEquals(this.stringList, otherActual.stringList) && - EventChannelTestsPigeonUtils.deepEquals(this.intList, otherActual.intList) && - EventChannelTestsPigeonUtils.deepEquals(this.doubleList, otherActual.doubleList) && - EventChannelTestsPigeonUtils.deepEquals(this.boolList, otherActual.boolList) && - EventChannelTestsPigeonUtils.deepEquals(this.enumList, otherActual.enumList) && - EventChannelTestsPigeonUtils.deepEquals(this.objectList, otherActual.objectList) && - EventChannelTestsPigeonUtils.deepEquals(this.listList, otherActual.listList) && - EventChannelTestsPigeonUtils.deepEquals(this.mapList, otherActual.mapList) && - EventChannelTestsPigeonUtils.deepEquals( - this.recursiveClassList, otherActual.recursiveClassList) && - EventChannelTestsPigeonUtils.deepEquals(this.map, otherActual.map) && - EventChannelTestsPigeonUtils.deepEquals(this.stringMap, otherActual.stringMap) && - EventChannelTestsPigeonUtils.deepEquals(this.intMap, otherActual.intMap) && - EventChannelTestsPigeonUtils.deepEquals(this.enumMap, otherActual.enumMap) && - EventChannelTestsPigeonUtils.deepEquals(this.objectMap, otherActual.objectMap) && - EventChannelTestsPigeonUtils.deepEquals(this.listMap, otherActual.listMap) && - EventChannelTestsPigeonUtils.deepEquals(this.mapMap, otherActual.mapMap) && - EventChannelTestsPigeonUtils.deepEquals( - this.recursiveClassMap, otherActual.recursiveClassMap) + this.recursiveClassList, other.recursiveClassList) && + EventChannelTestsPigeonUtils.deepEquals(this.map, other.map) && + EventChannelTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + EventChannelTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + EventChannelTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + EventChannelTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + EventChannelTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + EventChannelTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && + EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) } override fun hashCode(): Int { @@ -371,8 +366,8 @@ data class IntEvent(val value: Long) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as IntEvent - return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) + val other = other as IntEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } override fun hashCode(): Int { @@ -404,8 +399,8 @@ data class StringEvent(val value: String) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as StringEvent - return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) + val other = other as StringEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } override fun hashCode(): Int { @@ -437,8 +432,8 @@ data class BoolEvent(val value: Boolean) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as BoolEvent - return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) + val other = other as BoolEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } override fun hashCode(): Int { @@ -470,8 +465,8 @@ data class DoubleEvent(val value: Double) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as DoubleEvent - return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) + val other = other as DoubleEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } override fun hashCode(): Int { @@ -503,8 +498,8 @@ data class ObjectsEvent(val value: Any) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as ObjectsEvent - return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) + val other = other as ObjectsEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } override fun hashCode(): Int { @@ -536,8 +531,8 @@ data class EnumEvent(val value: EventEnum) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as EnumEvent - return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) + val other = other as EnumEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } override fun hashCode(): Int { @@ -569,8 +564,8 @@ data class ClassEvent(val value: EventAllNullableTypes) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as ClassEvent - return EventChannelTestsPigeonUtils.deepEquals(this.value, otherActual.value) + val other = other as ClassEvent + return EventChannelTestsPigeonUtils.deepEquals(this.value, other.value) } override fun hashCode(): Int { From 5855b23b183dc698c1522ef8e6ace0e266baa5e7 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 17:47:26 -0800 Subject: [PATCH 13/33] fix broken gobject and cpp code --- packages/pigeon/CHANGELOG.md | 2 + .../EventChannelMessages.g.kt | 8 +- .../flutter/pigeon_example_app/Messages.g.kt | 10 +- .../pigeon/example/app/linux/messages.g.cc | 21 +- .../example/app/macos/Runner/messages.g.m | 8 +- .../example/app/windows/runner/messages.g.cpp | 50 +- .../example/app/windows/runner/messages.g.h | 49 +- .../pigeon/lib/src/cpp/cpp_generator.dart | 83 +- .../lib/src/gobject/gobject_generator.dart | 31 +- .../pigeon/lib/src/objc/objc_generator.dart | 12 +- .../CoreTests.gen.m | 18 +- .../linux/pigeon/core_tests.gen.cc | 53 +- .../windows/pigeon/core_tests.gen.cpp | 391 +++--- .../windows/pigeon/core_tests.gen.h | 1093 +++++++++-------- packages/pigeon/test/cpp_generator_test.dart | 40 +- 15 files changed, 959 insertions(+), 910 deletions(-) diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index b06184e7e850..1c1a666ccd39 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -9,6 +9,8 @@ * [kotlin] Fixes compilation error in `equals` method. * [objc] Fixes build failure when helper functions are unused. * [cpp] [gobject] Adds `` include for `std::isnan` support. + * [cpp] Fixes namespace collisions on Windows by fully qualifying `flutter` namespace references. + * [objc] Distinguishes 0.0 and -0.0 in equality and hashing. * [gobject] Fixes `Map` hashing to be order-independent. ## 26.1.10 diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt index 97b66fcbd5dc..efb02f216423 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt @@ -100,8 +100,8 @@ data class IntEvent(val data: Long) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as IntEvent - return EventChannelMessagesPigeonUtils.deepEquals(this.data, otherActual.data) + val other = other as IntEvent + return EventChannelMessagesPigeonUtils.deepEquals(this.data, other.data) } override fun hashCode(): Int { @@ -133,8 +133,8 @@ data class StringEvent(val data: String) : PlatformEvent() { if (this === other) { return true } - val otherActual = other as StringEvent - return EventChannelMessagesPigeonUtils.deepEquals(this.data, otherActual.data) + val other = other as StringEvent + return EventChannelMessagesPigeonUtils.deepEquals(this.data, other.data) } override fun hashCode(): Int { diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index e7847ddd394c..150c29e6c624 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -152,11 +152,11 @@ data class MessageData( if (this === other) { return true } - val otherActual = other as MessageData - return MessagesPigeonUtils.deepEquals(this.name, otherActual.name) && - MessagesPigeonUtils.deepEquals(this.description, otherActual.description) && - MessagesPigeonUtils.deepEquals(this.code, otherActual.code) && - MessagesPigeonUtils.deepEquals(this.data, otherActual.data) + val other = other as MessageData + return MessagesPigeonUtils.deepEquals(this.name, other.name) && + MessagesPigeonUtils.deepEquals(this.description, other.description) && + MessagesPigeonUtils.deepEquals(this.code, other.code) && + MessagesPigeonUtils.deepEquals(this.data, other.data) } override fun hashCode(): Int { diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index a3af7686c264..2ee346f0f981 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -32,7 +32,10 @@ static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { case FL_VALUE_TYPE_FLOAT: { double va = fl_value_get_float(a); double vb = fl_value_get_float(b); - return va == vb || (std::isnan(va) && std::isnan(vb)); + if (va == vb) { + return va != 0.0 || std::signbit(va) == std::signbit(vb); + } + return std::isnan(va) && std::isnan(vb); } case FL_VALUE_TYPE_STRING: return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0; @@ -48,13 +51,13 @@ static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { return fl_value_get_length(a) == fl_value_get_length(b) && memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0; - case FL_VALUE_TYPE_FLOAT_LIST: + case FL_VALUE_TYPE_FLOAT32_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), + memcmp(fl_value_get_float32_list(a), fl_value_get_float32_list(b), fl_value_get_length(a) * sizeof(float)) == 0; - case FL_VALUE_TYPE_DOUBLE_LIST: + case FL_VALUE_TYPE_FLOAT64_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_double_list(a), fl_value_get_double_list(b), + memcmp(fl_value_get_float64_list(a), fl_value_get_float64_list(b), fl_value_get_length(a) * sizeof(double)) == 0; case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); @@ -117,19 +120,19 @@ static guint flpigeon_deep_hash(FlValue* value) { result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); return result; } - case FL_VALUE_TYPE_FLOAT_LIST: { + case FL_VALUE_TYPE_FLOAT32_LIST: { guint result = 1; size_t len = fl_value_get_length(value); - const float* data = fl_value_get_float_list(value); + const float* data = fl_value_get_float32_list(value); for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double((double)data[i]); } return result; } - case FL_VALUE_TYPE_DOUBLE_LIST: { + case FL_VALUE_TYPE_FLOAT64_LIST: { guint result = 1; size_t len = fl_value_get_length(value); - const double* data = fl_value_get_double_list(value); + const double* data = fl_value_get_float64_list(value); for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double(data[i]); } diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index 5118345564e1..c44d5fa139cb 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -23,9 +23,10 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; - if (isnan(na.doubleValue) && isnan(nb.doubleValue)) { - return YES; + if (na.doubleValue == nb.doubleValue) { + return (na.doubleValue != 0.0) || (signbit(na.doubleValue) == signbit(nb.doubleValue)); } + return isnan(na.doubleValue) && isnan(nb.doubleValue); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { NSArray *arrayA = (NSArray *)a; @@ -68,6 +69,9 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { if (isnan(n.doubleValue)) { return (NSUInteger)0x7FF8000000000000; } + if (n.doubleValue == 0.0 && signbit(n.doubleValue)) { + return (NSUInteger)0x8000000000000000; + } } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index 363f345c812d..980857296810 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -19,11 +19,11 @@ #include namespace pigeon_example { -using flutter::BasicMessageChannel; -using flutter::CustomEncodableValue; -using flutter::EncodableList; -using flutter::EncodableMap; -using flutter::EncodableValue; +using ::flutter::BasicMessageChannel; +using ::flutter::CustomEncodableValue; +using ::flutter::EncodableList; +using ::flutter::EncodableMap; +using ::flutter::EncodableValue; FlutterError CreateConnectionError(const std::string channel_name) { return FlutterError( @@ -71,10 +71,10 @@ bool PigeonInternalDeepEquals(const std::optional& a, return PigeonInternalDeepEquals(*a, *b); } -inline bool PigeonInternalDeepEquals(const flutter::EncodableValue& a, - const flutter::EncodableValue& b) { +inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, + const ::flutter::EncodableValue& b) { if (a.type() == b.type() && - a.type() == flutter::EncodableValue::Type::kDouble) { + a.type() == ::flutter::EncodableValue::Type::kDouble) { return PigeonInternalDeepEquals(std::get(a), std::get(b)); } return a == b; @@ -161,7 +161,7 @@ bool MessageData::operator==(const MessageData& other) const { PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( - uint8_t type, flutter::ByteStreamReader* stream) const { + uint8_t type, ::flutter::ByteStreamReader* stream) const { switch (type) { case 129: { const auto& encodable_enum_arg = ReadValue(stream); @@ -176,12 +176,12 @@ EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( std::get(ReadValue(stream)))); } default: - return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); + return ::flutter::StandardCodecSerializer::ReadValueOfType(type, stream); } } void PigeonInternalCodecSerializer::WriteValue( - const EncodableValue& value, flutter::ByteStreamWriter* stream) const { + const EncodableValue& value, ::flutter::ByteStreamWriter* stream) const { if (const CustomEncodableValue* custom_value = std::get_if(&value)) { if (custom_value->type() == typeid(Code)) { @@ -200,23 +200,23 @@ void PigeonInternalCodecSerializer::WriteValue( return; } } - flutter::StandardCodecSerializer::WriteValue(value, stream); + ::flutter::StandardCodecSerializer::WriteValue(value, stream); } /// The codec used by ExampleHostApi. -const flutter::StandardMessageCodec& ExampleHostApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( +const ::flutter::StandardMessageCodec& ExampleHostApi::GetCodec() { + return ::flutter::StandardMessageCodec::GetInstance( &PigeonInternalCodecSerializer::GetInstance()); } // Sets up an instance of `ExampleHostApi` to handle messages through the // `binary_messenger`. -void ExampleHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, +void ExampleHostApi::SetUp(::flutter::BinaryMessenger* binary_messenger, ExampleHostApi* api) { ExampleHostApi::SetUp(binary_messenger, api, ""); } -void ExampleHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, +void ExampleHostApi::SetUp(::flutter::BinaryMessenger* binary_messenger, ExampleHostApi* api, const std::string& message_channel_suffix) { const std::string prepended_suffix = @@ -232,7 +232,7 @@ void ExampleHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { ErrorOr output = api->GetHostLanguage(); if (output.has_error()) { @@ -259,7 +259,7 @@ void ExampleHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_arg = args.at(0); @@ -299,7 +299,7 @@ void ExampleHostApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_message_arg = args.at(0); @@ -343,18 +343,20 @@ EncodableValue ExampleHostApi::WrapError(const FlutterError& error) { // Generated class from Pigeon that represents Flutter messages that can be // called from C++. -MessageFlutterApi::MessageFlutterApi(flutter::BinaryMessenger* binary_messenger) +MessageFlutterApi::MessageFlutterApi( + ::flutter::BinaryMessenger* binary_messenger) : binary_messenger_(binary_messenger), message_channel_suffix_("") {} -MessageFlutterApi::MessageFlutterApi(flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix) +MessageFlutterApi::MessageFlutterApi( + ::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix) : binary_messenger_(binary_messenger), message_channel_suffix_(message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : "") {} -const flutter::StandardMessageCodec& MessageFlutterApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( +const ::flutter::StandardMessageCodec& MessageFlutterApi::GetCodec() { + return ::flutter::StandardMessageCodec::GetInstance( &PigeonInternalCodecSerializer::GetInstance()); } diff --git a/packages/pigeon/example/app/windows/runner/messages.g.h b/packages/pigeon/example/app/windows/runner/messages.g.h index 22bf1a4e344c..bbd518a3c2fb 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.h +++ b/packages/pigeon/example/app/windows/runner/messages.g.h @@ -25,17 +25,17 @@ class FlutterError { explicit FlutterError(const std::string& code, const std::string& message) : code_(code), message_(message) {} explicit FlutterError(const std::string& code, const std::string& message, - const flutter::EncodableValue& details) + const ::flutter::EncodableValue& details) : code_(code), message_(message), details_(details) {} const std::string& code() const { return code_; } const std::string& message() const { return message_; } - const flutter::EncodableValue& details() const { return details_; } + const ::flutter::EncodableValue& details() const { return details_; } private: std::string code_; std::string message_; - flutter::EncodableValue details_; + ::flutter::EncodableValue details_; }; template @@ -65,11 +65,11 @@ enum class Code { kOne = 0, kTwo = 1 }; class MessageData { public: // Constructs an object setting all non-nullable fields. - explicit MessageData(const Code& code, const flutter::EncodableMap& data); + explicit MessageData(const Code& code, const ::flutter::EncodableMap& data); // Constructs an object setting all fields. explicit MessageData(const std::string* name, const std::string* description, - const Code& code, const flutter::EncodableMap& data); + const Code& code, const ::flutter::EncodableMap& data); const std::string* name() const; void set_name(const std::string_view* value_arg); @@ -82,24 +82,25 @@ class MessageData { const Code& code() const; void set_code(const Code& value_arg); - const flutter::EncodableMap& data() const; - void set_data(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& data() const; + void set_data(const ::flutter::EncodableMap& value_arg); bool operator==(const MessageData& other) const; private: - static MessageData FromEncodableList(const flutter::EncodableList& list); - flutter::EncodableList ToEncodableList() const; + static MessageData FromEncodableList(const ::flutter::EncodableList& list); + ::flutter::EncodableList ToEncodableList() const; friend class ExampleHostApi; friend class MessageFlutterApi; friend class PigeonInternalCodecSerializer; std::optional name_; std::optional description_; Code code_; - flutter::EncodableMap data_; + ::flutter::EncodableMap data_; }; -class PigeonInternalCodecSerializer : public flutter::StandardCodecSerializer { +class PigeonInternalCodecSerializer + : public ::flutter::StandardCodecSerializer { public: PigeonInternalCodecSerializer(); inline static PigeonInternalCodecSerializer& GetInstance() { @@ -107,12 +108,12 @@ class PigeonInternalCodecSerializer : public flutter::StandardCodecSerializer { return sInstance; } - void WriteValue(const flutter::EncodableValue& value, - flutter::ByteStreamWriter* stream) const override; + void WriteValue(const ::flutter::EncodableValue& value, + ::flutter::ByteStreamWriter* stream) const override; protected: - flutter::EncodableValue ReadValueOfType( - uint8_t type, flutter::ByteStreamReader* stream) const override; + ::flutter::EncodableValue ReadValueOfType( + uint8_t type, ::flutter::ByteStreamReader* stream) const override; }; // Generated interface from Pigeon that represents a handler of messages from @@ -128,16 +129,16 @@ class ExampleHostApi { std::function reply)> result) = 0; // The codec used by ExampleHostApi. - static const flutter::StandardMessageCodec& GetCodec(); + static const ::flutter::StandardMessageCodec& GetCodec(); // Sets up an instance of `ExampleHostApi` to handle messages through the // `binary_messenger`. - static void SetUp(flutter::BinaryMessenger* binary_messenger, + static void SetUp(::flutter::BinaryMessenger* binary_messenger, ExampleHostApi* api); - static void SetUp(flutter::BinaryMessenger* binary_messenger, + static void SetUp(::flutter::BinaryMessenger* binary_messenger, ExampleHostApi* api, const std::string& message_channel_suffix); - static flutter::EncodableValue WrapError(std::string_view error_message); - static flutter::EncodableValue WrapError(const FlutterError& error); + static ::flutter::EncodableValue WrapError(std::string_view error_message); + static ::flutter::EncodableValue WrapError(const FlutterError& error); protected: ExampleHostApi() = default; @@ -146,16 +147,16 @@ class ExampleHostApi { // called from C++. class MessageFlutterApi { public: - MessageFlutterApi(flutter::BinaryMessenger* binary_messenger); - MessageFlutterApi(flutter::BinaryMessenger* binary_messenger, + MessageFlutterApi(::flutter::BinaryMessenger* binary_messenger); + MessageFlutterApi(::flutter::BinaryMessenger* binary_messenger, const std::string& message_channel_suffix); - static const flutter::StandardMessageCodec& GetCodec(); + static const ::flutter::StandardMessageCodec& GetCodec(); void FlutterMethod(const std::string* a_string, std::function&& on_success, std::function&& on_error); private: - flutter::BinaryMessenger* binary_messenger_; + ::flutter::BinaryMessenger* binary_messenger_; std::string message_channel_suffix_; }; diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 407fe44468b8..ac32a69cf73f 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -20,7 +20,7 @@ const DocumentCommentSpecification _docCommentSpec = DocumentCommentSpecification(_commentPrefix); /// The default serializer for Flutter. -const String _standardCodecSerializer = 'flutter::StandardCodecSerializer'; +const String _standardCodecSerializer = '::flutter::StandardCodecSerializer'; /// The name of the codec serializer. const String _codecSerializerName = '${classNamePrefix}CodecSerializer'; @@ -474,22 +474,22 @@ class CppHeaderGenerator extends StructuredGenerator { indent, 'FromEncodableList', returnType: isOverflowClass - ? 'flutter::EncodableValue' + ? '::flutter::EncodableValue' : classDefinition.name, - parameters: ['const flutter::EncodableList& list'], + parameters: ['const ::flutter::EncodableList& list'], isStatic: true, ); _writeFunctionDeclaration( indent, 'ToEncodableList', - returnType: 'flutter::EncodableList', + returnType: '::flutter::EncodableList', isConst: true, ); if (isOverflowClass) { _writeFunctionDeclaration( indent, 'Unwrap', - returnType: 'flutter::EncodableValue', + returnType: '::flutter::EncodableValue', ); } if (!isOverflowClass && root.requiresOverflowClass) { @@ -564,8 +564,8 @@ class CppHeaderGenerator extends StructuredGenerator { 'WriteValue', returnType: _voidType, parameters: [ - 'const flutter::EncodableValue& value', - 'flutter::ByteStreamWriter* stream', + 'const ::flutter::EncodableValue& value', + '::flutter::ByteStreamWriter* stream', ], isConst: true, isOverride: true, @@ -575,10 +575,10 @@ class CppHeaderGenerator extends StructuredGenerator { _writeFunctionDeclaration( indent, 'ReadValueOfType', - returnType: 'flutter::EncodableValue', + returnType: '::flutter::EncodableValue', parameters: [ 'uint8_t type', - 'flutter::ByteStreamReader* stream', + '::flutter::ByteStreamReader* stream', ], isConst: true, isOverride: true, @@ -611,20 +611,20 @@ class CppHeaderGenerator extends StructuredGenerator { _writeFunctionDeclaration( indent, api.name, - parameters: ['flutter::BinaryMessenger* binary_messenger'], + parameters: ['::flutter::BinaryMessenger* binary_messenger'], ); _writeFunctionDeclaration( indent, api.name, parameters: [ - 'flutter::BinaryMessenger* binary_messenger', + '::flutter::BinaryMessenger* binary_messenger', 'const std::string& message_channel_suffix', ], ); _writeFunctionDeclaration( indent, 'GetCodec', - returnType: 'const flutter::StandardMessageCodec&', + returnType: 'const ::flutter::StandardMessageCodec&', isStatic: true, ); for (final Method func in api.methods) { @@ -664,7 +664,7 @@ class CppHeaderGenerator extends StructuredGenerator { } }); indent.addScoped(' private:', null, () { - indent.writeln('flutter::BinaryMessenger* binary_messenger_;'); + indent.writeln('::flutter::BinaryMessenger* binary_messenger_;'); indent.writeln('std::string message_channel_suffix_;'); }); }, nestCount: 0); @@ -766,7 +766,7 @@ class CppHeaderGenerator extends StructuredGenerator { _writeFunctionDeclaration( indent, 'GetCodec', - returnType: 'const flutter::StandardMessageCodec&', + returnType: 'const ::flutter::StandardMessageCodec&', isStatic: true, ); indent.writeln( @@ -778,7 +778,7 @@ class CppHeaderGenerator extends StructuredGenerator { returnType: _voidType, isStatic: true, parameters: [ - 'flutter::BinaryMessenger* binary_messenger', + '::flutter::BinaryMessenger* binary_messenger', '${api.name}* api', ], ); @@ -788,7 +788,7 @@ class CppHeaderGenerator extends StructuredGenerator { returnType: _voidType, isStatic: true, parameters: [ - 'flutter::BinaryMessenger* binary_messenger', + '::flutter::BinaryMessenger* binary_messenger', '${api.name}* api', 'const std::string& message_channel_suffix', ], @@ -796,14 +796,14 @@ class CppHeaderGenerator extends StructuredGenerator { _writeFunctionDeclaration( indent, 'WrapError', - returnType: 'flutter::EncodableValue', + returnType: '::flutter::EncodableValue', isStatic: true, parameters: ['std::string_view error_message'], ); _writeFunctionDeclaration( indent, 'WrapError', - returnType: 'flutter::EncodableValue', + returnType: '::flutter::EncodableValue', isStatic: true, parameters: ['const FlutterError& error'], ); @@ -847,17 +847,17 @@ class FlutterError { \t\t: code_(code) {} \texplicit FlutterError(const std::string& code, const std::string& message) \t\t: code_(code), message_(message) {} -\texplicit FlutterError(const std::string& code, const std::string& message, const flutter::EncodableValue& details) +\texplicit FlutterError(const std::string& code, const std::string& message, const ::flutter::EncodableValue& details) \t\t: code_(code), message_(message), details_(details) {} \tconst std::string& code() const { return code_; } \tconst std::string& message() const { return message_; } -\tconst flutter::EncodableValue& details() const { return details_; } +\tconst ::flutter::EncodableValue& details() const { return details_; } private: \tstd::string code_; \tstd::string message_; -\tflutter::EncodableValue details_; +\t::flutter::EncodableValue details_; };'''); } @@ -973,11 +973,11 @@ class CppSourceGenerator extends StructuredGenerator { required String dartPackageName, }) { final usingDirectives = [ - 'flutter::BasicMessageChannel', - 'flutter::CustomEncodableValue', - 'flutter::EncodableList', - 'flutter::EncodableMap', - 'flutter::EncodableValue', + '::flutter::BasicMessageChannel', + '::flutter::CustomEncodableValue', + '::flutter::EncodableList', + '::flutter::EncodableMap', + '::flutter::EncodableValue', ]; usingDirectives.sort(); for (final using in usingDirectives) { @@ -1122,8 +1122,8 @@ bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& return PigeonInternalDeepEquals(*a, *b); } -inline bool PigeonInternalDeepEquals(const flutter::EncodableValue& a, const flutter::EncodableValue& b) { - if (a.type() == b.type() && a.type() == flutter::EncodableValue::Type::kDouble) { +inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { + if (a.type() == b.type() && a.type() == ::flutter::EncodableValue::Type::kDouble) { return PigeonInternalDeepEquals(std::get(a), std::get(b)); } return a == b; @@ -1369,7 +1369,10 @@ EncodableValue $_overflowClassName::FromEncodableList( 'ReadValueOfType', scope: _codecSerializerName, returnType: 'EncodableValue', - parameters: ['uint8_t type', 'flutter::ByteStreamReader* stream'], + parameters: [ + 'uint8_t type', + '::flutter::ByteStreamReader* stream', + ], isConst: true, body: () { if (enumeratedTypes.isNotEmpty) { @@ -1407,7 +1410,7 @@ EncodableValue $_overflowClassName::FromEncodableList( returnType: _voidType, parameters: [ 'const EncodableValue& value', - 'flutter::ByteStreamWriter* stream', + '::flutter::ByteStreamWriter* stream', ], isConst: true, body: () { @@ -1465,7 +1468,7 @@ EncodableValue $_overflowClassName::FromEncodableList( indent, api.name, scope: api.name, - parameters: ['flutter::BinaryMessenger* binary_messenger'], + parameters: ['::flutter::BinaryMessenger* binary_messenger'], initializers: [ 'binary_messenger_(binary_messenger)', 'message_channel_suffix_("")', @@ -1476,7 +1479,7 @@ EncodableValue $_overflowClassName::FromEncodableList( api.name, scope: api.name, parameters: [ - 'flutter::BinaryMessenger* binary_messenger', + '::flutter::BinaryMessenger* binary_messenger', 'const std::string& message_channel_suffix', ], initializers: [ @@ -1488,10 +1491,10 @@ EncodableValue $_overflowClassName::FromEncodableList( indent, 'GetCodec', scope: api.name, - returnType: 'const flutter::StandardMessageCodec&', + returnType: 'const ::flutter::StandardMessageCodec&', body: () { indent.writeln( - 'return flutter::StandardMessageCodec::GetInstance(&$_codecSerializerName::GetInstance());', + 'return ::flutter::StandardMessageCodec::GetInstance(&$_codecSerializerName::GetInstance());', ); }, ); @@ -1622,10 +1625,10 @@ EncodableValue $_overflowClassName::FromEncodableList( indent, 'GetCodec', scope: api.name, - returnType: 'const flutter::StandardMessageCodec&', + returnType: 'const ::flutter::StandardMessageCodec&', body: () { indent.writeln( - 'return flutter::StandardMessageCodec::GetInstance(&$_codecSerializerName::GetInstance());', + 'return ::flutter::StandardMessageCodec::GetInstance(&$_codecSerializerName::GetInstance());', ); }, ); @@ -1638,7 +1641,7 @@ EncodableValue $_overflowClassName::FromEncodableList( scope: api.name, returnType: _voidType, parameters: [ - 'flutter::BinaryMessenger* binary_messenger', + '::flutter::BinaryMessenger* binary_messenger', '${api.name}* api', ], body: () { @@ -1651,7 +1654,7 @@ EncodableValue $_overflowClassName::FromEncodableList( scope: api.name, returnType: _voidType, parameters: [ - 'flutter::BinaryMessenger* binary_messenger', + '::flutter::BinaryMessenger* binary_messenger', '${api.name}* api', 'const std::string& message_channel_suffix', ], @@ -1672,7 +1675,7 @@ EncodableValue $_overflowClassName::FromEncodableList( ); indent.writeScoped('if (api != nullptr) {', '} else {', () { indent.write( - 'channel.SetMessageHandler([api](const EncodableValue& message, const flutter::MessageReply& reply) ', + 'channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) ', ); indent.addScoped('{', '});', () { indent.writeScoped('try {', '}', () { @@ -2264,7 +2267,7 @@ String? _baseCppTypeForBuiltinDartType( TypeDeclaration type, { bool includeFlutterNamespace = true, }) { - final flutterNamespace = includeFlutterNamespace ? 'flutter::' : ''; + final flutterNamespace = includeFlutterNamespace ? '::flutter::' : ''; final cppTypeForDartTypeMap = { 'void': 'void', 'bool': 'bool', diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index c9e4c22b8c72..4ed826dfa634 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -2720,7 +2720,7 @@ String _makeFlValue( } else if (type.baseName == 'Float32List') { value = 'fl_value_new_float32_list($variableName, $lengthVariableName)'; } else if (type.baseName == 'Float64List') { - value = 'fl_value_new_float_list($variableName, $lengthVariableName)'; + value = 'fl_value_new_float64_list($variableName, $lengthVariableName)'; } else { throw Exception('Unknown type ${type.baseName}'); } @@ -2759,7 +2759,7 @@ String _fromFlValue(String module, TypeDeclaration type, String variableName) { } else if (type.baseName == 'Float32List') { return 'fl_value_get_float32_list($variableName)'; } else if (type.baseName == 'Float64List') { - return 'fl_value_get_float_list($variableName)'; + return 'fl_value_get_float64_list($variableName)'; } else { throw Exception('Unknown type ${type.baseName}'); } @@ -2800,9 +2800,12 @@ void _writeDeepEquals(Indent indent) { indent.writeln('case FL_VALUE_TYPE_FLOAT: {'); indent.writeln(' double va = fl_value_get_float(a);'); indent.writeln(' double vb = fl_value_get_float(b);'); - indent.writeln( - ' return va == vb || (std::isnan(va) && std::isnan(vb));', - ); + indent.writeScoped('if (va == vb) {', '}', () { + indent.writeln( + 'return va != 0.0 || std::signbit(va) == std::signbit(vb);', + ); + }); + indent.writeln('return std::isnan(va) && std::isnan(vb);'); indent.writeln('}'); indent.writeln('case FL_VALUE_TYPE_STRING:'); indent.writeln( @@ -2829,19 +2832,19 @@ void _writeDeepEquals(Indent indent) { indent.writeln( ' memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0;', ); - indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST:'); + indent.writeln('case FL_VALUE_TYPE_FLOAT32_LIST:'); indent.writeln( ' return fl_value_get_length(a) == fl_value_get_length(b) &&', ); indent.writeln( - ' memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), fl_value_get_length(a) * sizeof(float)) == 0;', + ' memcmp(fl_value_get_float32_list(a), fl_value_get_float32_list(b), fl_value_get_length(a) * sizeof(float)) == 0;', ); - indent.writeln('case FL_VALUE_TYPE_DOUBLE_LIST:'); + indent.writeln('case FL_VALUE_TYPE_FLOAT64_LIST:'); indent.writeln( ' return fl_value_get_length(a) == fl_value_get_length(b) &&', ); indent.writeln( - ' memcmp(fl_value_get_double_list(a), fl_value_get_double_list(b), fl_value_get_length(a) * sizeof(double)) == 0;', + ' memcmp(fl_value_get_float64_list(a), fl_value_get_float64_list(b), fl_value_get_length(a) * sizeof(double)) == 0;', ); indent.writeln('case FL_VALUE_TYPE_LIST: {'); indent.writeln(' size_t len = fl_value_get_length(a);'); @@ -2916,10 +2919,10 @@ void _writeDeepHash(Indent indent) { ); indent.writeln(' return result;'); indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST: {'); + indent.writeln('case FL_VALUE_TYPE_FLOAT32_LIST: {'); indent.writeln(' guint result = 1;'); indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeln(' const float* data = fl_value_get_float_list(value);'); + indent.writeln(' const float* data = fl_value_get_float32_list(value);'); indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { indent.writeln( 'result = result * 31 + flpigeon_hash_double((double)data[i]);', @@ -2927,10 +2930,12 @@ void _writeDeepHash(Indent indent) { }); indent.writeln(' return result;'); indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_DOUBLE_LIST: {'); + indent.writeln('case FL_VALUE_TYPE_FLOAT64_LIST: {'); indent.writeln(' guint result = 1;'); indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeln(' const double* data = fl_value_get_double_list(value);'); + indent.writeln( + ' const double* data = fl_value_get_float64_list(value);', + ); indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { indent.writeln('result = result * 31 + flpigeon_hash_double(data[i]);'); }); diff --git a/packages/pigeon/lib/src/objc/objc_generator.dart b/packages/pigeon/lib/src/objc/objc_generator.dart index c6fc61a7e50e..948bd1a4fa6f 100644 --- a/packages/pigeon/lib/src/objc/objc_generator.dart +++ b/packages/pigeon/lib/src/objc/objc_generator.dart @@ -649,7 +649,7 @@ class ObjcSourceGenerator extends StructuredGenerator { final String name = field.name; if (_usesPrimitive(field.type)) { if (field.type.baseName == 'double') { - return '(self.$name == other.$name || (isnan(self.$name) && isnan(other.$name)))'; + return '((self.$name == other.$name && (self.$name != 0.0 || signbit(self.$name) == signbit(other.$name))) || (isnan(self.$name) && isnan(other.$name)))'; } return 'self.$name == other.$name'; } else { @@ -671,7 +671,7 @@ class ObjcSourceGenerator extends StructuredGenerator { if (_usesPrimitive(field.type)) { if (field.type.baseName == 'double') { indent.writeln( - 'result = result * 31 + (isnan(self.$name) ? (NSUInteger)0x7FF8000000000000 : @(self.$name).hash);', + 'result = result * 31 + (isnan(self.$name) ? (NSUInteger)0x7FF8000000000000 : ((self.$name == 0.0 && signbit(self.$name)) ? (NSUInteger)0x8000000000000000 : @(self.$name).hash));', ); } else { indent.writeln('result = result * 31 + @(self.$name).hash;'); @@ -1682,9 +1682,10 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; - if (isnan(na.doubleValue) && isnan(nb.doubleValue)) { - return YES; + if (na.doubleValue == nb.doubleValue) { + return (na.doubleValue != 0.0) || (signbit(na.doubleValue) == signbit(nb.doubleValue)); } + return isnan(na.doubleValue) && isnan(nb.doubleValue); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { NSArray *arrayA = (NSArray *)a; @@ -1731,6 +1732,9 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { if (isnan(n.doubleValue)) { return (NSUInteger)0x7FF8000000000000; } + if (n.doubleValue == 0.0 && signbit(n.doubleValue)) { + return (NSUInteger)0x8000000000000000; + } } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index 1f9a50de75fb..039be80310ae 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -24,9 +24,10 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; - if (isnan(na.doubleValue) && isnan(nb.doubleValue)) { - return YES; + if (na.doubleValue == nb.doubleValue) { + return (na.doubleValue != 0.0) || (signbit(na.doubleValue) == signbit(nb.doubleValue)); } + return isnan(na.doubleValue) && isnan(nb.doubleValue); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { NSArray *arrayA = (NSArray *)a; @@ -69,6 +70,9 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { if (isnan(n.doubleValue)) { return (NSUInteger)0x7FF8000000000000; } + if (n.doubleValue == 0.0 && signbit(n.doubleValue)) { + return (NSUInteger)0x8000000000000000; + } } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; @@ -342,7 +346,9 @@ - (BOOL)isEqual:(id)object { } FLTAllTypes *other = (FLTAllTypes *)object; return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && - (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && + ((self.aDouble == other.aDouble && + (self.aDouble != 0.0 || signbit(self.aDouble) == signbit(other.aDouble))) || + (isnan(self.aDouble) && isnan(other.aDouble))) && FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && @@ -373,8 +379,10 @@ - (NSUInteger)hash { result = result * 31 + @(self.aBool).hash; result = result * 31 + @(self.anInt).hash; result = result * 31 + @(self.anInt64).hash; - result = - result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); + result = result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 + : ((self.aDouble == 0.0 && signbit(self.aDouble)) + ? (NSUInteger)0x8000000000000000 + : @(self.aDouble).hash)); result = result * 31 + FLTPigeonDeepHash(self.aByteArray); result = result * 31 + FLTPigeonDeepHash(self.a4ByteArray); result = result * 31 + FLTPigeonDeepHash(self.a8ByteArray); diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 4368d6b957a1..6982db66bf66 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -33,7 +33,10 @@ static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { case FL_VALUE_TYPE_FLOAT: { double va = fl_value_get_float(a); double vb = fl_value_get_float(b); - return va == vb || (std::isnan(va) && std::isnan(vb)); + if (va == vb) { + return va != 0.0 || std::signbit(va) == std::signbit(vb); + } + return std::isnan(va) && std::isnan(vb); } case FL_VALUE_TYPE_STRING: return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0; @@ -49,13 +52,13 @@ static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { return fl_value_get_length(a) == fl_value_get_length(b) && memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0; - case FL_VALUE_TYPE_FLOAT_LIST: + case FL_VALUE_TYPE_FLOAT32_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), + memcmp(fl_value_get_float32_list(a), fl_value_get_float32_list(b), fl_value_get_length(a) * sizeof(float)) == 0; - case FL_VALUE_TYPE_DOUBLE_LIST: + case FL_VALUE_TYPE_FLOAT64_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_double_list(a), fl_value_get_double_list(b), + memcmp(fl_value_get_float64_list(a), fl_value_get_float64_list(b), fl_value_get_length(a) * sizeof(double)) == 0; case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); @@ -118,19 +121,19 @@ static guint flpigeon_deep_hash(FlValue* value) { result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); return result; } - case FL_VALUE_TYPE_FLOAT_LIST: { + case FL_VALUE_TYPE_FLOAT32_LIST: { guint result = 1; size_t len = fl_value_get_length(value); - const float* data = fl_value_get_float_list(value); + const float* data = fl_value_get_float32_list(value); for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double((double)data[i]); } return result; } - case FL_VALUE_TYPE_DOUBLE_LIST: { + case FL_VALUE_TYPE_FLOAT64_LIST: { guint result = 1; size_t len = fl_value_get_length(value); - const double* data = fl_value_get_double_list(value); + const double* data = fl_value_get_float64_list(value); for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double(data[i]); } @@ -560,9 +563,9 @@ static FlValue* core_tests_pigeon_test_all_types_to_list( fl_value_append_take( values, fl_value_new_int64_list(self->a8_byte_array, self->a8_byte_array_length)); - fl_value_append_take( - values, - fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); + fl_value_append_take(values, + fl_value_new_float64_list(self->a_float_array, + self->a_float_array_length)); fl_value_append_take( values, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(self->an_enum), @@ -612,7 +615,7 @@ core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { const int64_t* a8_byte_array = fl_value_get_int64_list(value6); size_t a8_byte_array_length = fl_value_get_length(value6); FlValue* value7 = fl_value_get_list_value(values, 7); - const double* a_float_array = fl_value_get_float_list(value7); + const double* a_float_array = fl_value_get_float64_list(value7); size_t a_float_array_length = fl_value_get_length(value7); FlValue* value8 = fl_value_get_list_value(values, 8); CoreTestsPigeonTestAnEnum an_enum = static_cast( @@ -1398,11 +1401,11 @@ static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( ? fl_value_new_int64_list(self->a_nullable8_byte_array, self->a_nullable8_byte_array_length) : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable_float_array != nullptr - ? fl_value_new_float_list(self->a_nullable_float_array, - self->a_nullable_float_array_length) - : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_float_array != nullptr + ? fl_value_new_float64_list( + self->a_nullable_float_array, + self->a_nullable_float_array_length) + : fl_value_new_null()); fl_value_append_take( values, self->a_nullable_enum != nullptr @@ -1540,7 +1543,7 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { const double* a_nullable_float_array = nullptr; size_t a_nullable_float_array_length = 0; if (fl_value_get_type(value7) != FL_VALUE_TYPE_NULL) { - a_nullable_float_array = fl_value_get_float_list(value7); + a_nullable_float_array = fl_value_get_float64_list(value7); a_nullable_float_array_length = fl_value_get_length(value7); } FlValue* value8 = fl_value_get_list_value(values, 8); @@ -2468,11 +2471,11 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( ? fl_value_new_int64_list(self->a_nullable8_byte_array, self->a_nullable8_byte_array_length) : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable_float_array != nullptr - ? fl_value_new_float_list(self->a_nullable_float_array, - self->a_nullable_float_array_length) - : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_float_array != nullptr + ? fl_value_new_float64_list( + self->a_nullable_float_array, + self->a_nullable_float_array_length) + : fl_value_new_null()); fl_value_append_take( values, self->a_nullable_enum != nullptr @@ -2599,7 +2602,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( const double* a_nullable_float_array = nullptr; size_t a_nullable_float_array_length = 0; if (fl_value_get_type(value7) != FL_VALUE_TYPE_NULL) { - a_nullable_float_array = fl_value_get_float_list(value7); + a_nullable_float_array = fl_value_get_float64_list(value7); a_nullable_float_array_length = fl_value_get_length(value7); } FlValue* value8 = fl_value_get_list_value(values, 8); diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 31562d0dbb97..7c94f25d65f9 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -20,11 +20,11 @@ #include namespace core_tests_pigeontest { -using flutter::BasicMessageChannel; -using flutter::CustomEncodableValue; -using flutter::EncodableList; -using flutter::EncodableMap; -using flutter::EncodableValue; +using ::flutter::BasicMessageChannel; +using ::flutter::CustomEncodableValue; +using ::flutter::EncodableList; +using ::flutter::EncodableMap; +using ::flutter::EncodableValue; FlutterError CreateConnectionError(const std::string channel_name) { return FlutterError( @@ -72,10 +72,10 @@ bool PigeonInternalDeepEquals(const std::optional& a, return PigeonInternalDeepEquals(*a, *b); } -inline bool PigeonInternalDeepEquals(const flutter::EncodableValue& a, - const flutter::EncodableValue& b) { +inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, + const ::flutter::EncodableValue& b) { if (a.type() == b.type() && - a.type() == flutter::EncodableValue::Type::kDouble) { + a.type() == ::flutter::EncodableValue::Type::kDouble) { return PigeonInternalDeepEquals(std::get(a), std::get(b)); } return a == b; @@ -2307,7 +2307,7 @@ bool TestMessage::operator==(const TestMessage& other) const { PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( - uint8_t type, flutter::ByteStreamReader* stream) const { + uint8_t type, ::flutter::ByteStreamReader* stream) const { switch (type) { case 129: { const auto& encodable_enum_arg = ReadValue(stream); @@ -2352,12 +2352,12 @@ EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( std::get(ReadValue(stream)))); } default: - return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); + return ::flutter::StandardCodecSerializer::ReadValueOfType(type, stream); } } void PigeonInternalCodecSerializer::WriteValue( - const EncodableValue& value, flutter::ByteStreamWriter* stream) const { + const EncodableValue& value, ::flutter::ByteStreamWriter* stream) const { if (const CustomEncodableValue* custom_value = std::get_if(&value)) { if (custom_value->type() == typeid(AnEnum)) { @@ -2421,23 +2421,23 @@ void PigeonInternalCodecSerializer::WriteValue( return; } } - flutter::StandardCodecSerializer::WriteValue(value, stream); + ::flutter::StandardCodecSerializer::WriteValue(value, stream); } /// The codec used by HostIntegrationCoreApi. -const flutter::StandardMessageCodec& HostIntegrationCoreApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( +const ::flutter::StandardMessageCodec& HostIntegrationCoreApi::GetCodec() { + return ::flutter::StandardMessageCodec::GetInstance( &PigeonInternalCodecSerializer::GetInstance()); } // Sets up an instance of `HostIntegrationCoreApi` to handle messages through // the `binary_messenger`. -void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, +void HostIntegrationCoreApi::SetUp(::flutter::BinaryMessenger* binary_messenger, HostIntegrationCoreApi* api) { HostIntegrationCoreApi::SetUp(binary_messenger, api, ""); } -void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, +void HostIntegrationCoreApi::SetUp(::flutter::BinaryMessenger* binary_messenger, HostIntegrationCoreApi* api, const std::string& message_channel_suffix) { const std::string prepended_suffix = @@ -2453,7 +2453,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { std::optional output = api->Noop(); if (output.has_value()) { @@ -2480,7 +2480,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -2516,7 +2516,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { ErrorOr> output = api->ThrowError(); if (output.has_error()) { @@ -2549,7 +2549,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { std::optional output = api->ThrowErrorFromVoid(); if (output.has_value()) { @@ -2576,7 +2576,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { ErrorOr> output = api->ThrowFlutterError(); @@ -2610,7 +2610,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_int_arg = args.at(0); @@ -2644,7 +2644,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_double_arg = args.at(0); @@ -2679,7 +2679,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_bool_arg = args.at(0); @@ -2713,7 +2713,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); @@ -2748,7 +2748,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_uint8_list_arg = args.at(0); @@ -2784,7 +2784,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_object_arg = args.at(0); @@ -2818,7 +2818,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_list_arg = args.at(0); @@ -2853,7 +2853,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -2888,7 +2888,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -2924,7 +2924,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -2961,7 +2961,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -2997,7 +2997,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_map_arg = args.at(0); @@ -3031,7 +3031,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -3066,7 +3066,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -3101,7 +3101,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -3136,7 +3136,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -3172,7 +3172,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -3208,7 +3208,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -3244,7 +3244,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -3280,7 +3280,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -3316,7 +3316,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_wrapper_arg = args.at(0); @@ -3353,7 +3353,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_enum_arg = args.at(0); @@ -3389,7 +3389,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_another_enum_arg = args.at(0); @@ -3427,7 +3427,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); @@ -3464,7 +3464,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_double_arg = args.at(0); @@ -3500,7 +3500,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_int_arg = args.at(0); @@ -3535,7 +3535,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -3576,10 +3576,9 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api]( - const EncodableValue& message, - const flutter::MessageReply& - reply) { + channel.SetMessageHandler([api](const EncodableValue& message, + const ::flutter::MessageReply< + EncodableValue>& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -3622,7 +3621,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_wrapper_arg = args.at(0); @@ -3665,7 +3664,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_nullable_string_arg = args.at(0); @@ -3699,7 +3698,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_bool_arg = args.at(0); @@ -3740,7 +3739,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_bool_arg = args.at(0); @@ -3781,7 +3780,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_int_arg = args.at(0); @@ -3819,7 +3818,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_double_arg = args.at(0); @@ -3857,7 +3856,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_bool_arg = args.at(0); @@ -3895,7 +3894,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_string_arg = args.at(0); @@ -3934,7 +3933,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_uint8_list_arg = args.at(0); @@ -3973,7 +3972,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_object_arg = args.at(0); @@ -4011,7 +4010,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_list_arg = args.at(0); @@ -4050,7 +4049,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -4089,7 +4088,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -4128,7 +4127,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -4167,7 +4166,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -4205,7 +4204,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_map_arg = args.at(0); @@ -4244,7 +4243,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -4282,7 +4281,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -4320,7 +4319,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -4359,7 +4358,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -4398,7 +4397,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -4437,7 +4436,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -4476,7 +4475,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -4515,7 +4514,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -4553,7 +4552,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_enum_arg = args.at(0); @@ -4597,7 +4596,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_another_enum_arg = args.at(0); @@ -4642,7 +4641,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_int_arg = args.at(0); @@ -4681,7 +4680,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_string_arg = args.at(0); @@ -4719,7 +4718,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { api->NoopAsync([reply](std::optional&& output) { if (output.has_value()) { @@ -4747,7 +4746,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_int_arg = args.at(0); @@ -4783,7 +4782,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_double_arg = args.at(0); @@ -4821,7 +4820,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_bool_arg = args.at(0); @@ -4857,7 +4856,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); @@ -4895,7 +4894,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_uint8_list_arg = args.at(0); @@ -4934,7 +4933,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_object_arg = args.at(0); @@ -4971,7 +4970,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_list_arg = args.at(0); @@ -5009,7 +5008,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -5047,7 +5046,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -5085,7 +5084,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_map_arg = args.at(0); @@ -5122,7 +5121,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -5160,7 +5159,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -5198,7 +5197,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -5236,7 +5235,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -5274,7 +5273,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_enum_arg = args.at(0); @@ -5313,7 +5312,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_another_enum_arg = args.at(0); @@ -5351,7 +5350,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { api->ThrowAsyncError( [reply](ErrorOr>&& output) { @@ -5387,7 +5386,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { api->ThrowAsyncErrorFromVoid( [reply](std::optional&& output) { @@ -5417,7 +5416,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { api->ThrowAsyncFlutterError( [reply](ErrorOr>&& output) { @@ -5452,7 +5451,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -5491,7 +5490,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -5534,10 +5533,9 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api]( - const EncodableValue& message, - const flutter::MessageReply& - reply) { + channel.SetMessageHandler([api](const EncodableValue& message, + const ::flutter::MessageReply< + EncodableValue>& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -5583,7 +5581,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_int_arg = args.at(0); @@ -5624,7 +5622,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_double_arg = args.at(0); @@ -5665,7 +5663,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_bool_arg = args.at(0); @@ -5704,7 +5702,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); @@ -5745,7 +5743,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_uint8_list_arg = args.at(0); @@ -5787,7 +5785,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_object_arg = args.at(0); @@ -5827,7 +5825,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_list_arg = args.at(0); @@ -5868,7 +5866,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -5909,7 +5907,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -5950,7 +5948,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_map_arg = args.at(0); @@ -5991,7 +5989,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -6032,7 +6030,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -6073,7 +6071,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -6114,7 +6112,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -6155,7 +6153,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_enum_arg = args.at(0); @@ -6201,7 +6199,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_another_enum_arg = args.at(0); @@ -6246,7 +6244,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { ErrorOr output = api->DefaultIsMainThread(); if (output.has_error()) { @@ -6274,7 +6272,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { ErrorOr output = api->TaskQueueIsBackgroundThread(); if (output.has_error()) { @@ -6301,7 +6299,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { api->CallFlutterNoop( [reply](std::optional&& output) { @@ -6331,7 +6329,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { api->CallFlutterThrowError( [reply](ErrorOr>&& output) { @@ -6367,7 +6365,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { api->CallFlutterThrowErrorFromVoid( [reply](std::optional&& output) { @@ -6397,7 +6395,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -6436,7 +6434,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -6481,7 +6479,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_bool_arg = args.at(0); @@ -6522,10 +6520,9 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api]( - const EncodableValue& message, - const flutter::MessageReply& - reply) { + channel.SetMessageHandler([api](const EncodableValue& message, + const ::flutter::MessageReply< + EncodableValue>& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); @@ -6571,7 +6568,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_nullable_bool_arg = args.at(0); @@ -6613,7 +6610,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_bool_arg = args.at(0); @@ -6650,7 +6647,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_int_arg = args.at(0); @@ -6688,7 +6685,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_double_arg = args.at(0); @@ -6727,7 +6724,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); @@ -6766,7 +6763,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_list_arg = args.at(0); @@ -6804,7 +6801,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_list_arg = args.at(0); @@ -6843,7 +6840,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -6882,7 +6879,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -6921,7 +6918,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -6960,7 +6957,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -6998,7 +6995,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_map_arg = args.at(0); @@ -7036,7 +7033,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -7075,7 +7072,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -7114,7 +7111,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -7153,7 +7150,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -7192,7 +7189,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -7231,7 +7228,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -7270,7 +7267,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -7309,7 +7306,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -7347,7 +7344,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_enum_arg = args.at(0); @@ -7386,7 +7383,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_another_enum_arg = args.at(0); @@ -7425,7 +7422,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_bool_arg = args.at(0); @@ -7464,7 +7461,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_int_arg = args.at(0); @@ -7505,7 +7502,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_double_arg = args.at(0); @@ -7546,7 +7543,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); @@ -7587,7 +7584,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_list_arg = args.at(0); @@ -7629,7 +7626,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_list_arg = args.at(0); @@ -7670,7 +7667,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -7711,7 +7708,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -7752,7 +7749,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_list_arg = args.at(0); @@ -7793,7 +7790,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_list_arg = args.at(0); @@ -7834,7 +7831,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_map_arg = args.at(0); @@ -7875,7 +7872,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -7916,7 +7913,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -7957,7 +7954,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -7998,7 +7995,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -8039,7 +8036,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_string_map_arg = args.at(0); @@ -8080,7 +8077,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_int_map_arg = args.at(0); @@ -8121,7 +8118,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_enum_map_arg = args.at(0); @@ -8162,7 +8159,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_class_map_arg = args.at(0); @@ -8203,7 +8200,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_an_enum_arg = args.at(0); @@ -8249,7 +8246,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_another_enum_arg = args.at(0); @@ -8295,7 +8292,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); @@ -8342,19 +8339,19 @@ EncodableValue HostIntegrationCoreApi::WrapError(const FlutterError& error) { // Generated class from Pigeon that represents Flutter messages that can be // called from C++. FlutterIntegrationCoreApi::FlutterIntegrationCoreApi( - flutter::BinaryMessenger* binary_messenger) + ::flutter::BinaryMessenger* binary_messenger) : binary_messenger_(binary_messenger), message_channel_suffix_("") {} FlutterIntegrationCoreApi::FlutterIntegrationCoreApi( - flutter::BinaryMessenger* binary_messenger, + ::flutter::BinaryMessenger* binary_messenger, const std::string& message_channel_suffix) : binary_messenger_(binary_messenger), message_channel_suffix_(message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : "") {} -const flutter::StandardMessageCodec& FlutterIntegrationCoreApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( +const ::flutter::StandardMessageCodec& FlutterIntegrationCoreApi::GetCodec() { + return ::flutter::StandardMessageCodec::GetInstance( &PigeonInternalCodecSerializer::GetInstance()); } @@ -10336,19 +10333,19 @@ void FlutterIntegrationCoreApi::EchoAsyncString( } /// The codec used by HostTrivialApi. -const flutter::StandardMessageCodec& HostTrivialApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( +const ::flutter::StandardMessageCodec& HostTrivialApi::GetCodec() { + return ::flutter::StandardMessageCodec::GetInstance( &PigeonInternalCodecSerializer::GetInstance()); } // Sets up an instance of `HostTrivialApi` to handle messages through the // `binary_messenger`. -void HostTrivialApi::SetUp(flutter::BinaryMessenger* binary_messenger, +void HostTrivialApi::SetUp(::flutter::BinaryMessenger* binary_messenger, HostTrivialApi* api) { HostTrivialApi::SetUp(binary_messenger, api, ""); } -void HostTrivialApi::SetUp(flutter::BinaryMessenger* binary_messenger, +void HostTrivialApi::SetUp(::flutter::BinaryMessenger* binary_messenger, HostTrivialApi* api, const std::string& message_channel_suffix) { const std::string prepended_suffix = @@ -10364,7 +10361,7 @@ void HostTrivialApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { std::optional output = api->Noop(); if (output.has_value()) { @@ -10397,19 +10394,19 @@ EncodableValue HostTrivialApi::WrapError(const FlutterError& error) { } /// The codec used by HostSmallApi. -const flutter::StandardMessageCodec& HostSmallApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( +const ::flutter::StandardMessageCodec& HostSmallApi::GetCodec() { + return ::flutter::StandardMessageCodec::GetInstance( &PigeonInternalCodecSerializer::GetInstance()); } // Sets up an instance of `HostSmallApi` to handle messages through the // `binary_messenger`. -void HostSmallApi::SetUp(flutter::BinaryMessenger* binary_messenger, +void HostSmallApi::SetUp(::flutter::BinaryMessenger* binary_messenger, HostSmallApi* api) { HostSmallApi::SetUp(binary_messenger, api, ""); } -void HostSmallApi::SetUp(flutter::BinaryMessenger* binary_messenger, +void HostSmallApi::SetUp(::flutter::BinaryMessenger* binary_messenger, HostSmallApi* api, const std::string& message_channel_suffix) { const std::string prepended_suffix = @@ -10425,7 +10422,7 @@ void HostSmallApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); @@ -10462,7 +10459,7 @@ void HostSmallApi::SetUp(flutter::BinaryMessenger* binary_messenger, if (api != nullptr) { channel.SetMessageHandler( [api](const EncodableValue& message, - const flutter::MessageReply& reply) { + const ::flutter::MessageReply& reply) { try { api->VoidVoid([reply](std::optional&& output) { if (output.has_value()) { @@ -10497,18 +10494,18 @@ EncodableValue HostSmallApi::WrapError(const FlutterError& error) { // Generated class from Pigeon that represents Flutter messages that can be // called from C++. -FlutterSmallApi::FlutterSmallApi(flutter::BinaryMessenger* binary_messenger) +FlutterSmallApi::FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger) : binary_messenger_(binary_messenger), message_channel_suffix_("") {} -FlutterSmallApi::FlutterSmallApi(flutter::BinaryMessenger* binary_messenger, +FlutterSmallApi::FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger, const std::string& message_channel_suffix) : binary_messenger_(binary_messenger), message_channel_suffix_(message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : "") {} -const flutter::StandardMessageCodec& FlutterSmallApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( +const ::flutter::StandardMessageCodec& FlutterSmallApi::GetCodec() { + return ::flutter::StandardMessageCodec::GetInstance( &PigeonInternalCodecSerializer::GetInstance()); } diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index 16ab58653477..753b85d1e232 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -28,17 +28,17 @@ class FlutterError { explicit FlutterError(const std::string& code, const std::string& message) : code_(code), message_(message) {} explicit FlutterError(const std::string& code, const std::string& message, - const flutter::EncodableValue& details) + const ::flutter::EncodableValue& details) : code_(code), message_(message), details_(details) {} const std::string& code() const { return code_; } const std::string& message() const { return message_; } - const flutter::EncodableValue& details() const { return details_; } + const ::flutter::EncodableValue& details() const { return details_; } private: std::string code_; std::string message_; - flutter::EncodableValue details_; + ::flutter::EncodableValue details_; }; template @@ -82,17 +82,17 @@ class UnusedClass { UnusedClass(); // Constructs an object setting all fields. - explicit UnusedClass(const flutter::EncodableValue* a_field); + explicit UnusedClass(const ::flutter::EncodableValue* a_field); - const flutter::EncodableValue* a_field() const; - void set_a_field(const flutter::EncodableValue* value_arg); - void set_a_field(const flutter::EncodableValue& value_arg); + const ::flutter::EncodableValue* a_field() const; + void set_a_field(const ::flutter::EncodableValue* value_arg); + void set_a_field(const ::flutter::EncodableValue& value_arg); bool operator==(const UnusedClass& other) const; private: - static UnusedClass FromEncodableList(const flutter::EncodableList& list); - flutter::EncodableList ToEncodableList() const; + static UnusedClass FromEncodableList(const ::flutter::EncodableList& list); + ::flutter::EncodableList ToEncodableList() const; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; friend class HostTrivialApi; @@ -100,7 +100,7 @@ class UnusedClass { friend class FlutterSmallApi; friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; - std::optional a_field_; + std::optional<::flutter::EncodableValue> a_field_; }; // A class containing all supported types. @@ -116,23 +116,23 @@ class AllTypes { const std::vector& a_float_array, const AnEnum& an_enum, const AnotherEnum& another_enum, const std::string& a_string, - const flutter::EncodableValue& an_object, - const flutter::EncodableList& list, - const flutter::EncodableList& string_list, - const flutter::EncodableList& int_list, - const flutter::EncodableList& double_list, - const flutter::EncodableList& bool_list, - const flutter::EncodableList& enum_list, - const flutter::EncodableList& object_list, - const flutter::EncodableList& list_list, - const flutter::EncodableList& map_list, - const flutter::EncodableMap& map, - const flutter::EncodableMap& string_map, - const flutter::EncodableMap& int_map, - const flutter::EncodableMap& enum_map, - const flutter::EncodableMap& object_map, - const flutter::EncodableMap& list_map, - const flutter::EncodableMap& map_map); + const ::flutter::EncodableValue& an_object, + const ::flutter::EncodableList& list, + const ::flutter::EncodableList& string_list, + const ::flutter::EncodableList& int_list, + const ::flutter::EncodableList& double_list, + const ::flutter::EncodableList& bool_list, + const ::flutter::EncodableList& enum_list, + const ::flutter::EncodableList& object_list, + const ::flutter::EncodableList& list_list, + const ::flutter::EncodableList& map_list, + const ::flutter::EncodableMap& map, + const ::flutter::EncodableMap& string_map, + const ::flutter::EncodableMap& int_map, + const ::flutter::EncodableMap& enum_map, + const ::flutter::EncodableMap& object_map, + const ::flutter::EncodableMap& list_map, + const ::flutter::EncodableMap& map_map); bool a_bool() const; void set_a_bool(bool value_arg); @@ -167,62 +167,62 @@ class AllTypes { const std::string& a_string() const; void set_a_string(std::string_view value_arg); - const flutter::EncodableValue& an_object() const; - void set_an_object(const flutter::EncodableValue& value_arg); + const ::flutter::EncodableValue& an_object() const; + void set_an_object(const ::flutter::EncodableValue& value_arg); - const flutter::EncodableList& list() const; - void set_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& list() const; + void set_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList& string_list() const; - void set_string_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& string_list() const; + void set_string_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList& int_list() const; - void set_int_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& int_list() const; + void set_int_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList& double_list() const; - void set_double_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& double_list() const; + void set_double_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList& bool_list() const; - void set_bool_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& bool_list() const; + void set_bool_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList& enum_list() const; - void set_enum_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& enum_list() const; + void set_enum_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList& object_list() const; - void set_object_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& object_list() const; + void set_object_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList& list_list() const; - void set_list_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& list_list() const; + void set_list_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList& map_list() const; - void set_map_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& map_list() const; + void set_map_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableMap& map() const; - void set_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& map() const; + void set_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap& string_map() const; - void set_string_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& string_map() const; + void set_string_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap& int_map() const; - void set_int_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& int_map() const; + void set_int_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap& enum_map() const; - void set_enum_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& enum_map() const; + void set_enum_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap& object_map() const; - void set_object_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& object_map() const; + void set_object_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap& list_map() const; - void set_list_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& list_map() const; + void set_list_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap& map_map() const; - void set_map_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& map_map() const; + void set_map_map(const ::flutter::EncodableMap& value_arg); bool operator==(const AllTypes& other) const; private: - static AllTypes FromEncodableList(const flutter::EncodableList& list); - flutter::EncodableList ToEncodableList() const; + static AllTypes FromEncodableList(const ::flutter::EncodableList& list); + ::flutter::EncodableList ToEncodableList() const; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -242,23 +242,23 @@ class AllTypes { AnEnum an_enum_; AnotherEnum another_enum_; std::string a_string_; - flutter::EncodableValue an_object_; - flutter::EncodableList list_; - flutter::EncodableList string_list_; - flutter::EncodableList int_list_; - flutter::EncodableList double_list_; - flutter::EncodableList bool_list_; - flutter::EncodableList enum_list_; - flutter::EncodableList object_list_; - flutter::EncodableList list_list_; - flutter::EncodableList map_list_; - flutter::EncodableMap map_; - flutter::EncodableMap string_map_; - flutter::EncodableMap int_map_; - flutter::EncodableMap enum_map_; - flutter::EncodableMap object_map_; - flutter::EncodableMap list_map_; - flutter::EncodableMap map_map_; + ::flutter::EncodableValue an_object_; + ::flutter::EncodableList list_; + ::flutter::EncodableList string_list_; + ::flutter::EncodableList int_list_; + ::flutter::EncodableList double_list_; + ::flutter::EncodableList bool_list_; + ::flutter::EncodableList enum_list_; + ::flutter::EncodableList object_list_; + ::flutter::EncodableList list_list_; + ::flutter::EncodableList map_list_; + ::flutter::EncodableMap map_; + ::flutter::EncodableMap string_map_; + ::flutter::EncodableMap int_map_; + ::flutter::EncodableMap enum_map_; + ::flutter::EncodableMap object_map_; + ::flutter::EncodableMap list_map_; + ::flutter::EncodableMap map_map_; }; // A class containing all supported nullable types. @@ -279,25 +279,26 @@ class AllNullableTypes { const std::vector* a_nullable_float_array, const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, const std::string* a_nullable_string, - const flutter::EncodableValue* a_nullable_object, + const ::flutter::EncodableValue* a_nullable_object, const AllNullableTypes* all_nullable_types, - const flutter::EncodableList* list, - const flutter::EncodableList* string_list, - const flutter::EncodableList* int_list, - const flutter::EncodableList* double_list, - const flutter::EncodableList* bool_list, - const flutter::EncodableList* enum_list, - const flutter::EncodableList* object_list, - const flutter::EncodableList* list_list, - const flutter::EncodableList* map_list, - const flutter::EncodableList* recursive_class_list, - const flutter::EncodableMap* map, const flutter::EncodableMap* string_map, - const flutter::EncodableMap* int_map, - const flutter::EncodableMap* enum_map, - const flutter::EncodableMap* object_map, - const flutter::EncodableMap* list_map, - const flutter::EncodableMap* map_map, - const flutter::EncodableMap* recursive_class_map); + const ::flutter::EncodableList* list, + const ::flutter::EncodableList* string_list, + const ::flutter::EncodableList* int_list, + const ::flutter::EncodableList* double_list, + const ::flutter::EncodableList* bool_list, + const ::flutter::EncodableList* enum_list, + const ::flutter::EncodableList* object_list, + const ::flutter::EncodableList* list_list, + const ::flutter::EncodableList* map_list, + const ::flutter::EncodableList* recursive_class_list, + const ::flutter::EncodableMap* map, + const ::flutter::EncodableMap* string_map, + const ::flutter::EncodableMap* int_map, + const ::flutter::EncodableMap* enum_map, + const ::flutter::EncodableMap* object_map, + const ::flutter::EncodableMap* list_map, + const ::flutter::EncodableMap* map_map, + const ::flutter::EncodableMap* recursive_class_map); ~AllNullableTypes() = default; AllNullableTypes(const AllNullableTypes& other); @@ -348,91 +349,92 @@ class AllNullableTypes { void set_a_nullable_string(const std::string_view* value_arg); void set_a_nullable_string(std::string_view value_arg); - const flutter::EncodableValue* a_nullable_object() const; - void set_a_nullable_object(const flutter::EncodableValue* value_arg); - void set_a_nullable_object(const flutter::EncodableValue& value_arg); + const ::flutter::EncodableValue* a_nullable_object() const; + void set_a_nullable_object(const ::flutter::EncodableValue* value_arg); + void set_a_nullable_object(const ::flutter::EncodableValue& value_arg); const AllNullableTypes* all_nullable_types() const; void set_all_nullable_types(const AllNullableTypes* value_arg); void set_all_nullable_types(const AllNullableTypes& value_arg); - const flutter::EncodableList* list() const; - void set_list(const flutter::EncodableList* value_arg); - void set_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* list() const; + void set_list(const ::flutter::EncodableList* value_arg); + void set_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* string_list() const; - void set_string_list(const flutter::EncodableList* value_arg); - void set_string_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* string_list() const; + void set_string_list(const ::flutter::EncodableList* value_arg); + void set_string_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* int_list() const; - void set_int_list(const flutter::EncodableList* value_arg); - void set_int_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* int_list() const; + void set_int_list(const ::flutter::EncodableList* value_arg); + void set_int_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* double_list() const; - void set_double_list(const flutter::EncodableList* value_arg); - void set_double_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* double_list() const; + void set_double_list(const ::flutter::EncodableList* value_arg); + void set_double_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* bool_list() const; - void set_bool_list(const flutter::EncodableList* value_arg); - void set_bool_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* bool_list() const; + void set_bool_list(const ::flutter::EncodableList* value_arg); + void set_bool_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* enum_list() const; - void set_enum_list(const flutter::EncodableList* value_arg); - void set_enum_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* enum_list() const; + void set_enum_list(const ::flutter::EncodableList* value_arg); + void set_enum_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* object_list() const; - void set_object_list(const flutter::EncodableList* value_arg); - void set_object_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* object_list() const; + void set_object_list(const ::flutter::EncodableList* value_arg); + void set_object_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* list_list() const; - void set_list_list(const flutter::EncodableList* value_arg); - void set_list_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* list_list() const; + void set_list_list(const ::flutter::EncodableList* value_arg); + void set_list_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* map_list() const; - void set_map_list(const flutter::EncodableList* value_arg); - void set_map_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* map_list() const; + void set_map_list(const ::flutter::EncodableList* value_arg); + void set_map_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* recursive_class_list() const; - void set_recursive_class_list(const flutter::EncodableList* value_arg); - void set_recursive_class_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* recursive_class_list() const; + void set_recursive_class_list(const ::flutter::EncodableList* value_arg); + void set_recursive_class_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableMap* map() const; - void set_map(const flutter::EncodableMap* value_arg); - void set_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* map() const; + void set_map(const ::flutter::EncodableMap* value_arg); + void set_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* string_map() const; - void set_string_map(const flutter::EncodableMap* value_arg); - void set_string_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* string_map() const; + void set_string_map(const ::flutter::EncodableMap* value_arg); + void set_string_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* int_map() const; - void set_int_map(const flutter::EncodableMap* value_arg); - void set_int_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* int_map() const; + void set_int_map(const ::flutter::EncodableMap* value_arg); + void set_int_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* enum_map() const; - void set_enum_map(const flutter::EncodableMap* value_arg); - void set_enum_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* enum_map() const; + void set_enum_map(const ::flutter::EncodableMap* value_arg); + void set_enum_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* object_map() const; - void set_object_map(const flutter::EncodableMap* value_arg); - void set_object_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* object_map() const; + void set_object_map(const ::flutter::EncodableMap* value_arg); + void set_object_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* list_map() const; - void set_list_map(const flutter::EncodableMap* value_arg); - void set_list_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* list_map() const; + void set_list_map(const ::flutter::EncodableMap* value_arg); + void set_list_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* map_map() const; - void set_map_map(const flutter::EncodableMap* value_arg); - void set_map_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* map_map() const; + void set_map_map(const ::flutter::EncodableMap* value_arg); + void set_map_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* recursive_class_map() const; - void set_recursive_class_map(const flutter::EncodableMap* value_arg); - void set_recursive_class_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* recursive_class_map() const; + void set_recursive_class_map(const ::flutter::EncodableMap* value_arg); + void set_recursive_class_map(const ::flutter::EncodableMap& value_arg); bool operator==(const AllNullableTypes& other) const; private: - static AllNullableTypes FromEncodableList(const flutter::EncodableList& list); - flutter::EncodableList ToEncodableList() const; + static AllNullableTypes FromEncodableList( + const ::flutter::EncodableList& list); + ::flutter::EncodableList ToEncodableList() const; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -452,26 +454,26 @@ class AllNullableTypes { std::optional a_nullable_enum_; std::optional another_nullable_enum_; std::optional a_nullable_string_; - std::optional a_nullable_object_; + std::optional<::flutter::EncodableValue> a_nullable_object_; std::unique_ptr all_nullable_types_; - std::optional list_; - std::optional string_list_; - std::optional int_list_; - std::optional double_list_; - std::optional bool_list_; - std::optional enum_list_; - std::optional object_list_; - std::optional list_list_; - std::optional map_list_; - std::optional recursive_class_list_; - std::optional map_; - std::optional string_map_; - std::optional int_map_; - std::optional enum_map_; - std::optional object_map_; - std::optional list_map_; - std::optional map_map_; - std::optional recursive_class_map_; + std::optional<::flutter::EncodableList> list_; + std::optional<::flutter::EncodableList> string_list_; + std::optional<::flutter::EncodableList> int_list_; + std::optional<::flutter::EncodableList> double_list_; + std::optional<::flutter::EncodableList> bool_list_; + std::optional<::flutter::EncodableList> enum_list_; + std::optional<::flutter::EncodableList> object_list_; + std::optional<::flutter::EncodableList> list_list_; + std::optional<::flutter::EncodableList> map_list_; + std::optional<::flutter::EncodableList> recursive_class_list_; + std::optional<::flutter::EncodableMap> map_; + std::optional<::flutter::EncodableMap> string_map_; + std::optional<::flutter::EncodableMap> int_map_; + std::optional<::flutter::EncodableMap> enum_map_; + std::optional<::flutter::EncodableMap> object_map_; + std::optional<::flutter::EncodableMap> list_map_; + std::optional<::flutter::EncodableMap> map_map_; + std::optional<::flutter::EncodableMap> recursive_class_map_; }; // The primary purpose for this class is to ensure coverage of Swift structs @@ -494,22 +496,23 @@ class AllNullableTypesWithoutRecursion { const std::vector* a_nullable_float_array, const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, const std::string* a_nullable_string, - const flutter::EncodableValue* a_nullable_object, - const flutter::EncodableList* list, - const flutter::EncodableList* string_list, - const flutter::EncodableList* int_list, - const flutter::EncodableList* double_list, - const flutter::EncodableList* bool_list, - const flutter::EncodableList* enum_list, - const flutter::EncodableList* object_list, - const flutter::EncodableList* list_list, - const flutter::EncodableList* map_list, const flutter::EncodableMap* map, - const flutter::EncodableMap* string_map, - const flutter::EncodableMap* int_map, - const flutter::EncodableMap* enum_map, - const flutter::EncodableMap* object_map, - const flutter::EncodableMap* list_map, - const flutter::EncodableMap* map_map); + const ::flutter::EncodableValue* a_nullable_object, + const ::flutter::EncodableList* list, + const ::flutter::EncodableList* string_list, + const ::flutter::EncodableList* int_list, + const ::flutter::EncodableList* double_list, + const ::flutter::EncodableList* bool_list, + const ::flutter::EncodableList* enum_list, + const ::flutter::EncodableList* object_list, + const ::flutter::EncodableList* list_list, + const ::flutter::EncodableList* map_list, + const ::flutter::EncodableMap* map, + const ::flutter::EncodableMap* string_map, + const ::flutter::EncodableMap* int_map, + const ::flutter::EncodableMap* enum_map, + const ::flutter::EncodableMap* object_map, + const ::flutter::EncodableMap* list_map, + const ::flutter::EncodableMap* map_map); const bool* a_nullable_bool() const; void set_a_nullable_bool(const bool* value_arg); @@ -555,80 +558,80 @@ class AllNullableTypesWithoutRecursion { void set_a_nullable_string(const std::string_view* value_arg); void set_a_nullable_string(std::string_view value_arg); - const flutter::EncodableValue* a_nullable_object() const; - void set_a_nullable_object(const flutter::EncodableValue* value_arg); - void set_a_nullable_object(const flutter::EncodableValue& value_arg); + const ::flutter::EncodableValue* a_nullable_object() const; + void set_a_nullable_object(const ::flutter::EncodableValue* value_arg); + void set_a_nullable_object(const ::flutter::EncodableValue& value_arg); - const flutter::EncodableList* list() const; - void set_list(const flutter::EncodableList* value_arg); - void set_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* list() const; + void set_list(const ::flutter::EncodableList* value_arg); + void set_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* string_list() const; - void set_string_list(const flutter::EncodableList* value_arg); - void set_string_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* string_list() const; + void set_string_list(const ::flutter::EncodableList* value_arg); + void set_string_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* int_list() const; - void set_int_list(const flutter::EncodableList* value_arg); - void set_int_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* int_list() const; + void set_int_list(const ::flutter::EncodableList* value_arg); + void set_int_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* double_list() const; - void set_double_list(const flutter::EncodableList* value_arg); - void set_double_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* double_list() const; + void set_double_list(const ::flutter::EncodableList* value_arg); + void set_double_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* bool_list() const; - void set_bool_list(const flutter::EncodableList* value_arg); - void set_bool_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* bool_list() const; + void set_bool_list(const ::flutter::EncodableList* value_arg); + void set_bool_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* enum_list() const; - void set_enum_list(const flutter::EncodableList* value_arg); - void set_enum_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* enum_list() const; + void set_enum_list(const ::flutter::EncodableList* value_arg); + void set_enum_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* object_list() const; - void set_object_list(const flutter::EncodableList* value_arg); - void set_object_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* object_list() const; + void set_object_list(const ::flutter::EncodableList* value_arg); + void set_object_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* list_list() const; - void set_list_list(const flutter::EncodableList* value_arg); - void set_list_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* list_list() const; + void set_list_list(const ::flutter::EncodableList* value_arg); + void set_list_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* map_list() const; - void set_map_list(const flutter::EncodableList* value_arg); - void set_map_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* map_list() const; + void set_map_list(const ::flutter::EncodableList* value_arg); + void set_map_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableMap* map() const; - void set_map(const flutter::EncodableMap* value_arg); - void set_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* map() const; + void set_map(const ::flutter::EncodableMap* value_arg); + void set_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* string_map() const; - void set_string_map(const flutter::EncodableMap* value_arg); - void set_string_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* string_map() const; + void set_string_map(const ::flutter::EncodableMap* value_arg); + void set_string_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* int_map() const; - void set_int_map(const flutter::EncodableMap* value_arg); - void set_int_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* int_map() const; + void set_int_map(const ::flutter::EncodableMap* value_arg); + void set_int_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* enum_map() const; - void set_enum_map(const flutter::EncodableMap* value_arg); - void set_enum_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* enum_map() const; + void set_enum_map(const ::flutter::EncodableMap* value_arg); + void set_enum_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* object_map() const; - void set_object_map(const flutter::EncodableMap* value_arg); - void set_object_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* object_map() const; + void set_object_map(const ::flutter::EncodableMap* value_arg); + void set_object_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* list_map() const; - void set_list_map(const flutter::EncodableMap* value_arg); - void set_list_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* list_map() const; + void set_list_map(const ::flutter::EncodableMap* value_arg); + void set_list_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* map_map() const; - void set_map_map(const flutter::EncodableMap* value_arg); - void set_map_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* map_map() const; + void set_map_map(const ::flutter::EncodableMap* value_arg); + void set_map_map(const ::flutter::EncodableMap& value_arg); bool operator==(const AllNullableTypesWithoutRecursion& other) const; private: static AllNullableTypesWithoutRecursion FromEncodableList( - const flutter::EncodableList& list); - flutter::EncodableList ToEncodableList() const; + const ::flutter::EncodableList& list); + ::flutter::EncodableList ToEncodableList() const; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -648,23 +651,23 @@ class AllNullableTypesWithoutRecursion { std::optional a_nullable_enum_; std::optional another_nullable_enum_; std::optional a_nullable_string_; - std::optional a_nullable_object_; - std::optional list_; - std::optional string_list_; - std::optional int_list_; - std::optional double_list_; - std::optional bool_list_; - std::optional enum_list_; - std::optional object_list_; - std::optional list_list_; - std::optional map_list_; - std::optional map_; - std::optional string_map_; - std::optional int_map_; - std::optional enum_map_; - std::optional object_map_; - std::optional list_map_; - std::optional map_map_; + std::optional<::flutter::EncodableValue> a_nullable_object_; + std::optional<::flutter::EncodableList> list_; + std::optional<::flutter::EncodableList> string_list_; + std::optional<::flutter::EncodableList> int_list_; + std::optional<::flutter::EncodableList> double_list_; + std::optional<::flutter::EncodableList> bool_list_; + std::optional<::flutter::EncodableList> enum_list_; + std::optional<::flutter::EncodableList> object_list_; + std::optional<::flutter::EncodableList> list_list_; + std::optional<::flutter::EncodableList> map_list_; + std::optional<::flutter::EncodableMap> map_; + std::optional<::flutter::EncodableMap> string_map_; + std::optional<::flutter::EncodableMap> int_map_; + std::optional<::flutter::EncodableMap> enum_map_; + std::optional<::flutter::EncodableMap> object_map_; + std::optional<::flutter::EncodableMap> list_map_; + std::optional<::flutter::EncodableMap> map_map_; }; // A class for testing nested class handling. @@ -678,18 +681,18 @@ class AllClassesWrapper { public: // Constructs an object setting all non-nullable fields. explicit AllClassesWrapper(const AllNullableTypes& all_nullable_types, - const flutter::EncodableList& class_list, - const flutter::EncodableMap& class_map); + const ::flutter::EncodableList& class_list, + const ::flutter::EncodableMap& class_map); // Constructs an object setting all fields. - explicit AllClassesWrapper(const AllNullableTypes& all_nullable_types, - const AllNullableTypesWithoutRecursion* - all_nullable_types_without_recursion, - const AllTypes* all_types, - const flutter::EncodableList& class_list, - const flutter::EncodableList* nullable_class_list, - const flutter::EncodableMap& class_map, - const flutter::EncodableMap* nullable_class_map); + explicit AllClassesWrapper( + const AllNullableTypes& all_nullable_types, + const AllNullableTypesWithoutRecursion* + all_nullable_types_without_recursion, + const AllTypes* all_types, const ::flutter::EncodableList& class_list, + const ::flutter::EncodableList* nullable_class_list, + const ::flutter::EncodableMap& class_map, + const ::flutter::EncodableMap* nullable_class_map); ~AllClassesWrapper() = default; AllClassesWrapper(const AllClassesWrapper& other); @@ -710,26 +713,26 @@ class AllClassesWrapper { void set_all_types(const AllTypes* value_arg); void set_all_types(const AllTypes& value_arg); - const flutter::EncodableList& class_list() const; - void set_class_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList& class_list() const; + void set_class_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableList* nullable_class_list() const; - void set_nullable_class_list(const flutter::EncodableList* value_arg); - void set_nullable_class_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* nullable_class_list() const; + void set_nullable_class_list(const ::flutter::EncodableList* value_arg); + void set_nullable_class_list(const ::flutter::EncodableList& value_arg); - const flutter::EncodableMap& class_map() const; - void set_class_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap& class_map() const; + void set_class_map(const ::flutter::EncodableMap& value_arg); - const flutter::EncodableMap* nullable_class_map() const; - void set_nullable_class_map(const flutter::EncodableMap* value_arg); - void set_nullable_class_map(const flutter::EncodableMap& value_arg); + const ::flutter::EncodableMap* nullable_class_map() const; + void set_nullable_class_map(const ::flutter::EncodableMap* value_arg); + void set_nullable_class_map(const ::flutter::EncodableMap& value_arg); bool operator==(const AllClassesWrapper& other) const; private: static AllClassesWrapper FromEncodableList( - const flutter::EncodableList& list); - flutter::EncodableList ToEncodableList() const; + const ::flutter::EncodableList& list); + ::flutter::EncodableList ToEncodableList() const; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; friend class HostTrivialApi; @@ -741,10 +744,10 @@ class AllClassesWrapper { std::unique_ptr all_nullable_types_without_recursion_; std::unique_ptr all_types_; - flutter::EncodableList class_list_; - std::optional nullable_class_list_; - flutter::EncodableMap class_map_; - std::optional nullable_class_map_; + ::flutter::EncodableList class_list_; + std::optional<::flutter::EncodableList> nullable_class_list_; + ::flutter::EncodableMap class_map_; + std::optional<::flutter::EncodableMap> nullable_class_map_; }; // A data class containing a List, used in unit tests. @@ -756,17 +759,17 @@ class TestMessage { TestMessage(); // Constructs an object setting all fields. - explicit TestMessage(const flutter::EncodableList* test_list); + explicit TestMessage(const ::flutter::EncodableList* test_list); - const flutter::EncodableList* test_list() const; - void set_test_list(const flutter::EncodableList* value_arg); - void set_test_list(const flutter::EncodableList& value_arg); + const ::flutter::EncodableList* test_list() const; + void set_test_list(const ::flutter::EncodableList* value_arg); + void set_test_list(const ::flutter::EncodableList& value_arg); bool operator==(const TestMessage& other) const; private: - static TestMessage FromEncodableList(const flutter::EncodableList& list); - flutter::EncodableList ToEncodableList() const; + static TestMessage FromEncodableList(const ::flutter::EncodableList& list); + ::flutter::EncodableList ToEncodableList() const; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; friend class HostTrivialApi; @@ -774,10 +777,11 @@ class TestMessage { friend class FlutterSmallApi; friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; - std::optional test_list_; + std::optional<::flutter::EncodableList> test_list_; }; -class PigeonInternalCodecSerializer : public flutter::StandardCodecSerializer { +class PigeonInternalCodecSerializer + : public ::flutter::StandardCodecSerializer { public: PigeonInternalCodecSerializer(); inline static PigeonInternalCodecSerializer& GetInstance() { @@ -785,12 +789,12 @@ class PigeonInternalCodecSerializer : public flutter::StandardCodecSerializer { return sInstance; } - void WriteValue(const flutter::EncodableValue& value, - flutter::ByteStreamWriter* stream) const override; + void WriteValue(const ::flutter::EncodableValue& value, + ::flutter::ByteStreamWriter* stream) const override; protected: - flutter::EncodableValue ReadValueOfType( - uint8_t type, flutter::ByteStreamReader* stream) const override; + ::flutter::EncodableValue ReadValueOfType( + uint8_t type, ::flutter::ByteStreamReader* stream) const override; }; // The core interface that each host language plugin must implement in @@ -809,11 +813,11 @@ class HostIntegrationCoreApi { // Returns the passed object, to test serialization and deserialization. virtual ErrorOr EchoAllTypes(const AllTypes& everything) = 0; // Returns an error, to test error handling. - virtual ErrorOr> ThrowError() = 0; + virtual ErrorOr> ThrowError() = 0; // Returns an error from a void function, to test error handling. virtual std::optional ThrowErrorFromVoid() = 0; // Returns a Flutter error, to test error handling. - virtual ErrorOr> + virtual ErrorOr> ThrowFlutterError() = 0; // Returns passed in int. virtual ErrorOr EchoInt(int64_t an_int) = 0; @@ -827,50 +831,50 @@ class HostIntegrationCoreApi { virtual ErrorOr> EchoUint8List( const std::vector& a_uint8_list) = 0; // Returns the passed in generic Object. - virtual ErrorOr EchoObject( - const flutter::EncodableValue& an_object) = 0; + virtual ErrorOr<::flutter::EncodableValue> EchoObject( + const ::flutter::EncodableValue& an_object) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr EchoList( - const flutter::EncodableList& list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoList( + const ::flutter::EncodableList& list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr EchoEnumList( - const flutter::EncodableList& enum_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoEnumList( + const ::flutter::EncodableList& enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr EchoClassList( - const flutter::EncodableList& class_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoClassList( + const ::flutter::EncodableList& class_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr EchoNonNullEnumList( - const flutter::EncodableList& enum_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoNonNullEnumList( + const ::flutter::EncodableList& enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr EchoNonNullClassList( - const flutter::EncodableList& class_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoNonNullClassList( + const ::flutter::EncodableList& class_list) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoMap( - const flutter::EncodableMap& map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoMap( + const ::flutter::EncodableMap& map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoStringMap( - const flutter::EncodableMap& string_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoStringMap( + const ::flutter::EncodableMap& string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoIntMap( - const flutter::EncodableMap& int_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoIntMap( + const ::flutter::EncodableMap& int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoEnumMap( - const flutter::EncodableMap& enum_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoEnumMap( + const ::flutter::EncodableMap& enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoClassMap( - const flutter::EncodableMap& class_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoClassMap( + const ::flutter::EncodableMap& class_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoNonNullStringMap( - const flutter::EncodableMap& string_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullStringMap( + const ::flutter::EncodableMap& string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoNonNullIntMap( - const flutter::EncodableMap& int_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullIntMap( + const ::flutter::EncodableMap& int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoNonNullEnumMap( - const flutter::EncodableMap& enum_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullEnumMap( + const ::flutter::EncodableMap& enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr EchoNonNullClassMap( - const flutter::EncodableMap& class_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullClassMap( + const ::flutter::EncodableMap& class_map) = 0; // Returns the passed class to test nested class serialization and // deserialization. virtual ErrorOr EchoClassWrapper( @@ -927,50 +931,50 @@ class HostIntegrationCoreApi { virtual ErrorOr>> EchoNullableUint8List( const std::vector* a_nullable_uint8_list) = 0; // Returns the passed in generic Object. - virtual ErrorOr> EchoNullableObject( - const flutter::EncodableValue* a_nullable_object) = 0; + virtual ErrorOr> EchoNullableObject( + const ::flutter::EncodableValue* a_nullable_object) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableList( - const flutter::EncodableList* a_nullable_list) = 0; + virtual ErrorOr> EchoNullableList( + const ::flutter::EncodableList* a_nullable_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableEnumList( - const flutter::EncodableList* enum_list) = 0; + virtual ErrorOr> EchoNullableEnumList( + const ::flutter::EncodableList* enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableClassList( - const flutter::EncodableList* class_list) = 0; + virtual ErrorOr> + EchoNullableClassList(const ::flutter::EncodableList* class_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullEnumList(const flutter::EncodableList* enum_list) = 0; + virtual ErrorOr> + EchoNullableNonNullEnumList(const ::flutter::EncodableList* enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullClassList(const flutter::EncodableList* class_list) = 0; + virtual ErrorOr> + EchoNullableNonNullClassList(const ::flutter::EncodableList* class_list) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableMap( - const flutter::EncodableMap* map) = 0; + virtual ErrorOr> EchoNullableMap( + const ::flutter::EncodableMap* map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableStringMap( - const flutter::EncodableMap* string_map) = 0; + virtual ErrorOr> EchoNullableStringMap( + const ::flutter::EncodableMap* string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableIntMap( - const flutter::EncodableMap* int_map) = 0; + virtual ErrorOr> EchoNullableIntMap( + const ::flutter::EncodableMap* int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableEnumMap( - const flutter::EncodableMap* enum_map) = 0; + virtual ErrorOr> EchoNullableEnumMap( + const ::flutter::EncodableMap* enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableClassMap( - const flutter::EncodableMap* class_map) = 0; + virtual ErrorOr> EchoNullableClassMap( + const ::flutter::EncodableMap* class_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullStringMap(const flutter::EncodableMap* string_map) = 0; + virtual ErrorOr> + EchoNullableNonNullStringMap(const ::flutter::EncodableMap* string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullIntMap(const flutter::EncodableMap* int_map) = 0; + virtual ErrorOr> + EchoNullableNonNullIntMap(const ::flutter::EncodableMap* int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullEnumMap(const flutter::EncodableMap* enum_map) = 0; + virtual ErrorOr> + EchoNullableNonNullEnumMap(const ::flutter::EncodableMap* enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullClassMap(const flutter::EncodableMap* class_map) = 0; + virtual ErrorOr> + EchoNullableNonNullClassMap(const ::flutter::EncodableMap* class_map) = 0; virtual ErrorOr> EchoNullableEnum( const AnEnum* an_enum) = 0; virtual ErrorOr> EchoAnotherNullableEnum( @@ -1004,48 +1008,48 @@ class HostIntegrationCoreApi { std::function> reply)> result) = 0; // Returns the passed in generic Object asynchronously. virtual void EchoAsyncObject( - const flutter::EncodableValue& an_object, - std::function reply)> result) = 0; + const ::flutter::EncodableValue& an_object, + std::function reply)> result) = 0; // Returns the passed list, to test asynchronous serialization and // deserialization. virtual void EchoAsyncList( - const flutter::EncodableList& list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& list, + std::function reply)> result) = 0; // Returns the passed list, to test asynchronous serialization and // deserialization. virtual void EchoAsyncEnumList( - const flutter::EncodableList& enum_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; // Returns the passed list, to test asynchronous serialization and // deserialization. virtual void EchoAsyncClassList( - const flutter::EncodableList& class_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncMap( - const flutter::EncodableMap& map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& map, + std::function reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncStringMap( - const flutter::EncodableMap& string_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncIntMap( - const flutter::EncodableMap& int_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncEnumMap( - const flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncClassMap( - const flutter::EncodableMap& class_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; // Returns the passed enum, to test asynchronous serialization and // deserialization. virtual void EchoAsyncEnum( @@ -1058,14 +1062,16 @@ class HostIntegrationCoreApi { std::function reply)> result) = 0; // Responds with an error from an async function returning a value. virtual void ThrowAsyncError( - std::function> reply)> + std::function< + void(ErrorOr> reply)> result) = 0; // Responds with an error from an async void function. virtual void ThrowAsyncErrorFromVoid( std::function reply)> result) = 0; // Responds with a Flutter error from an async function returning a value. virtual void ThrowAsyncFlutterError( - std::function> reply)> + std::function< + void(ErrorOr> reply)> result) = 0; // Returns the passed object, to test async serialization and deserialization. virtual void EchoAsyncAllTypes( @@ -1106,56 +1112,60 @@ class HostIntegrationCoreApi { result) = 0; // Returns the passed in generic Object asynchronously. virtual void EchoAsyncNullableObject( - const flutter::EncodableValue* an_object, - std::function> reply)> + const ::flutter::EncodableValue* an_object, + std::function< + void(ErrorOr> reply)> result) = 0; // Returns the passed list, to test asynchronous serialization and // deserialization. virtual void EchoAsyncNullableList( - const flutter::EncodableList* list, - std::function> reply)> + const ::flutter::EncodableList* list, + std::function< + void(ErrorOr> reply)> result) = 0; // Returns the passed list, to test asynchronous serialization and // deserialization. virtual void EchoAsyncNullableEnumList( - const flutter::EncodableList* enum_list, - std::function> reply)> + const ::flutter::EncodableList* enum_list, + std::function< + void(ErrorOr> reply)> result) = 0; // Returns the passed list, to test asynchronous serialization and // deserialization. virtual void EchoAsyncNullableClassList( - const flutter::EncodableList* class_list, - std::function> reply)> + const ::flutter::EncodableList* class_list, + std::function< + void(ErrorOr> reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncNullableMap( - const flutter::EncodableMap* map, - std::function> reply)> + const ::flutter::EncodableMap* map, + std::function> reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncNullableStringMap( - const flutter::EncodableMap* string_map, - std::function> reply)> + const ::flutter::EncodableMap* string_map, + std::function> reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncNullableIntMap( - const flutter::EncodableMap* int_map, - std::function> reply)> + const ::flutter::EncodableMap* int_map, + std::function> reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncNullableEnumMap( - const flutter::EncodableMap* enum_map, - std::function> reply)> + const ::flutter::EncodableMap* enum_map, + std::function> reply)> result) = 0; // Returns the passed map, to test asynchronous serialization and // deserialization. virtual void EchoAsyncNullableClassMap( - const flutter::EncodableMap* class_map, - std::function> reply)> + const ::flutter::EncodableMap* class_map, + std::function> reply)> result) = 0; // Returns the passed enum, to test asynchronous serialization and // deserialization. @@ -1177,7 +1187,8 @@ class HostIntegrationCoreApi { virtual void CallFlutterNoop( std::function reply)> result) = 0; virtual void CallFlutterThrowError( - std::function> reply)> + std::function< + void(ErrorOr> reply)> result) = 0; virtual void CallFlutterThrowErrorFromVoid( std::function reply)> result) = 0; @@ -1215,47 +1226,47 @@ class HostIntegrationCoreApi { const std::vector& list, std::function> reply)> result) = 0; virtual void CallFlutterEchoList( - const flutter::EncodableList& list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& list, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnumList( - const flutter::EncodableList& enum_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoClassList( - const flutter::EncodableList& class_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullEnumList( - const flutter::EncodableList& enum_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullClassList( - const flutter::EncodableList& class_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoMap( - const flutter::EncodableMap& map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& map, + std::function reply)> result) = 0; virtual void CallFlutterEchoStringMap( - const flutter::EncodableMap& string_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoIntMap( - const flutter::EncodableMap& int_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnumMap( - const flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoClassMap( - const flutter::EncodableMap& class_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullStringMap( - const flutter::EncodableMap& string_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullIntMap( - const flutter::EncodableMap& int_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullEnumMap( - const flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullClassMap( - const flutter::EncodableMap& class_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnum( const AnEnum& an_enum, std::function reply)> result) = 0; @@ -1280,60 +1291,65 @@ class HostIntegrationCoreApi { std::function>> reply)> result) = 0; virtual void CallFlutterEchoNullableList( - const flutter::EncodableList* list, - std::function> reply)> + const ::flutter::EncodableList* list, + std::function< + void(ErrorOr> reply)> result) = 0; virtual void CallFlutterEchoNullableEnumList( - const flutter::EncodableList* enum_list, - std::function> reply)> + const ::flutter::EncodableList* enum_list, + std::function< + void(ErrorOr> reply)> result) = 0; virtual void CallFlutterEchoNullableClassList( - const flutter::EncodableList* class_list, - std::function> reply)> + const ::flutter::EncodableList* class_list, + std::function< + void(ErrorOr> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullEnumList( - const flutter::EncodableList* enum_list, - std::function> reply)> + const ::flutter::EncodableList* enum_list, + std::function< + void(ErrorOr> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullClassList( - const flutter::EncodableList* class_list, - std::function> reply)> + const ::flutter::EncodableList* class_list, + std::function< + void(ErrorOr> reply)> result) = 0; virtual void CallFlutterEchoNullableMap( - const flutter::EncodableMap* map, - std::function> reply)> + const ::flutter::EncodableMap* map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableStringMap( - const flutter::EncodableMap* string_map, - std::function> reply)> + const ::flutter::EncodableMap* string_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableIntMap( - const flutter::EncodableMap* int_map, - std::function> reply)> + const ::flutter::EncodableMap* int_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableEnumMap( - const flutter::EncodableMap* enum_map, - std::function> reply)> + const ::flutter::EncodableMap* enum_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableClassMap( - const flutter::EncodableMap* class_map, - std::function> reply)> + const ::flutter::EncodableMap* class_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullStringMap( - const flutter::EncodableMap* string_map, - std::function> reply)> + const ::flutter::EncodableMap* string_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullIntMap( - const flutter::EncodableMap* int_map, - std::function> reply)> + const ::flutter::EncodableMap* int_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullEnumMap( - const flutter::EncodableMap* enum_map, - std::function> reply)> + const ::flutter::EncodableMap* enum_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullClassMap( - const flutter::EncodableMap* class_map, - std::function> reply)> + const ::flutter::EncodableMap* class_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableEnum( const AnEnum* an_enum, @@ -1347,16 +1363,16 @@ class HostIntegrationCoreApi { std::function reply)> result) = 0; // The codec used by HostIntegrationCoreApi. - static const flutter::StandardMessageCodec& GetCodec(); + static const ::flutter::StandardMessageCodec& GetCodec(); // Sets up an instance of `HostIntegrationCoreApi` to handle messages through // the `binary_messenger`. - static void SetUp(flutter::BinaryMessenger* binary_messenger, + static void SetUp(::flutter::BinaryMessenger* binary_messenger, HostIntegrationCoreApi* api); - static void SetUp(flutter::BinaryMessenger* binary_messenger, + static void SetUp(::flutter::BinaryMessenger* binary_messenger, HostIntegrationCoreApi* api, const std::string& message_channel_suffix); - static flutter::EncodableValue WrapError(std::string_view error_message); - static flutter::EncodableValue WrapError(const FlutterError& error); + static ::flutter::EncodableValue WrapError(std::string_view error_message); + static ::flutter::EncodableValue WrapError(const FlutterError& error); protected: HostIntegrationCoreApi() = default; @@ -1368,17 +1384,17 @@ class HostIntegrationCoreApi { // called from C++. class FlutterIntegrationCoreApi { public: - FlutterIntegrationCoreApi(flutter::BinaryMessenger* binary_messenger); - FlutterIntegrationCoreApi(flutter::BinaryMessenger* binary_messenger, + FlutterIntegrationCoreApi(::flutter::BinaryMessenger* binary_messenger); + FlutterIntegrationCoreApi(::flutter::BinaryMessenger* binary_messenger, const std::string& message_channel_suffix); - static const flutter::StandardMessageCodec& GetCodec(); + static const ::flutter::StandardMessageCodec& GetCodec(); // A no-op function taking no arguments and returning no value, to sanity // test basic calling. void Noop(std::function&& on_success, std::function&& on_error); // Responds with an error from an async function returning a value. void ThrowError( - std::function&& on_success, + std::function&& on_success, std::function&& on_error); // Responds with an error from an async void function. void ThrowErrorFromVoid(std::function&& on_success, @@ -1432,72 +1448,73 @@ class FlutterIntegrationCoreApi { std::function&)>&& on_success, std::function&& on_error); // Returns the passed list, to test serialization and deserialization. - void EchoList(const flutter::EncodableList& list, - std::function&& on_success, - std::function&& on_error); + void EchoList( + const ::flutter::EncodableList& list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoEnumList( - const flutter::EncodableList& enum_list, - std::function&& on_success, + const ::flutter::EncodableList& enum_list, + std::function&& on_success, std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoClassList( - const flutter::EncodableList& class_list, - std::function&& on_success, + const ::flutter::EncodableList& class_list, + std::function&& on_success, std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNonNullEnumList( - const flutter::EncodableList& enum_list, - std::function&& on_success, + const ::flutter::EncodableList& enum_list, + std::function&& on_success, std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNonNullClassList( - const flutter::EncodableList& class_list, - std::function&& on_success, + const ::flutter::EncodableList& class_list, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. - void EchoMap(const flutter::EncodableMap& map, - std::function&& on_success, + void EchoMap(const ::flutter::EncodableMap& map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoStringMap( - const flutter::EncodableMap& string_map, - std::function&& on_success, + const ::flutter::EncodableMap& string_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoIntMap( - const flutter::EncodableMap& int_map, - std::function&& on_success, + const ::flutter::EncodableMap& int_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoEnumMap( - const flutter::EncodableMap& enum_map, - std::function&& on_success, + const ::flutter::EncodableMap& enum_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoClassMap( - const flutter::EncodableMap& class_map, - std::function&& on_success, + const ::flutter::EncodableMap& class_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullStringMap( - const flutter::EncodableMap& string_map, - std::function&& on_success, + const ::flutter::EncodableMap& string_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullIntMap( - const flutter::EncodableMap& int_map, - std::function&& on_success, + const ::flutter::EncodableMap& int_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullEnumMap( - const flutter::EncodableMap& enum_map, - std::function&& on_success, + const ::flutter::EncodableMap& enum_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullClassMap( - const flutter::EncodableMap& class_map, - std::function&& on_success, + const ::flutter::EncodableMap& class_map, + std::function&& on_success, std::function&& on_error); // Returns the passed enum to test serialization and deserialization. void EchoEnum(const AnEnum& an_enum, @@ -1530,73 +1547,73 @@ class FlutterIntegrationCoreApi { std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableList( - const flutter::EncodableList* list, - std::function&& on_success, + const ::flutter::EncodableList* list, + std::function&& on_success, std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableEnumList( - const flutter::EncodableList* enum_list, - std::function&& on_success, + const ::flutter::EncodableList* enum_list, + std::function&& on_success, std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableClassList( - const flutter::EncodableList* class_list, - std::function&& on_success, + const ::flutter::EncodableList* class_list, + std::function&& on_success, std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableNonNullEnumList( - const flutter::EncodableList* enum_list, - std::function&& on_success, + const ::flutter::EncodableList* enum_list, + std::function&& on_success, std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableNonNullClassList( - const flutter::EncodableList* class_list, - std::function&& on_success, + const ::flutter::EncodableList* class_list, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableMap( - const flutter::EncodableMap* map, - std::function&& on_success, + const ::flutter::EncodableMap* map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableStringMap( - const flutter::EncodableMap* string_map, - std::function&& on_success, + const ::flutter::EncodableMap* string_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableIntMap( - const flutter::EncodableMap* int_map, - std::function&& on_success, + const ::flutter::EncodableMap* int_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableEnumMap( - const flutter::EncodableMap* enum_map, - std::function&& on_success, + const ::flutter::EncodableMap* enum_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableClassMap( - const flutter::EncodableMap* class_map, - std::function&& on_success, + const ::flutter::EncodableMap* class_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullStringMap( - const flutter::EncodableMap* string_map, - std::function&& on_success, + const ::flutter::EncodableMap* string_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullIntMap( - const flutter::EncodableMap* int_map, - std::function&& on_success, + const ::flutter::EncodableMap* int_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullEnumMap( - const flutter::EncodableMap* enum_map, - std::function&& on_success, + const ::flutter::EncodableMap* enum_map, + std::function&& on_success, std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullClassMap( - const flutter::EncodableMap* class_map, - std::function&& on_success, + const ::flutter::EncodableMap* class_map, + std::function&& on_success, std::function&& on_error); // Returns the passed enum to test serialization and deserialization. void EchoNullableEnum(const AnEnum* an_enum, @@ -1617,7 +1634,7 @@ class FlutterIntegrationCoreApi { std::function&& on_error); private: - flutter::BinaryMessenger* binary_messenger_; + ::flutter::BinaryMessenger* binary_messenger_; std::string message_channel_suffix_; }; @@ -1633,16 +1650,16 @@ class HostTrivialApi { virtual std::optional Noop() = 0; // The codec used by HostTrivialApi. - static const flutter::StandardMessageCodec& GetCodec(); + static const ::flutter::StandardMessageCodec& GetCodec(); // Sets up an instance of `HostTrivialApi` to handle messages through the // `binary_messenger`. - static void SetUp(flutter::BinaryMessenger* binary_messenger, + static void SetUp(::flutter::BinaryMessenger* binary_messenger, HostTrivialApi* api); - static void SetUp(flutter::BinaryMessenger* binary_messenger, + static void SetUp(::flutter::BinaryMessenger* binary_messenger, HostTrivialApi* api, const std::string& message_channel_suffix); - static flutter::EncodableValue WrapError(std::string_view error_message); - static flutter::EncodableValue WrapError(const FlutterError& error); + static ::flutter::EncodableValue WrapError(std::string_view error_message); + static ::flutter::EncodableValue WrapError(const FlutterError& error); protected: HostTrivialApi() = default; @@ -1662,16 +1679,16 @@ class HostSmallApi { std::function reply)> result) = 0; // The codec used by HostSmallApi. - static const flutter::StandardMessageCodec& GetCodec(); + static const ::flutter::StandardMessageCodec& GetCodec(); // Sets up an instance of `HostSmallApi` to handle messages through the // `binary_messenger`. - static void SetUp(flutter::BinaryMessenger* binary_messenger, + static void SetUp(::flutter::BinaryMessenger* binary_messenger, HostSmallApi* api); - static void SetUp(flutter::BinaryMessenger* binary_messenger, + static void SetUp(::flutter::BinaryMessenger* binary_messenger, HostSmallApi* api, const std::string& message_channel_suffix); - static flutter::EncodableValue WrapError(std::string_view error_message); - static flutter::EncodableValue WrapError(const FlutterError& error); + static ::flutter::EncodableValue WrapError(std::string_view error_message); + static ::flutter::EncodableValue WrapError(const FlutterError& error); protected: HostSmallApi() = default; @@ -1682,10 +1699,10 @@ class HostSmallApi { // called from C++. class FlutterSmallApi { public: - FlutterSmallApi(flutter::BinaryMessenger* binary_messenger); - FlutterSmallApi(flutter::BinaryMessenger* binary_messenger, + FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger); + FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger, const std::string& message_channel_suffix); - static const flutter::StandardMessageCodec& GetCodec(); + static const ::flutter::StandardMessageCodec& GetCodec(); void EchoWrappedList(const TestMessage& msg, std::function&& on_success, std::function&& on_error); @@ -1694,7 +1711,7 @@ class FlutterSmallApi { std::function&& on_error); private: - flutter::BinaryMessenger* binary_messenger_; + ::flutter::BinaryMessenger* binary_messenger_; std::string message_channel_suffix_; }; diff --git a/packages/pigeon/test/cpp_generator_test.dart b/packages/pigeon/test/cpp_generator_test.dart index d021a3f0b3aa..02eeabeee31d 100644 --- a/packages/pigeon/test/cpp_generator_test.dart +++ b/packages/pigeon/test/cpp_generator_test.dart @@ -124,7 +124,7 @@ void main() { contains( RegExp( r'void Api::SetUp\(\s*' - r'flutter::BinaryMessenger\* binary_messenger,\s*' + r'::flutter::BinaryMessenger\* binary_messenger,\s*' r'Api\* api\s*\)', ), ), @@ -309,12 +309,12 @@ void main() { contains(' const std::string& code() const { return code_; }'), contains(' const std::string& message() const { return message_; }'), contains( - ' const flutter::EncodableValue& details() const { return details_; }', + ' const ::flutter::EncodableValue& details() const { return details_; }', ), contains(' private:'), contains(' std::string code_;'), contains(' std::string message_;'), - contains(' flutter::EncodableValue details_;'), + contains(' ::flutter::EncodableValue details_;'), ]), ); } @@ -1175,13 +1175,13 @@ void main() { expect( code, contains( - 'ErrorOr> ReturnNullableList()', + 'ErrorOr> ReturnNullableList()', ), ); expect( code, contains( - 'ErrorOr> ReturnNullableMap()', + 'ErrorOr> ReturnNullableMap()', ), ); expect( @@ -1298,8 +1298,8 @@ void main() { expect(code, contains('ErrorOr ReturnBool()')); expect(code, contains('ErrorOr ReturnInt()')); expect(code, contains('ErrorOr ReturnString()')); - expect(code, contains('ErrorOr ReturnList()')); - expect(code, contains('ErrorOr ReturnMap()')); + expect(code, contains('ErrorOr<::flutter::EncodableList> ReturnList()')); + expect(code, contains('ErrorOr<::flutter::EncodableMap> ReturnMap()')); expect(code, contains('ErrorOr ReturnDataClass()')); } }); @@ -1416,10 +1416,10 @@ void main() { r'const bool\* a_bool,\s*' r'const int64_t\* an_int,\s*' r'const std::string\* a_string,\s*' - r'const flutter::EncodableList\* a_list,\s*' - r'const flutter::EncodableMap\* a_map,\s*' + r'const ::flutter::EncodableList\* a_list,\s*' + r'const ::flutter::EncodableMap\* a_map,\s*' r'const ParameterObject\* an_object,\s*' - r'const flutter::EncodableValue\* a_generic_object\s*\)', + r'const ::flutter::EncodableValue\* a_generic_object\s*\)', ), ), ); @@ -1612,10 +1612,10 @@ void main() { r'bool a_bool,\s*' r'int64_t an_int,\s*' r'const std::string& a_string,\s*' - r'const flutter::EncodableList& a_list,\s*' - r'const flutter::EncodableMap& a_map,\s*' + r'const ::flutter::EncodableList& a_list,\s*' + r'const ::flutter::EncodableMap& a_map,\s*' r'const ParameterObject& an_object,\s*' - r'const flutter::EncodableValue& a_generic_object\s*\)', + r'const ::flutter::EncodableValue& a_generic_object\s*\)', ), ), ); @@ -1814,10 +1814,10 @@ void main() { // Nullable strings use std::string* rather than std::string_view* // since there's no implicit conversion for pointer types. r'const std::string\* a_string,\s*' - r'const flutter::EncodableList\* a_list,\s*' - r'const flutter::EncodableMap\* a_map,\s*' + r'const ::flutter::EncodableList\* a_list,\s*' + r'const ::flutter::EncodableMap\* a_map,\s*' r'const ParameterObject\* an_object,\s*' - r'const flutter::EncodableValue\* a_generic_object,', + r'const ::flutter::EncodableValue\* a_generic_object,', ), ), ); @@ -2002,10 +2002,10 @@ void main() { // nullable strings. r'const std::string& a_string,\s*' // Non-POD types use const references. - r'const flutter::EncodableList& a_list,\s*' - r'const flutter::EncodableMap& a_map,\s*' + r'const ::flutter::EncodableList& a_list,\s*' + r'const ::flutter::EncodableMap& a_map,\s*' r'const ParameterObject& an_object,\s*' - r'const flutter::EncodableValue& a_generic_object,\s*', + r'const ::flutter::EncodableValue& a_generic_object,\s*', ), ), ); @@ -2314,7 +2314,7 @@ void main() { dartPackageName: DEFAULT_PACKAGE_NAME, ); final code = sink.toString(); - expect(code, contains(' : public flutter::StandardCodecSerializer')); + expect(code, contains(' : public ::flutter::StandardCodecSerializer')); }); test('Does not send unwrapped EncodableLists', () { From f99e64a4b51052f07302ccbdc35a79279dce3698 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 18:40:08 -0800 Subject: [PATCH 14/33] more bugs on languages I can't compile locally --- packages/pigeon/CHANGELOG.md | 15 +- .../pigeon/example/app/linux/messages.g.cc | 21 +- .../example/app/windows/runner/messages.g.cpp | 7 +- .../pigeon/lib/src/cpp/cpp_generator.dart | 6 +- .../lib/src/gobject/gobject_generator.dart | 196 ++++++++---------- .../AllDatatypesTest.java | 4 +- .../linux/pigeon/core_tests.gen.cc | 53 ++--- .../windows/pigeon/core_tests.gen.cpp | 7 +- 8 files changed, 133 insertions(+), 176 deletions(-) diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index 1c1a666ccd39..1765e1aa63a5 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,17 +1,8 @@ ## 26.2.0 -* [swift] [kotlin] [dart] [java] [objc] [cpp] [gobject] Optimizes and improves data class equality and hashing. - * Avoids `toList()` and `encode()` calls to reduce object allocations during comparisons. - * Adds `deepEquals` and `deepHash` utilities for robust recursive handling of nested collections and arrays. - * Handles `NaN` correctly in equality and hashing across all platforms. - * [dart] Fixes `Object.hash` usage for single-field classes. - * [dart] Fixes `Map` hashing to be order-independent. - * [kotlin] Fixes compilation error in `equals` method. - * [objc] Fixes build failure when helper functions are unused. - * [cpp] [gobject] Adds `` include for `std::isnan` support. - * [cpp] Fixes namespace collisions on Windows by fully qualifying `flutter` namespace references. - * [objc] Distinguishes 0.0 and -0.0 in equality and hashing. - * [gobject] Fixes `Map` hashing to be order-independent. +* Optimizes and improves data class equality and hashing. +* Changes hashing and equality methods to behave consistently across platforms. +* Adds equality methods to previously unsupported languages. ## 26.1.10 diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index 2ee346f0f981..a612bef163e9 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -51,13 +51,9 @@ static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { return fl_value_get_length(a) == fl_value_get_length(b) && memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0; - case FL_VALUE_TYPE_FLOAT32_LIST: + case FL_VALUE_TYPE_FLOAT_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_float32_list(a), fl_value_get_float32_list(b), - fl_value_get_length(a) * sizeof(float)) == 0; - case FL_VALUE_TYPE_FLOAT64_LIST: - return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_float64_list(a), fl_value_get_float64_list(b), + memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), fl_value_get_length(a) * sizeof(double)) == 0; case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); @@ -120,19 +116,10 @@ static guint flpigeon_deep_hash(FlValue* value) { result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); return result; } - case FL_VALUE_TYPE_FLOAT32_LIST: { - guint result = 1; - size_t len = fl_value_get_length(value); - const float* data = fl_value_get_float32_list(value); - for (size_t i = 0; i < len; i++) { - result = result * 31 + flpigeon_hash_double((double)data[i]); - } - return result; - } - case FL_VALUE_TYPE_FLOAT64_LIST: { + case FL_VALUE_TYPE_FLOAT_LIST: { guint result = 1; size_t len = fl_value_get_length(value); - const double* data = fl_value_get_float64_list(value); + const double* data = fl_value_get_float_list(value); for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double(data[i]); } diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index 980857296810..28ef3149ac36 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -73,9 +73,10 @@ bool PigeonInternalDeepEquals(const std::optional& a, inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - if (a.type() == b.type() && - a.type() == ::flutter::EncodableValue::Type::kDouble) { - return PigeonInternalDeepEquals(std::get(a), std::get(b)); + auto* da = std::get_if(&a); + auto* db = std::get_if(&b); + if (da && db) { + return PigeonInternalDeepEquals(*da, *db); } return a == b; } diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index ac32a69cf73f..303429899e3a 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -1123,8 +1123,10 @@ bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& } inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - if (a.type() == b.type() && a.type() == ::flutter::EncodableValue::Type::kDouble) { - return PigeonInternalDeepEquals(std::get(a), std::get(b)); + auto* da = std::get_if(&a); + auto* db = std::get_if(&b); + if (da && db) { + return PigeonInternalDeepEquals(*da, *db); } return a == b; } diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index 4ed826dfa634..38c2964ea284 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -2718,9 +2718,10 @@ String _makeFlValue( } else if (type.baseName == 'Int64List') { value = 'fl_value_new_int64_list($variableName, $lengthVariableName)'; } else if (type.baseName == 'Float32List') { - value = 'fl_value_new_float32_list($variableName, $lengthVariableName)'; + // TODO(stuartmorgan): Support Float32List. + throw Exception('Float32List is not yet supported for GObject'); } else if (type.baseName == 'Float64List') { - value = 'fl_value_new_float64_list($variableName, $lengthVariableName)'; + value = 'fl_value_new_float_list($variableName, $lengthVariableName)'; } else { throw Exception('Unknown type ${type.baseName}'); } @@ -2757,9 +2758,10 @@ String _fromFlValue(String module, TypeDeclaration type, String variableName) { } else if (type.baseName == 'Int64List') { return 'fl_value_get_int64_list($variableName)'; } else if (type.baseName == 'Float32List') { - return 'fl_value_get_float32_list($variableName)'; + // TODO(stuartmorgan): Support Float32List. + return 'nullptr'; } else if (type.baseName == 'Float64List') { - return 'fl_value_get_float64_list($variableName)'; + return 'fl_value_get_float_list($variableName)'; } else { throw Exception('Unknown type ${type.baseName}'); } @@ -2782,98 +2784,97 @@ void _writeHashHelpers(Indent indent) { } void _writeDeepEquals(Indent indent) { - indent.writeScoped('static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) {', '}', () { - indent.writeln('if (a == b) return TRUE;'); - indent.writeln('if (a == nullptr || b == nullptr) return FALSE;'); - indent.writeScoped( - 'if (fl_value_get_type(a) != fl_value_get_type(b)) {', - '}', - () { - indent.writeln('return FALSE;'); - }, - ); - indent.writeScoped('switch (fl_value_get_type(a)) {', '}', () { - indent.writeln('case FL_VALUE_TYPE_BOOL:'); - indent.writeln(' return fl_value_get_bool(a) == fl_value_get_bool(b);'); - indent.writeln('case FL_VALUE_TYPE_INT:'); - indent.writeln(' return fl_value_get_int(a) == fl_value_get_int(b);'); - indent.writeln('case FL_VALUE_TYPE_FLOAT: {'); - indent.writeln(' double va = fl_value_get_float(a);'); - indent.writeln(' double vb = fl_value_get_float(b);'); - indent.writeScoped('if (va == vb) {', '}', () { + indent.writeScoped( + 'static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) {', + '}', + () { + indent.writeln('if (a == b) return TRUE;'); + indent.writeln('if (a == nullptr || b == nullptr) return FALSE;'); + indent.writeScoped( + 'if (fl_value_get_type(a) != fl_value_get_type(b)) {', + '}', + () { + indent.writeln('return FALSE;'); + }, + ); + indent.writeScoped('switch (fl_value_get_type(a)) {', '}', () { + indent.writeln('case FL_VALUE_TYPE_BOOL:'); indent.writeln( - 'return va != 0.0 || std::signbit(va) == std::signbit(vb);', + ' return fl_value_get_bool(a) == fl_value_get_bool(b);', ); - }); - indent.writeln('return std::isnan(va) && std::isnan(vb);'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_STRING:'); - indent.writeln( - ' return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0;', - ); - indent.writeln('case FL_VALUE_TYPE_UINT8_LIST:'); - indent.writeln( - ' return fl_value_get_length(a) == fl_value_get_length(b) &&', - ); - indent.writeln( - ' memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), fl_value_get_length(a)) == 0;', - ); - indent.writeln('case FL_VALUE_TYPE_INT32_LIST:'); - indent.writeln( - ' return fl_value_get_length(a) == fl_value_get_length(b) &&', - ); - indent.writeln( - ' memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), fl_value_get_length(a) * sizeof(int32_t)) == 0;', - ); - indent.writeln('case FL_VALUE_TYPE_INT64_LIST:'); - indent.writeln( - ' return fl_value_get_length(a) == fl_value_get_length(b) &&', - ); - indent.writeln( - ' memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0;', - ); - indent.writeln('case FL_VALUE_TYPE_FLOAT32_LIST:'); - indent.writeln( - ' return fl_value_get_length(a) == fl_value_get_length(b) &&', - ); - indent.writeln( - ' memcmp(fl_value_get_float32_list(a), fl_value_get_float32_list(b), fl_value_get_length(a) * sizeof(float)) == 0;', - ); - indent.writeln('case FL_VALUE_TYPE_FLOAT64_LIST:'); - indent.writeln( - ' return fl_value_get_length(a) == fl_value_get_length(b) &&', - ); - indent.writeln( - ' memcmp(fl_value_get_float64_list(a), fl_value_get_float64_list(b), fl_value_get_length(a) * sizeof(double)) == 0;', - ); - indent.writeln('case FL_VALUE_TYPE_LIST: {'); - indent.writeln(' size_t len = fl_value_get_length(a);'); - indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); - indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln('case FL_VALUE_TYPE_INT:'); + indent.writeln(' return fl_value_get_int(a) == fl_value_get_int(b);'); + indent.writeln('case FL_VALUE_TYPE_FLOAT: {'); + indent.writeln(' double va = fl_value_get_float(a);'); + indent.writeln(' double vb = fl_value_get_float(b);'); + indent.writeScoped('if (va == vb) {', '}', () { + indent.writeln( + 'return va != 0.0 || std::signbit(va) == std::signbit(vb);', + ); + }); + indent.writeln('return std::isnan(va) && std::isnan(vb);'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_STRING:'); indent.writeln( - 'if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), fl_value_get_list_value(b, i))) return FALSE;', + ' return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0;', ); - }); - indent.writeln(' return TRUE;'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_MAP: {'); - indent.writeln(' size_t len = fl_value_get_length(a);'); - indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); - indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { - indent.writeln('FlValue* key = fl_value_get_map_key(a, i);'); - indent.writeln('FlValue* val = fl_value_get_map_value(a, i);'); - indent.writeln('FlValue* b_val = fl_value_lookup(b, key);'); + indent.writeln('case FL_VALUE_TYPE_UINT8_LIST:'); + indent.writeln( + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', + ); + indent.writeln( + ' memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), fl_value_get_length(a)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_INT32_LIST:'); indent.writeln( - 'if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE;', + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', ); + indent.writeln( + ' memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), fl_value_get_length(a) * sizeof(int32_t)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_INT64_LIST:'); + indent.writeln( + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', + ); + indent.writeln( + ' memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST:'); + indent.writeln( + ' return fl_value_get_length(a) == fl_value_get_length(b) &&', + ); + indent.writeln( + ' memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), fl_value_get_length(a) * sizeof(double)) == 0;', + ); + indent.writeln('case FL_VALUE_TYPE_LIST: {'); + indent.writeln(' size_t len = fl_value_get_length(a);'); + indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), fl_value_get_list_value(b, i))) return FALSE;', + ); + }); + indent.writeln(' return TRUE;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_MAP: {'); + indent.writeln(' size_t len = fl_value_get_length(a);'); + indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln('FlValue* key = fl_value_get_map_key(a, i);'); + indent.writeln('FlValue* val = fl_value_get_map_value(a, i);'); + indent.writeln('FlValue* b_val = fl_value_lookup(b, key);'); + indent.writeln( + 'if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE;', + ); + }); + indent.writeln(' return TRUE;'); + indent.writeln('}'); + indent.writeln('default:'); + indent.writeln(' return FALSE;'); }); - indent.writeln(' return TRUE;'); - indent.writeln('}'); - indent.writeln('default:'); - indent.writeln(' return FALSE;'); - }); - indent.writeln('return FALSE;'); - }); + indent.writeln('return FALSE;'); + }, + ); } void _writeDeepHash(Indent indent) { @@ -2919,23 +2920,10 @@ void _writeDeepHash(Indent indent) { ); indent.writeln(' return result;'); indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_FLOAT32_LIST: {'); + indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST: {'); indent.writeln(' guint result = 1;'); indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeln(' const float* data = fl_value_get_float32_list(value);'); - indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { - indent.writeln( - 'result = result * 31 + flpigeon_hash_double((double)data[i]);', - ); - }); - indent.writeln(' return result;'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_FLOAT64_LIST: {'); - indent.writeln(' guint result = 1;'); - indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeln( - ' const double* data = fl_value_get_float64_list(value);', - ); + indent.writeln(' const double* data = fl_value_get_float_list(value);'); indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { indent.writeln('result = result * 31 + flpigeon_hash_double(data[i]);'); }); diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java index e698a84122f7..19ee47366377 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java @@ -299,11 +299,11 @@ public void zeroEquality() { @Test public void nestedByteArrayEquality() { byte[] data = new byte[] {1, 2, 3}; - List list1 = new ArrayList<>(); + List list1 = new ArrayList<>(); list1.add(data); AllNullableTypes a = new AllNullableTypes.Builder().setList(list1).build(); - List list2 = new ArrayList<>(); + List list2 = new ArrayList<>(); list2.add(new byte[] {1, 2, 3}); AllNullableTypes b = new AllNullableTypes.Builder().setList(list2).build(); diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 6982db66bf66..72646e16b324 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -52,13 +52,9 @@ static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { return fl_value_get_length(a) == fl_value_get_length(b) && memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0; - case FL_VALUE_TYPE_FLOAT32_LIST: + case FL_VALUE_TYPE_FLOAT_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_float32_list(a), fl_value_get_float32_list(b), - fl_value_get_length(a) * sizeof(float)) == 0; - case FL_VALUE_TYPE_FLOAT64_LIST: - return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_float64_list(a), fl_value_get_float64_list(b), + memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), fl_value_get_length(a) * sizeof(double)) == 0; case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); @@ -121,19 +117,10 @@ static guint flpigeon_deep_hash(FlValue* value) { result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); return result; } - case FL_VALUE_TYPE_FLOAT32_LIST: { - guint result = 1; - size_t len = fl_value_get_length(value); - const float* data = fl_value_get_float32_list(value); - for (size_t i = 0; i < len; i++) { - result = result * 31 + flpigeon_hash_double((double)data[i]); - } - return result; - } - case FL_VALUE_TYPE_FLOAT64_LIST: { + case FL_VALUE_TYPE_FLOAT_LIST: { guint result = 1; size_t len = fl_value_get_length(value); - const double* data = fl_value_get_float64_list(value); + const double* data = fl_value_get_float_list(value); for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double(data[i]); } @@ -563,9 +550,9 @@ static FlValue* core_tests_pigeon_test_all_types_to_list( fl_value_append_take( values, fl_value_new_int64_list(self->a8_byte_array, self->a8_byte_array_length)); - fl_value_append_take(values, - fl_value_new_float64_list(self->a_float_array, - self->a_float_array_length)); + fl_value_append_take( + values, + fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); fl_value_append_take( values, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(self->an_enum), @@ -615,7 +602,7 @@ core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { const int64_t* a8_byte_array = fl_value_get_int64_list(value6); size_t a8_byte_array_length = fl_value_get_length(value6); FlValue* value7 = fl_value_get_list_value(values, 7); - const double* a_float_array = fl_value_get_float64_list(value7); + const double* a_float_array = fl_value_get_float_list(value7); size_t a_float_array_length = fl_value_get_length(value7); FlValue* value8 = fl_value_get_list_value(values, 8); CoreTestsPigeonTestAnEnum an_enum = static_cast( @@ -1401,11 +1388,11 @@ static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( ? fl_value_new_int64_list(self->a_nullable8_byte_array, self->a_nullable8_byte_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_float_array != nullptr - ? fl_value_new_float64_list( - self->a_nullable_float_array, - self->a_nullable_float_array_length) - : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable_float_array != nullptr + ? fl_value_new_float_list(self->a_nullable_float_array, + self->a_nullable_float_array_length) + : fl_value_new_null()); fl_value_append_take( values, self->a_nullable_enum != nullptr @@ -1543,7 +1530,7 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { const double* a_nullable_float_array = nullptr; size_t a_nullable_float_array_length = 0; if (fl_value_get_type(value7) != FL_VALUE_TYPE_NULL) { - a_nullable_float_array = fl_value_get_float64_list(value7); + a_nullable_float_array = fl_value_get_float_list(value7); a_nullable_float_array_length = fl_value_get_length(value7); } FlValue* value8 = fl_value_get_list_value(values, 8); @@ -2471,11 +2458,11 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( ? fl_value_new_int64_list(self->a_nullable8_byte_array, self->a_nullable8_byte_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_float_array != nullptr - ? fl_value_new_float64_list( - self->a_nullable_float_array, - self->a_nullable_float_array_length) - : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable_float_array != nullptr + ? fl_value_new_float_list(self->a_nullable_float_array, + self->a_nullable_float_array_length) + : fl_value_new_null()); fl_value_append_take( values, self->a_nullable_enum != nullptr @@ -2602,7 +2589,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( const double* a_nullable_float_array = nullptr; size_t a_nullable_float_array_length = 0; if (fl_value_get_type(value7) != FL_VALUE_TYPE_NULL) { - a_nullable_float_array = fl_value_get_float64_list(value7); + a_nullable_float_array = fl_value_get_float_list(value7); a_nullable_float_array_length = fl_value_get_length(value7); } FlValue* value8 = fl_value_get_list_value(values, 8); diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 7c94f25d65f9..f612b1a5bcd7 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -74,9 +74,10 @@ bool PigeonInternalDeepEquals(const std::optional& a, inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - if (a.type() == b.type() && - a.type() == ::flutter::EncodableValue::Type::kDouble) { - return PigeonInternalDeepEquals(std::get(a), std::get(b)); + auto* da = std::get_if(&a); + auto* db = std::get_if(&b); + if (da && db) { + return PigeonInternalDeepEquals(*da, *db); } return a == b; } From 101fb0f67221bb0ed9160ab143373e5854604815 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 19:53:56 -0800 Subject: [PATCH 15/33] last few issues I hope --- .../java/io/flutter/plugins/Messages.java | 4 +- .../example/app/windows/runner/messages.g.cpp | 4 + .../example/app/windows/runner/messages.g.h | 1 + .../pigeon/lib/src/cpp/cpp_generator.dart | 19 ++++ .../pigeon/lib/src/java/java_generator.dart | 88 +++++++++---------- .../CoreTests.java | 4 +- .../ios/RunnerTests/AllDatatypesTests.swift | 3 +- .../ios/RunnerTests/MultipleArityTests.swift | 2 +- .../RunnerTests/NullableReturnsTests.swift | 2 +- .../ios/RunnerTests/PrimitiveTests.swift | 2 +- .../windows/pigeon/core_tests.gen.cpp | 25 ++++++ .../windows/pigeon/core_tests.gen.h | 6 ++ 12 files changed, 105 insertions(+), 55 deletions(-) diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index 89f98f614ca5..f1d84d12a9e4 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -27,7 +27,7 @@ /** Generated class from Pigeon. */ @SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) public class Messages { - private static boolean pigeonDeepEquals(Object a, Object b) { + static boolean pigeonDeepEquals(Object a, Object b) { if (a == b) { return true; } @@ -78,7 +78,7 @@ private static boolean pigeonDeepEquals(Object a, Object b) { return a.equals(b); } - private static int pigeonDeepHashCode(Object value) { + static int pigeonDeepHashCode(Object value) { if (value == null) { return 0; } diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index 28ef3149ac36..6b9a29bad714 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -159,6 +159,10 @@ bool MessageData::operator==(const MessageData& other) const { PigeonInternalDeepEquals(data_, other.data_); } +bool MessageData::operator!=(const MessageData& other) const { + return !(*this == other); +} + PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( diff --git a/packages/pigeon/example/app/windows/runner/messages.g.h b/packages/pigeon/example/app/windows/runner/messages.g.h index bbd518a3c2fb..216583d7bd52 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.h +++ b/packages/pigeon/example/app/windows/runner/messages.g.h @@ -86,6 +86,7 @@ class MessageData { void set_data(const ::flutter::EncodableMap& value_arg); bool operator==(const MessageData& other) const; + bool operator!=(const MessageData& other) const; private: static MessageData FromEncodableList(const ::flutter::EncodableList& list); diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 303429899e3a..2d3104694cc1 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -467,6 +467,13 @@ class CppHeaderGenerator extends StructuredGenerator { parameters: ['const ${classDefinition.name}& other'], isConst: true, ); + _writeFunctionDeclaration( + indent, + 'operator!=', + returnType: 'bool', + parameters: ['const ${classDefinition.name}& other'], + isConst: true, + ); }); _writeAccessBlock(indent, _ClassAccess.private, () { @@ -1082,6 +1089,18 @@ class CppSourceGenerator extends StructuredGenerator { } }, ); + + _writeFunctionDefinition( + indent, + 'operator!=', + scope: classDefinition.name, + returnType: 'bool', + parameters: ['const ${classDefinition.name}& other'], + isConst: true, + body: () { + indent.writeln('return !(*this == other);'); + }, + ); } void _writeDeepEquals(Indent indent) { diff --git a/packages/pigeon/lib/src/java/java_generator.dart b/packages/pigeon/lib/src/java/java_generator.dart index bc621bdd1fb9..1e573da774ef 100644 --- a/packages/pigeon/lib/src/java/java_generator.dart +++ b/packages/pigeon/lib/src/java/java_generator.dart @@ -409,7 +409,7 @@ class JavaGenerator extends StructuredGenerator { void _writeDeepEquals(Indent indent) { indent.writeScoped( - 'private static boolean pigeonDeepEquals(Object a, Object b) {', + 'static boolean pigeonDeepEquals(Object a, Object b) {', '}', () { indent.writeln('if (a == b) { return true; }'); @@ -496,53 +496,49 @@ class JavaGenerator extends StructuredGenerator { } void _writeDeepHashCode(Indent indent) { - indent.writeScoped( - 'private static int pigeonDeepHashCode(Object value) {', - '}', - () { - indent.writeln('if (value == null) { return 0; }'); - indent.writeScoped('if (value instanceof byte[]) {', '}', () { - indent.writeln('return Arrays.hashCode((byte[]) value);'); - }); - indent.writeScoped('if (value instanceof int[]) {', '}', () { - indent.writeln('return Arrays.hashCode((int[]) value);'); - }); - indent.writeScoped('if (value instanceof long[]) {', '}', () { - indent.writeln('return Arrays.hashCode((long[]) value);'); - }); - indent.writeScoped('if (value instanceof double[]) {', '}', () { - indent.writeln('return Arrays.hashCode((double[]) value);'); - }); - indent.writeScoped('if (value instanceof List) {', '}', () { - indent.writeln('int result = 1;'); - indent.writeScoped('for (Object item : (List) value) {', '}', () { - indent.writeln('result = 31 * result + pigeonDeepHashCode(item);'); - }); - indent.writeln('return result;'); - }); - indent.writeScoped('if (value instanceof Map) {', '}', () { - indent.writeln('int result = 0;'); - indent.writeScoped( - 'for (Map.Entry entry : ((Map) value).entrySet()) {', - '}', - () { - indent.writeln( - 'result += (pigeonDeepHashCode(entry.getKey()) ^ pigeonDeepHashCode(entry.getValue()));', - ); - }, - ); - indent.writeln('return result;'); + indent.writeScoped('static int pigeonDeepHashCode(Object value) {', '}', () { + indent.writeln('if (value == null) { return 0; }'); + indent.writeScoped('if (value instanceof byte[]) {', '}', () { + indent.writeln('return Arrays.hashCode((byte[]) value);'); + }); + indent.writeScoped('if (value instanceof int[]) {', '}', () { + indent.writeln('return Arrays.hashCode((int[]) value);'); + }); + indent.writeScoped('if (value instanceof long[]) {', '}', () { + indent.writeln('return Arrays.hashCode((long[]) value);'); + }); + indent.writeScoped('if (value instanceof double[]) {', '}', () { + indent.writeln('return Arrays.hashCode((double[]) value);'); + }); + indent.writeScoped('if (value instanceof List) {', '}', () { + indent.writeln('int result = 1;'); + indent.writeScoped('for (Object item : (List) value) {', '}', () { + indent.writeln('result = 31 * result + pigeonDeepHashCode(item);'); }); - indent.writeScoped('if (value instanceof Object[]) {', '}', () { - indent.writeln('int result = 1;'); - indent.writeScoped('for (Object item : (Object[]) value) {', '}', () { - indent.writeln('result = 31 * result + pigeonDeepHashCode(item);'); - }); - indent.writeln('return result;'); + indent.writeln('return result;'); + }); + indent.writeScoped('if (value instanceof Map) {', '}', () { + indent.writeln('int result = 0;'); + indent.writeScoped( + 'for (Map.Entry entry : ((Map) value).entrySet()) {', + '}', + () { + indent.writeln( + 'result += (pigeonDeepHashCode(entry.getKey()) ^ pigeonDeepHashCode(entry.getValue()));', + ); + }, + ); + indent.writeln('return result;'); + }); + indent.writeScoped('if (value instanceof Object[]) {', '}', () { + indent.writeln('int result = 1;'); + indent.writeScoped('for (Object item : (Object[]) value) {', '}', () { + indent.writeln('result = 31 * result + pigeonDeepHashCode(item);'); }); - indent.writeln('return value.hashCode();'); - }, - ); + indent.writeln('return result;'); + }); + indent.writeln('return value.hashCode();'); + }); indent.newln(); } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index 41f2dd0bd548..3be76ef0795b 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -30,7 +30,7 @@ /** Generated class from Pigeon. */ @SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) public class CoreTests { - private static boolean pigeonDeepEquals(Object a, Object b) { + static boolean pigeonDeepEquals(Object a, Object b) { if (a == b) { return true; } @@ -81,7 +81,7 @@ private static boolean pigeonDeepEquals(Object a, Object b) { return a.equals(b); } - private static int pigeonDeepHashCode(Object value) { + static int pigeonDeepHashCode(Object value) { if (value == null) { return 0; } diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift index 1d75d6e4b372..bcbc0c8dd98c 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift @@ -251,8 +251,7 @@ struct AllDatatypesTests { // though Data in Swift is a value type. // FlutterStandardTypedData is a class. let a = AllNullableTypes(aNullableByteArray: FlutterStandardTypedData(bytes: data1)) - let b = AllNullableTypes(aNullableDouble: 1.0) // Just to change something - var c = a + let c = a c.aNullableByteArray = FlutterStandardTypedData(bytes: data2) #expect(a == c) diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/MultipleArityTests.swift b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/MultipleArityTests.swift index dec835076052..7a87a0052231 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/MultipleArityTests.swift +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/MultipleArityTests.swift @@ -15,7 +15,7 @@ class MockMultipleArityHostApi: MultipleArityHostApi { @MainActor struct MultipleArityTests { - var codec = FlutterStandardMessageCodec.sharedInstance() + let codec = FlutterStandardMessageCodec.sharedInstance() @Test func simpleHost() async throws { diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/NullableReturnsTests.swift b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/NullableReturnsTests.swift index 6d12dbae93ca..e2925038f6b9 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/NullableReturnsTests.swift +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/NullableReturnsTests.swift @@ -20,7 +20,7 @@ class MockNullableArgHostApi: NullableArgHostApi { @MainActor struct NullableReturnsTests { - var codec = FlutterStandardMessageCodec.sharedInstance() + let codec = FlutterStandardMessageCodec.sharedInstance() @Test func nullableParameterWithFlutterApi() async throws { diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/PrimitiveTests.swift b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/PrimitiveTests.swift index 62b300b9ab5b..0a3228e86eaf 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/PrimitiveTests.swift +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/PrimitiveTests.swift @@ -21,7 +21,7 @@ class MockPrimitiveHostApi: PrimitiveHostApi { @MainActor struct PrimitiveTests { - var codec = FlutterStandardMessageCodec.sharedInstance() + let codec = FlutterStandardMessageCodec.sharedInstance() @Test func intPrimitiveHost() async throws { diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index f612b1a5bcd7..72b7d4ab03f7 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -123,6 +123,10 @@ bool UnusedClass::operator==(const UnusedClass& other) const { return PigeonInternalDeepEquals(a_field_, other.a_field_); } +bool UnusedClass::operator!=(const UnusedClass& other) const { + return !(*this == other); +} + // AllTypes AllTypes::AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, @@ -422,6 +426,10 @@ bool AllTypes::operator==(const AllTypes& other) const { PigeonInternalDeepEquals(map_map_, other.map_map_); } +bool AllTypes::operator!=(const AllTypes& other) const { + return !(*this == other); +} + // AllNullableTypes AllNullableTypes::AllNullableTypes() {} @@ -1317,6 +1325,10 @@ bool AllNullableTypes::operator==(const AllNullableTypes& other) const { other.recursive_class_map_); } +bool AllNullableTypes::operator!=(const AllNullableTypes& other) const { + return !(*this == other); +} + // AllNullableTypesWithoutRecursion AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion() {} @@ -2043,6 +2055,11 @@ bool AllNullableTypesWithoutRecursion::operator==( PigeonInternalDeepEquals(map_map_, other.map_map_); } +bool AllNullableTypesWithoutRecursion::operator!=( + const AllNullableTypesWithoutRecursion& other) const { + return !(*this == other); +} + // AllClassesWrapper AllClassesWrapper::AllClassesWrapper(const AllNullableTypes& all_nullable_types, @@ -2264,6 +2281,10 @@ bool AllClassesWrapper::operator==(const AllClassesWrapper& other) const { other.nullable_class_map_); } +bool AllClassesWrapper::operator!=(const AllClassesWrapper& other) const { + return !(*this == other); +} + // TestMessage TestMessage::TestMessage() {} @@ -2305,6 +2326,10 @@ bool TestMessage::operator==(const TestMessage& other) const { return PigeonInternalDeepEquals(test_list_, other.test_list_); } +bool TestMessage::operator!=(const TestMessage& other) const { + return !(*this == other); +} + PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index 753b85d1e232..af3183d541fd 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -89,6 +89,7 @@ class UnusedClass { void set_a_field(const ::flutter::EncodableValue& value_arg); bool operator==(const UnusedClass& other) const; + bool operator!=(const UnusedClass& other) const; private: static UnusedClass FromEncodableList(const ::flutter::EncodableList& list); @@ -219,6 +220,7 @@ class AllTypes { void set_map_map(const ::flutter::EncodableMap& value_arg); bool operator==(const AllTypes& other) const; + bool operator!=(const AllTypes& other) const; private: static AllTypes FromEncodableList(const ::flutter::EncodableList& list); @@ -430,6 +432,7 @@ class AllNullableTypes { void set_recursive_class_map(const ::flutter::EncodableMap& value_arg); bool operator==(const AllNullableTypes& other) const; + bool operator!=(const AllNullableTypes& other) const; private: static AllNullableTypes FromEncodableList( @@ -627,6 +630,7 @@ class AllNullableTypesWithoutRecursion { void set_map_map(const ::flutter::EncodableMap& value_arg); bool operator==(const AllNullableTypesWithoutRecursion& other) const; + bool operator!=(const AllNullableTypesWithoutRecursion& other) const; private: static AllNullableTypesWithoutRecursion FromEncodableList( @@ -728,6 +732,7 @@ class AllClassesWrapper { void set_nullable_class_map(const ::flutter::EncodableMap& value_arg); bool operator==(const AllClassesWrapper& other) const; + bool operator!=(const AllClassesWrapper& other) const; private: static AllClassesWrapper FromEncodableList( @@ -766,6 +771,7 @@ class TestMessage { void set_test_list(const ::flutter::EncodableList& value_arg); bool operator==(const TestMessage& other) const; + bool operator!=(const TestMessage& other) const; private: static TestMessage FromEncodableList(const ::flutter::EncodableList& list); From 7309d17cfdc86966374d450eaf861ea7c402bf5d Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 20:47:29 -0800 Subject: [PATCH 16/33] not being able to run things locally sucks --- .../pigeon/example/app/linux/messages.g.cc | 6 +- .../example/app/windows/runner/messages.g.cpp | 27 ++- .../pigeon/lib/src/cpp/cpp_generator.dart | 22 +- .../lib/src/gobject/gobject_generator.dart | 192 +++++++++++------- .../linux/pigeon/core_tests.gen.cc | 30 +-- .../windows/pigeon/core_tests.gen.cpp | 27 ++- 6 files changed, 187 insertions(+), 117 deletions(-) diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index a612bef163e9..33f9741923dd 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -9,7 +9,7 @@ #include #include -static guint flpigeon_hash_double(double v) { +static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { if (std::isnan(v)) return (guint)0x7FF80000; union { double d; @@ -18,7 +18,7 @@ static guint flpigeon_hash_double(double v) { u.d = v; return (guint)(u.u ^ (u.u >> 32)); } -static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { +static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; if (fl_value_get_type(a) != fl_value_get_type(b)) { @@ -81,7 +81,7 @@ static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { } return FALSE; } -static guint flpigeon_deep_hash(FlValue* value) { +static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) { if (value == nullptr) return 0; switch (fl_value_get_type(value)) { case FL_VALUE_TYPE_BOOL: diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index 6b9a29bad714..48a94dec7502 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -47,9 +47,9 @@ bool PigeonInternalDeepEquals(const std::vector& a, return true; } -template -bool PigeonInternalDeepEquals(const std::map& a, - const std::map& b) { +template +bool PigeonInternalDeepEquals(const std::map& a, + const std::map& b) { if (a.size() != b.size()) return false; for (const auto& kv : a) { auto it = b.find(kv.first); @@ -71,12 +71,25 @@ bool PigeonInternalDeepEquals(const std::optional& a, return PigeonInternalDeepEquals(*a, *b); } +template +bool PigeonInternalDeepEquals(const std::unique_ptr& a, + const std::unique_ptr& b) { + if (!a && !b) return true; + if (!a || !b) return false; + return PigeonInternalDeepEquals(*a, *b); +} + inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - auto* da = std::get_if(&a); - auto* db = std::get_if(&b); - if (da && db) { - return PigeonInternalDeepEquals(*da, *db); + if (a.index() != b.index()) return false; + if (const double* da = std::get_if(&a)) { + return PigeonInternalDeepEquals(*da, std::get(b)); + } else if (const ::flutter::EncodableList* la = + std::get_if<::flutter::EncodableList>(&a)) { + return PigeonInternalDeepEquals(*la, std::get<::flutter::EncodableList>(b)); + } else if (const ::flutter::EncodableMap* ma = + std::get_if<::flutter::EncodableMap>(&a)) { + return PigeonInternalDeepEquals(*ma, std::get<::flutter::EncodableMap>(b)); } return a == b; } diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 2d3104694cc1..293a518081e4 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -1119,8 +1119,8 @@ bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) return true; } -template -bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { +template +bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { if (a.size() != b.size()) return false; for (const auto& kv : a) { auto it = b.find(kv.first); @@ -1141,11 +1141,21 @@ bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& return PigeonInternalDeepEquals(*a, *b); } +template +bool PigeonInternalDeepEquals(const std::unique_ptr& a, const std::unique_ptr& b) { + if (!a && !b) return true; + if (!a || !b) return false; + return PigeonInternalDeepEquals(*a, *b); +} + inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - auto* da = std::get_if(&a); - auto* db = std::get_if(&b); - if (da && db) { - return PigeonInternalDeepEquals(*da, *db); + if (a.index() != b.index()) return false; + if (const double* da = std::get_if(&a)) { + return PigeonInternalDeepEquals(*da, std::get(b)); + } else if (const ::flutter::EncodableList* la = std::get_if<::flutter::EncodableList>(&a)) { + return PigeonInternalDeepEquals(*la, std::get<::flutter::EncodableList>(b)); + } else if (const ::flutter::EncodableMap* ma = std::get_if<::flutter::EncodableMap>(&a)) { + return PigeonInternalDeepEquals(*ma, std::get<::flutter::EncodableMap>(b)); } return a == b; } diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index 38c2964ea284..4bf7049222a8 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -1247,7 +1247,7 @@ class GObjectSourceGenerator final String elementTypeName = _getType( module, field.type, - primitive: true, + isElementType: true, ); indent.writeln('const $elementTypeName* data = self->$fieldName;'); indent.writeScoped('if (data != nullptr) {', '}', () { @@ -2513,6 +2513,7 @@ String _getType( TypeDeclaration type, { bool isOutput = false, bool primitive = false, + bool isElementType = false, }) { if (type.isClass) { return '${_getClassName(module, type.baseName)}*'; @@ -2532,14 +2533,29 @@ String _getType( } else if (type.baseName == 'String') { return isOutput ? 'gchar*' : 'const gchar*'; } else if (type.baseName == 'Uint8List') { + if (isElementType) { + return 'uint8_t'; + } return isOutput ? 'uint8_t*' : 'const uint8_t*'; } else if (type.baseName == 'Int32List') { + if (isElementType) { + return 'int32_t'; + } return isOutput ? 'int32_t*' : 'const int32_t*'; } else if (type.baseName == 'Int64List') { + if (isElementType) { + return 'int64_t'; + } return isOutput ? 'int64_t*' : 'const int64_t*'; } else if (type.baseName == 'Float32List') { + if (isElementType) { + return 'float'; + } return isOutput ? 'float*' : 'const float*'; } else if (type.baseName == 'Float64List') { + if (isElementType) { + return 'double'; + } return isOutput ? 'double*' : 'const double*'; } else { throw Exception('Unknown type ${type.baseName}'); @@ -2775,17 +2791,21 @@ String _getResponseName(String name, String methodName) { } void _writeHashHelpers(Indent indent) { - indent.writeScoped('static guint flpigeon_hash_double(double v) {', '}', () { - indent.writeln('if (std::isnan(v)) return (guint)0x7FF80000;'); - indent.writeln('union { double d; uint64_t u; } u;'); - indent.writeln('u.d = v;'); - indent.writeln('return (guint)(u.u ^ (u.u >> 32));'); - }); + indent.writeScoped( + 'static guint G_GNUC_UNUSED flpigeon_hash_double(double v) {', + '}', + () { + indent.writeln('if (std::isnan(v)) return (guint)0x7FF80000;'); + indent.writeln('union { double d; uint64_t u; } u;'); + indent.writeln('u.d = v;'); + indent.writeln('return (guint)(u.u ^ (u.u >> 32));'); + }, + ); } void _writeDeepEquals(Indent indent) { indent.writeScoped( - 'static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) {', + 'static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) {', '}', () { indent.writeln('if (a == b) return TRUE;'); @@ -2878,80 +2898,94 @@ void _writeDeepEquals(Indent indent) { } void _writeDeepHash(Indent indent) { - indent.writeScoped('static guint flpigeon_deep_hash(FlValue* value) {', '}', () { - indent.writeln('if (value == nullptr) return 0;'); - indent.writeScoped('switch (fl_value_get_type(value)) {', '}', () { - indent.writeln('case FL_VALUE_TYPE_BOOL:'); - indent.writeln(' return fl_value_get_bool(value) ? 1231 : 1237;'); - indent.writeln('case FL_VALUE_TYPE_INT: {'); - indent.writeln(' int64_t v = fl_value_get_int(value);'); - indent.writeln(' return (guint)(v ^ (v >> 32));'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_FLOAT:'); - indent.writeln( - ' return flpigeon_hash_double(fl_value_get_float(value));', - ); - indent.writeln('case FL_VALUE_TYPE_STRING:'); - indent.writeln(' return g_str_hash(fl_value_get_string(value));'); - indent.writeln('case FL_VALUE_TYPE_UINT8_LIST: {'); - indent.writeln(' guint result = 1;'); - indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeln(' const uint8_t* data = fl_value_get_uint8_list(value);'); - indent.writeln( - ' for (size_t i = 0; i < len; i++) result = result * 31 + data[i];', - ); - indent.writeln(' return result;'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_INT32_LIST: {'); - indent.writeln(' guint result = 1;'); - indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeln(' const int32_t* data = fl_value_get_int32_list(value);'); - indent.writeln( - ' for (size_t i = 0; i < len; i++) result = result * 31 + (guint)data[i];', - ); - indent.writeln(' return result;'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_INT64_LIST: {'); - indent.writeln(' guint result = 1;'); - indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeln(' const int64_t* data = fl_value_get_int64_list(value);'); - indent.writeln( - ' for (size_t i = 0; i < len; i++) result = result * 31 + (guint)(data[i] ^ (data[i] >> 32));', - ); - indent.writeln(' return result;'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST: {'); - indent.writeln(' guint result = 1;'); - indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeln(' const double* data = fl_value_get_float_list(value);'); - indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { - indent.writeln('result = result * 31 + flpigeon_hash_double(data[i]);'); - }); - indent.writeln(' return result;'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_LIST: {'); - indent.writeln(' guint result = 1;'); - indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeScoped( + 'static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) {', + '}', + () { + indent.writeln('if (value == nullptr) return 0;'); + indent.writeScoped('switch (fl_value_get_type(value)) {', '}', () { + indent.writeln('case FL_VALUE_TYPE_BOOL:'); + indent.writeln(' return fl_value_get_bool(value) ? 1231 : 1237;'); + indent.writeln('case FL_VALUE_TYPE_INT: {'); + indent.writeln(' int64_t v = fl_value_get_int(value);'); + indent.writeln(' return (guint)(v ^ (v >> 32));'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_FLOAT:'); indent.writeln( - 'result = result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i));', + ' return flpigeon_hash_double(fl_value_get_float(value));', ); - }); - indent.writeln(' return result;'); - indent.writeln('}'); - indent.writeln('case FL_VALUE_TYPE_MAP: {'); - indent.writeln(' guint result = 0;'); - indent.writeln(' size_t len = fl_value_get_length(value);'); - indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln('case FL_VALUE_TYPE_STRING:'); + indent.writeln(' return g_str_hash(fl_value_get_string(value));'); + indent.writeln('case FL_VALUE_TYPE_UINT8_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeln( + ' const uint8_t* data = fl_value_get_uint8_list(value);', + ); + indent.writeln( + ' for (size_t i = 0; i < len; i++) result = result * 31 + data[i];', + ); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_INT32_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); indent.writeln( - 'result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ flpigeon_deep_hash(fl_value_get_map_value(value, i)));', + ' const int32_t* data = fl_value_get_int32_list(value);', ); + indent.writeln( + ' for (size_t i = 0; i < len; i++) result = result * 31 + (guint)data[i];', + ); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_INT64_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeln( + ' const int64_t* data = fl_value_get_int64_list(value);', + ); + indent.writeln( + ' for (size_t i = 0; i < len; i++) result = result * 31 + (guint)(data[i] ^ (data[i] >> 32));', + ); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeln( + ' const double* data = fl_value_get_float_list(value);', + ); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'result = result * 31 + flpigeon_hash_double(data[i]);', + ); + }); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_LIST: {'); + indent.writeln(' guint result = 1;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'result = result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i));', + ); + }); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('case FL_VALUE_TYPE_MAP: {'); + indent.writeln(' guint result = 0;'); + indent.writeln(' size_t len = fl_value_get_length(value);'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ flpigeon_deep_hash(fl_value_get_map_value(value, i)));', + ); + }); + indent.writeln(' return result;'); + indent.writeln('}'); + indent.writeln('default:'); + indent.writeln(' return (guint)fl_value_get_type(value);'); }); - indent.writeln(' return result;'); - indent.writeln('}'); - indent.writeln('default:'); - indent.writeln(' return (guint)fl_value_get_type(value);'); - }); - indent.writeln('return 0;'); - }); + indent.writeln('return 0;'); + }, + ); } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 72646e16b324..85ac8630134c 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -10,7 +10,7 @@ #include #include -static guint flpigeon_hash_double(double v) { +static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { if (std::isnan(v)) return (guint)0x7FF80000; union { double d; @@ -19,7 +19,7 @@ static guint flpigeon_hash_double(double v) { u.d = v; return (guint)(u.u ^ (u.u >> 32)); } -static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { +static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; if (fl_value_get_type(a) != fl_value_get_type(b)) { @@ -82,7 +82,7 @@ static gboolean flpigeon_deep_equals(FlValue* a, FlValue* b) { } return FALSE; } -static guint flpigeon_deep_hash(FlValue* value) { +static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) { if (value == nullptr) return 0; switch (fl_value_get_type(value)) { case FL_VALUE_TYPE_BOOL: @@ -778,7 +778,7 @@ guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* self) { result = result * 31 + flpigeon_hash_double(self->a_double); { size_t len = self->a_byte_array_length; - const const uint8_t** data = self->a_byte_array; + const uint8_t* data = self->a_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)data[i]; @@ -787,7 +787,7 @@ guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* self) { } { size_t len = self->a4_byte_array_length; - const const int32_t** data = self->a4_byte_array; + const int32_t* data = self->a4_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)data[i]; @@ -796,7 +796,7 @@ guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* self) { } { size_t len = self->a8_byte_array_length; - const const int64_t** data = self->a8_byte_array; + const int64_t* data = self->a8_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); @@ -805,7 +805,7 @@ guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* self) { } { size_t len = self->a_float_array_length; - const const double** data = self->a_float_array; + const double* data = self->a_float_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double(data[i]); @@ -1831,7 +1831,7 @@ guint core_tests_pigeon_test_all_nullable_types_hash( : 0); { size_t len = self->a_nullable_byte_array_length; - const const uint8_t** data = self->a_nullable_byte_array; + const uint8_t* data = self->a_nullable_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)data[i]; @@ -1840,7 +1840,7 @@ guint core_tests_pigeon_test_all_nullable_types_hash( } { size_t len = self->a_nullable4_byte_array_length; - const const int32_t** data = self->a_nullable4_byte_array; + const int32_t* data = self->a_nullable4_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)data[i]; @@ -1849,7 +1849,7 @@ guint core_tests_pigeon_test_all_nullable_types_hash( } { size_t len = self->a_nullable8_byte_array_length; - const const int64_t** data = self->a_nullable8_byte_array; + const int64_t* data = self->a_nullable8_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); @@ -1858,7 +1858,7 @@ guint core_tests_pigeon_test_all_nullable_types_hash( } { size_t len = self->a_nullable_float_array_length; - const const double** data = self->a_nullable_float_array; + const double* data = self->a_nullable_float_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double(data[i]); @@ -2864,7 +2864,7 @@ guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( : 0); { size_t len = self->a_nullable_byte_array_length; - const const uint8_t** data = self->a_nullable_byte_array; + const uint8_t* data = self->a_nullable_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)data[i]; @@ -2873,7 +2873,7 @@ guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( } { size_t len = self->a_nullable4_byte_array_length; - const const int32_t** data = self->a_nullable4_byte_array; + const int32_t* data = self->a_nullable4_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)data[i]; @@ -2882,7 +2882,7 @@ guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( } { size_t len = self->a_nullable8_byte_array_length; - const const int64_t** data = self->a_nullable8_byte_array; + const int64_t* data = self->a_nullable8_byte_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); @@ -2891,7 +2891,7 @@ guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( } { size_t len = self->a_nullable_float_array_length; - const const double** data = self->a_nullable_float_array; + const double* data = self->a_nullable_float_array; if (data != nullptr) { for (size_t i = 0; i < len; i++) { result = result * 31 + flpigeon_hash_double(data[i]); diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 72b7d4ab03f7..2c553e1a4e30 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -48,9 +48,9 @@ bool PigeonInternalDeepEquals(const std::vector& a, return true; } -template -bool PigeonInternalDeepEquals(const std::map& a, - const std::map& b) { +template +bool PigeonInternalDeepEquals(const std::map& a, + const std::map& b) { if (a.size() != b.size()) return false; for (const auto& kv : a) { auto it = b.find(kv.first); @@ -72,12 +72,25 @@ bool PigeonInternalDeepEquals(const std::optional& a, return PigeonInternalDeepEquals(*a, *b); } +template +bool PigeonInternalDeepEquals(const std::unique_ptr& a, + const std::unique_ptr& b) { + if (!a && !b) return true; + if (!a || !b) return false; + return PigeonInternalDeepEquals(*a, *b); +} + inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - auto* da = std::get_if(&a); - auto* db = std::get_if(&b); - if (da && db) { - return PigeonInternalDeepEquals(*da, *db); + if (a.index() != b.index()) return false; + if (const double* da = std::get_if(&a)) { + return PigeonInternalDeepEquals(*da, std::get(b)); + } else if (const ::flutter::EncodableList* la = + std::get_if<::flutter::EncodableList>(&a)) { + return PigeonInternalDeepEquals(*la, std::get<::flutter::EncodableList>(b)); + } else if (const ::flutter::EncodableMap* ma = + std::get_if<::flutter::EncodableMap>(&a)) { + return PigeonInternalDeepEquals(*ma, std::get<::flutter::EncodableMap>(b)); } return a == b; } From 24d0f23c2b793c3791f11d07d9b2e91256ff93db Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 21:08:55 -0800 Subject: [PATCH 17/33] bigobj --- .../platform_tests/test_plugin/windows/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/pigeon/platform_tests/test_plugin/windows/CMakeLists.txt b/packages/pigeon/platform_tests/test_plugin/windows/CMakeLists.txt index e69e6bc75130..fff3f37c5d5c 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/CMakeLists.txt +++ b/packages/pigeon/platform_tests/test_plugin/windows/CMakeLists.txt @@ -66,6 +66,9 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin) # https://developercommunity.visualstudio.com/t/stdany-doesnt-link-when-exceptions-are-disabled/376072 # TODO(stuartmorgan): Remove this once CI is using VS 2022 or later. target_compile_definitions(${PLUGIN_NAME} PRIVATE "_HAS_EXCEPTIONS=1") +if (MSVC) + target_compile_options(${PLUGIN_NAME} PRIVATE "/bigobj") +endif() # List of absolute paths to libraries that should be bundled with the plugin. # This list could contain prebuilt libraries, or libraries created by an @@ -126,6 +129,9 @@ add_custom_command(TARGET ${TEST_RUNNER} POST_BUILD # https://developercommunity.visualstudio.com/t/stdany-doesnt-link-when-exceptions-are-disabled/376072 # TODO(stuartmorgan): Remove this once CI is using VS 2022 or later. target_compile_definitions(${TEST_RUNNER} PRIVATE "_HAS_EXCEPTIONS=1") +if (MSVC) + target_compile_options(${TEST_RUNNER} PRIVATE "/bigobj") +endif() include(GoogleTest) gtest_discover_tests(${TEST_RUNNER}) From 21ad3933bc02bc75ffbefe6603964dbc6bd68aab Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 22:00:43 -0800 Subject: [PATCH 18/33] consolidate tests --- .../test/equality_test.dart | 153 ++++++++++++++++++ .../test/generated_dart_test_code_test.dart | 143 ---------------- .../test/non_null_fields_test.dart | 10 -- 3 files changed, 153 insertions(+), 153 deletions(-) diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart index a7d5bcca4667..453f78822b32 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart @@ -4,6 +4,8 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:shared_test_plugin_code/src/generated/core_tests.gen.dart'; +import 'package:shared_test_plugin_code/src/generated/non_null_fields.gen.dart'; +import 'package:shared_test_plugin_code/test_types.dart'; void main() { test('NaN equality', () { @@ -60,4 +62,155 @@ void main() { // ignore: unrelated_type_equality_checks expect(b == a, isFalse); }); + + test('non-null fields equality', () { + final request1 = NonNullFieldSearchRequest(query: 'hello'); + final request2 = NonNullFieldSearchRequest(query: 'hello'); + final request3 = NonNullFieldSearchRequest(query: 'world'); + + expect(request1, request2); + expect(request1, isNot(request3)); + expect(request1.hashCode, request2.hashCode); + }); + + group('deep equality', () { + final correctList = ['a', 2, 'three']; + final List matchingList = correctList.toList(); + final differentList = ['a', 2, 'three', 4.0]; + final correctMap = {'a': 1, 'b': 2, 'c': 'three'}; + final matchingMap = {...correctMap}; + final differentKeyMap = {'a': 1, 'b': 2, 'd': 'three'}; + final differentValueMap = {'a': 1, 'b': 2, 'c': 'five'}; + final correctListInMap = { + 'a': 1, + 'b': 2, + 'c': correctList, + }; + final matchingListInMap = { + 'a': 1, + 'b': 2, + 'c': matchingList, + }; + final differentListInMap = { + 'a': 1, + 'b': 2, + 'c': differentList, + }; + final correctMapInList = ['a', 2, correctMap]; + final matchingMapInList = ['a', 2, matchingMap]; + final differentKeyMapInList = ['a', 2, differentKeyMap]; + final differentValueMapInList = ['a', 2, differentValueMap]; + + test('equality method correctly checks deep equality', () { + final AllNullableTypes generic = genericAllNullableTypes; + final AllNullableTypes identical = AllNullableTypes.decode( + generic.encode(), + ); + expect(identical, generic); + }); + + test('equality method correctly identifies non-matching classes', () { + final AllNullableTypes generic = genericAllNullableTypes; + final allNull = AllNullableTypes(); + expect(allNull == generic, false); + }); + + test( + 'equality method correctly identifies non-matching lists in classes', + () { + final withList = AllNullableTypes(list: correctList); + final withDifferentList = AllNullableTypes(list: differentList); + expect(withList == withDifferentList, false); + }, + ); + + test( + 'equality method correctly identifies matching -but unique- lists in classes', + () { + final withList = AllNullableTypes(list: correctList); + final withDifferentList = AllNullableTypes(list: matchingList); + expect(withList, withDifferentList); + }, + ); + + test( + 'equality method correctly identifies non-matching keys in maps in classes', + () { + final withMap = AllNullableTypes(map: correctMap); + final withDifferentMap = AllNullableTypes(map: differentKeyMap); + expect(withMap == withDifferentMap, false); + }, + ); + + test( + 'equality method correctly identifies non-matching values in maps in classes', + () { + final withMap = AllNullableTypes(map: correctMap); + final withDifferentMap = AllNullableTypes(map: differentValueMap); + expect(withMap == withDifferentMap, false); + }, + ); + + test( + 'equality method correctly identifies matching -but unique- maps in classes', + () { + final withMap = AllNullableTypes(map: correctMap); + final withDifferentMap = AllNullableTypes(map: matchingMap); + expect(withMap, withDifferentMap); + }, + ); + + test( + 'equality method correctly identifies non-matching lists nested in maps in classes', + () { + final withListInMap = AllNullableTypes(map: correctListInMap); + final withDifferentListInMap = AllNullableTypes( + map: differentListInMap, + ); + expect(withListInMap == withDifferentListInMap, false); + }, + ); + + test( + 'equality method correctly identifies matching -but unique- lists nested in maps in classes', + () { + final withListInMap = AllNullableTypes(map: correctListInMap); + final withDifferentListInMap = AllNullableTypes(map: matchingListInMap); + expect(withListInMap, withDifferentListInMap); + }, + ); + + test( + 'equality method correctly identifies non-matching keys in maps nested in lists in classes', + () { + final withMapInList = AllNullableTypes(list: correctMapInList); + final withDifferentMapInList = AllNullableTypes( + list: differentKeyMapInList, + ); + expect(withMapInList == withDifferentMapInList, false); + }, + ); + + test( + 'equality method correctly identifies non-matching values in maps nested in lists in classes', + () { + final withMapInList = AllNullableTypes(list: correctMapInList); + final withDifferentMapInList = AllNullableTypes( + list: differentValueMapInList, + ); + expect(withMapInList == withDifferentMapInList, false); + }, + ); + + test( + 'equality method correctly identifies matching -but unique- maps nested in lists in classes', + () { + final withMapInList = AllNullableTypes(list: correctMapInList); + final withDifferentMapInList = AllNullableTypes( + list: matchingMapInList, + ); + expect(withMapInList, withDifferentMapInList); + }, + ); + }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/generated_dart_test_code_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/generated_dart_test_code_test.dart index 8d9431687fc0..c5c03e0deede 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/generated_dart_test_code_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/generated_dart_test_code_test.dart @@ -6,10 +6,7 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:shared_test_plugin_code/src/generated/core_tests.gen.dart' - show AllNullableTypes; import 'package:shared_test_plugin_code/src/generated/message.gen.dart'; -import 'package:shared_test_plugin_code/test_types.dart'; import 'test_message.gen.dart'; @@ -44,146 +41,6 @@ class MockNested implements TestNestedApi { void main() { TestWidgetsFlutterBinding.ensureInitialized(); - group('equality method', () { - final correctList = ['a', 2, 'three']; - final List matchingList = correctList.toList(); - final differentList = ['a', 2, 'three', 4.0]; - final correctMap = {'a': 1, 'b': 2, 'c': 'three'}; - final matchingMap = {...correctMap}; - final differentKeyMap = {'a': 1, 'b': 2, 'd': 'three'}; - final differentValueMap = {'a': 1, 'b': 2, 'c': 'five'}; - final correctListInMap = { - 'a': 1, - 'b': 2, - 'c': correctList, - }; - final matchingListInMap = { - 'a': 1, - 'b': 2, - 'c': matchingList, - }; - final differentListInMap = { - 'a': 1, - 'b': 2, - 'c': differentList, - }; - final correctMapInList = ['a', 2, correctMap]; - final matchingMapInList = ['a', 2, matchingMap]; - final differentKeyMapInList = ['a', 2, differentKeyMap]; - final differentValueMapInList = ['a', 2, differentValueMap]; - - test('equality method correctly checks deep equality', () { - final AllNullableTypes generic = genericAllNullableTypes; - final AllNullableTypes identical = AllNullableTypes.decode( - generic.encode(), - ); - expect(identical, generic); - }); - - test('equality method correctly identifies non-matching classes', () { - final AllNullableTypes generic = genericAllNullableTypes; - final allNull = AllNullableTypes(); - expect(allNull == generic, false); - }); - - test( - 'equality method correctly identifies non-matching lists in classes', - () { - final withList = AllNullableTypes(list: correctList); - final withDifferentList = AllNullableTypes(list: differentList); - expect(withList == withDifferentList, false); - }, - ); - - test( - 'equality method correctly identifies matching -but unique- lists in classes', - () { - final withList = AllNullableTypes(list: correctList); - final withDifferentList = AllNullableTypes(list: matchingList); - expect(withList, withDifferentList); - }, - ); - - test( - 'equality method correctly identifies non-matching keys in maps in classes', - () { - final withMap = AllNullableTypes(map: correctMap); - final withDifferentMap = AllNullableTypes(map: differentKeyMap); - expect(withMap == withDifferentMap, false); - }, - ); - - test( - 'equality method correctly identifies non-matching values in maps in classes', - () { - final withMap = AllNullableTypes(map: correctMap); - final withDifferentMap = AllNullableTypes(map: differentValueMap); - expect(withMap == withDifferentMap, false); - }, - ); - - test( - 'equality method correctly identifies matching -but unique- maps in classes', - () { - final withMap = AllNullableTypes(map: correctMap); - final withDifferentMap = AllNullableTypes(map: matchingMap); - expect(withMap, withDifferentMap); - }, - ); - - test( - 'equality method correctly identifies non-matching lists nested in maps in classes', - () { - final withListInMap = AllNullableTypes(map: correctListInMap); - final withDifferentListInMap = AllNullableTypes( - map: differentListInMap, - ); - expect(withListInMap == withDifferentListInMap, false); - }, - ); - - test( - 'equality method correctly identifies matching -but unique- lists nested in maps in classes', - () { - final withListInMap = AllNullableTypes(map: correctListInMap); - final withDifferentListInMap = AllNullableTypes(map: matchingListInMap); - expect(withListInMap, withDifferentListInMap); - }, - ); - - test( - 'equality method correctly identifies non-matching keys in maps nested in lists in classes', - () { - final withMapInList = AllNullableTypes(list: correctMapInList); - final withDifferentMapInList = AllNullableTypes( - list: differentKeyMapInList, - ); - expect(withMapInList == withDifferentMapInList, false); - }, - ); - - test( - 'equality method correctly identifies non-matching values in maps nested in lists in classes', - () { - final withMapInList = AllNullableTypes(list: correctMapInList); - final withDifferentMapInList = AllNullableTypes( - list: differentValueMapInList, - ); - expect(withMapInList == withDifferentMapInList, false); - }, - ); - - test( - 'equality method correctly identifies matching -but unique- maps nested in lists in classes', - () { - final withMapInList = AllNullableTypes(list: correctMapInList); - final withDifferentMapInList = AllNullableTypes( - list: matchingMapInList, - ); - expect(withMapInList, withDifferentMapInList); - }, - ); - }); test('simple', () async { final api = MessageNestedApi(); final mock = MockNested(); diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/non_null_fields_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/non_null_fields_test.dart index b802327644b4..6e051d13e5ac 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/non_null_fields_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/non_null_fields_test.dart @@ -10,14 +10,4 @@ void main() { final request = NonNullFieldSearchRequest(query: 'what?'); expect(request.query, 'what?'); }); - - test('test equality', () { - final request1 = NonNullFieldSearchRequest(query: 'hello'); - final request2 = NonNullFieldSearchRequest(query: 'hello'); - final request3 = NonNullFieldSearchRequest(query: 'world'); - - expect(request1, request2); - expect(request1, isNot(request3)); - expect(request1.hashCode, request2.hashCode); - }); } From 94a58c8f5b5cf632a82b484afaa48c6bca574e47 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 3 Mar 2026 22:03:25 -0800 Subject: [PATCH 19/33] revert project files --- .../ios/Flutter/AppFrameworkInfo.plist | 2 ++ .../example/ios/Podfile | 2 +- .../ios/Runner.xcodeproj/project.pbxproj | 6 ++--- .../ios/Flutter/AppFrameworkInfo.plist | 2 ++ .../test_plugin/example/ios/Podfile | 2 +- .../ios/Runner.xcodeproj/project.pbxproj | 24 +++---------------- .../test_plugin/example/macos/Podfile | 2 +- .../macos/Runner.xcodeproj/project.pbxproj | 24 +++---------------- 8 files changed, 16 insertions(+), 48 deletions(-) diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Flutter/AppFrameworkInfo.plist b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Flutter/AppFrameworkInfo.plist index 391a902b2beb..7c5696400627 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Flutter/AppFrameworkInfo.plist +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Flutter/AppFrameworkInfo.plist @@ -20,5 +20,7 @@ ???? CFBundleVersion 1.0 + MinimumOSVersion + 12.0 diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Podfile b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Podfile index 797861ae71c7..92473fdf5b67 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Podfile +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '13.0' +# platform :ios, '12.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Runner.xcodeproj/project.pbxproj b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Runner.xcodeproj/project.pbxproj index 4b6c92e87802..25d767028d45 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/Runner.xcodeproj/project.pbxproj @@ -506,7 +506,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -625,7 +625,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -674,7 +674,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist b/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist index 391a902b2beb..7c5696400627 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist @@ -20,5 +20,7 @@ ???? CFBundleVersion 1.0 + MinimumOSVersion + 12.0 diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/Podfile b/packages/pigeon/platform_tests/test_plugin/example/ios/Podfile index c279c7bbb597..6f5730c5fed8 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/Podfile +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '13.0' +# platform :ios, '12.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/Runner.xcodeproj/project.pbxproj b/packages/pigeon/platform_tests/test_plugin/example/ios/Runner.xcodeproj/project.pbxproj index a83f244a11b2..149f3c3e0f15 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/Runner.xcodeproj/project.pbxproj @@ -244,7 +244,6 @@ 97C146EC1CF9000F007C117D /* Resources */, 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, - 9666F78578CD9027186AD333 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -382,23 +381,6 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - 9666F78578CD9027186AD333 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; alwaysOutOfDate = 1; @@ -520,7 +502,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -647,7 +629,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -696,7 +678,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/packages/pigeon/platform_tests/test_plugin/example/macos/Podfile b/packages/pigeon/platform_tests/test_plugin/example/macos/Podfile index 358b97d070ff..71619503cdb0 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/macos/Podfile +++ b/packages/pigeon/platform_tests/test_plugin/example/macos/Podfile @@ -1,4 +1,4 @@ -platform :osx, '10.15' +platform :osx, '10.14' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/packages/pigeon/platform_tests/test_plugin/example/macos/Runner.xcodeproj/project.pbxproj b/packages/pigeon/platform_tests/test_plugin/example/macos/Runner.xcodeproj/project.pbxproj index 5fb21ee08793..c1d1c99272a6 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/macos/Runner.xcodeproj/project.pbxproj +++ b/packages/pigeon/platform_tests/test_plugin/example/macos/Runner.xcodeproj/project.pbxproj @@ -242,7 +242,6 @@ 33CC10EB2044A3C60003C045 /* Resources */, 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, - AF153DC2AC92265A939417A8 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -368,23 +367,6 @@ shellPath = /bin/sh; shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; }; - AF153DC2AC92265A939417A8 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", - ); - name = "[CP] Embed Pods Frameworks"; - outputFileListPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; D30FEEB3988449C1EC3D1DBF /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -516,7 +498,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -640,7 +622,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -687,7 +669,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; From 3fdd987c716e7a946866bc41425cee7d3b2f5d09 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 11:10:24 -0800 Subject: [PATCH 20/33] More consistency across languages --- .../ios/Runner/EventChannelMessages.g.swift | 44 ++++++++++++--- .../example/app/ios/Runner/Messages.g.swift | 42 +++++++++++--- .../app/lib/src/event_channel_messages.g.dart | 56 +++++++++++++++---- .../example/app/lib/src/messages.g.dart | 56 +++++++++++++++---- .../pigeon/example/app/linux/messages.g.cc | 14 +++-- .../example/app/windows/runner/messages.g.cpp | 3 +- .../pigeon/lib/src/cpp/cpp_generator.dart | 3 +- .../pigeon/lib/src/dart/dart_generator.dart | 53 +++++++++++++++--- .../lib/src/gobject/gobject_generator.dart | 27 +++++---- .../pigeon/lib/src/swift/swift_generator.dart | 42 +++++++++++--- .../lib/src/generated/core_tests.gen.dart | 56 +++++++++++++++---- .../lib/src/generated/enum.gen.dart | 56 +++++++++++++++---- .../generated/event_channel_tests.gen.dart | 56 +++++++++++++++---- .../src/generated/flutter_unittests.gen.dart | 56 +++++++++++++++---- .../lib/src/generated/message.gen.dart | 56 +++++++++++++++---- .../src/generated/non_null_fields.gen.dart | 56 +++++++++++++++---- .../lib/src/generated/null_fields.gen.dart | 56 +++++++++++++++---- .../test/equality_test.dart | 10 ++++ .../Sources/test_plugin/CoreTests.gen.swift | 44 +++++++++++---- .../test_plugin/EventChannelTests.gen.swift | 44 ++++++++++++--- .../ios/RunnerTests/AllDatatypesTests.swift | 4 +- .../linux/pigeon/core_tests.gen.cc | 25 ++++----- .../test_plugin/linux/test/equality_test.cc | 23 ++++++++ .../windows/pigeon/core_tests.gen.cpp | 3 +- .../windows/test/equality_test.cpp | 10 ++++ .../pigeon/test/gobject_generator_test.dart | 2 +- 26 files changed, 708 insertions(+), 189 deletions(-) diff --git a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift index 0f6ab0a5f586..5bc816b30ad1 100644 --- a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift @@ -48,18 +48,31 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhsArray, let rhsArray) as ([Double], [Double]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsEventChannelMessages(element, rhsArray[index]) { + return false + } + } + return true + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } for (key, lhsValue) in lhsDictionary { - guard let rhsValue = rhsDictionary[key] else { return false } - if !deepEqualsEventChannelMessages(lhsValue, rhsValue) { + guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } + let rhsKey = rhsDictionary[rhsIndex].key + let rhsValue = rhsDictionary[rhsIndex].value + if !deepEqualsEventChannelMessages(key, rhsKey) + || !deepEqualsEventChannelMessages(lhsValue, rhsValue) + { return false } } return true - case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: - return true + case (let lhs as Double, let rhs as Double): + return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -72,17 +85,30 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashEventChannelMessages(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let doubleValue = cleanValue as? Double, doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) + if let doubleValue = cleanValue as? Double { + if doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else { + hasher.combine(doubleValue.bitPattern) + } } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashEventChannelMessages(value: item, hasher: &hasher) } + } else if let valueList = cleanValue as? [Double] { + for item in valueList { + deepHashEventChannelMessages(value: item, hasher: &hasher) + } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { - for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { - hasher.combine(key) - deepHashEventChannelMessages(value: valueDict[key]!, hasher: &hasher) + var result = 0 + for (key, value) in valueDict { + var entryKeyHasher = Hasher() + deepHashEventChannelMessages(value: key, hasher: &entryKeyHasher) + var entryValueHasher = Hasher() + deepHashEventChannelMessages(value: value, hasher: &entryValueHasher) + result = result &+ (entryKeyHasher.finalize() ^ entryValueHasher.finalize()) } + hasher.combine(result) } else if let hashableValue = cleanValue as? AnyHashable { hasher.combine(hashableValue) } else { diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index c4bfdcd4f9a6..3a82a9023914 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -98,18 +98,29 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhsArray, let rhsArray) as ([Double], [Double]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsMessages(element, rhsArray[index]) { + return false + } + } + return true + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } for (key, lhsValue) in lhsDictionary { - guard let rhsValue = rhsDictionary[key] else { return false } - if !deepEqualsMessages(lhsValue, rhsValue) { + guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } + let rhsKey = rhsDictionary[rhsIndex].key + let rhsValue = rhsDictionary[rhsIndex].value + if !deepEqualsMessages(key, rhsKey) || !deepEqualsMessages(lhsValue, rhsValue) { return false } } return true - case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: - return true + case (let lhs as Double, let rhs as Double): + return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -122,17 +133,30 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashMessages(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let doubleValue = cleanValue as? Double, doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) + if let doubleValue = cleanValue as? Double { + if doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else { + hasher.combine(doubleValue.bitPattern) + } } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashMessages(value: item, hasher: &hasher) } + } else if let valueList = cleanValue as? [Double] { + for item in valueList { + deepHashMessages(value: item, hasher: &hasher) + } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { - for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { - hasher.combine(key) - deepHashMessages(value: valueDict[key]!, hasher: &hasher) + var result = 0 + for (key, value) in valueDict { + var entryKeyHasher = Hasher() + deepHashMessages(value: key, hasher: &entryKeyHasher) + var entryValueHasher = Hasher() + deepHashMessages(value: value, hasher: &entryValueHasher) + result = result &+ (entryKeyHasher.finalize() ^ entryValueHasher.finalize()) } + hasher.combine(result) } else if let hashableValue = cleanValue as? AnyHashable { hasher.combine(hashableValue) } else { diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 88aaa0832b2f..2f3d7f7698e7 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -12,10 +12,19 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -25,12 +34,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -41,11 +70,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index 2d2d97e67b92..3f52ecef79db 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -51,10 +51,19 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -64,12 +73,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -80,11 +109,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index 33f9741923dd..f08c4a2d31f6 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -18,6 +18,12 @@ static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { u.d = v; return (guint)(u.u ^ (u.u >> 32)); } +static gboolean G_GNUC_UNUSED flpigeon_equals_double(double a, double b) { + if (a == b) { + return a != 0.0 || std::signbit(a) == std::signbit(b); + } + return std::isnan(a) && std::isnan(b); +} static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; @@ -30,12 +36,8 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { case FL_VALUE_TYPE_INT: return fl_value_get_int(a) == fl_value_get_int(b); case FL_VALUE_TYPE_FLOAT: { - double va = fl_value_get_float(a); - double vb = fl_value_get_float(b); - if (va == vb) { - return va != 0.0 || std::signbit(va) == std::signbit(vb); - } - return std::isnan(va) && std::isnan(vb); + return flpigeon_equals_double(fl_value_get_float(a), + fl_value_get_float(b)); } case FL_VALUE_TYPE_STRING: return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0; diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index 48a94dec7502..ce3eed80dee6 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -60,7 +60,8 @@ bool PigeonInternalDeepEquals(const std::map& a, } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { - return a == b || (std::isnan(a) && std::isnan(b)); + if (a == b) return a != 0.0 || std::signbit(a) == std::signbit(b); + return std::isnan(a) && std::isnan(b); } template diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 293a518081e4..6c1a0abfa343 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -1131,7 +1131,8 @@ bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { - return a == b || (std::isnan(a) && std::isnan(b)); + if (a == b) return a != 0.0 || std::signbit(a) == std::signbit(b); + return std::isnan(a) && std::isnan(b); } template diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index 5002e0a04176..c73a55d7773e 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -1175,10 +1175,19 @@ final BinaryMessenger? ${varNamePrefix}binaryMessenger; void _writeDeepEquals(Indent indent) { indent.format(r''' bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -1187,9 +1196,32 @@ bool _deepEquals(Object? a, Object? b) { .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key])); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -1204,11 +1236,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index 4bf7049222a8..fc6b148748dc 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -1185,13 +1185,13 @@ class GObjectSourceGenerator () {}, ); indent.writeScoped( - 'if (a->$fieldName != nullptr && !(*a->$fieldName == *b->$fieldName || (std::isnan(*a->$fieldName) && std::isnan(*b->$fieldName)))) return FALSE;', + 'if (a->$fieldName != nullptr && !flpigeon_equals_double(*a->$fieldName, *b->$fieldName)) return FALSE;', '', () {}, ); } else { indent.writeScoped( - 'if (!(a->$fieldName == b->$fieldName || (std::isnan(a->$fieldName) && std::isnan(b->$fieldName)))) {', + 'if (!flpigeon_equals_double(a->$fieldName, b->$fieldName)) {', '}', () { indent.writeln('return FALSE;'); @@ -2801,6 +2801,18 @@ void _writeHashHelpers(Indent indent) { indent.writeln('return (guint)(u.u ^ (u.u >> 32));'); }, ); + indent.writeScoped( + 'static gboolean G_GNUC_UNUSED flpigeon_equals_double(double a, double b) {', + '}', + () { + indent.writeScoped('if (a == b) {', '}', () { + indent.writeln( + 'return a != 0.0 || std::signbit(a) == std::signbit(b);', + ); + }); + indent.writeln('return std::isnan(a) && std::isnan(b);'); + }, + ); } void _writeDeepEquals(Indent indent) { @@ -2825,14 +2837,9 @@ void _writeDeepEquals(Indent indent) { indent.writeln('case FL_VALUE_TYPE_INT:'); indent.writeln(' return fl_value_get_int(a) == fl_value_get_int(b);'); indent.writeln('case FL_VALUE_TYPE_FLOAT: {'); - indent.writeln(' double va = fl_value_get_float(a);'); - indent.writeln(' double vb = fl_value_get_float(b);'); - indent.writeScoped('if (va == vb) {', '}', () { - indent.writeln( - 'return va != 0.0 || std::signbit(va) == std::signbit(vb);', - ); - }); - indent.writeln('return std::isnan(va) && std::isnan(vb);'); + indent.writeln( + ' return flpigeon_equals_double(fl_value_get_float(a), fl_value_get_float(b));', + ); indent.writeln('}'); indent.writeln('case FL_VALUE_TYPE_STRING:'); indent.writeln( diff --git a/packages/pigeon/lib/src/swift/swift_generator.dart b/packages/pigeon/lib/src/swift/swift_generator.dart index 36c37cd9be16..63125a3c84df 100644 --- a/packages/pigeon/lib/src/swift/swift_generator.dart +++ b/packages/pigeon/lib/src/swift/swift_generator.dart @@ -1537,18 +1537,29 @@ func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhsArray, let rhsArray) as ([Double], [Double]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !$deepEqualsName(element, rhsArray[index]) { + return false + } + } + return true + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } for (key, lhsValue) in lhsDictionary { - guard let rhsValue = rhsDictionary[key] else { return false } - if !$deepEqualsName(lhsValue, rhsValue) { + guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } + let rhsKey = rhsDictionary[rhsIndex].key + let rhsValue = rhsDictionary[rhsIndex].value + if !$deepEqualsName(key, rhsKey) || !$deepEqualsName(lhsValue, rhsValue) { return false } } return true - case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: - return true + case (let lhs as Double, let rhs as Double): + return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -1561,17 +1572,30 @@ func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { func $deepHashName(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let doubleValue = cleanValue as? Double, doubleValue.isNaN { - hasher.combine(0x7FF8000000000000) + if let doubleValue = cleanValue as? Double { + if doubleValue.isNaN { + hasher.combine(0x7FF8000000000000) + } else { + hasher.combine(doubleValue.bitPattern) + } } else if let valueList = cleanValue as? [Any?] { for item in valueList { $deepHashName(value: item, hasher: &hasher) } + } else if let valueList = cleanValue as? [Double] { + for item in valueList { + $deepHashName(value: item, hasher: &hasher) + } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { - for key in valueDict.keys.sorted(by: { String(describing: \$0) < String(describing: \$1) }) { - hasher.combine(key) - $deepHashName(value: valueDict[key]!, hasher: &hasher) + var result = 0 + for (key, value) in valueDict { + var entryKeyHasher = Hasher() + $deepHashName(value: key, hasher: &entryKeyHasher) + var entryValueHasher = Hasher() + $deepHashName(value: value, hasher: &entryValueHasher) + result = result &+ (entryKeyHasher.finalize() ^ entryValueHasher.finalize()) } + hasher.combine(result) } else if let hashableValue = cleanValue as? AnyHashable { hasher.combine(hashableValue) } else { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index f73ef4a62dce..36783c0230ec 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -52,10 +52,19 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -65,12 +74,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -81,11 +110,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 667229509018..4b07db4b8b05 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -52,10 +52,19 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -65,12 +74,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -81,11 +110,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index c8f806148bc8..d4279f0c12cd 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -13,10 +13,19 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -26,12 +35,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -42,11 +71,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index f27095df7a92..3143db4bc6a9 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -38,10 +38,19 @@ Object? _extractReplyValueOrThrow( } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -51,12 +60,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -67,11 +96,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index c658146cc526..26f289aa0f7a 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -52,10 +52,19 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -65,12 +74,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -81,11 +110,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index d0397d028c45..2836e06f844c 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -52,10 +52,19 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -65,12 +74,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -81,11 +110,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 1a709f6c0ba9..e5692f86e6ef 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -52,10 +52,19 @@ List wrapResponse({ } bool _deepEquals(Object? a, Object? b) { - if (identical(a, b) || a == b) { + if (identical(a, b)) { return true; } - if (a is double && b is double && a.isNaN && b.isNaN) { + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + if (a == 0.0 && b == 0.0) { + return identical(a, b); + } + return a == b; + } + if (a == b) { return true; } if (a is List && b is List) { @@ -65,12 +74,32 @@ bool _deepEquals(Object? a, Object? b) { ); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (entry.key is double && entry.key == 0.0) { + // Standard Map lookup for 0.0 might find -0.0 in Dart. + // We must verify the actual key is identical. + bool foundIdentical = false; + for (final Object? keyB in b.keys) { + if (identical(entry.key, keyB)) { + foundIdentical = true; + break; + } + } + if (!foundIdentical) { + return false; + } + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; } return false; } @@ -81,11 +110,16 @@ int _deepHash(Object? value) { } else if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { - result += Object.hash(_deepHash(entry.key), _deepHash(entry.value)); + result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; + } else if (value is double) { + if (value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value == 0.0 && value.isNegative) { + return 0x8000000000000000.hashCode; + } } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart index 453f78822b32..39e7cf3b2fa1 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart @@ -159,6 +159,16 @@ void main() { expect(withMap, withDifferentMap); }, ); + test('signed zero equality', () { + final v1 = AllNullableTypes(aNullableDouble: 0.0); + final v2 = AllNullableTypes(aNullableDouble: -0.0); + expect(v1, isNot(v2)); + }); + test('signed zero map key equality', () { + final v1 = AllNullableTypes(map: {0.0: 'a'}); + final v2 = AllNullableTypes(map: {-0.0: 'a'}); + expect(v1, isNot(v2)); + }); test( 'equality method correctly identifies non-matching lists nested in maps in classes', diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index f1b0d8f30089..17cc9643e63c 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -99,18 +99,29 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhsArray, let rhsArray) as ([Double], [Double]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsCoreTests(element, rhsArray[index]) { + return false + } + } + return true + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } for (key, lhsValue) in lhsDictionary { - guard let rhsValue = rhsDictionary[key] else { return false } - if !deepEqualsCoreTests(lhsValue, rhsValue) { + guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } + let rhsKey = rhsDictionary[rhsIndex].key + let rhsValue = rhsDictionary[rhsIndex].value + if !deepEqualsCoreTests(key, rhsKey) || !deepEqualsCoreTests(lhsValue, rhsValue) { return false } } return true - case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: - return true + case (let lhs as Double, let rhs as Double): + return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -123,17 +134,30 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashCoreTests(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let doubleValue = cleanValue as? Double, doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) + if let doubleValue = cleanValue as? Double { + if doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else { + hasher.combine(doubleValue.bitPattern) + } } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashCoreTests(value: item, hasher: &hasher) } - } else if let valueDict = cleanValue as? [AnyHashable: Any?] { - for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { - hasher.combine(key) - deepHashCoreTests(value: valueDict[key]!, hasher: &hasher) + } else if let valueList = cleanValue as? [Double] { + for item in valueList { + deepHashCoreTests(value: item, hasher: &hasher) } + } else if let valueDict = cleanValue as? [AnyHashable: Any?] { + var result = 0 + for (key, value) in valueDict { + var entryKeyHasher = Hasher() + deepHashCoreTests(value: key, hasher: &entryKeyHasher) + var entryValueHasher = Hasher() + deepHashCoreTests(value: value, hasher: &entryValueHasher) + result = result &+ (entryKeyHasher.finalize() ^ entryValueHasher.finalize()) + } + hasher.combine(result) } else if let hashableValue = cleanValue as? AnyHashable { hasher.combine(hashableValue) } else { diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift index baa5e76a7741..d4bb35ec785b 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift @@ -67,18 +67,31 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { } return true + case (let lhsArray, let rhsArray) as ([Double], [Double]): + guard lhsArray.count == rhsArray.count else { return false } + for (index, element) in lhsArray.enumerated() { + if !deepEqualsEventChannelTests(element, rhsArray[index]) { + return false + } + } + return true + case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } for (key, lhsValue) in lhsDictionary { - guard let rhsValue = rhsDictionary[key] else { return false } - if !deepEqualsEventChannelTests(lhsValue, rhsValue) { + guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } + let rhsKey = rhsDictionary[rhsIndex].key + let rhsValue = rhsDictionary[rhsIndex].value + if !deepEqualsEventChannelTests(key, rhsKey) + || !deepEqualsEventChannelTests(lhsValue, rhsValue) + { return false } } return true - case (let lhs as Double, let rhs as Double) where lhs.isNaN && rhs.isNaN: - return true + case (let lhs as Double, let rhs as Double): + return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -91,17 +104,30 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { - if let doubleValue = cleanValue as? Double, doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) + if let doubleValue = cleanValue as? Double { + if doubleValue.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else { + hasher.combine(doubleValue.bitPattern) + } } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashEventChannelTests(value: item, hasher: &hasher) } + } else if let valueList = cleanValue as? [Double] { + for item in valueList { + deepHashEventChannelTests(value: item, hasher: &hasher) + } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { - for key in valueDict.keys.sorted(by: { String(describing: $0) < String(describing: $1) }) { - hasher.combine(key) - deepHashEventChannelTests(value: valueDict[key]!, hasher: &hasher) + var result = 0 + for (key, value) in valueDict { + var entryKeyHasher = Hasher() + deepHashEventChannelTests(value: key, hasher: &entryKeyHasher) + var entryValueHasher = Hasher() + deepHashEventChannelTests(value: value, hasher: &entryValueHasher) + result = result &+ (entryKeyHasher.finalize() ^ entryValueHasher.finalize()) } + hasher.combine(result) } else if let hashableValue = cleanValue as? AnyHashable { hasher.combine(hashableValue) } else { diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift index bcbc0c8dd98c..7bdd06a4c5f4 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift @@ -261,7 +261,7 @@ struct AllDatatypesTests { func signedZeroEquality() { let a = AllNullableTypes(aNullableDouble: 0.0) let b = AllNullableTypes(aNullableDouble: -0.0) - #expect(a == b) + #expect(a != b) var hasherA = Hasher() a.hash(into: &hasherA) @@ -271,6 +271,6 @@ struct AllDatatypesTests { b.hash(into: &hasherB) let hashB = hasherB.finalize() - #expect(hashA == hashB) + #expect(hashA != hashB) } } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 85ac8630134c..76cdf7a50294 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -19,6 +19,12 @@ static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { u.d = v; return (guint)(u.u ^ (u.u >> 32)); } +static gboolean G_GNUC_UNUSED flpigeon_equals_double(double a, double b) { + if (a == b) { + return a != 0.0 || std::signbit(a) == std::signbit(b); + } + return std::isnan(a) && std::isnan(b); +} static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; @@ -31,12 +37,8 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { case FL_VALUE_TYPE_INT: return fl_value_get_int(a) == fl_value_get_int(b); case FL_VALUE_TYPE_FLOAT: { - double va = fl_value_get_float(a); - double vb = fl_value_get_float(b); - if (va == vb) { - return va != 0.0 || std::signbit(va) == std::signbit(vb); - } - return std::isnan(va) && std::isnan(vb); + return flpigeon_equals_double(fl_value_get_float(a), + fl_value_get_float(b)); } case FL_VALUE_TYPE_STRING: return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0; @@ -671,8 +673,7 @@ gboolean core_tests_pigeon_test_all_types_equals( if (a->an_int64 != b->an_int64) { return FALSE; } - if (!(a->a_double == b->a_double || - (std::isnan(a->a_double) && std::isnan(b->a_double)))) { + if (!flpigeon_equals_double(a->a_double, b->a_double)) { return FALSE; } if (a->a_byte_array != b->a_byte_array) { @@ -1692,9 +1693,7 @@ gboolean core_tests_pigeon_test_all_nullable_types_equals( if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) return FALSE; if (a->a_nullable_double != nullptr && - !(*a->a_nullable_double == *b->a_nullable_double || - (std::isnan(*a->a_nullable_double) && - std::isnan(*b->a_nullable_double)))) + !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) return FALSE; if (a->a_nullable_byte_array != b->a_nullable_byte_array) { if (a->a_nullable_byte_array == nullptr || @@ -2734,9 +2733,7 @@ gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) return FALSE; if (a->a_nullable_double != nullptr && - !(*a->a_nullable_double == *b->a_nullable_double || - (std::isnan(*a->a_nullable_double) && - std::isnan(*b->a_nullable_double)))) + !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) return FALSE; if (a->a_nullable_byte_array != b->a_nullable_byte_array) { if (a->a_nullable_byte_array == nullptr || diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc b/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc index 570f89b93698..2f25ccba1372 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc @@ -133,3 +133,26 @@ TEST(Equality, AllTypesNumericLists) { EXPECT_NE(core_tests_pigeon_test_all_types_hash(all1), core_tests_pigeon_test_all_types_hash(all3)); } + +TEST(Equality, SignedZero) { + double p_zero = 0.0; + double n_zero = -0.0; + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all1 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, &p_zero, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all2 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, &n_zero, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); + + EXPECT_FALSE(core_tests_pigeon_test_all_nullable_types_equals(all1, all2)); + EXPECT_NE(core_tests_pigeon_test_all_nullable_types_hash(all1), + core_tests_pigeon_test_all_nullable_types_hash(all2)); +} diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 2c553e1a4e30..373041d06f28 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -61,7 +61,8 @@ bool PigeonInternalDeepEquals(const std::map& a, } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { - return a == b || (std::isnan(a) && std::isnan(b)); + if (a == b) return a != 0.0 || std::signbit(a) == std::signbit(b); + return std::isnan(a) && std::isnan(b); } template diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp index 993a906c8dd9..33a1a3e6f6e0 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp @@ -50,5 +50,15 @@ TEST(EqualityTests, NestedNaNEquality) { EXPECT_EQ(all1, all2); } +TEST(EqualityTests, SignedZeroEquality) { + AllNullableTypes all1; + all1.set_a_nullable_double(0.0); + + AllNullableTypes all2; + all2.set_a_nullable_double(-0.0); + + EXPECT_NE(all1, all2); +} + } // namespace test } // namespace test_plugin diff --git a/packages/pigeon/test/gobject_generator_test.dart b/packages/pigeon/test/gobject_generator_test.dart index d8e4c58eb8b3..2fe7739fdb20 100644 --- a/packages/pigeon/test/gobject_generator_test.dart +++ b/packages/pigeon/test/gobject_generator_test.dart @@ -1082,7 +1082,7 @@ void main() { expect( code, contains( - 'if (!(a->some_double == b->some_double || (std::isnan(a->some_double) && std::isnan(b->some_double)))) {', + 'if (!flpigeon_equals_double(a->some_double, b->some_double)) {', ), ); expect( From b920f50313ff85149faae198bb9b4e7b402a945f Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 15:15:10 -0800 Subject: [PATCH 21/33] revert -0.0 changes --- .../pigeon/lib/src/cpp/cpp_generator.dart | 3 +- .../pigeon/lib/src/dart/dart_generator.dart | 38 ++++--------------- .../lib/src/gobject/gobject_generator.dart | 7 +--- .../pigeon/lib/src/objc/objc_generator.dart | 12 ++---- .../pigeon/lib/src/swift/swift_generator.dart | 4 +- .../CoreTests.gen.m | 18 ++------- .../lib/src/generated/core_tests.gen.dart | 36 +++--------------- .../lib/src/generated/enum.gen.dart | 36 +++--------------- .../generated/event_channel_tests.gen.dart | 36 +++--------------- .../src/generated/flutter_unittests.gen.dart | 36 +++--------------- .../lib/src/generated/message.gen.dart | 36 +++--------------- .../src/generated/non_null_fields.gen.dart | 36 +++--------------- .../lib/src/generated/null_fields.gen.dart | 36 +++--------------- .../test/equality_test.dart | 4 +- .../Sources/test_plugin/CoreTests.gen.swift | 4 +- .../test_plugin/EventChannelTests.gen.swift | 4 +- .../ios/Flutter/AppFrameworkInfo.plist | 2 - .../ios/RunnerTests/AllDatatypesTests.swift | 4 +- .../linux/pigeon/core_tests.gen.cc | 5 +-- .../windows/pigeon/core_tests.gen.cpp | 3 +- packages/pigeon/tool/shared/test_suites.dart | 4 +- 21 files changed, 72 insertions(+), 292 deletions(-) diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 6c1a0abfa343..8d28ff490cd9 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -1131,8 +1131,7 @@ bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { - if (a == b) return a != 0.0 || std::signbit(a) == std::signbit(b); - return std::isnan(a) && std::isnan(b); + return (a == b) || (std::isnan(a) && std::isnan(b)); } template diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index c73a55d7773e..9802b913e9eb 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -1182,18 +1182,11 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -1203,27 +1196,13 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } '''); } @@ -1233,19 +1212,16 @@ bool _deepEquals(Object? a, Object? b) { int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index fc6b148748dc..497a5b9754f2 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -2805,12 +2805,7 @@ void _writeHashHelpers(Indent indent) { 'static gboolean G_GNUC_UNUSED flpigeon_equals_double(double a, double b) {', '}', () { - indent.writeScoped('if (a == b) {', '}', () { - indent.writeln( - 'return a != 0.0 || std::signbit(a) == std::signbit(b);', - ); - }); - indent.writeln('return std::isnan(a) && std::isnan(b);'); + indent.writeln('return (a == b) || (std::isnan(a) && std::isnan(b));'); }, ); } diff --git a/packages/pigeon/lib/src/objc/objc_generator.dart b/packages/pigeon/lib/src/objc/objc_generator.dart index 948bd1a4fa6f..c2e26bce1daa 100644 --- a/packages/pigeon/lib/src/objc/objc_generator.dart +++ b/packages/pigeon/lib/src/objc/objc_generator.dart @@ -649,7 +649,7 @@ class ObjcSourceGenerator extends StructuredGenerator { final String name = field.name; if (_usesPrimitive(field.type)) { if (field.type.baseName == 'double') { - return '((self.$name == other.$name && (self.$name != 0.0 || signbit(self.$name) == signbit(other.$name))) || (isnan(self.$name) && isnan(other.$name)))'; + return '(self.$name == other.$name || (isnan(self.$name) && isnan(other.$name)))'; } return 'self.$name == other.$name'; } else { @@ -671,7 +671,7 @@ class ObjcSourceGenerator extends StructuredGenerator { if (_usesPrimitive(field.type)) { if (field.type.baseName == 'double') { indent.writeln( - 'result = result * 31 + (isnan(self.$name) ? (NSUInteger)0x7FF8000000000000 : ((self.$name == 0.0 && signbit(self.$name)) ? (NSUInteger)0x8000000000000000 : @(self.$name).hash));', + 'result = result * 31 + (isnan(self.$name) ? (NSUInteger)0x7FF8000000000000 : @(self.$name).hash);', ); } else { indent.writeln('result = result * 31 + @(self.$name).hash;'); @@ -1682,10 +1682,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; - if (na.doubleValue == nb.doubleValue) { - return (na.doubleValue != 0.0) || (signbit(na.doubleValue) == signbit(nb.doubleValue)); - } - return isnan(na.doubleValue) && isnan(nb.doubleValue); + return na.doubleValue == nb.doubleValue || (isnan(na.doubleValue) && isnan(nb.doubleValue)); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { NSArray *arrayA = (NSArray *)a; @@ -1732,9 +1729,6 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { if (isnan(n.doubleValue)) { return (NSUInteger)0x7FF8000000000000; } - if (n.doubleValue == 0.0 && signbit(n.doubleValue)) { - return (NSUInteger)0x8000000000000000; - } } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; diff --git a/packages/pigeon/lib/src/swift/swift_generator.dart b/packages/pigeon/lib/src/swift/swift_generator.dart index 63125a3c84df..92709599fde1 100644 --- a/packages/pigeon/lib/src/swift/swift_generator.dart +++ b/packages/pigeon/lib/src/swift/swift_generator.dart @@ -1559,7 +1559,7 @@ func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern + return (lhs.isNaN && rhs.isNaN) || lhs == rhs case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -1576,7 +1576,7 @@ func $deepHashName(value: Any?, hasher: inout Hasher) { if doubleValue.isNaN { hasher.combine(0x7FF8000000000000) } else { - hasher.combine(doubleValue.bitPattern) + hasher.combine(doubleValue) } } else if let valueList = cleanValue as? [Any?] { for item in valueList { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index 039be80310ae..aa5044b895b6 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -24,10 +24,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; - if (na.doubleValue == nb.doubleValue) { - return (na.doubleValue != 0.0) || (signbit(na.doubleValue) == signbit(nb.doubleValue)); - } - return isnan(na.doubleValue) && isnan(nb.doubleValue); + return na.doubleValue == nb.doubleValue || (isnan(na.doubleValue) && isnan(nb.doubleValue)); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { NSArray *arrayA = (NSArray *)a; @@ -70,9 +67,6 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { if (isnan(n.doubleValue)) { return (NSUInteger)0x7FF8000000000000; } - if (n.doubleValue == 0.0 && signbit(n.doubleValue)) { - return (NSUInteger)0x8000000000000000; - } } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; @@ -346,9 +340,7 @@ - (BOOL)isEqual:(id)object { } FLTAllTypes *other = (FLTAllTypes *)object; return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && - ((self.aDouble == other.aDouble && - (self.aDouble != 0.0 || signbit(self.aDouble) == signbit(other.aDouble))) || - (isnan(self.aDouble) && isnan(other.aDouble))) && + (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && @@ -379,10 +371,8 @@ - (NSUInteger)hash { result = result * 31 + @(self.aBool).hash; result = result * 31 + @(self.anInt).hash; result = result * 31 + @(self.anInt64).hash; - result = result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 - : ((self.aDouble == 0.0 && signbit(self.aDouble)) - ? (NSUInteger)0x8000000000000000 - : @(self.aDouble).hash)); + result = + result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); result = result * 31 + FLTPigeonDeepHash(self.aByteArray); result = result * 31 + FLTPigeonDeepHash(self.a4ByteArray); result = result * 31 + FLTPigeonDeepHash(self.a8ByteArray); diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 36783c0230ec..1492f83500b4 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -59,13 +59,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -81,45 +74,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 4b07db4b8b05..11020254468d 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -59,13 +59,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -81,45 +74,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index d4279f0c12cd..8704076f27c2 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -20,13 +20,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -42,45 +35,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index 3143db4bc6a9..0796404d59a4 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -45,13 +45,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -67,45 +60,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 26f289aa0f7a..97c05a5ba6e5 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -59,13 +59,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -81,45 +74,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index 2836e06f844c..3637238b1ddf 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -59,13 +59,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -81,45 +74,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index e5692f86e6ef..d6c859d9d8bd 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -59,13 +59,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -81,45 +74,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart index 39e7cf3b2fa1..58954be94d9c 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart @@ -162,12 +162,12 @@ void main() { test('signed zero equality', () { final v1 = AllNullableTypes(aNullableDouble: 0.0); final v2 = AllNullableTypes(aNullableDouble: -0.0); - expect(v1, isNot(v2)); + expect(v1, v2); }); test('signed zero map key equality', () { final v1 = AllNullableTypes(map: {0.0: 'a'}); final v2 = AllNullableTypes(map: {-0.0: 'a'}); - expect(v1, isNot(v2)); + expect(v1, v2); }); test( diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index 17cc9643e63c..8c5b467592b0 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -121,7 +121,7 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern + return (lhs.isNaN && rhs.isNaN) || lhs == rhs case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -138,7 +138,7 @@ func deepHashCoreTests(value: Any?, hasher: inout Hasher) { if doubleValue.isNaN { hasher.combine(0x7FF8_0000_0000_0000) } else { - hasher.combine(doubleValue.bitPattern) + hasher.combine(doubleValue) } } else if let valueList = cleanValue as? [Any?] { for item in valueList { diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift index d4bb35ec785b..919c2551c26e 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift @@ -91,7 +91,7 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern + return (lhs.isNaN && rhs.isNaN) || lhs == rhs case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -108,7 +108,7 @@ func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { if doubleValue.isNaN { hasher.combine(0x7FF8_0000_0000_0000) } else { - hasher.combine(doubleValue.bitPattern) + hasher.combine(doubleValue) } } else if let valueList = cleanValue as? [Any?] { for item in valueList { diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist b/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist index 7c5696400627..391a902b2beb 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist @@ -20,7 +20,5 @@ ???? CFBundleVersion 1.0 - MinimumOSVersion - 12.0 diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift index 7bdd06a4c5f4..bcbc0c8dd98c 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/RunnerTests/AllDatatypesTests.swift @@ -261,7 +261,7 @@ struct AllDatatypesTests { func signedZeroEquality() { let a = AllNullableTypes(aNullableDouble: 0.0) let b = AllNullableTypes(aNullableDouble: -0.0) - #expect(a != b) + #expect(a == b) var hasherA = Hasher() a.hash(into: &hasherA) @@ -271,6 +271,6 @@ struct AllDatatypesTests { b.hash(into: &hasherB) let hashB = hasherB.finalize() - #expect(hashA != hashB) + #expect(hashA == hashB) } } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 76cdf7a50294..2df9adfa5fba 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -20,10 +20,7 @@ static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { return (guint)(u.u ^ (u.u >> 32)); } static gboolean G_GNUC_UNUSED flpigeon_equals_double(double a, double b) { - if (a == b) { - return a != 0.0 || std::signbit(a) == std::signbit(b); - } - return std::isnan(a) && std::isnan(b); + return (a == b) || (std::isnan(a) && std::isnan(b)); } static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { if (a == b) return TRUE; diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 373041d06f28..2741ab2a7ec3 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -61,8 +61,7 @@ bool PigeonInternalDeepEquals(const std::map& a, } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { - if (a == b) return a != 0.0 || std::signbit(a) == std::signbit(b); - return std::isnan(a) && std::isnan(b); + return (a == b) || (std::isnan(a) && std::isnan(b)); } template diff --git a/packages/pigeon/tool/shared/test_suites.dart b/packages/pigeon/tool/shared/test_suites.dart index fe86925792aa..269e080ebbe2 100644 --- a/packages/pigeon/tool/shared/test_suites.dart +++ b/packages/pigeon/tool/shared/test_suites.dart @@ -359,8 +359,8 @@ Future _runIOSPluginUnitTests(String testPluginPath) async { const deviceName = 'Pigeon-Test-iPhone'; const deviceType = 'com.apple.CoreSimulator.SimDeviceType.iPhone-14'; - const deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-18-2'; - const deviceOS = '18.2'; + const deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-18-5'; + const deviceOS = '18.5'; await _createSimulator(deviceName, deviceType, deviceRuntime); return runXcodeBuild( '$examplePath/ios', From 7df481e9e2ae338f379f1a4a105e0894a2cc91df Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 17:15:00 -0800 Subject: [PATCH 22/33] gen example --- .../ios/Runner/EventChannelMessages.g.swift | 4 +-- .../example/app/ios/Runner/Messages.g.swift | 4 +-- .../app/lib/src/event_channel_messages.g.dart | 36 ++++--------------- .../example/app/lib/src/messages.g.dart | 36 ++++--------------- .../pigeon/example/app/linux/messages.g.cc | 5 +-- .../example/app/macos/Runner/messages.g.m | 8 +---- .../example/app/windows/runner/messages.g.cpp | 3 +- 7 files changed, 19 insertions(+), 77 deletions(-) diff --git a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift index 5bc816b30ad1..88c9b7d7e28a 100644 --- a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift @@ -72,7 +72,7 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern + return (lhs.isNaN && rhs.isNaN) || lhs == rhs case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -89,7 +89,7 @@ func deepHashEventChannelMessages(value: Any?, hasher: inout Hasher) { if doubleValue.isNaN { hasher.combine(0x7FF8_0000_0000_0000) } else { - hasher.combine(doubleValue.bitPattern) + hasher.combine(doubleValue) } } else if let valueList = cleanValue as? [Any?] { for item in valueList { diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index 3a82a9023914..c254a6eab463 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -120,7 +120,7 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs.bitPattern == rhs.bitPattern + return (lhs.isNaN && rhs.isNaN) || lhs == rhs case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -137,7 +137,7 @@ func deepHashMessages(value: Any?, hasher: inout Hasher) { if doubleValue.isNaN { hasher.combine(0x7FF8_0000_0000_0000) } else { - hasher.combine(doubleValue.bitPattern) + hasher.combine(doubleValue) } } else if let valueList = cleanValue as? [Any?] { for item in valueList { diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 2f3d7f7698e7..1d3d57de7952 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -19,13 +19,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -41,45 +34,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index 3f52ecef79db..b10ff31cc607 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -58,13 +58,6 @@ bool _deepEquals(Object? a, Object? b) { if (a.isNaN && b.isNaN) { return true; } - if (a == 0.0 && b == 0.0) { - return identical(a, b); - } - return a == b; - } - if (a == b) { - return true; } if (a is List && b is List) { return a.length == b.length && @@ -80,45 +73,28 @@ bool _deepEquals(Object? a, Object? b) { if (!b.containsKey(entry.key)) { return false; } - if (entry.key is double && entry.key == 0.0) { - // Standard Map lookup for 0.0 might find -0.0 in Dart. - // We must verify the actual key is identical. - bool foundIdentical = false; - for (final Object? keyB in b.keys) { - if (identical(entry.key, keyB)) { - foundIdentical = true; - break; - } - } - if (!foundIdentical) { - return false; - } - } if (!_deepEquals(entry.value, b[entry.key])) { return false; } } return true; } - return false; + return a == b; } int _deepHash(Object? value) { if (value is List) { return Object.hashAll(value.map(_deepHash)); - } else if (value is Map) { + } + if (value is Map) { int result = 0; for (final MapEntry entry in value.entries) { result += _deepHash(entry.key) ^ _deepHash(entry.value); } return result; - } else if (value is double) { - if (value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value == 0.0 && value.isNegative) { - return 0x8000000000000000.hashCode; - } + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; } return value.hashCode; } diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index f08c4a2d31f6..a389a855957b 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -19,10 +19,7 @@ static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { return (guint)(u.u ^ (u.u >> 32)); } static gboolean G_GNUC_UNUSED flpigeon_equals_double(double a, double b) { - if (a == b) { - return a != 0.0 || std::signbit(a) == std::signbit(b); - } - return std::isnan(a) && std::isnan(b); + return (a == b) || (std::isnan(a) && std::isnan(b)); } static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { if (a == b) return TRUE; diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index c44d5fa139cb..aa761286528a 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -23,10 +23,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; - if (na.doubleValue == nb.doubleValue) { - return (na.doubleValue != 0.0) || (signbit(na.doubleValue) == signbit(nb.doubleValue)); - } - return isnan(na.doubleValue) && isnan(nb.doubleValue); + return na.doubleValue == nb.doubleValue || (isnan(na.doubleValue) && isnan(nb.doubleValue)); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { NSArray *arrayA = (NSArray *)a; @@ -69,9 +66,6 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { if (isnan(n.doubleValue)) { return (NSUInteger)0x7FF8000000000000; } - if (n.doubleValue == 0.0 && signbit(n.doubleValue)) { - return (NSUInteger)0x8000000000000000; - } } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index ce3eed80dee6..c857a8ce9f72 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -60,8 +60,7 @@ bool PigeonInternalDeepEquals(const std::map& a, } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { - if (a == b) return a != 0.0 || std::signbit(a) == std::signbit(b); - return std::isnan(a) && std::isnan(b); + return (a == b) || (std::isnan(a) && std::isnan(b)); } template From 4cbfdcdc17dae3b2855b17d6b1d0eb1692dc1ff0 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 17:54:20 -0800 Subject: [PATCH 23/33] memecmp --- .../pigeon/example/app/linux/messages.g.cc | 14 +++-- .../lib/src/gobject/gobject_generator.dart | 52 ++++++++++++------- .../AllDatatypesTest.java | 2 - .../linux/pigeon/core_tests.gen.cc | 37 ++++++++----- 4 files changed, 67 insertions(+), 38 deletions(-) diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index a389a855957b..b36551d23471 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -50,10 +50,16 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { return fl_value_get_length(a) == fl_value_get_length(b) && memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0; - case FL_VALUE_TYPE_FLOAT_LIST: - return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), - fl_value_get_length(a) * sizeof(double)) == 0; + case FL_VALUE_TYPE_FLOAT_LIST: { + size_t len = fl_value_get_length(a); + if (len != fl_value_get_length(b)) return FALSE; + const double* a_data = fl_value_get_float_list(a); + const double* b_data = fl_value_get_float_list(b); + for (size_t i = 0; i < len; i++) { + if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE; + } + return TRUE; + } case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); if (len != fl_value_get_length(b)) return FALSE; diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index 497a5b9754f2..3135b58fb8cd 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -1142,18 +1142,27 @@ class GObjectSourceGenerator indent.writeln( 'if (a->${fieldName}_length != b->${fieldName}_length) return FALSE;', ); - final elementSize = field.type.baseName == 'Uint8List' - ? 'sizeof(uint8_t)' - : field.type.baseName == 'Int32List' - ? 'sizeof(int32_t)' - : field.type.baseName == 'Int64List' - ? 'sizeof(int64_t)' - : field.type.baseName == 'Float32List' - ? 'sizeof(float)' - : 'sizeof(double)'; - indent.writeln( - 'if (memcmp(a->$fieldName, b->$fieldName, a->${fieldName}_length * $elementSize) != 0) return FALSE;', - ); + if (field.type.baseName == 'Float32List' || + field.type.baseName == 'Float64List') { + indent.writeScoped( + 'for (size_t i = 0; i < a->${fieldName}_length; i++) {', + '}', + () { + indent.writeln( + 'if (!flpigeon_equals_double(a->${fieldName}[i], b->${fieldName}[i])) return FALSE;', + ); + }, + ); + } else { + final String elementSize = field.type.baseName == 'Uint8List' + ? 'sizeof(uint8_t)' + : field.type.baseName == 'Int32List' + ? 'sizeof(int32_t)' + : 'sizeof(int64_t)'; + indent.writeln( + 'if (memcmp(a->$fieldName, b->$fieldName, a->${fieldName}_length * $elementSize) != 0) return FALSE;', + ); + } }); } else if (field.type.baseName == 'bool' || field.type.baseName == 'int') { @@ -2861,13 +2870,18 @@ void _writeDeepEquals(Indent indent) { indent.writeln( ' memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0;', ); - indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST:'); - indent.writeln( - ' return fl_value_get_length(a) == fl_value_get_length(b) &&', - ); - indent.writeln( - ' memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), fl_value_get_length(a) * sizeof(double)) == 0;', - ); + indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST: {'); + indent.writeln(' size_t len = fl_value_get_length(a);'); + indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); + indent.writeln(' const double* a_data = fl_value_get_float_list(a);'); + indent.writeln(' const double* b_data = fl_value_get_float_list(b);'); + indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { + indent.writeln( + 'if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE;', + ); + }); + indent.writeln(' return TRUE;'); + indent.writeln('}'); indent.writeln('case FL_VALUE_TYPE_LIST: {'); indent.writeln(' size_t len = fl_value_get_length(a);'); indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java index 19ee47366377..4a9992de46f2 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java @@ -307,8 +307,6 @@ public void nestedByteArrayEquality() { list2.add(new byte[] {1, 2, 3}); AllNullableTypes b = new AllNullableTypes.Builder().setList(list2).build(); - // List.equals calls Object.equals on elements. byte[] identity check will fail. - // This is a known issue we should decide if we want to fix. assertEquals(a, b); assertEquals(a.hashCode(), b.hashCode()); } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 2df9adfa5fba..6b5aecd205f8 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -51,10 +51,16 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { return fl_value_get_length(a) == fl_value_get_length(b) && memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0; - case FL_VALUE_TYPE_FLOAT_LIST: - return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_float_list(a), fl_value_get_float_list(b), - fl_value_get_length(a) * sizeof(double)) == 0; + case FL_VALUE_TYPE_FLOAT_LIST: { + size_t len = fl_value_get_length(a); + if (len != fl_value_get_length(b)) return FALSE; + const double* a_data = fl_value_get_float_list(a); + const double* b_data = fl_value_get_float_list(b); + for (size_t i = 0; i < len; i++) { + if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE; + } + return TRUE; + } case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); if (len != fl_value_get_length(b)) return FALSE; @@ -700,9 +706,10 @@ gboolean core_tests_pigeon_test_all_types_equals( if (a->a_float_array == nullptr || b->a_float_array == nullptr) return FALSE; if (a->a_float_array_length != b->a_float_array_length) return FALSE; - if (memcmp(a->a_float_array, b->a_float_array, - a->a_float_array_length * sizeof(double)) != 0) - return FALSE; + for (size_t i = 0; i < a->a_float_array_length; i++) { + if (!flpigeon_equals_double(a->a_float_array[i], b->a_float_array[i])) + return FALSE; + } } if (a->an_enum != b->an_enum) { return FALSE; @@ -1728,9 +1735,11 @@ gboolean core_tests_pigeon_test_all_nullable_types_equals( return FALSE; if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) return FALSE; - if (memcmp(a->a_nullable_float_array, b->a_nullable_float_array, - a->a_nullable_float_array_length * sizeof(double)) != 0) - return FALSE; + for (size_t i = 0; i < a->a_nullable_float_array_length; i++) { + if (!flpigeon_equals_double(a->a_nullable_float_array[i], + b->a_nullable_float_array[i])) + return FALSE; + } } if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) return FALSE; @@ -2768,9 +2777,11 @@ gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( return FALSE; if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) return FALSE; - if (memcmp(a->a_nullable_float_array, b->a_nullable_float_array, - a->a_nullable_float_array_length * sizeof(double)) != 0) - return FALSE; + for (size_t i = 0; i < a->a_nullable_float_array_length; i++) { + if (!flpigeon_equals_double(a->a_nullable_float_array[i], + b->a_nullable_float_array[i])) + return FALSE; + } } if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) return FALSE; From 8c75a3648cb4cc68cc33ab0ff83cba5e712e75bf Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 18:29:07 -0800 Subject: [PATCH 24/33] re-normalize -0.0 in hash methods to create consistent behavior across all platforms --- .../java/io/flutter/plugins/Messages.java | 34 +- .../EventChannelMessages.g.kt | 44 +- .../flutter/pigeon_example_app/Messages.g.kt | 44 +- .../app/lib/src/event_channel_messages.g.dart | 3 + .../example/app/lib/src/messages.g.dart | 3 + .../pigeon/example/app/linux/messages.g.cc | 1 + .../pigeon/lib/src/dart/dart_generator.dart | 3 + .../lib/src/gobject/gobject_generator.dart | 1 + .../pigeon/lib/src/java/java_generator.dart | 54 +- .../lib/src/kotlin/kotlin_generator.dart | 43 +- packages/pigeon/pigeons/core_tests.dart | 6 + .../CoreTests.java | 2989 +- .../CoreTests.gen.m | 6077 +-- .../CoreTests.gen.h | 1168 +- .../lib/integration_tests.dart | 28 + .../lib/message.gen.dart | 442 + .../lib/src/generated/core_tests.gen.dart | 4498 +-- .../lib/src/generated/enum.gen.dart | 106 +- .../generated/event_channel_tests.gen.dart | 244 +- ...ent_channel_without_classes_tests.gen.dart | 14 +- .../src/generated/flutter_unittests.gen.dart | 152 +- .../lib/src/generated/message.gen.dart | 192 +- .../lib/src/generated/multiple_arity.gen.dart | 80 +- .../src/generated/non_null_fields.gen.dart | 155 +- .../lib/src/generated/null_fields.gen.dart | 131 +- .../src/generated/nullable_returns.gen.dart | 213 +- .../lib/src/generated/primitive.gen.dart | 406 +- .../src/generated/proxy_api_tests.gen.dart | 2246 +- .../test/equality_test.dart | 2 + .../test/message_test.dart | 162 + .../test/test_message.gen.dart | 179 +- .../com/example/test_plugin/CoreTests.gen.kt | 3812 +- .../test_plugin/EventChannelTests.gen.kt | 451 +- .../example/test_plugin/ProxyApiTests.gen.kt | 2565 +- .../com/example/test_plugin/TestPlugin.kt | 8 + .../example/test_plugin/AllDatatypesTest.kt | 15 +- .../Sources/test_plugin/CoreTests.gen.swift | 2039 +- .../test_plugin/EventChannelTests.gen.swift | 97 +- .../test_plugin/ProxyApiTests.gen.swift | 1887 +- .../Sources/test_plugin/TestPlugin.swift | 10 + .../linux/pigeon/core_tests.gen.cc | 33622 +++++----------- .../test_plugin/linux/pigeon/core_tests.gen.h | 7212 +--- .../test_plugin/linux/test/equality_test.cc | 32 +- .../test_plugin/linux/test_plugin.cc | 17 + .../windows/pigeon/core_tests.gen.cpp | 13340 +++--- .../windows/pigeon/core_tests.gen.h | 1302 +- .../windows/test/equality_test.cpp | 2 +- .../test_plugin/windows/test_plugin.cpp | 11 + .../test_plugin/windows/test_plugin.h | 5 + 49 files changed, 28357 insertions(+), 57790 deletions(-) create mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart create mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index f1d84d12a9e4..34eb092f1443 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -44,7 +44,15 @@ static boolean pigeonDeepEquals(Object a, Object b) { return Arrays.equals((long[]) a, (long[]) b); } if (a instanceof double[] && b instanceof double[]) { - return Arrays.equals((double[]) a, (double[]) b); + double[] da = (double[]) a; + double[] db = (double[]) b; + if (da.length != db.length) return false; + for (int i = 0; i < da.length; i++) { + if (!pigeonDeepEquals(da[i], db[i])) { + return false; + } + } + return true; } if (a instanceof List && b instanceof List) { List listA = (List) a; @@ -75,6 +83,12 @@ static boolean pigeonDeepEquals(Object a, Object b) { } return true; } + if (a instanceof Double && b instanceof Double) { + return (double) a == (double) b || (Double.isNaN((double) a) && Double.isNaN((double) b)); + } + if (a instanceof Float && b instanceof Float) { + return (float) a == (float) b || (Float.isNaN((float) a) && Float.isNaN((float) b)); + } return a.equals(b); } @@ -92,7 +106,12 @@ static int pigeonDeepHashCode(Object value) { return Arrays.hashCode((long[]) value); } if (value instanceof double[]) { - return Arrays.hashCode((double[]) value); + double[] da = (double[]) value; + int result = 1; + for (double d : da) { + result = 31 * result + pigeonDeepHashCode(d); + } + return result; } if (value instanceof List) { int result = 1; @@ -115,6 +134,17 @@ static int pigeonDeepHashCode(Object value) { } return result; } + if (value instanceof Double) { + double d = (double) value; + if (d == 0.0) d = 0.0; + long bits = Double.doubleToLongBits(d); + return (int) (bits ^ (bits >>> 32)); + } + if (value instanceof Float) { + float f = (float) value; + if (f == 0.0f) f = 0.0f; + return Float.floatToIntBits(f); + } return value.hashCode(); } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt index efb02f216423..7f62725a14b4 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt @@ -27,10 +27,18 @@ private object EventChannelMessagesPigeonUtils { return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is FloatArray && b is FloatArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is Array<*> && b is Array<*>) { return a.contentDeepEquals(b) @@ -42,6 +50,13 @@ private object EventChannelMessagesPigeonUtils { return a.size == b.size && a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } } + if (a is Double && b is Double) { + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + if (a is Float && b is Float) { + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || + (a.isNaN() && b.isNaN()) + } return a == b } @@ -51,8 +66,20 @@ private object EventChannelMessagesPigeonUtils { is ByteArray -> value.contentHashCode() is IntArray -> value.contentHashCode() is LongArray -> value.contentHashCode() - is DoubleArray -> value.contentHashCode() - is FloatArray -> value.contentHashCode() + is DoubleArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is FloatArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } is Array<*> -> value.contentDeepHashCode() is List<*> -> { var result = 1 @@ -68,6 +95,15 @@ private object EventChannelMessagesPigeonUtils { } result } + is Double -> { + val d = if (value == 0.0) 0.0 else value + val bits = java.lang.Double.doubleToLongBits(d) + (bits xor (bits ushr 32)).toInt() + } + is Float -> { + val f = if (value == 0.0f) 0.0f else value + java.lang.Float.floatToIntBits(f) + } else -> value.hashCode() } } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index 150c29e6c624..bf1154b53bd2 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -49,10 +49,18 @@ private object MessagesPigeonUtils { return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is FloatArray && b is FloatArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is Array<*> && b is Array<*>) { return a.contentDeepEquals(b) @@ -64,6 +72,13 @@ private object MessagesPigeonUtils { return a.size == b.size && a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } } + if (a is Double && b is Double) { + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + if (a is Float && b is Float) { + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || + (a.isNaN() && b.isNaN()) + } return a == b } @@ -73,8 +88,20 @@ private object MessagesPigeonUtils { is ByteArray -> value.contentHashCode() is IntArray -> value.contentHashCode() is LongArray -> value.contentHashCode() - is DoubleArray -> value.contentHashCode() - is FloatArray -> value.contentHashCode() + is DoubleArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is FloatArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } is Array<*> -> value.contentDeepHashCode() is List<*> -> { var result = 1 @@ -90,6 +117,15 @@ private object MessagesPigeonUtils { } result } + is Double -> { + val d = if (value == 0.0) 0.0 else value + val bits = java.lang.Double.doubleToLongBits(d) + (bits xor (bits ushr 32)).toInt() + } + is Float -> { + val f = if (value == 0.0f) 0.0f else value + java.lang.Float.floatToIntBits(f) + } else -> value.hashCode() } } diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 1d3d57de7952..37efcff22110 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -57,6 +57,9 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index b10ff31cc607..9ba8be205f9a 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -96,6 +96,9 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index b36551d23471..cd1d0a228f2a 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -11,6 +11,7 @@ #include static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { if (std::isnan(v)) return (guint)0x7FF80000; + if (v == 0.0) v = 0.0; union { double d; uint64_t u; diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index 9802b913e9eb..a005f431cdbc 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -1223,6 +1223,9 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } '''); diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index 3135b58fb8cd..97073573d994 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -2805,6 +2805,7 @@ void _writeHashHelpers(Indent indent) { '}', () { indent.writeln('if (std::isnan(v)) return (guint)0x7FF80000;'); + indent.writeln('if (v == 0.0) v = 0.0;'); indent.writeln('union { double d; uint64_t u; } u;'); indent.writeln('u.d = v;'); indent.writeln('return (guint)(u.u ^ (u.u >> 32));'); diff --git a/packages/pigeon/lib/src/java/java_generator.dart b/packages/pigeon/lib/src/java/java_generator.dart index 1e573da774ef..d8f2b74eee71 100644 --- a/packages/pigeon/lib/src/java/java_generator.dart +++ b/packages/pigeon/lib/src/java/java_generator.dart @@ -439,7 +439,23 @@ class JavaGenerator extends StructuredGenerator { 'if (a instanceof double[] && b instanceof double[]) {', '}', () { - indent.writeln('return Arrays.equals((double[]) a, (double[]) b);'); + indent.writeln('double[] da = (double[]) a;'); + indent.writeln('double[] db = (double[]) b;'); + indent.writeln('if (da.length != db.length) return false;'); + indent.writeScoped( + 'for (int i = 0; i < da.length; i++) {', + '}', + () { + indent.writeScoped( + 'if (!pigeonDeepEquals(da[i], db[i])) {', + '}', + () { + indent.writeln('return false;'); + }, + ); + }, + ); + indent.writeln('return true;'); }, ); indent.writeScoped( @@ -489,6 +505,24 @@ class JavaGenerator extends StructuredGenerator { indent.writeln('return true;'); }, ); + indent.writeScoped( + 'if (a instanceof Double && b instanceof Double) {', + '}', + () { + indent.writeln( + 'return ((double) a == 0.0 ? 0.0 : (double) a) == ((double) b == 0.0 ? 0.0 : (double) b) || (Double.isNaN((double) a) && Double.isNaN((double) b));', + ); + }, + ); + indent.writeScoped( + 'if (a instanceof Float && b instanceof Float) {', + '}', + () { + indent.writeln( + 'return ((float) a == 0.0f ? 0.0f : (float) a) == ((float) b == 0.0f ? 0.0f : (float) b) || (Float.isNaN((float) a) && Float.isNaN((float) b));', + ); + }, + ); indent.writeln('return a.equals(b);'); }, ); @@ -508,7 +542,12 @@ class JavaGenerator extends StructuredGenerator { indent.writeln('return Arrays.hashCode((long[]) value);'); }); indent.writeScoped('if (value instanceof double[]) {', '}', () { - indent.writeln('return Arrays.hashCode((double[]) value);'); + indent.writeln('double[] da = (double[]) value;'); + indent.writeln('int result = 1;'); + indent.writeScoped('for (double d : da) {', '}', () { + indent.writeln('result = 31 * result + pigeonDeepHashCode(d);'); + }); + indent.writeln('return result;'); }); indent.writeScoped('if (value instanceof List) {', '}', () { indent.writeln('int result = 1;'); @@ -537,6 +576,17 @@ class JavaGenerator extends StructuredGenerator { }); indent.writeln('return result;'); }); + indent.writeScoped('if (value instanceof Double) {', '}', () { + indent.writeln('double d = (double) value;'); + indent.writeln('if (d == 0.0) d = 0.0;'); + indent.writeln('long bits = Double.doubleToLongBits(d);'); + indent.writeln('return (int) (bits ^ (bits >>> 32));'); + }); + indent.writeScoped('if (value instanceof Float) {', '}', () { + indent.writeln('float f = (float) value;'); + indent.writeln('if (f == 0.0f) f = 0.0f;'); + indent.writeln('return Float.floatToIntBits(f);'); + }); indent.writeln('return value.hashCode();'); }); indent.newln(); diff --git a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart index 2e5b698f9b33..c8885dbb25b1 100644 --- a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart +++ b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart @@ -1360,10 +1360,18 @@ fun deepEquals(a: Any?, b: Any?): Boolean { return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is FloatArray && b is FloatArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is Array<*> && b is Array<*>) { return a.contentDeepEquals(b) @@ -1378,6 +1386,12 @@ fun deepEquals(a: Any?, b: Any?): Boolean { deepEquals(it.value, b[it.key]) } } + if (a is Double && b is Double) { + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + if (a is Float && b is Float) { + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) + } return a == b } '''); @@ -1391,8 +1405,20 @@ fun deepHash(value: Any?): Int { is ByteArray -> value.contentHashCode() is IntArray -> value.contentHashCode() is LongArray -> value.contentHashCode() - is DoubleArray -> value.contentHashCode() - is FloatArray -> value.contentHashCode() + is DoubleArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is FloatArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } is Array<*> -> value.contentDeepHashCode() is List<*> -> { var result = 1 @@ -1408,6 +1434,15 @@ fun deepHash(value: Any?): Int { } result } + is Double -> { + val d = if (value == 0.0) 0.0 else value + val bits = java.lang.Double.doubleToLongBits(d) + (bits xor (bits ushr 32)).toInt() + } + is Float -> { + val f = if (value == 0.0f) 0.0f else value + java.lang.Float.floatToIntBits(f) + } else -> value.hashCode() } } diff --git a/packages/pigeon/pigeons/core_tests.dart b/packages/pigeon/pigeons/core_tests.dart index 8795c8de900a..fb3e8b0f1fc5 100644 --- a/packages/pigeon/pigeons/core_tests.dart +++ b/packages/pigeon/pigeons/core_tests.dart @@ -435,6 +435,12 @@ abstract class HostIntegrationCoreApi { // ========== Synchronous nullable method tests ========== + /// Returns the result of platform-side equality check. + bool areAllNullableTypesEqual(AllNullableTypes a, AllNullableTypes b); + + /// Returns the platform-side hash code for the given object. + int getAllNullableTypesHash(AllNullableTypes value); + /// Returns the passed object, to test serialization and deserialization. @ObjCSelector('echoAllNullableTypes:') @SwiftFunction('echo(_:)') diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index 3be76ef0795b..9b7c21a02e53 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -24,19 +24,17 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; /** Generated class from Pigeon. */ @SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) public class CoreTests { static boolean pigeonDeepEquals(Object a, Object b) { - if (a == b) { - return true; - } - if (a == null || b == null) { - return false; - } + if (a == b) { return true; } + if (a == null || b == null) { return false; } if (a instanceof byte[] && b instanceof byte[]) { return Arrays.equals((byte[]) a, (byte[]) b); } @@ -47,14 +45,20 @@ static boolean pigeonDeepEquals(Object a, Object b) { return Arrays.equals((long[]) a, (long[]) b); } if (a instanceof double[] && b instanceof double[]) { - return Arrays.equals((double[]) a, (double[]) b); + double[] da = (double[]) a; + double[] db = (double[]) b; + if (da.length != db.length) return false; + for (int i = 0; i < da.length; i++) { + if (!pigeonDeepEquals(da[i], db[i])) { + return false; + } + } + return true; } if (a instanceof List && b instanceof List) { List listA = (List) a; List listB = (List) b; - if (listA.size() != listB.size()) { - return false; - } + if (listA.size() != listB.size()) { return false; } for (int i = 0; i < listA.size(); i++) { if (!pigeonDeepEquals(listA.get(i), listB.get(i))) { return false; @@ -65,9 +69,7 @@ static boolean pigeonDeepEquals(Object a, Object b) { if (a instanceof Map && b instanceof Map) { Map mapA = (Map) a; Map mapB = (Map) b; - if (mapA.size() != mapB.size()) { - return false; - } + if (mapA.size() != mapB.size()) { return false; } for (Object key : mapA.keySet()) { if (!mapB.containsKey(key)) { return false; @@ -78,13 +80,17 @@ static boolean pigeonDeepEquals(Object a, Object b) { } return true; } + if (a instanceof Double && b instanceof Double) { + return (double) a == (double) b || (Double.isNaN((double) a) && Double.isNaN((double) b)); + } + if (a instanceof Float && b instanceof Float) { + return (float) a == (float) b || (Float.isNaN((float) a) && Float.isNaN((float) b)); + } return a.equals(b); } static int pigeonDeepHashCode(Object value) { - if (value == null) { - return 0; - } + if (value == null) { return 0; } if (value instanceof byte[]) { return Arrays.hashCode((byte[]) value); } @@ -95,7 +101,12 @@ static int pigeonDeepHashCode(Object value) { return Arrays.hashCode((long[]) value); } if (value instanceof double[]) { - return Arrays.hashCode((double[]) value); + double[] da = (double[]) value; + int result = 1; + for (double d : da) { + result = 31 * result + pigeonDeepHashCode(d); + } + return result; } if (value instanceof List) { int result = 1; @@ -118,9 +129,21 @@ static int pigeonDeepHashCode(Object value) { } return result; } + if (value instanceof Double) { + double d = (double) value; + if (d == 0.0) d = 0.0; + long bits = Double.doubleToLongBits(d); + return (int) (bits ^ (bits >>> 32)); + } + if (value instanceof Float) { + float f = (float) value; + if (f == 0.0f) f = 0.0f; + return Float.floatToIntBits(f); + } return value.hashCode(); } + /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ public static class FlutterError extends RuntimeException { @@ -130,7 +153,8 @@ public static class FlutterError extends RuntimeException { /** The error details. Must be a datatype supported by the api codec. */ public final Object details; - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) { + public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) + { super(message); this.code = code; this.details = details; @@ -149,15 +173,14 @@ protected static ArrayList wrapError(@NonNull Throwable exception) { errorList.add(exception.toString()); errorList.add(exception.getClass().getSimpleName()); errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); + "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); } return errorList; } @NonNull protected static FlutterError createConnectionError(@NonNull String channelName) { - return new FlutterError( - "channel-error", "Unable to establish connection on channel: " + channelName + ".", ""); + return new FlutterError("channel-error", "Unable to establish connection on channel: " + channelName + ".", ""); } @Target(METHOD) @@ -202,12 +225,8 @@ public void setAField(@Nullable Object setterArg) { @Override public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } + if (this == o) { return true; } + if (o == null || getClass() != o.getClass()) { return false; } UnusedClass that = (UnusedClass) o; return pigeonDeepEquals(aField, that.aField); } @@ -253,7 +272,7 @@ ArrayList toList() { /** * A class containing all supported types. * - *

Generated class from Pigeon that represents data sent in messages. + * Generated class from Pigeon that represents data sent in messages. */ public static final class AllTypes { private @NonNull Boolean aBool; @@ -625,77 +644,15 @@ public void setMapMap(@NonNull Map> setterArg) { @Override public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } + if (this == o) { return true; } + if (o == null || getClass() != o.getClass()) { return false; } AllTypes that = (AllTypes) o; - return pigeonDeepEquals(aBool, that.aBool) - && pigeonDeepEquals(anInt, that.anInt) - && pigeonDeepEquals(anInt64, that.anInt64) - && pigeonDeepEquals(aDouble, that.aDouble) - && pigeonDeepEquals(aByteArray, that.aByteArray) - && pigeonDeepEquals(a4ByteArray, that.a4ByteArray) - && pigeonDeepEquals(a8ByteArray, that.a8ByteArray) - && pigeonDeepEquals(aFloatArray, that.aFloatArray) - && pigeonDeepEquals(anEnum, that.anEnum) - && pigeonDeepEquals(anotherEnum, that.anotherEnum) - && pigeonDeepEquals(aString, that.aString) - && pigeonDeepEquals(anObject, that.anObject) - && pigeonDeepEquals(list, that.list) - && pigeonDeepEquals(stringList, that.stringList) - && pigeonDeepEquals(intList, that.intList) - && pigeonDeepEquals(doubleList, that.doubleList) - && pigeonDeepEquals(boolList, that.boolList) - && pigeonDeepEquals(enumList, that.enumList) - && pigeonDeepEquals(objectList, that.objectList) - && pigeonDeepEquals(listList, that.listList) - && pigeonDeepEquals(mapList, that.mapList) - && pigeonDeepEquals(map, that.map) - && pigeonDeepEquals(stringMap, that.stringMap) - && pigeonDeepEquals(intMap, that.intMap) - && pigeonDeepEquals(enumMap, that.enumMap) - && pigeonDeepEquals(objectMap, that.objectMap) - && pigeonDeepEquals(listMap, that.listMap) - && pigeonDeepEquals(mapMap, that.mapMap); + return pigeonDeepEquals(aBool, that.aBool) && pigeonDeepEquals(anInt, that.anInt) && pigeonDeepEquals(anInt64, that.anInt64) && pigeonDeepEquals(aDouble, that.aDouble) && pigeonDeepEquals(aByteArray, that.aByteArray) && pigeonDeepEquals(a4ByteArray, that.a4ByteArray) && pigeonDeepEquals(a8ByteArray, that.a8ByteArray) && pigeonDeepEquals(aFloatArray, that.aFloatArray) && pigeonDeepEquals(anEnum, that.anEnum) && pigeonDeepEquals(anotherEnum, that.anotherEnum) && pigeonDeepEquals(aString, that.aString) && pigeonDeepEquals(anObject, that.anObject) && pigeonDeepEquals(list, that.list) && pigeonDeepEquals(stringList, that.stringList) && pigeonDeepEquals(intList, that.intList) && pigeonDeepEquals(doubleList, that.doubleList) && pigeonDeepEquals(boolList, that.boolList) && pigeonDeepEquals(enumList, that.enumList) && pigeonDeepEquals(objectList, that.objectList) && pigeonDeepEquals(listList, that.listList) && pigeonDeepEquals(mapList, that.mapList) && pigeonDeepEquals(map, that.map) && pigeonDeepEquals(stringMap, that.stringMap) && pigeonDeepEquals(intMap, that.intMap) && pigeonDeepEquals(enumMap, that.enumMap) && pigeonDeepEquals(objectMap, that.objectMap) && pigeonDeepEquals(listMap, that.listMap) && pigeonDeepEquals(mapMap, that.mapMap); } @Override public int hashCode() { - Object[] fields = - new Object[] { - getClass(), - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap - }; + Object[] fields = new Object[] {getClass(), aBool, anInt, anInt64, aDouble, aByteArray, a4ByteArray, a8ByteArray, aFloatArray, anEnum, anotherEnum, aString, anObject, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap}; return pigeonDeepHashCode(fields); } @@ -1058,7 +1015,7 @@ ArrayList toList() { /** * A class containing all supported nullable types. * - *

Generated class from Pigeon that represents data sent in messages. + * Generated class from Pigeon that represents data sent in messages. */ public static final class AllNullableTypes { private @Nullable Boolean aNullableBool; @@ -1373,83 +1330,15 @@ public void setRecursiveClassMap(@Nullable Map setterArg @Override public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } + if (this == o) { return true; } + if (o == null || getClass() != o.getClass()) { return false; } AllNullableTypes that = (AllNullableTypes) o; - return pigeonDeepEquals(aNullableBool, that.aNullableBool) - && pigeonDeepEquals(aNullableInt, that.aNullableInt) - && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) - && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) - && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) - && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) - && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) - && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) - && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) - && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) - && pigeonDeepEquals(aNullableString, that.aNullableString) - && pigeonDeepEquals(aNullableObject, that.aNullableObject) - && pigeonDeepEquals(allNullableTypes, that.allNullableTypes) - && pigeonDeepEquals(list, that.list) - && pigeonDeepEquals(stringList, that.stringList) - && pigeonDeepEquals(intList, that.intList) - && pigeonDeepEquals(doubleList, that.doubleList) - && pigeonDeepEquals(boolList, that.boolList) - && pigeonDeepEquals(enumList, that.enumList) - && pigeonDeepEquals(objectList, that.objectList) - && pigeonDeepEquals(listList, that.listList) - && pigeonDeepEquals(mapList, that.mapList) - && pigeonDeepEquals(recursiveClassList, that.recursiveClassList) - && pigeonDeepEquals(map, that.map) - && pigeonDeepEquals(stringMap, that.stringMap) - && pigeonDeepEquals(intMap, that.intMap) - && pigeonDeepEquals(enumMap, that.enumMap) - && pigeonDeepEquals(objectMap, that.objectMap) - && pigeonDeepEquals(listMap, that.listMap) - && pigeonDeepEquals(mapMap, that.mapMap) - && pigeonDeepEquals(recursiveClassMap, that.recursiveClassMap); + return pigeonDeepEquals(aNullableBool, that.aNullableBool) && pigeonDeepEquals(aNullableInt, that.aNullableInt) && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) && pigeonDeepEquals(aNullableString, that.aNullableString) && pigeonDeepEquals(aNullableObject, that.aNullableObject) && pigeonDeepEquals(allNullableTypes, that.allNullableTypes) && pigeonDeepEquals(list, that.list) && pigeonDeepEquals(stringList, that.stringList) && pigeonDeepEquals(intList, that.intList) && pigeonDeepEquals(doubleList, that.doubleList) && pigeonDeepEquals(boolList, that.boolList) && pigeonDeepEquals(enumList, that.enumList) && pigeonDeepEquals(objectList, that.objectList) && pigeonDeepEquals(listList, that.listList) && pigeonDeepEquals(mapList, that.mapList) && pigeonDeepEquals(recursiveClassList, that.recursiveClassList) && pigeonDeepEquals(map, that.map) && pigeonDeepEquals(stringMap, that.stringMap) && pigeonDeepEquals(intMap, that.intMap) && pigeonDeepEquals(enumMap, that.enumMap) && pigeonDeepEquals(objectMap, that.objectMap) && pigeonDeepEquals(listMap, that.listMap) && pigeonDeepEquals(mapMap, that.mapMap) && pigeonDeepEquals(recursiveClassMap, that.recursiveClassMap); } @Override public int hashCode() { - Object[] fields = - new Object[] { - getClass(), - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap - }; + Object[] fields = new Object[] {getClass(), aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, recursiveClassList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap, recursiveClassMap}; return pigeonDeepHashCode(fields); } @@ -1698,8 +1587,7 @@ public static final class Builder { private @Nullable Map recursiveClassMap; @CanIgnoreReturnValue - public @NonNull Builder setRecursiveClassMap( - @Nullable Map setterArg) { + public @NonNull Builder setRecursiveClassMap(@Nullable Map setterArg) { this.recursiveClassMap = setterArg; return this; } @@ -1847,10 +1735,11 @@ ArrayList toList() { } /** - * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, - * as the primary [AllNullableTypes] class is being used to test Swift classes. + * The primary purpose for this class is to ensure coverage of Swift structs + * with nullable items, as the primary [AllNullableTypes] class is being used to + * test Swift classes. * - *

Generated class from Pigeon that represents data sent in messages. + * Generated class from Pigeon that represents data sent in messages. */ public static final class AllNullableTypesWithoutRecursion { private @Nullable Boolean aNullableBool; @@ -2135,77 +2024,15 @@ public void setMapMap(@Nullable Map> setterArg) { @Override public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } + if (this == o) { return true; } + if (o == null || getClass() != o.getClass()) { return false; } AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; - return pigeonDeepEquals(aNullableBool, that.aNullableBool) - && pigeonDeepEquals(aNullableInt, that.aNullableInt) - && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) - && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) - && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) - && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) - && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) - && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) - && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) - && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) - && pigeonDeepEquals(aNullableString, that.aNullableString) - && pigeonDeepEquals(aNullableObject, that.aNullableObject) - && pigeonDeepEquals(list, that.list) - && pigeonDeepEquals(stringList, that.stringList) - && pigeonDeepEquals(intList, that.intList) - && pigeonDeepEquals(doubleList, that.doubleList) - && pigeonDeepEquals(boolList, that.boolList) - && pigeonDeepEquals(enumList, that.enumList) - && pigeonDeepEquals(objectList, that.objectList) - && pigeonDeepEquals(listList, that.listList) - && pigeonDeepEquals(mapList, that.mapList) - && pigeonDeepEquals(map, that.map) - && pigeonDeepEquals(stringMap, that.stringMap) - && pigeonDeepEquals(intMap, that.intMap) - && pigeonDeepEquals(enumMap, that.enumMap) - && pigeonDeepEquals(objectMap, that.objectMap) - && pigeonDeepEquals(listMap, that.listMap) - && pigeonDeepEquals(mapMap, that.mapMap); + return pigeonDeepEquals(aNullableBool, that.aNullableBool) && pigeonDeepEquals(aNullableInt, that.aNullableInt) && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) && pigeonDeepEquals(aNullableString, that.aNullableString) && pigeonDeepEquals(aNullableObject, that.aNullableObject) && pigeonDeepEquals(list, that.list) && pigeonDeepEquals(stringList, that.stringList) && pigeonDeepEquals(intList, that.intList) && pigeonDeepEquals(doubleList, that.doubleList) && pigeonDeepEquals(boolList, that.boolList) && pigeonDeepEquals(enumList, that.enumList) && pigeonDeepEquals(objectList, that.objectList) && pigeonDeepEquals(listList, that.listList) && pigeonDeepEquals(mapList, that.mapList) && pigeonDeepEquals(map, that.map) && pigeonDeepEquals(stringMap, that.stringMap) && pigeonDeepEquals(intMap, that.intMap) && pigeonDeepEquals(enumMap, that.enumMap) && pigeonDeepEquals(objectMap, that.objectMap) && pigeonDeepEquals(listMap, that.listMap) && pigeonDeepEquals(mapMap, that.mapMap); } @Override public int hashCode() { - Object[] fields = - new Object[] { - getClass(), - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap - }; + Object[] fields = new Object[] {getClass(), aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap}; return pigeonDeepHashCode(fields); } @@ -2503,8 +2330,7 @@ ArrayList toList() { return toListResult; } - static @NonNull AllNullableTypesWithoutRecursion fromList( - @NonNull ArrayList pigeonVar_list) { + static @NonNull AllNullableTypesWithoutRecursion fromList(@NonNull ArrayList pigeonVar_list) { AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); Object aNullableBool = pigeonVar_list.get(0); pigeonResult.setANullableBool((Boolean) aNullableBool); @@ -2569,11 +2395,11 @@ ArrayList toList() { /** * A class for testing nested class handling. * - *

This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is - * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require - * both (ie. testing null classes). + * This is needed to test nested nullable and non-nullable classes, + * `AllNullableTypes` is non-nullable here as it is easier to instantiate + * than `AllTypes` when testing doesn't require both (ie. testing null classes). * - *

Generated class from Pigeon that represents data sent in messages. + * Generated class from Pigeon that represents data sent in messages. */ public static final class AllClassesWrapper { private @NonNull AllNullableTypes allNullableTypes; @@ -2595,8 +2421,7 @@ public void setAllNullableTypes(@NonNull AllNullableTypes setterArg) { return allNullableTypesWithoutRecursion; } - public void setAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion setterArg) { + public void setAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion setterArg) { this.allNullableTypesWithoutRecursion = setterArg; } @@ -2652,8 +2477,7 @@ public void setClassMap(@NonNull Map setterArg) { return nullableClassMap; } - public void setNullableClassMap( - @Nullable Map setterArg) { + public void setNullableClassMap(@Nullable Map setterArg) { this.nullableClassMap = setterArg; } @@ -2662,36 +2486,15 @@ public void setNullableClassMap( @Override public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } + if (this == o) { return true; } + if (o == null || getClass() != o.getClass()) { return false; } AllClassesWrapper that = (AllClassesWrapper) o; - return pigeonDeepEquals(allNullableTypes, that.allNullableTypes) - && pigeonDeepEquals( - allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) - && pigeonDeepEquals(allTypes, that.allTypes) - && pigeonDeepEquals(classList, that.classList) - && pigeonDeepEquals(nullableClassList, that.nullableClassList) - && pigeonDeepEquals(classMap, that.classMap) - && pigeonDeepEquals(nullableClassMap, that.nullableClassMap); + return pigeonDeepEquals(allNullableTypes, that.allNullableTypes) && pigeonDeepEquals(allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) && pigeonDeepEquals(allTypes, that.allTypes) && pigeonDeepEquals(classList, that.classList) && pigeonDeepEquals(nullableClassList, that.nullableClassList) && pigeonDeepEquals(classMap, that.classMap) && pigeonDeepEquals(nullableClassMap, that.nullableClassMap); } @Override public int hashCode() { - Object[] fields = - new Object[] { - getClass(), - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap - }; + Object[] fields = new Object[] {getClass(), allNullableTypes, allNullableTypesWithoutRecursion, allTypes, classList, nullableClassList, classMap, nullableClassMap}; return pigeonDeepHashCode(fields); } @@ -2708,8 +2511,7 @@ public static final class Builder { private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion setterArg) { + public @NonNull Builder setAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion setterArg) { this.allNullableTypesWithoutRecursion = setterArg; return this; } @@ -2733,8 +2535,7 @@ public static final class Builder { private @Nullable List nullableClassList; @CanIgnoreReturnValue - public @NonNull Builder setNullableClassList( - @Nullable List setterArg) { + public @NonNull Builder setNullableClassList(@Nullable List setterArg) { this.nullableClassList = setterArg; return this; } @@ -2750,8 +2551,7 @@ public static final class Builder { private @Nullable Map nullableClassMap; @CanIgnoreReturnValue - public @NonNull Builder setNullableClassMap( - @Nullable Map setterArg) { + public @NonNull Builder setNullableClassMap(@Nullable Map setterArg) { this.nullableClassMap = setterArg; return this; } @@ -2787,8 +2587,7 @@ ArrayList toList() { Object allNullableTypes = pigeonVar_list.get(0); pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); Object allNullableTypesWithoutRecursion = pigeonVar_list.get(1); - pigeonResult.setAllNullableTypesWithoutRecursion( - (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); + pigeonResult.setAllNullableTypesWithoutRecursion((AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); Object allTypes = pigeonVar_list.get(2); pigeonResult.setAllTypes((AllTypes) allTypes); Object classList = pigeonVar_list.get(3); @@ -2798,8 +2597,7 @@ ArrayList toList() { Object classMap = pigeonVar_list.get(5); pigeonResult.setClassMap((Map) classMap); Object nullableClassMap = pigeonVar_list.get(6); - pigeonResult.setNullableClassMap( - (Map) nullableClassMap); + pigeonResult.setNullableClassMap((Map) nullableClassMap); return pigeonResult; } } @@ -2807,7 +2605,7 @@ ArrayList toList() { /** * A data class containing a List, used in unit tests. * - *

Generated class from Pigeon that represents data sent in messages. + * Generated class from Pigeon that represents data sent in messages. */ public static final class TestMessage { private @Nullable List testList; @@ -2822,12 +2620,8 @@ public void setTestList(@Nullable List setterArg) { @Override public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } + if (this == o) { return true; } + if (o == null || getClass() != o.getClass()) { return false; } TestMessage that = (TestMessage) o; return pigeonDeepEquals(testList, that.testList); } @@ -2878,16 +2672,14 @@ private PigeonCodec() {} @Override protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { switch (type) { - case (byte) 129: - { - Object value = readValue(buffer); - return value == null ? null : AnEnum.values()[((Long) value).intValue()]; - } - case (byte) 130: - { - Object value = readValue(buffer); - return value == null ? null : AnotherEnum.values()[((Long) value).intValue()]; - } + case (byte) 129: { + Object value = readValue(buffer); + return value == null ? null : AnEnum.values()[((Long) value).intValue()]; + } + case (byte) 130: { + Object value = readValue(buffer); + return value == null ? null : AnotherEnum.values()[((Long) value).intValue()]; + } case (byte) 131: return UnusedClass.fromList((ArrayList) readValue(buffer)); case (byte) 132: @@ -2937,6 +2729,7 @@ protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { } } + /** Asynchronous error handling return type for non-nullable API method returns. */ public interface Result { /** Success case callback method for handling returns. */ @@ -2962,211 +2755,211 @@ public interface VoidResult { void error(@NonNull Throwable error); } /** - * The core interface that each host language plugin must implement in platform_test integration - * tests. + * The core interface that each host language plugin must implement in + * platform_test integration tests. * - *

Generated interface from Pigeon that represents a handler of messages from Flutter. + * Generated interface from Pigeon that represents a handler of messages from Flutter. */ public interface HostIntegrationCoreApi { /** - * A no-op function taking no arguments and returning no value, to sanity test basic calling. + * A no-op function taking no arguments and returning no value, to sanity + * test basic calling. */ void noop(); /** Returns the passed object, to test serialization and deserialization. */ - @NonNull + @NonNull AllTypes echoAllTypes(@NonNull AllTypes everything); /** Returns an error, to test error handling. */ - @Nullable + @Nullable Object throwError(); /** Returns an error from a void function, to test error handling. */ void throwErrorFromVoid(); /** Returns a Flutter error, to test error handling. */ - @Nullable + @Nullable Object throwFlutterError(); /** Returns passed in int. */ - @NonNull + @NonNull Long echoInt(@NonNull Long anInt); /** Returns passed in double. */ - @NonNull + @NonNull Double echoDouble(@NonNull Double aDouble); /** Returns the passed in boolean. */ - @NonNull + @NonNull Boolean echoBool(@NonNull Boolean aBool); /** Returns the passed in string. */ - @NonNull + @NonNull String echoString(@NonNull String aString); /** Returns the passed in Uint8List. */ - @NonNull + @NonNull byte[] echoUint8List(@NonNull byte[] aUint8List); /** Returns the passed in generic Object. */ - @NonNull + @NonNull Object echoObject(@NonNull Object anObject); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoList(@NonNull List list); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoEnumList(@NonNull List enumList); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoClassList(@NonNull List classList); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoNonNullEnumList(@NonNull List enumList); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoNonNullClassList(@NonNull List classList); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoMap(@NonNull Map map); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoStringMap(@NonNull Map stringMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoIntMap(@NonNull Map intMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoEnumMap(@NonNull Map enumMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoClassMap(@NonNull Map classMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoNonNullStringMap(@NonNull Map stringMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoNonNullIntMap(@NonNull Map intMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoNonNullEnumMap(@NonNull Map enumMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoNonNullClassMap(@NonNull Map classMap); /** Returns the passed class to test nested class serialization and deserialization. */ - @NonNull + @NonNull AllClassesWrapper echoClassWrapper(@NonNull AllClassesWrapper wrapper); /** Returns the passed enum to test serialization and deserialization. */ - @NonNull + @NonNull AnEnum echoEnum(@NonNull AnEnum anEnum); /** Returns the passed enum to test serialization and deserialization. */ - @NonNull + @NonNull AnotherEnum echoAnotherEnum(@NonNull AnotherEnum anotherEnum); /** Returns the default string. */ - @NonNull + @NonNull String echoNamedDefaultString(@NonNull String aString); /** Returns passed in double. */ - @NonNull + @NonNull Double echoOptionalDefaultDouble(@NonNull Double aDouble); /** Returns passed in int. */ - @NonNull + @NonNull Long echoRequiredInt(@NonNull Long anInt); + /** Returns the result of platform-side equality check. */ + @NonNull + Boolean areAllNullableTypesEqual(@NonNull AllNullableTypes a, @NonNull AllNullableTypes b); + /** Returns the platform-side hash code for the given object. */ + @NonNull + Long getAllNullableTypesHash(@NonNull AllNullableTypes value); /** Returns the passed object, to test serialization and deserialization. */ - @Nullable + @Nullable AllNullableTypes echoAllNullableTypes(@Nullable AllNullableTypes everything); /** Returns the passed object, to test serialization and deserialization. */ - @Nullable - AllNullableTypesWithoutRecursion echoAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion everything); + @Nullable + AllNullableTypesWithoutRecursion echoAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion everything); /** - * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. + * Returns the inner `aString` value from the wrapped object, to test + * sending of nested objects. */ - @Nullable + @Nullable String extractNestedNullableString(@NonNull AllClassesWrapper wrapper); /** - * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. + * Returns the inner `aString` value from the wrapped object, to test + * sending of nested objects. */ - @NonNull + @NonNull AllClassesWrapper createNestedNullableString(@Nullable String nullableString); /** Returns passed in arguments of multiple types. */ - @NonNull - AllNullableTypes sendMultipleNullableTypes( - @Nullable Boolean aNullableBool, - @Nullable Long aNullableInt, - @Nullable String aNullableString); + @NonNull + AllNullableTypes sendMultipleNullableTypes(@Nullable Boolean aNullableBool, @Nullable Long aNullableInt, @Nullable String aNullableString); /** Returns passed in arguments of multiple types. */ - @NonNull - AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( - @Nullable Boolean aNullableBool, - @Nullable Long aNullableInt, - @Nullable String aNullableString); + @NonNull + AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion(@Nullable Boolean aNullableBool, @Nullable Long aNullableInt, @Nullable String aNullableString); /** Returns passed in int. */ - @Nullable + @Nullable Long echoNullableInt(@Nullable Long aNullableInt); /** Returns passed in double. */ - @Nullable + @Nullable Double echoNullableDouble(@Nullable Double aNullableDouble); /** Returns the passed in boolean. */ - @Nullable + @Nullable Boolean echoNullableBool(@Nullable Boolean aNullableBool); /** Returns the passed in string. */ - @Nullable + @Nullable String echoNullableString(@Nullable String aNullableString); /** Returns the passed in Uint8List. */ - @Nullable + @Nullable byte[] echoNullableUint8List(@Nullable byte[] aNullableUint8List); /** Returns the passed in generic Object. */ - @Nullable + @Nullable Object echoNullableObject(@Nullable Object aNullableObject); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableList(@Nullable List aNullableList); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableEnumList(@Nullable List enumList); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableClassList(@Nullable List classList); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableNonNullEnumList(@Nullable List enumList); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableNonNullClassList(@Nullable List classList); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableMap(@Nullable Map map); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableStringMap(@Nullable Map stringMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableIntMap(@Nullable Map intMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableEnumMap(@Nullable Map enumMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableClassMap( - @Nullable Map classMap); + @Nullable + Map echoNullableClassMap(@Nullable Map classMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableNonNullStringMap(@Nullable Map stringMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableNonNullIntMap(@Nullable Map intMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableNonNullEnumMap(@Nullable Map enumMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableNonNullClassMap( - @Nullable Map classMap); + @Nullable + Map echoNullableNonNullClassMap(@Nullable Map classMap); - @Nullable + @Nullable AnEnum echoNullableEnum(@Nullable AnEnum anEnum); - @Nullable + @Nullable AnotherEnum echoAnotherNullableEnum(@Nullable AnotherEnum anotherEnum); /** Returns passed in int. */ - @Nullable + @Nullable Long echoOptionalNullableInt(@Nullable Long aNullableInt); /** Returns the passed in string. */ - @Nullable + @Nullable String echoNamedNullableString(@Nullable String aNullableString); /** - * A no-op function taking no arguments and returning no value, to sanity test basic - * asynchronous calling. + * A no-op function taking no arguments and returning no value, to sanity + * test basic asynchronous calling. */ void noopAsync(@NonNull VoidResult result); /** Returns passed in int asynchronously. */ @@ -3186,28 +2979,21 @@ Map echoNullableNonNullClassMap( /** Returns the passed list, to test asynchronous serialization and deserialization. */ void echoAsyncEnumList(@NonNull List enumList, @NonNull Result> result); /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncClassList( - @NonNull List classList, @NonNull Result> result); + void echoAsyncClassList(@NonNull List classList, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncMap( - @NonNull Map map, @NonNull Result> result); + void echoAsyncMap(@NonNull Map map, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncStringMap( - @NonNull Map stringMap, @NonNull Result> result); + void echoAsyncStringMap(@NonNull Map stringMap, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ void echoAsyncIntMap(@NonNull Map intMap, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncEnumMap( - @NonNull Map enumMap, @NonNull Result> result); + void echoAsyncEnumMap(@NonNull Map enumMap, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncClassMap( - @NonNull Map classMap, - @NonNull Result> result); + void echoAsyncClassMap(@NonNull Map classMap, @NonNull Result> result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ void echoAsyncEnum(@NonNull AnEnum anEnum, @NonNull Result result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - void echoAnotherAsyncEnum( - @NonNull AnotherEnum anotherEnum, @NonNull Result result); + void echoAnotherAsyncEnum(@NonNull AnotherEnum anotherEnum, @NonNull Result result); /** Responds with an error from an async function returning a value. */ void throwAsyncError(@NonNull NullableResult result); /** Responds with an error from an async void function. */ @@ -3217,12 +3003,9 @@ void echoAnotherAsyncEnum( /** Returns the passed object, to test async serialization and deserialization. */ void echoAsyncAllTypes(@NonNull AllTypes everything, @NonNull Result result); /** Returns the passed object, to test serialization and deserialization. */ - void echoAsyncNullableAllNullableTypes( - @Nullable AllNullableTypes everything, @NonNull NullableResult result); + void echoAsyncNullableAllNullableTypes(@Nullable AllNullableTypes everything, @NonNull NullableResult result); /** Returns the passed object, to test serialization and deserialization. */ - void echoAsyncNullableAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion everything, - @NonNull NullableResult result); + void echoAsyncNullableAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion everything, @NonNull NullableResult result); /** Returns passed in int asynchronously. */ void echoAsyncNullableInt(@Nullable Long anInt, @NonNull NullableResult result); /** Returns passed in double asynchronously. */ @@ -3232,53 +3015,40 @@ void echoAsyncNullableAllNullableTypesWithoutRecursion( /** Returns the passed string asynchronously. */ void echoAsyncNullableString(@Nullable String aString, @NonNull NullableResult result); /** Returns the passed in Uint8List asynchronously. */ - void echoAsyncNullableUint8List( - @Nullable byte[] aUint8List, @NonNull NullableResult result); + void echoAsyncNullableUint8List(@Nullable byte[] aUint8List, @NonNull NullableResult result); /** Returns the passed in generic Object asynchronously. */ void echoAsyncNullableObject(@Nullable Object anObject, @NonNull NullableResult result); /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableList( - @Nullable List list, @NonNull NullableResult> result); + void echoAsyncNullableList(@Nullable List list, @NonNull NullableResult> result); /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableEnumList( - @Nullable List enumList, @NonNull NullableResult> result); + void echoAsyncNullableEnumList(@Nullable List enumList, @NonNull NullableResult> result); /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableClassList( - @Nullable List classList, - @NonNull NullableResult> result); + void echoAsyncNullableClassList(@Nullable List classList, @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableMap( - @Nullable Map map, @NonNull NullableResult> result); + void echoAsyncNullableMap(@Nullable Map map, @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableStringMap( - @Nullable Map stringMap, - @NonNull NullableResult> result); + void echoAsyncNullableStringMap(@Nullable Map stringMap, @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableIntMap( - @Nullable Map intMap, @NonNull NullableResult> result); + void echoAsyncNullableIntMap(@Nullable Map intMap, @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableEnumMap( - @Nullable Map enumMap, @NonNull NullableResult> result); + void echoAsyncNullableEnumMap(@Nullable Map enumMap, @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableClassMap( - @Nullable Map classMap, - @NonNull NullableResult> result); + void echoAsyncNullableClassMap(@Nullable Map classMap, @NonNull NullableResult> result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ void echoAsyncNullableEnum(@Nullable AnEnum anEnum, @NonNull NullableResult result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - void echoAnotherAsyncNullableEnum( - @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); + void echoAnotherAsyncNullableEnum(@Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); /** - * Returns true if the handler is run on a main thread, which should be true since there is no - * TaskQueue annotation. + * Returns true if the handler is run on a main thread, which should be + * true since there is no TaskQueue annotation. */ - @NonNull + @NonNull Boolean defaultIsMainThread(); /** - * Returns true if the handler is run on a non-main thread, which should be true for any - * platform with TaskQueue support. + * Returns true if the handler is run on a non-main thread, which should be + * true for any platform with TaskQueue support. */ - @NonNull + @NonNull Boolean taskQueueIsBackgroundThread(); void callFlutterNoop(@NonNull VoidResult result); @@ -3289,24 +3059,13 @@ void echoAnotherAsyncNullableEnum( void callFlutterEchoAllTypes(@NonNull AllTypes everything, @NonNull Result result); - void callFlutterEchoAllNullableTypes( - @Nullable AllNullableTypes everything, @NonNull NullableResult result); + void callFlutterEchoAllNullableTypes(@Nullable AllNullableTypes everything, @NonNull NullableResult result); - void callFlutterSendMultipleNullableTypes( - @Nullable Boolean aNullableBool, - @Nullable Long aNullableInt, - @Nullable String aNullableString, - @NonNull Result result); + void callFlutterSendMultipleNullableTypes(@Nullable Boolean aNullableBool, @Nullable Long aNullableInt, @Nullable String aNullableString, @NonNull Result result); - void callFlutterEchoAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion everything, - @NonNull NullableResult result); + void callFlutterEchoAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion everything, @NonNull NullableResult result); - void callFlutterSendMultipleNullableTypesWithoutRecursion( - @Nullable Boolean aNullableBool, - @Nullable Long aNullableInt, - @Nullable String aNullableString, - @NonNull Result result); + void callFlutterSendMultipleNullableTypesWithoutRecursion(@Nullable Boolean aNullableBool, @Nullable Long aNullableInt, @Nullable String aNullableString, @NonNull Result result); void callFlutterEchoBool(@NonNull Boolean aBool, @NonNull Result result); @@ -3320,119 +3079,77 @@ void callFlutterSendMultipleNullableTypesWithoutRecursion( void callFlutterEchoList(@NonNull List list, @NonNull Result> result); - void callFlutterEchoEnumList( - @NonNull List enumList, @NonNull Result> result); + void callFlutterEchoEnumList(@NonNull List enumList, @NonNull Result> result); - void callFlutterEchoClassList( - @NonNull List classList, @NonNull Result> result); + void callFlutterEchoClassList(@NonNull List classList, @NonNull Result> result); - void callFlutterEchoNonNullEnumList( - @NonNull List enumList, @NonNull Result> result); + void callFlutterEchoNonNullEnumList(@NonNull List enumList, @NonNull Result> result); - void callFlutterEchoNonNullClassList( - @NonNull List classList, @NonNull Result> result); + void callFlutterEchoNonNullClassList(@NonNull List classList, @NonNull Result> result); - void callFlutterEchoMap( - @NonNull Map map, @NonNull Result> result); + void callFlutterEchoMap(@NonNull Map map, @NonNull Result> result); - void callFlutterEchoStringMap( - @NonNull Map stringMap, @NonNull Result> result); + void callFlutterEchoStringMap(@NonNull Map stringMap, @NonNull Result> result); - void callFlutterEchoIntMap( - @NonNull Map intMap, @NonNull Result> result); + void callFlutterEchoIntMap(@NonNull Map intMap, @NonNull Result> result); - void callFlutterEchoEnumMap( - @NonNull Map enumMap, @NonNull Result> result); + void callFlutterEchoEnumMap(@NonNull Map enumMap, @NonNull Result> result); - void callFlutterEchoClassMap( - @NonNull Map classMap, - @NonNull Result> result); + void callFlutterEchoClassMap(@NonNull Map classMap, @NonNull Result> result); - void callFlutterEchoNonNullStringMap( - @NonNull Map stringMap, @NonNull Result> result); + void callFlutterEchoNonNullStringMap(@NonNull Map stringMap, @NonNull Result> result); - void callFlutterEchoNonNullIntMap( - @NonNull Map intMap, @NonNull Result> result); + void callFlutterEchoNonNullIntMap(@NonNull Map intMap, @NonNull Result> result); - void callFlutterEchoNonNullEnumMap( - @NonNull Map enumMap, @NonNull Result> result); + void callFlutterEchoNonNullEnumMap(@NonNull Map enumMap, @NonNull Result> result); - void callFlutterEchoNonNullClassMap( - @NonNull Map classMap, - @NonNull Result> result); + void callFlutterEchoNonNullClassMap(@NonNull Map classMap, @NonNull Result> result); void callFlutterEchoEnum(@NonNull AnEnum anEnum, @NonNull Result result); - void callFlutterEchoAnotherEnum( - @NonNull AnotherEnum anotherEnum, @NonNull Result result); + void callFlutterEchoAnotherEnum(@NonNull AnotherEnum anotherEnum, @NonNull Result result); - void callFlutterEchoNullableBool( - @Nullable Boolean aBool, @NonNull NullableResult result); + void callFlutterEchoNullableBool(@Nullable Boolean aBool, @NonNull NullableResult result); void callFlutterEchoNullableInt(@Nullable Long anInt, @NonNull NullableResult result); - void callFlutterEchoNullableDouble( - @Nullable Double aDouble, @NonNull NullableResult result); + void callFlutterEchoNullableDouble(@Nullable Double aDouble, @NonNull NullableResult result); - void callFlutterEchoNullableString( - @Nullable String aString, @NonNull NullableResult result); + void callFlutterEchoNullableString(@Nullable String aString, @NonNull NullableResult result); - void callFlutterEchoNullableUint8List( - @Nullable byte[] list, @NonNull NullableResult result); + void callFlutterEchoNullableUint8List(@Nullable byte[] list, @NonNull NullableResult result); - void callFlutterEchoNullableList( - @Nullable List list, @NonNull NullableResult> result); + void callFlutterEchoNullableList(@Nullable List list, @NonNull NullableResult> result); - void callFlutterEchoNullableEnumList( - @Nullable List enumList, @NonNull NullableResult> result); + void callFlutterEchoNullableEnumList(@Nullable List enumList, @NonNull NullableResult> result); - void callFlutterEchoNullableClassList( - @Nullable List classList, - @NonNull NullableResult> result); + void callFlutterEchoNullableClassList(@Nullable List classList, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullEnumList( - @Nullable List enumList, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullEnumList(@Nullable List enumList, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullClassList( - @Nullable List classList, - @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullClassList(@Nullable List classList, @NonNull NullableResult> result); - void callFlutterEchoNullableMap( - @Nullable Map map, @NonNull NullableResult> result); + void callFlutterEchoNullableMap(@Nullable Map map, @NonNull NullableResult> result); - void callFlutterEchoNullableStringMap( - @Nullable Map stringMap, - @NonNull NullableResult> result); + void callFlutterEchoNullableStringMap(@Nullable Map stringMap, @NonNull NullableResult> result); - void callFlutterEchoNullableIntMap( - @Nullable Map intMap, @NonNull NullableResult> result); + void callFlutterEchoNullableIntMap(@Nullable Map intMap, @NonNull NullableResult> result); - void callFlutterEchoNullableEnumMap( - @Nullable Map enumMap, @NonNull NullableResult> result); + void callFlutterEchoNullableEnumMap(@Nullable Map enumMap, @NonNull NullableResult> result); - void callFlutterEchoNullableClassMap( - @Nullable Map classMap, - @NonNull NullableResult> result); + void callFlutterEchoNullableClassMap(@Nullable Map classMap, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullStringMap( - @Nullable Map stringMap, - @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullStringMap(@Nullable Map stringMap, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullIntMap( - @Nullable Map intMap, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullIntMap(@Nullable Map intMap, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullEnumMap( - @Nullable Map enumMap, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullEnumMap(@Nullable Map enumMap, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullClassMap( - @Nullable Map classMap, - @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullClassMap(@Nullable Map classMap, @NonNull NullableResult> result); - void callFlutterEchoNullableEnum( - @Nullable AnEnum anEnum, @NonNull NullableResult result); + void callFlutterEchoNullableEnum(@Nullable AnEnum anEnum, @NonNull NullableResult result); - void callFlutterEchoAnotherNullableEnum( - @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); + void callFlutterEchoAnotherNullableEnum(@Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); void callFlutterSmallApiEchoString(@NonNull String aString, @NonNull Result result); @@ -3440,28 +3157,17 @@ void callFlutterEchoAnotherNullableEnum( static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } - /** - * Sets up an instance of `HostIntegrationCoreApi` to handle messages through the - * `binaryMessenger`. - */ - static void setUp( - @NonNull BinaryMessenger binaryMessenger, @Nullable HostIntegrationCoreApi api) { + /**Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. */ + static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostIntegrationCoreApi api) { setUp(binaryMessenger, "", api); } - - static void setUp( - @NonNull BinaryMessenger binaryMessenger, - @NonNull String messageChannelSuffix, - @Nullable HostIntegrationCoreApi api) { + static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String messageChannelSuffix, @Nullable HostIntegrationCoreApi api) { messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; BinaryMessenger.TaskQueue taskQueue = binaryMessenger.makeBackgroundTaskQueue(); { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3469,7 +3175,8 @@ static void setUp( try { api.noop(); wrapped.add(0, null); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3481,10 +3188,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3494,7 +3198,8 @@ static void setUp( try { AllTypes output = api.echoAllTypes(everythingArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3506,10 +3211,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3517,7 +3219,8 @@ static void setUp( try { Object output = api.throwError(); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3529,10 +3232,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3540,7 +3240,8 @@ static void setUp( try { api.throwErrorFromVoid(); wrapped.add(0, null); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3552,10 +3253,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3563,7 +3261,8 @@ static void setUp( try { Object output = api.throwFlutterError(); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3575,10 +3274,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3588,7 +3284,8 @@ static void setUp( try { Long output = api.echoInt(anIntArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3600,10 +3297,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3613,7 +3307,8 @@ static void setUp( try { Double output = api.echoDouble(aDoubleArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3625,10 +3320,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3638,7 +3330,8 @@ static void setUp( try { Boolean output = api.echoBool(aBoolArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3650,10 +3343,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3663,7 +3353,8 @@ static void setUp( try { String output = api.echoString(aStringArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3675,10 +3366,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3688,7 +3376,8 @@ static void setUp( try { byte[] output = api.echoUint8List(aUint8ListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3700,10 +3389,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3713,7 +3399,8 @@ static void setUp( try { Object output = api.echoObject(anObjectArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3725,10 +3412,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3738,7 +3422,8 @@ static void setUp( try { List output = api.echoList(listArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3750,10 +3435,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3763,7 +3445,8 @@ static void setUp( try { List output = api.echoEnumList(enumListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3775,10 +3458,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3788,7 +3468,8 @@ static void setUp( try { List output = api.echoClassList(classListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3800,10 +3481,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3813,7 +3491,8 @@ static void setUp( try { List output = api.echoNonNullEnumList(enumListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3825,10 +3504,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3838,7 +3514,8 @@ static void setUp( try { List output = api.echoNonNullClassList(classListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3850,10 +3527,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3863,7 +3537,8 @@ static void setUp( try { Map output = api.echoMap(mapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3875,10 +3550,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3888,7 +3560,8 @@ static void setUp( try { Map output = api.echoStringMap(stringMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3900,10 +3573,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3913,7 +3583,8 @@ static void setUp( try { Map output = api.echoIntMap(intMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3925,10 +3596,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3938,7 +3606,8 @@ static void setUp( try { Map output = api.echoEnumMap(enumMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3950,10 +3619,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3963,7 +3629,8 @@ static void setUp( try { Map output = api.echoClassMap(classMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3975,10 +3642,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3988,7 +3652,8 @@ static void setUp( try { Map output = api.echoNonNullStringMap(stringMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4000,10 +3665,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4013,7 +3675,8 @@ static void setUp( try { Map output = api.echoNonNullIntMap(intMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4025,10 +3688,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4038,7 +3698,8 @@ static void setUp( try { Map output = api.echoNonNullEnumMap(enumMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4050,10 +3711,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4063,7 +3721,8 @@ static void setUp( try { Map output = api.echoNonNullClassMap(classMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4075,10 +3734,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4088,7 +3744,8 @@ static void setUp( try { AllClassesWrapper output = api.echoClassWrapper(wrapperArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4100,10 +3757,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4113,7 +3767,8 @@ static void setUp( try { AnEnum output = api.echoEnum(anEnumArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4125,10 +3780,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4138,7 +3790,8 @@ static void setUp( try { AnotherEnum output = api.echoAnotherEnum(anotherEnumArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4150,10 +3803,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4163,7 +3813,8 @@ static void setUp( try { String output = api.echoNamedDefaultString(aStringArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4175,10 +3826,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4188,7 +3836,8 @@ static void setUp( try { Double output = api.echoOptionalDefaultDouble(aDoubleArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4200,10 +3849,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4213,7 +3859,55 @@ static void setUp( try { Long output = api.echoRequiredInt(anIntArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual" + messageChannelSuffix, getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypes aArg = (AllNullableTypes) args.get(0); + AllNullableTypes bArg = (AllNullableTypes) args.get(1); + try { + Boolean output = api.areAllNullableTypesEqual(aArg, bArg); + wrapped.add(0, output); + } + catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash" + messageChannelSuffix, getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypes valueArg = (AllNullableTypes) args.get(0); + try { + Long output = api.getAllNullableTypesHash(valueArg); + wrapped.add(0, output); + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4225,10 +3919,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4238,7 +3929,8 @@ static void setUp( try { AllNullableTypes output = api.echoAllNullableTypes(everythingArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4250,22 +3942,18 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = - (AllNullableTypesWithoutRecursion) args.get(0); + AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); try { - AllNullableTypesWithoutRecursion output = - api.echoAllNullableTypesWithoutRecursion(everythingArg); + AllNullableTypesWithoutRecursion output = api.echoAllNullableTypesWithoutRecursion(everythingArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4277,10 +3965,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4290,7 +3975,8 @@ static void setUp( try { String output = api.extractNestedNullableString(wrapperArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4302,10 +3988,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4315,7 +3998,8 @@ static void setUp( try { AllClassesWrapper output = api.createNestedNullableString(nullableStringArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4327,10 +4011,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4340,11 +4021,10 @@ static void setUp( Long aNullableIntArg = (Long) args.get(1); String aNullableStringArg = (String) args.get(2); try { - AllNullableTypes output = - api.sendMultipleNullableTypes( - aNullableBoolArg, aNullableIntArg, aNullableStringArg); + AllNullableTypes output = api.sendMultipleNullableTypes(aNullableBoolArg, aNullableIntArg, aNullableStringArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4356,10 +4036,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4369,11 +4046,10 @@ static void setUp( Long aNullableIntArg = (Long) args.get(1); String aNullableStringArg = (String) args.get(2); try { - AllNullableTypesWithoutRecursion output = - api.sendMultipleNullableTypesWithoutRecursion( - aNullableBoolArg, aNullableIntArg, aNullableStringArg); + AllNullableTypesWithoutRecursion output = api.sendMultipleNullableTypesWithoutRecursion(aNullableBoolArg, aNullableIntArg, aNullableStringArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4385,10 +4061,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4398,7 +4071,8 @@ static void setUp( try { Long output = api.echoNullableInt(aNullableIntArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4410,10 +4084,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4423,7 +4094,8 @@ static void setUp( try { Double output = api.echoNullableDouble(aNullableDoubleArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4435,10 +4107,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4448,7 +4117,8 @@ static void setUp( try { Boolean output = api.echoNullableBool(aNullableBoolArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4460,10 +4130,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4473,7 +4140,8 @@ static void setUp( try { String output = api.echoNullableString(aNullableStringArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4485,10 +4153,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4498,7 +4163,8 @@ static void setUp( try { byte[] output = api.echoNullableUint8List(aNullableUint8ListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4510,10 +4176,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4523,7 +4186,8 @@ static void setUp( try { Object output = api.echoNullableObject(aNullableObjectArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4535,10 +4199,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4548,7 +4209,8 @@ static void setUp( try { List output = api.echoNullableList(aNullableListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4560,10 +4222,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4573,7 +4232,8 @@ static void setUp( try { List output = api.echoNullableEnumList(enumListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4585,10 +4245,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4598,7 +4255,8 @@ static void setUp( try { List output = api.echoNullableClassList(classListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4610,10 +4268,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4623,7 +4278,8 @@ static void setUp( try { List output = api.echoNullableNonNullEnumList(enumListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4635,10 +4291,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4648,7 +4301,8 @@ static void setUp( try { List output = api.echoNullableNonNullClassList(classListArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4660,10 +4314,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4673,7 +4324,8 @@ static void setUp( try { Map output = api.echoNullableMap(mapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4685,10 +4337,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4698,7 +4347,8 @@ static void setUp( try { Map output = api.echoNullableStringMap(stringMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4710,10 +4360,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4723,7 +4370,8 @@ static void setUp( try { Map output = api.echoNullableIntMap(intMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4735,10 +4383,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4748,7 +4393,8 @@ static void setUp( try { Map output = api.echoNullableEnumMap(enumMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4760,10 +4406,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4773,7 +4416,8 @@ static void setUp( try { Map output = api.echoNullableClassMap(classMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4785,10 +4429,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4798,7 +4439,8 @@ static void setUp( try { Map output = api.echoNullableNonNullStringMap(stringMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4810,10 +4452,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4823,7 +4462,8 @@ static void setUp( try { Map output = api.echoNullableNonNullIntMap(intMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4835,10 +4475,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4848,7 +4485,8 @@ static void setUp( try { Map output = api.echoNullableNonNullEnumMap(enumMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4860,10 +4498,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4873,7 +4508,8 @@ static void setUp( try { Map output = api.echoNullableNonNullClassMap(classMapArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4885,10 +4521,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4898,7 +4531,8 @@ static void setUp( try { AnEnum output = api.echoNullableEnum(anEnumArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4910,10 +4544,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4923,7 +4554,8 @@ static void setUp( try { AnotherEnum output = api.echoAnotherNullableEnum(anotherEnumArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4935,10 +4567,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4948,7 +4577,8 @@ static void setUp( try { Long output = api.echoOptionalNullableInt(aNullableIntArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4960,10 +4590,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4973,7 +4600,8 @@ static void setUp( try { String output = api.echoNamedNullableString(aNullableStringArg); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4985,10 +4613,7 @@ static void setUp( { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5015,10 +4640,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5047,10 +4669,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5079,10 +4698,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5111,10 +4727,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5143,10 +4756,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5175,10 +4785,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5207,10 +4814,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5239,10 +4843,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5271,10 +4872,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5303,10 +4901,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5335,10 +4930,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5367,10 +4959,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5399,10 +4988,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5431,10 +5017,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5463,10 +5046,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5495,10 +5075,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5527,10 +5104,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5557,10 +5131,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5587,10 +5158,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5617,10 +5185,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5649,10 +5214,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5681,17 +5243,13 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = - (AllNullableTypesWithoutRecursion) args.get(0); + AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); NullableResult resultCallback = new NullableResult() { public void success(AllNullableTypesWithoutRecursion result) { @@ -5705,8 +5263,7 @@ public void error(Throwable error) { } }; - api.echoAsyncNullableAllNullableTypesWithoutRecursion( - everythingArg, resultCallback); + api.echoAsyncNullableAllNullableTypesWithoutRecursion(everythingArg, resultCallback); }); } else { channel.setMessageHandler(null); @@ -5715,10 +5272,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5747,10 +5301,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5779,10 +5330,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5811,10 +5359,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5843,10 +5388,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5875,10 +5417,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5907,10 +5446,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5939,10 +5475,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5971,10 +5504,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6003,10 +5533,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6035,10 +5562,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6067,10 +5591,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6099,10 +5620,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6131,10 +5649,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6163,10 +5678,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6195,10 +5707,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6227,10 +5736,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6238,7 +5744,8 @@ public void error(Throwable error) { try { Boolean output = api.defaultIsMainThread(); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -6250,11 +5757,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread" - + messageChannelSuffix, - getCodec(), - taskQueue); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread" + messageChannelSuffix, getCodec(), taskQueue); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6262,7 +5765,8 @@ public void error(Throwable error) { try { Boolean output = api.taskQueueIsBackgroundThread(); wrapped.add(0, output); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -6274,10 +5778,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6304,10 +5805,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6334,10 +5832,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6364,10 +5859,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6396,10 +5888,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6428,10 +5917,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6453,8 +5939,7 @@ public void error(Throwable error) { } }; - api.callFlutterSendMultipleNullableTypes( - aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); + api.callFlutterSendMultipleNullableTypes(aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); }); } else { channel.setMessageHandler(null); @@ -6463,17 +5948,13 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = - (AllNullableTypesWithoutRecursion) args.get(0); + AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); NullableResult resultCallback = new NullableResult() { public void success(AllNullableTypesWithoutRecursion result) { @@ -6496,10 +5977,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6521,8 +5999,7 @@ public void error(Throwable error) { } }; - api.callFlutterSendMultipleNullableTypesWithoutRecursion( - aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); + api.callFlutterSendMultipleNullableTypesWithoutRecursion(aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); }); } else { channel.setMessageHandler(null); @@ -6531,10 +6008,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6563,10 +6037,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6595,10 +6066,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6627,10 +6095,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6659,10 +6124,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6691,10 +6153,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6723,10 +6182,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6755,10 +6211,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6787,10 +6240,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6819,10 +6269,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6851,10 +6298,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6883,10 +6327,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6915,10 +6356,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6947,10 +6385,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6979,10 +6414,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7011,10 +6443,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7043,10 +6472,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7075,10 +6501,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7107,10 +6530,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7139,10 +6559,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7171,10 +6588,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7203,10 +6617,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7235,10 +6646,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7267,10 +6675,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7299,10 +6704,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7331,10 +6733,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7363,10 +6762,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7395,10 +6791,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7427,10 +6820,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7459,10 +6849,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7491,10 +6878,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7523,10 +6907,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7555,10 +6936,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7587,10 +6965,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7619,10 +6994,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7651,10 +7023,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7683,10 +7052,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7715,10 +7081,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7747,10 +7110,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7779,10 +7139,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7811,10 +7168,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7843,10 +7197,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7875,10 +7226,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7907,10 +7255,10 @@ public void error(Throwable error) { } } /** - * The core interface that the Dart platform_test code implements for host integration tests to - * call into. + * The core interface that the Dart platform_test code implements for host + * integration tests to call into. * - *

Generated class from Pigeon that represents Flutter messages that can be called from Java. + * Generated class from Pigeon that represents Flutter messages that can be called from Java. */ public static class FlutterIntegrationCoreApi { private final @NonNull BinaryMessenger binaryMessenger; @@ -7919,1591 +7267,1277 @@ public static class FlutterIntegrationCoreApi { public FlutterIntegrationCoreApi(@NonNull BinaryMessenger argBinaryMessenger) { this(argBinaryMessenger, ""); } - - public FlutterIntegrationCoreApi( - @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { + public FlutterIntegrationCoreApi(@NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { this.binaryMessenger = argBinaryMessenger; this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; } - /** Public interface for sending reply. The codec used by FlutterIntegrationCoreApi. */ + /** + * Public interface for sending reply. + * The codec used by FlutterIntegrationCoreApi. + */ static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } /** - * A no-op function taking no arguments and returning no value, to sanity test basic calling. + * A no-op function taking no arguments and returning no value, to sanity + * test basic calling. */ public void noop(@NonNull VoidResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( null, channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Responds with an error from an async function returning a value. */ public void throwError(@NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( null, channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Object output = listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Responds with an error from an async void function. */ public void throwErrorFromVoid(@NonNull VoidResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( null, channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed object, to test serialization and deserialization. */ public void echoAllTypes(@NonNull AllTypes everythingArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") AllTypes output = (AllTypes) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed object, to test serialization and deserialization. */ - public void echoAllNullableTypes( - @Nullable AllNullableTypes everythingArg, - @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes" - + messageChannelSuffix; + public void echoAllNullableTypes(@Nullable AllNullableTypes everythingArg, @NonNull NullableResult result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AllNullableTypes output = (AllNullableTypes) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** * Returns passed in arguments of multiple types. * - *

Tests multiple-arity FlutterApi handling. + * Tests multiple-arity FlutterApi handling. */ - public void sendMultipleNullableTypes( - @Nullable Boolean aNullableBoolArg, - @Nullable Long aNullableIntArg, - @Nullable String aNullableStringArg, - @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes" - + messageChannelSuffix; + public void sendMultipleNullableTypes(@Nullable Boolean aNullableBoolArg, @Nullable Long aNullableIntArg, @Nullable String aNullableStringArg, @NonNull Result result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") AllNullableTypes output = (AllNullableTypes) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed object, to test serialization and deserialization. */ - public void echoAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion everythingArg, - @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" - + messageChannelSuffix; + public void echoAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion everythingArg, @NonNull NullableResult result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") - AllNullableTypesWithoutRecursion output = - (AllNullableTypesWithoutRecursion) listReply.get(0); + AllNullableTypesWithoutRecursion output = (AllNullableTypesWithoutRecursion) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** * Returns passed in arguments of multiple types. * - *

Tests multiple-arity FlutterApi handling. + * Tests multiple-arity FlutterApi handling. */ - public void sendMultipleNullableTypesWithoutRecursion( - @Nullable Boolean aNullableBoolArg, - @Nullable Long aNullableIntArg, - @Nullable String aNullableStringArg, - @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" - + messageChannelSuffix; + public void sendMultipleNullableTypesWithoutRecursion(@Nullable Boolean aNullableBoolArg, @Nullable Long aNullableIntArg, @Nullable String aNullableStringArg, @NonNull Result result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") - AllNullableTypesWithoutRecursion output = - (AllNullableTypesWithoutRecursion) listReply.get(0); + AllNullableTypesWithoutRecursion output = (AllNullableTypesWithoutRecursion) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed boolean, to test serialization and deserialization. */ public void echoBool(@NonNull Boolean aBoolArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aBoolArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Boolean output = (Boolean) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed int, to test serialization and deserialization. */ public void echoInt(@NonNull Long anIntArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anIntArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Long output = (Long) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed double, to test serialization and deserialization. */ public void echoDouble(@NonNull Double aDoubleArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aDoubleArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Double output = (Double) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed string, to test serialization and deserialization. */ public void echoString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed byte list, to test serialization and deserialization. */ public void echoUint8List(@NonNull byte[] listArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") byte[] output = (byte[]) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ public void echoList(@NonNull List listArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoEnumList( - @NonNull List enumListArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList" - + messageChannelSuffix; + public void echoEnumList(@NonNull List enumListArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoClassList( - @NonNull List classListArg, - @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList" - + messageChannelSuffix; + public void echoClassList(@NonNull List classListArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNonNullEnumList( - @NonNull List enumListArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList" - + messageChannelSuffix; + public void echoNonNullEnumList(@NonNull List enumListArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNonNullClassList( - @NonNull List classListArg, - @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList" - + messageChannelSuffix; + public void echoNonNullClassList(@NonNull List classListArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoMap( - @NonNull Map mapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap" - + messageChannelSuffix; + public void echoMap(@NonNull Map mapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(mapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoStringMap( - @NonNull Map stringMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap" - + messageChannelSuffix; + public void echoStringMap(@NonNull Map stringMapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(stringMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoIntMap( - @NonNull Map intMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap" - + messageChannelSuffix; + public void echoIntMap(@NonNull Map intMapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(intMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoEnumMap( - @NonNull Map enumMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap" - + messageChannelSuffix; + public void echoEnumMap(@NonNull Map enumMapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoClassMap( - @NonNull Map classMapArg, - @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap" - + messageChannelSuffix; + public void echoClassMap(@NonNull Map classMapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullStringMap( - @NonNull Map stringMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap" - + messageChannelSuffix; + public void echoNonNullStringMap(@NonNull Map stringMapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(stringMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullIntMap( - @NonNull Map intMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap" - + messageChannelSuffix; + public void echoNonNullIntMap(@NonNull Map intMapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(intMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullEnumMap( - @NonNull Map enumMapArg, @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap" - + messageChannelSuffix; + public void echoNonNullEnumMap(@NonNull Map enumMapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullClassMap( - @NonNull Map classMapArg, - @NonNull Result> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap" - + messageChannelSuffix; + public void echoNonNullClassMap(@NonNull Map classMapArg, @NonNull Result> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed enum to test serialization and deserialization. */ public void echoEnum(@NonNull AnEnum anEnumArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") AnEnum output = (AnEnum) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed enum to test serialization and deserialization. */ - public void echoAnotherEnum( - @NonNull AnotherEnum anotherEnumArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum" - + messageChannelSuffix; + public void echoAnotherEnum(@NonNull AnotherEnum anotherEnumArg, @NonNull Result result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anotherEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") AnotherEnum output = (AnotherEnum) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed boolean, to test serialization and deserialization. */ - public void echoNullableBool( - @Nullable Boolean aBoolArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool" - + messageChannelSuffix; + public void echoNullableBool(@Nullable Boolean aBoolArg, @NonNull NullableResult result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aBoolArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Boolean output = (Boolean) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed int, to test serialization and deserialization. */ public void echoNullableInt(@Nullable Long anIntArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anIntArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Long output = (Long) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed double, to test serialization and deserialization. */ - public void echoNullableDouble( - @Nullable Double aDoubleArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble" - + messageChannelSuffix; + public void echoNullableDouble(@Nullable Double aDoubleArg, @NonNull NullableResult result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aDoubleArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Double output = (Double) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed string, to test serialization and deserialization. */ - public void echoNullableString( - @Nullable String aStringArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString" - + messageChannelSuffix; + public void echoNullableString(@Nullable String aStringArg, @NonNull NullableResult result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed byte list, to test serialization and deserialization. */ - public void echoNullableUint8List( - @Nullable byte[] listArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List" - + messageChannelSuffix; + public void echoNullableUint8List(@Nullable byte[] listArg, @NonNull NullableResult result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") byte[] output = (byte[]) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableList( - @Nullable List listArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList" - + messageChannelSuffix; + public void echoNullableList(@Nullable List listArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableEnumList( - @Nullable List enumListArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList" - + messageChannelSuffix; + public void echoNullableEnumList(@Nullable List enumListArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableClassList( - @Nullable List classListArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList" - + messageChannelSuffix; + public void echoNullableClassList(@Nullable List classListArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableNonNullEnumList( - @Nullable List enumListArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList" - + messageChannelSuffix; + public void echoNullableNonNullEnumList(@Nullable List enumListArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableNonNullClassList( - @Nullable List classListArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList" - + messageChannelSuffix; + public void echoNullableNonNullClassList(@Nullable List classListArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableMap( - @Nullable Map mapArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap" - + messageChannelSuffix; + public void echoNullableMap(@Nullable Map mapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(mapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableStringMap( - @Nullable Map stringMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap" - + messageChannelSuffix; + public void echoNullableStringMap(@Nullable Map stringMapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(stringMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableIntMap( - @Nullable Map intMapArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap" - + messageChannelSuffix; + public void echoNullableIntMap(@Nullable Map intMapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(intMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableEnumMap( - @Nullable Map enumMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap" - + messageChannelSuffix; + public void echoNullableEnumMap(@Nullable Map enumMapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableClassMap( - @Nullable Map classMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap" - + messageChannelSuffix; + public void echoNullableClassMap(@Nullable Map classMapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullStringMap( - @Nullable Map stringMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap" - + messageChannelSuffix; + public void echoNullableNonNullStringMap(@Nullable Map stringMapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(stringMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullIntMap( - @Nullable Map intMapArg, @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap" - + messageChannelSuffix; + public void echoNullableNonNullIntMap(@Nullable Map intMapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(intMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullEnumMap( - @Nullable Map enumMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap" - + messageChannelSuffix; + public void echoNullableNonNullEnumMap(@Nullable Map enumMapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullClassMap( - @Nullable Map classMapArg, - @NonNull NullableResult> result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap" - + messageChannelSuffix; + public void echoNullableNonNullClassMap(@Nullable Map classMapArg, @NonNull NullableResult> result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed enum to test serialization and deserialization. */ - public void echoNullableEnum( - @Nullable AnEnum anEnumArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum" - + messageChannelSuffix; + public void echoNullableEnum(@Nullable AnEnum anEnumArg, @NonNull NullableResult result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AnEnum output = (AnEnum) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed enum to test serialization and deserialization. */ - public void echoAnotherNullableEnum( - @Nullable AnotherEnum anotherEnumArg, @NonNull NullableResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum" - + messageChannelSuffix; + public void echoAnotherNullableEnum(@Nullable AnotherEnum anotherEnumArg, @NonNull NullableResult result) { + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anotherEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AnotherEnum output = (AnotherEnum) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** - * A no-op function taking no arguments and returning no value, to sanity test basic - * asynchronous calling. + * A no-op function taking no arguments and returning no value, to sanity + * test basic asynchronous calling. */ public void noopAsync(@NonNull VoidResult result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( null, channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed in generic Object asynchronously. */ public void echoAsyncString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } } /** * An API that can be implemented for minimal, compile-only tests. * - *

Generated interface from Pigeon that represents a handler of messages from Flutter. + * Generated interface from Pigeon that represents a handler of messages from Flutter. */ public interface HostTrivialApi { @@ -9513,23 +8547,16 @@ public interface HostTrivialApi { static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } - /** Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. */ + /**Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. */ static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostTrivialApi api) { setUp(binaryMessenger, "", api); } - - static void setUp( - @NonNull BinaryMessenger binaryMessenger, - @NonNull String messageChannelSuffix, - @Nullable HostTrivialApi api) { + static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String messageChannelSuffix, @Nullable HostTrivialApi api) { messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -9537,7 +8564,8 @@ static void setUp( try { api.noop(); wrapped.add(0, null); - } catch (Throwable exception) { + } + catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -9551,7 +8579,7 @@ static void setUp( /** * A simple API implemented in some unit tests. * - *

Generated interface from Pigeon that represents a handler of messages from Flutter. + * Generated interface from Pigeon that represents a handler of messages from Flutter. */ public interface HostSmallApi { @@ -9563,23 +8591,16 @@ public interface HostSmallApi { static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } - /** Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. */ + /**Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. */ static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostSmallApi api) { setUp(binaryMessenger, "", api); } - - static void setUp( - @NonNull BinaryMessenger binaryMessenger, - @NonNull String messageChannelSuffix, - @Nullable HostSmallApi api) { + static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String messageChannelSuffix, @Nullable HostSmallApi api) { messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -9608,10 +8629,7 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid" - + messageChannelSuffix, - getCodec()); + binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid" + messageChannelSuffix, getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -9640,7 +8658,7 @@ public void error(Throwable error) { /** * A simple API called in some unit tests. * - *

Generated class from Pigeon that represents Flutter messages that can be called from Java. + * Generated class from Pigeon that represents Flutter messages that can be called from Java. */ public static class FlutterSmallApi { private final @NonNull BinaryMessenger binaryMessenger; @@ -9649,79 +8667,64 @@ public static class FlutterSmallApi { public FlutterSmallApi(@NonNull BinaryMessenger argBinaryMessenger) { this(argBinaryMessenger, ""); } - - public FlutterSmallApi( - @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { + public FlutterSmallApi(@NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { this.binaryMessenger = argBinaryMessenger; this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; } - /** Public interface for sending reply. The codec used by FlutterSmallApi. */ + /** + * Public interface for sending reply. + * The codec used by FlutterSmallApi. + */ static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } - public void echoWrappedList(@NonNull TestMessage msgArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(msgArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") TestMessage output = (TestMessage) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } - public void echoString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString" - + messageChannelSuffix; + final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString" + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>( + binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error( - new FlutterError( - (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error( - new FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "")); + result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index aa5044b895b6..05f7fb53817c 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -96,12 +96,7 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { } static FlutterError *createConnectionError(NSString *channelName) { - return [FlutterError - errorWithCode:@"channel-error" - message:[NSString stringWithFormat:@"%@/%@/%@", - @"Unable to establish connection on channel: '", - channelName, @"'."] - details:@""]; + return [FlutterError errorWithCode:@"channel-error" message:[NSString stringWithFormat:@"%@/%@/%@", @"Unable to establish connection on channel: '", channelName, @"'."] details:@""]; } static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { @@ -166,8 +161,8 @@ + (nullable FLTTestMessage *)nullableFromList:(NSArray *)list; @end @implementation FLTUnusedClass -+ (instancetype)makeWithAField:(nullable id)aField { - FLTUnusedClass *pigeonResult = [[FLTUnusedClass alloc] init]; ++ (instancetype)makeWithAField:(nullable id )aField { + FLTUnusedClass* pigeonResult = [[FLTUnusedClass alloc] init]; pigeonResult.aField = aField; return pigeonResult; } @@ -203,35 +198,35 @@ - (NSUInteger)hash { @end @implementation FLTAllTypes -+ (instancetype)makeWithABool:(BOOL)aBool - anInt:(NSInteger)anInt - anInt64:(NSInteger)anInt64 - aDouble:(double)aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(FLTAnEnum)anEnum - anotherEnum:(FLTAnotherEnum)anotherEnum - aString:(NSString *)aString - anObject:(id)anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - enumList:(NSArray *)enumList - objectList:(NSArray *)objectList - listList:(NSArray *> *)listList - mapList:(NSArray *> *)mapList - map:(NSDictionary *)map - stringMap:(NSDictionary *)stringMap - intMap:(NSDictionary *)intMap - enumMap:(NSDictionary *)enumMap - objectMap:(NSDictionary *)objectMap - listMap:(NSDictionary *> *)listMap - mapMap:(NSDictionary *> *)mapMap { - FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; ++ (instancetype)makeWithABool:(BOOL )aBool + anInt:(NSInteger )anInt + anInt64:(NSInteger )anInt64 + aDouble:(double )aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(FLTAnEnum)anEnum + anotherEnum:(FLTAnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id )anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + enumList:(NSArray *)enumList + objectList:(NSArray *)objectList + listList:(NSArray *> *)listList + mapList:(NSArray *> *)mapList + map:(NSDictionary *)map + stringMap:(NSDictionary *)stringMap + intMap:(NSDictionary *)intMap + enumMap:(NSDictionary *)enumMap + objectMap:(NSDictionary *)objectMap + listMap:(NSDictionary *> *)listMap + mapMap:(NSDictionary *> *)mapMap { + FLTAllTypes* pigeonResult = [[FLTAllTypes alloc] init]; pigeonResult.aBool = aBool; pigeonResult.anInt = anInt; pigeonResult.anInt64 = anInt64; @@ -339,31 +334,7 @@ - (BOOL)isEqual:(id)object { return NO; } FLTAllTypes *other = (FLTAllTypes *)object; - return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && - (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && - FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && - FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && - FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && - FLTPigeonDeepEquals(self.aFloatArray, other.aFloatArray) && self.anEnum == other.anEnum && - self.anotherEnum == other.anotherEnum && - FLTPigeonDeepEquals(self.aString, other.aString) && - FLTPigeonDeepEquals(self.anObject, other.anObject) && - FLTPigeonDeepEquals(self.list, other.list) && - FLTPigeonDeepEquals(self.stringList, other.stringList) && - FLTPigeonDeepEquals(self.intList, other.intList) && - FLTPigeonDeepEquals(self.doubleList, other.doubleList) && - FLTPigeonDeepEquals(self.boolList, other.boolList) && - FLTPigeonDeepEquals(self.enumList, other.enumList) && - FLTPigeonDeepEquals(self.objectList, other.objectList) && - FLTPigeonDeepEquals(self.listList, other.listList) && - FLTPigeonDeepEquals(self.mapList, other.mapList) && - FLTPigeonDeepEquals(self.map, other.map) && - FLTPigeonDeepEquals(self.stringMap, other.stringMap) && - FLTPigeonDeepEquals(self.intMap, other.intMap) && - FLTPigeonDeepEquals(self.enumMap, other.enumMap) && - FLTPigeonDeepEquals(self.objectMap, other.objectMap) && - FLTPigeonDeepEquals(self.listMap, other.listMap) && - FLTPigeonDeepEquals(self.mapMap, other.mapMap); + return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && FLTPigeonDeepEquals(self.aFloatArray, other.aFloatArray) && self.anEnum == other.anEnum && self.anotherEnum == other.anotherEnum && FLTPigeonDeepEquals(self.aString, other.aString) && FLTPigeonDeepEquals(self.anObject, other.anObject) && FLTPigeonDeepEquals(self.list, other.list) && FLTPigeonDeepEquals(self.stringList, other.stringList) && FLTPigeonDeepEquals(self.intList, other.intList) && FLTPigeonDeepEquals(self.doubleList, other.doubleList) && FLTPigeonDeepEquals(self.boolList, other.boolList) && FLTPigeonDeepEquals(self.enumList, other.enumList) && FLTPigeonDeepEquals(self.objectList, other.objectList) && FLTPigeonDeepEquals(self.listList, other.listList) && FLTPigeonDeepEquals(self.mapList, other.mapList) && FLTPigeonDeepEquals(self.map, other.map) && FLTPigeonDeepEquals(self.stringMap, other.stringMap) && FLTPigeonDeepEquals(self.intMap, other.intMap) && FLTPigeonDeepEquals(self.enumMap, other.enumMap) && FLTPigeonDeepEquals(self.objectMap, other.objectMap) && FLTPigeonDeepEquals(self.listMap, other.listMap) && FLTPigeonDeepEquals(self.mapMap, other.mapMap); } - (NSUInteger)hash { @@ -371,8 +342,7 @@ - (NSUInteger)hash { result = result * 31 + @(self.aBool).hash; result = result * 31 + @(self.anInt).hash; result = result * 31 + @(self.anInt64).hash; - result = - result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); + result = result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); result = result * 31 + FLTPigeonDeepHash(self.aByteArray); result = result * 31 + FLTPigeonDeepHash(self.a4ByteArray); result = result * 31 + FLTPigeonDeepHash(self.a8ByteArray); @@ -402,40 +372,38 @@ - (NSUInteger)hash { @end @implementation FLTAllNullableTypes -+ (instancetype) - makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - recursiveClassList:(nullable NSArray *)recursiveClassList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap - recursiveClassMap: - (nullable NSDictionary *)recursiveClassMap { - FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id )aNullableObject + allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + recursiveClassList:(nullable NSArray *)recursiveClassList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap + recursiveClassMap:(nullable NSDictionary *)recursiveClassMap { + FLTAllNullableTypes* pigeonResult = [[FLTAllNullableTypes alloc] init]; pigeonResult.aNullableBool = aNullableBool; pigeonResult.aNullableInt = aNullableInt; pigeonResult.aNullableInt64 = aNullableInt64; @@ -550,37 +518,7 @@ - (BOOL)isEqual:(id)object { return NO; } FLTAllNullableTypes *other = (FLTAllNullableTypes *)object; - return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && - FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && - FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && - FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && - FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && - FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && - FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && - FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && - FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && - FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && - FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && - FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && - FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && - FLTPigeonDeepEquals(self.list, other.list) && - FLTPigeonDeepEquals(self.stringList, other.stringList) && - FLTPigeonDeepEquals(self.intList, other.intList) && - FLTPigeonDeepEquals(self.doubleList, other.doubleList) && - FLTPigeonDeepEquals(self.boolList, other.boolList) && - FLTPigeonDeepEquals(self.enumList, other.enumList) && - FLTPigeonDeepEquals(self.objectList, other.objectList) && - FLTPigeonDeepEquals(self.listList, other.listList) && - FLTPigeonDeepEquals(self.mapList, other.mapList) && - FLTPigeonDeepEquals(self.recursiveClassList, other.recursiveClassList) && - FLTPigeonDeepEquals(self.map, other.map) && - FLTPigeonDeepEquals(self.stringMap, other.stringMap) && - FLTPigeonDeepEquals(self.intMap, other.intMap) && - FLTPigeonDeepEquals(self.enumMap, other.enumMap) && - FLTPigeonDeepEquals(self.objectMap, other.objectMap) && - FLTPigeonDeepEquals(self.listMap, other.listMap) && - FLTPigeonDeepEquals(self.mapMap, other.mapMap) && - FLTPigeonDeepEquals(self.recursiveClassMap, other.recursiveClassMap); + return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && FLTPigeonDeepEquals(self.list, other.list) && FLTPigeonDeepEquals(self.stringList, other.stringList) && FLTPigeonDeepEquals(self.intList, other.intList) && FLTPigeonDeepEquals(self.doubleList, other.doubleList) && FLTPigeonDeepEquals(self.boolList, other.boolList) && FLTPigeonDeepEquals(self.enumList, other.enumList) && FLTPigeonDeepEquals(self.objectList, other.objectList) && FLTPigeonDeepEquals(self.listList, other.listList) && FLTPigeonDeepEquals(self.mapList, other.mapList) && FLTPigeonDeepEquals(self.recursiveClassList, other.recursiveClassList) && FLTPigeonDeepEquals(self.map, other.map) && FLTPigeonDeepEquals(self.stringMap, other.stringMap) && FLTPigeonDeepEquals(self.intMap, other.intMap) && FLTPigeonDeepEquals(self.enumMap, other.enumMap) && FLTPigeonDeepEquals(self.objectMap, other.objectMap) && FLTPigeonDeepEquals(self.listMap, other.listMap) && FLTPigeonDeepEquals(self.mapMap, other.mapMap) && FLTPigeonDeepEquals(self.recursiveClassMap, other.recursiveClassMap); } - (NSUInteger)hash { @@ -621,37 +559,35 @@ - (NSUInteger)hash { @end @implementation FLTAllNullableTypesWithoutRecursion -+ (instancetype) - makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap { - FLTAllNullableTypesWithoutRecursion *pigeonResult = - [[FLTAllNullableTypesWithoutRecursion alloc] init]; ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id )aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap { + FLTAllNullableTypesWithoutRecursion* pigeonResult = [[FLTAllNullableTypesWithoutRecursion alloc] init]; pigeonResult.aNullableBool = aNullableBool; pigeonResult.aNullableInt = aNullableInt; pigeonResult.aNullableInt64 = aNullableInt64; @@ -683,8 +619,7 @@ @implementation FLTAllNullableTypesWithoutRecursion return pigeonResult; } + (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { - FLTAllNullableTypesWithoutRecursion *pigeonResult = - [[FLTAllNullableTypesWithoutRecursion alloc] init]; + FLTAllNullableTypesWithoutRecursion *pigeonResult = [[FLTAllNullableTypesWithoutRecursion alloc] init]; pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); @@ -758,34 +693,7 @@ - (BOOL)isEqual:(id)object { return NO; } FLTAllNullableTypesWithoutRecursion *other = (FLTAllNullableTypesWithoutRecursion *)object; - return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && - FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && - FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && - FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && - FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && - FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && - FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && - FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && - FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && - FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && - FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && - FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && - FLTPigeonDeepEquals(self.list, other.list) && - FLTPigeonDeepEquals(self.stringList, other.stringList) && - FLTPigeonDeepEquals(self.intList, other.intList) && - FLTPigeonDeepEquals(self.doubleList, other.doubleList) && - FLTPigeonDeepEquals(self.boolList, other.boolList) && - FLTPigeonDeepEquals(self.enumList, other.enumList) && - FLTPigeonDeepEquals(self.objectList, other.objectList) && - FLTPigeonDeepEquals(self.listList, other.listList) && - FLTPigeonDeepEquals(self.mapList, other.mapList) && - FLTPigeonDeepEquals(self.map, other.map) && - FLTPigeonDeepEquals(self.stringMap, other.stringMap) && - FLTPigeonDeepEquals(self.intMap, other.intMap) && - FLTPigeonDeepEquals(self.enumMap, other.enumMap) && - FLTPigeonDeepEquals(self.objectMap, other.objectMap) && - FLTPigeonDeepEquals(self.listMap, other.listMap) && - FLTPigeonDeepEquals(self.mapMap, other.mapMap); + return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && FLTPigeonDeepEquals(self.list, other.list) && FLTPigeonDeepEquals(self.stringList, other.stringList) && FLTPigeonDeepEquals(self.intList, other.intList) && FLTPigeonDeepEquals(self.doubleList, other.doubleList) && FLTPigeonDeepEquals(self.boolList, other.boolList) && FLTPigeonDeepEquals(self.enumList, other.enumList) && FLTPigeonDeepEquals(self.objectList, other.objectList) && FLTPigeonDeepEquals(self.listList, other.listList) && FLTPigeonDeepEquals(self.mapList, other.mapList) && FLTPigeonDeepEquals(self.map, other.map) && FLTPigeonDeepEquals(self.stringMap, other.stringMap) && FLTPigeonDeepEquals(self.intMap, other.intMap) && FLTPigeonDeepEquals(self.enumMap, other.enumMap) && FLTPigeonDeepEquals(self.objectMap, other.objectMap) && FLTPigeonDeepEquals(self.listMap, other.listMap) && FLTPigeonDeepEquals(self.mapMap, other.mapMap); } - (NSUInteger)hash { @@ -823,19 +731,14 @@ - (NSUInteger)hash { @end @implementation FLTAllClassesWrapper -+ (instancetype) - makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion: - (nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable FLTAllTypes *)allTypes - classList:(NSArray *)classList - nullableClassList: - (nullable NSArray *)nullableClassList - classMap:(NSDictionary *)classMap - nullableClassMap: - (nullable NSDictionary *) - nullableClassMap { - FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; ++ (instancetype)makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable FLTAllTypes *)allTypes + classList:(NSArray *)classList + nullableClassList:(nullable NSArray *)nullableClassList + classMap:(NSDictionary *)classMap + nullableClassMap:(nullable NSDictionary *)nullableClassMap { + FLTAllClassesWrapper* pigeonResult = [[FLTAllClassesWrapper alloc] init]; pigeonResult.allNullableTypes = allNullableTypes; pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; pigeonResult.allTypes = allTypes; @@ -878,14 +781,7 @@ - (BOOL)isEqual:(id)object { return NO; } FLTAllClassesWrapper *other = (FLTAllClassesWrapper *)object; - return FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && - FLTPigeonDeepEquals(self.allNullableTypesWithoutRecursion, - other.allNullableTypesWithoutRecursion) && - FLTPigeonDeepEquals(self.allTypes, other.allTypes) && - FLTPigeonDeepEquals(self.classList, other.classList) && - FLTPigeonDeepEquals(self.nullableClassList, other.nullableClassList) && - FLTPigeonDeepEquals(self.classMap, other.classMap) && - FLTPigeonDeepEquals(self.nullableClassMap, other.nullableClassMap); + return FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && FLTPigeonDeepEquals(self.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && FLTPigeonDeepEquals(self.allTypes, other.allTypes) && FLTPigeonDeepEquals(self.classList, other.classList) && FLTPigeonDeepEquals(self.nullableClassList, other.nullableClassList) && FLTPigeonDeepEquals(self.classMap, other.classMap) && FLTPigeonDeepEquals(self.nullableClassMap, other.nullableClassMap); } - (NSUInteger)hash { @@ -903,7 +799,7 @@ - (NSUInteger)hash { @implementation FLTTestMessage + (instancetype)makeWithTestList:(nullable NSArray *)testList { - FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; + FLTTestMessage* pigeonResult = [[FLTTestMessage alloc] init]; pigeonResult.testList = testList; return pigeonResult; } @@ -945,26 +841,23 @@ - (nullable id)readValueOfType:(UInt8)type { switch (type) { case 129: { NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil - : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + return enumAsNumber == nil ? nil : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; } case 130: { NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTAnotherEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + return enumAsNumber == nil ? nil : [[FLTAnotherEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; } - case 131: + case 131: return [FLTUnusedClass fromList:[self readValue]]; - case 132: + case 132: return [FLTAllTypes fromList:[self readValue]]; - case 133: + case 133: return [FLTAllNullableTypes fromList:[self readValue]]; - case 134: + case 134: return [FLTAllNullableTypesWithoutRecursion fromList:[self readValue]]; - case 135: + case 135: return [FLTAllClassesWrapper fromList:[self readValue]]; - case 136: + case 136: return [FLTTestMessage fromList:[self readValue]]; default: return [super readValueOfType:type]; @@ -1023,42 +916,32 @@ - (FlutterStandardReader *)readerWithData:(NSData *)data { static FlutterStandardMessageCodec *sSharedObject = nil; static dispatch_once_t sPred = 0; dispatch_once(&sPred, ^{ - FLTCoreTestsPigeonCodecReaderWriter *readerWriter = - [[FLTCoreTestsPigeonCodecReaderWriter alloc] init]; + FLTCoreTestsPigeonCodecReaderWriter *readerWriter = [[FLTCoreTestsPigeonCodecReaderWriter alloc] init]; sSharedObject = [FlutterStandardMessageCodec codecWithReaderWriter:readerWriter]; }); return sSharedObject; } -void SetUpFLTHostIntegrationCoreApi(id binaryMessenger, - NSObject *api) { +void SetUpFLTHostIntegrationCoreApi(id binaryMessenger, NSObject *api) { SetUpFLTHostIntegrationCoreApiWithSuffix(binaryMessenger, api, @""); } -void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryMessenger, - NSObject *api, - NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 - ? [NSString stringWithFormat:@".%@", messageChannelSuffix] - : @""; -#if TARGET_OS_IOS - NSObject *taskQueue = [binaryMessenger makeBackgroundTaskQueue]; -#else - NSObject *taskQueue = nil; -#endif +void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryMessenger, NSObject *api, NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 ? [NSString stringWithFormat: @".%@", messageChannelSuffix] : @""; + #if TARGET_OS_IOS + NSObject *taskQueue = [binaryMessenger makeBackgroundTaskQueue]; + #else + NSObject *taskQueue = nil; + #endif /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.noop", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(noopWithError:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(noopWithError:)", - api); + NSCAssert([api respondsToSelector:@selector(noopWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(noopWithError:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; [api noopWithError:&error]; @@ -1070,18 +953,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAllTypes", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoAllTypes:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllTypes:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAllTypes:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllTypes:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); @@ -1095,18 +973,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns an error, to test error handling. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.throwError", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(throwErrorWithError:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwErrorWithError:)", - api); + NSCAssert([api respondsToSelector:@selector(throwErrorWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwErrorWithError:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; id output = [api throwErrorWithError:&error]; @@ -1118,18 +991,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns an error from a void function, to test error handling. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.throwErrorFromVoid", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwErrorFromVoidWithError:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwErrorFromVoidWithError:)", - api); + NSCAssert([api respondsToSelector:@selector(throwErrorFromVoidWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwErrorFromVoidWithError:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; [api throwErrorFromVoidWithError:&error]; @@ -1141,18 +1009,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns a Flutter error, to test error handling. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.throwFlutterError", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwFlutterErrorWithError:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwFlutterErrorWithError:)", - api); + NSCAssert([api respondsToSelector:@selector(throwFlutterErrorWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwFlutterErrorWithError:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; id output = [api throwFlutterErrorWithError:&error]; @@ -1164,17 +1027,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoInt", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoInt:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoInt:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoInt:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoInt:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; @@ -1188,18 +1047,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoDouble", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoDouble:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoDouble:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoDouble:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoDouble:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; @@ -1213,17 +1067,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in boolean. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoBool", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoBool:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoBool:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoBool:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoBool:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; @@ -1237,18 +1087,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in string. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoString:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoString:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoString:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); @@ -1262,18 +1107,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in Uint8List. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoUint8List", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoUint8List:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoUint8List:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoUint8List:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoUint8List:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); @@ -1287,18 +1127,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in generic Object. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoObject", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoObject:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoObject:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoObject:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoObject:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; id arg_anObject = GetNullableObjectAtIndex(args, 0); @@ -1312,17 +1147,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); @@ -1336,18 +1167,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoEnumList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoEnumList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); @@ -1361,18 +1187,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoClassList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoClassList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); @@ -1386,18 +1207,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNonNullEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullEnumList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullEnumList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNonNullEnumList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullEnumList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); @@ -1411,24 +1227,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNonNullClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullClassList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullClassList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNonNullClassList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullClassList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSArray *output = [api echoNonNullClassList:arg_classList - error:&error]; + NSArray *output = [api echoNonNullClassList:arg_classList error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1437,17 +1247,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); @@ -1461,24 +1267,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoStringMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoStringMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoStringMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoStringMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoStringMap:arg_stringMap - error:&error]; + NSDictionary *output = [api echoStringMap:arg_stringMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1487,18 +1287,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoIntMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoIntMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoIntMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoIntMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); @@ -1512,25 +1307,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoEnumMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoEnumMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoEnumMap:arg_enumMap - error:&error]; + NSDictionary *output = [api echoEnumMap:arg_enumMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1539,25 +1327,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector(echoClassMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoClassMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoClassMap:arg_classMap - error:&error]; + NSDictionary *output = [api echoClassMap:arg_classMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1566,24 +1347,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNonNullStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullStringMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullStringMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNonNullStringMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullStringMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNonNullStringMap:arg_stringMap - error:&error]; + NSDictionary *output = [api echoNonNullStringMap:arg_stringMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1592,24 +1367,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNonNullIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullIntMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullIntMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNonNullIntMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullIntMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNonNullIntMap:arg_intMap - error:&error]; + NSDictionary *output = [api echoNonNullIntMap:arg_intMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1618,25 +1387,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNonNullEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullEnumMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullEnumMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNonNullEnumMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullEnumMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNonNullEnumMap:arg_enumMap - error:&error]; + NSDictionary *output = [api echoNonNullEnumMap:arg_enumMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1645,25 +1407,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNonNullClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullClassMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNonNullClassMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNonNullClassMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullClassMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = - [api echoNonNullClassMap:arg_classMap error:&error]; + NSDictionary *output = [api echoNonNullClassMap:arg_classMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1672,18 +1427,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed class to test nested class serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoClassWrapper", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoClassWrapper:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoClassWrapper:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoClassWrapper:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassWrapper:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllClassesWrapper *arg_wrapper = GetNullableObjectAtIndex(args, 0); @@ -1697,23 +1447,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoEnum:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnum:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoEnum:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnum:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; FlutterError *error; - FLTAnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; + FLTAnEnumBox * output = [api echoEnum:arg_anEnum error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1722,24 +1468,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAnotherEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherEnum:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAnotherEnum:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAnotherEnum:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherEnum:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; FlutterError *error; - FLTAnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; + FLTAnotherEnumBox * output = [api echoAnotherEnum:arg_anotherEnum error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1748,18 +1489,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the default string. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNamedDefaultString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNamedDefaultString:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNamedDefaultString:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNamedDefaultString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNamedDefaultString:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); @@ -1773,19 +1509,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoOptionalDefaultDouble", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoOptionalDefaultDouble:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoOptionalDefaultDouble:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoOptionalDefaultDouble:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoOptionalDefaultDouble:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; @@ -1799,18 +1529,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoRequiredInt", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoRequiredInt:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoRequiredInt:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoRequiredInt:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoRequiredInt:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; @@ -1822,20 +1547,56 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:nil]; } } + /// Returns the result of platform-side equality check. + { + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual", messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(areAllNullableTypesEqualA:b:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(areAllNullableTypesEqualA:b:error:)", api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAllNullableTypes *arg_a = GetNullableObjectAtIndex(args, 0); + FLTAllNullableTypes *arg_b = GetNullableObjectAtIndex(args, 1); + FlutterError *error; + NSNumber *output = [api areAllNullableTypesEqualA:arg_a b:arg_b error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } + /// Returns the platform-side hash code for the given object. + { + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash", messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(getAllNullableTypesHashValue:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(getAllNullableTypesHashValue:error:)", api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAllNullableTypes *arg_value = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSNumber *output = [api getAllNullableTypesHashValue:arg_value error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAllNullableTypes", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAllNullableTypes:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAllNullableTypes:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAllNullableTypes:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllNullableTypes:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); @@ -1849,26 +1610,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAllNullableTypesWithoutRecursion:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAllNullableTypesWithoutRecursion:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAllNullableTypesWithoutRecursion:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllNullableTypesWithoutRecursion:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FLTAllNullableTypesWithoutRecursion *output = - [api echoAllNullableTypesWithoutRecursion:arg_everything error:&error]; + FLTAllNullableTypesWithoutRecursion *output = [api echoAllNullableTypesWithoutRecursion:arg_everything error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1878,19 +1631,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.extractNestedNullableString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(extractNestedNullableStringFrom:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(extractNestedNullableStringFrom:error:)", - api); + NSCAssert([api respondsToSelector:@selector(extractNestedNullableStringFrom:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(extractNestedNullableStringFrom:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllClassesWrapper *arg_wrapper = GetNullableObjectAtIndex(args, 0); @@ -1905,25 +1652,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.createNestedNullableString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(createNestedObjectWithNullableString:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(createNestedObjectWithNullableString:error:)", - api); + NSCAssert([api respondsToSelector:@selector(createNestedObjectWithNullableString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(createNestedObjectWithNullableString:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_nullableString = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FLTAllClassesWrapper *output = [api createNestedObjectWithNullableString:arg_nullableString - error:&error]; + FLTAllClassesWrapper *output = [api createNestedObjectWithNullableString:arg_nullableString error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1932,30 +1672,20 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in arguments of multiple types. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.sendMultipleNullableTypes", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(sendMultipleNullableTypesABool: - anInt:aString:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(sendMultipleNullableTypesABool:anInt:aString:error:)", - api); + NSCAssert([api respondsToSelector:@selector(sendMultipleNullableTypesABool:anInt:aString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(sendMultipleNullableTypesABool:anInt:aString:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); FlutterError *error; - FLTAllNullableTypes *output = [api sendMultipleNullableTypesABool:arg_aNullableBool - anInt:arg_aNullableInt - aString:arg_aNullableString - error:&error]; + FLTAllNullableTypes *output = [api sendMultipleNullableTypesABool:arg_aNullableBool anInt:arg_aNullableInt aString:arg_aNullableString error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1964,32 +1694,20 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in arguments of multiple types. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector - (sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)", - api); + NSCAssert([api respondsToSelector:@selector(sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); FlutterError *error; - FLTAllNullableTypesWithoutRecursion *output = - [api sendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool - anInt:arg_aNullableInt - aString:arg_aNullableString - error:&error]; + FLTAllNullableTypesWithoutRecursion *output = [api sendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool anInt:arg_aNullableInt aString:arg_aNullableString error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1998,18 +1716,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableInt", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableInt:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableInt:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableInt:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableInt:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 0); @@ -2023,18 +1736,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableDouble", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableDouble:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableDouble:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableDouble:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableDouble:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableDouble = GetNullableObjectAtIndex(args, 0); @@ -2048,18 +1756,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in boolean. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableBool", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableBool:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableBool:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableBool:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableBool:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); @@ -2073,18 +1776,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in string. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableString:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableString:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableString:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 0); @@ -2098,24 +1796,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in Uint8List. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableUint8List", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableUint8List:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableUint8List:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableUint8List:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableUint8List:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_aNullableUint8List = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FlutterStandardTypedData *output = [api echoNullableUint8List:arg_aNullableUint8List - error:&error]; + FlutterStandardTypedData *output = [api echoNullableUint8List:arg_aNullableUint8List error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2124,18 +1816,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in generic Object. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableObject", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableObject:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableObject:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableObject:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableObject:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; id arg_aNullableObject = GetNullableObjectAtIndex(args, 0); @@ -2149,18 +1836,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_aNullableList = GetNullableObjectAtIndex(args, 0); @@ -2174,18 +1856,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableEnumList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableEnumList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableEnumList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableEnumList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); @@ -2199,24 +1876,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableClassList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableClassList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableClassList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableClassList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSArray *output = [api echoNullableClassList:arg_classList - error:&error]; + NSArray *output = [api echoNullableClassList:arg_classList error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2225,25 +1896,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableNonNullEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullEnumList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullEnumList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSArray *output = [api echoNullableNonNullEnumList:arg_enumList - error:&error]; + NSArray *output = [api echoNullableNonNullEnumList:arg_enumList error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2252,25 +1916,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableNonNullClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassList:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullClassList:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullClassList:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSArray *output = [api echoNullableNonNullClassList:arg_classList - error:&error]; + NSArray *output = [api echoNullableNonNullClassList:arg_classList error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2279,18 +1936,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); @@ -2304,24 +1956,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableStringMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableStringMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableStringMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableStringMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableStringMap:arg_stringMap - error:&error]; + NSDictionary *output = [api echoNullableStringMap:arg_stringMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2330,24 +1976,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableIntMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableIntMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableIntMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableIntMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableIntMap:arg_intMap - error:&error]; + NSDictionary *output = [api echoNullableIntMap:arg_intMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2356,25 +1996,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableEnumMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableEnumMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableEnumMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableEnumMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableEnumMap:arg_enumMap - error:&error]; + NSDictionary *output = [api echoNullableEnumMap:arg_enumMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2383,25 +2016,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableClassMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableClassMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableClassMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableClassMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = - [api echoNullableClassMap:arg_classMap error:&error]; + NSDictionary *output = [api echoNullableClassMap:arg_classMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2410,25 +2036,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableNonNullStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullStringMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullStringMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullStringMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullStringMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = - [api echoNullableNonNullStringMap:arg_stringMap error:&error]; + NSDictionary *output = [api echoNullableNonNullStringMap:arg_stringMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2437,25 +2056,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableNonNullIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullIntMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullIntMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullIntMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullIntMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableNonNullIntMap:arg_intMap - error:&error]; + NSDictionary *output = [api echoNullableNonNullIntMap:arg_intMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2464,26 +2076,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableNonNullEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullEnumMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullEnumMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = - [api echoNullableNonNullEnumMap:arg_enumMap error:&error]; + NSDictionary *output = [api echoNullableNonNullEnumMap:arg_enumMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2492,26 +2096,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableNonNullClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassMap:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableNonNullClassMap:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullClassMap:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = - [api echoNullableNonNullClassMap:arg_classMap error:&error]; + NSDictionary *output = [api echoNullableNonNullClassMap:arg_classMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2519,23 +2115,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNullableEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableEnum:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNullableEnum:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNullableEnum:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableEnum:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FLTAnEnumBox *output = [api echoNullableEnum:arg_anEnum error:&error]; + FLTAnEnumBox * output = [api echoNullableEnum:arg_anEnum error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2543,24 +2134,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAnotherNullableEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherNullableEnum:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAnotherNullableEnum:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAnotherNullableEnum:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherNullableEnum:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FLTAnotherEnumBox *output = [api echoAnotherNullableEnum:arg_anotherEnum error:&error]; + FLTAnotherEnumBox * output = [api echoAnotherNullableEnum:arg_anotherEnum error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2569,19 +2154,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoOptionalNullableInt", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoOptionalNullableInt:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoOptionalNullableInt:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoOptionalNullableInt:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoOptionalNullableInt:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 0); @@ -2595,19 +2174,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in string. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoNamedNullableString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNamedNullableString:error:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoNamedNullableString:error:)", - api); + NSCAssert([api respondsToSelector:@selector(echoNamedNullableString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNamedNullableString:error:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 0); @@ -2622,18 +2195,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.noopAsync", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(noopAsyncWithCompletion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(noopAsyncWithCompletion:)", - api); + NSCAssert([api respondsToSelector:@selector(noopAsyncWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(noopAsyncWithCompletion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api noopAsyncWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -2645,25 +2213,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncInt", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncInt:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncInt:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncInt:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncInt:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; - [api echoAsyncInt:arg_anInt - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncInt:arg_anInt completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2671,25 +2233,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncDouble", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncDouble:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncDouble:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncDouble:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncDouble:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; - [api echoAsyncDouble:arg_aDouble - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncDouble:arg_aDouble completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2697,25 +2253,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in boolean asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncBool", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncBool:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncBool:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncBool:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncBool:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; - [api echoAsyncBool:arg_aBool - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncBool:arg_aBool completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2723,25 +2273,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed string asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncString:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncString:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncString:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoAsyncString:arg_aString - completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2749,26 +2293,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in Uint8List asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncUint8List", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncUint8List:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncUint8List:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncUint8List:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncUint8List:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); - [api echoAsyncUint8List:arg_aUint8List - completion:^(FlutterStandardTypedData *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncUint8List:arg_aUint8List completion:^(FlutterStandardTypedData *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2776,25 +2313,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in generic Object asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncObject", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncObject:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncObject:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncObject:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncObject:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; id arg_anObject = GetNullableObjectAtIndex(args, 0); - [api echoAsyncObject:arg_anObject - completion:^(id _Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncObject:arg_anObject completion:^(id _Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2802,25 +2333,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api echoAsyncList:arg_list - completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncList:arg_list completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2828,26 +2353,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnumList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncEnumList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncEnumList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2855,26 +2373,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncClassList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncClassList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncClassList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2882,25 +2393,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api echoAsyncMap:arg_map - completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncMap:arg_map completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2908,26 +2413,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncStringMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncStringMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncStringMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncStringMap:arg_stringMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2935,26 +2433,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncIntMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncIntMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncIntMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2962,27 +2453,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnumMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncEnumMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncEnumMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); - [api echoAsyncEnumMap:arg_enumMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2990,27 +2473,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncClassMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncClassMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncClassMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api echoAsyncClassMap:arg_classMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3018,26 +2493,20 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnum:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncEnum:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncEnum:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; - [api echoAsyncEnum:arg_anEnum - completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3045,27 +2514,20 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAnotherAsyncEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncEnum:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAnotherAsyncEnum:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherAsyncEnum:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; - [api echoAnotherAsyncEnum:arg_anotherEnum - completion:^(FLTAnotherEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAnotherAsyncEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3073,18 +2535,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Responds with an error from an async function returning a value. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.throwAsyncError", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncErrorWithCompletion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwAsyncErrorWithCompletion:)", - api); + NSCAssert([api respondsToSelector:@selector(throwAsyncErrorWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwAsyncErrorWithCompletion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api throwAsyncErrorWithCompletion:^(id _Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -3096,19 +2553,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Responds with an error from an async void function. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.throwAsyncErrorFromVoid", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncErrorFromVoidWithCompletion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwAsyncErrorFromVoidWithCompletion:)", - api); + NSCAssert([api respondsToSelector:@selector(throwAsyncErrorFromVoidWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwAsyncErrorFromVoidWithCompletion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api throwAsyncErrorFromVoidWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -3120,21 +2571,15 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Responds with a Flutter error from an async function returning a value. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.throwAsyncFlutterError", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncFlutterErrorWithCompletion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(throwAsyncFlutterErrorWithCompletion:)", - api); + NSCAssert([api respondsToSelector:@selector(throwAsyncFlutterErrorWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwAsyncFlutterErrorWithCompletion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api throwAsyncFlutterErrorWithCompletion:^(id _Nullable output, - FlutterError *_Nullable error) { + [api throwAsyncFlutterErrorWithCompletion:^(id _Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); }]; }]; @@ -3144,25 +2589,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test async serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncAllTypes", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncAllTypes:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncAllTypes:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncAllTypes:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncAllTypes:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncAllTypes:arg_everything - completion:^(FLTAllTypes *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncAllTypes:arg_everything completion:^(FLTAllTypes *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3170,27 +2609,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableAllNullableTypes:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableAllNullableTypes:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableAllNullableTypes:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableAllNullableTypes:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableAllNullableTypes:arg_everything - completion:^(FLTAllNullableTypes *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableAllNullableTypes:arg_everything completion:^(FLTAllNullableTypes *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3198,30 +2629,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi." - @"echoAsyncNullableAllNullableTypesWithoutRecursion", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector - (echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableAllNullableTypesWithoutRecursion:arg_everything - completion:^(FLTAllNullableTypesWithoutRecursion - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableAllNullableTypesWithoutRecursion:arg_everything completion:^(FLTAllNullableTypesWithoutRecursion *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3229,25 +2649,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableInt", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableInt:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableInt:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableInt:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableInt:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_anInt = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableInt:arg_anInt - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableInt:arg_anInt completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3255,26 +2669,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableDouble", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableDouble:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableDouble:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableDouble:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableDouble:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aDouble = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableDouble:arg_aDouble - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableDouble:arg_aDouble completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3282,25 +2689,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in boolean asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableBool", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableBool:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableBool:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableBool:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableBool:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aBool = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableBool:arg_aBool - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableBool:arg_aBool completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3308,26 +2709,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed string asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableString:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableString:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableString:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableString:arg_aString - completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3335,27 +2729,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in Uint8List asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableUint8List", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableUint8List:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableUint8List:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableUint8List:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableUint8List:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableUint8List:arg_aUint8List - completion:^(FlutterStandardTypedData *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableUint8List:arg_aUint8List completion:^(FlutterStandardTypedData *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3363,26 +2749,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in generic Object asynchronously. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableObject", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableObject:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableObject:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableObject:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableObject:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; id arg_anObject = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableObject:arg_anObject - completion:^(id _Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableObject:arg_anObject completion:^(id _Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3390,25 +2769,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableList:arg_list - completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableList:arg_list completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3416,27 +2789,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableEnumList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableEnumList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3444,27 +2809,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableClassList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableClassList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3472,26 +2829,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableMap:arg_map - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableMap:arg_map completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3499,27 +2849,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableStringMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableStringMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableStringMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableStringMap:arg_stringMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3527,27 +2869,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableIntMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableIntMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableIntMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3555,29 +2889,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableEnumMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableEnumMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableEnumMap:arg_enumMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3585,29 +2909,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableClassMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableClassMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableClassMap:arg_classMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3615,26 +2929,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAsyncNullableEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnum:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAsyncNullableEnum:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableEnum:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); - [api - echoAsyncNullableEnum:arg_anEnum - completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3642,27 +2949,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.echoAnotherAsyncNullableEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncNullableEnum:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(echoAnotherAsyncNullableEnum:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncNullableEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherAsyncNullableEnum:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); - [api echoAnotherAsyncNullableEnum:arg_anotherEnum - completion:^(FLTAnotherEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAnotherAsyncNullableEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3671,18 +2970,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.defaultIsMainThread", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(defaultIsMainThreadWithError:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(defaultIsMainThreadWithError:)", - api); + NSCAssert([api respondsToSelector:@selector(defaultIsMainThreadWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(defaultIsMainThreadWithError:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; NSNumber *output = [api defaultIsMainThreadWithError:&error]; @@ -3695,24 +2989,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// Returns true if the handler is run on a non-main thread, which should be /// true for any platform with TaskQueue support. { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.taskQueueIsBackgroundThread", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec() -#ifdef TARGET_OS_IOS - taskQueue:taskQueue -#endif - ]; + codec:FLTGetCoreTestsCodec() + #ifdef TARGET_OS_IOS + taskQueue:taskQueue + #endif + ]; if (api) { - NSCAssert([api respondsToSelector:@selector(taskQueueIsBackgroundThreadWithError:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(taskQueueIsBackgroundThreadWithError:)", - api); + NSCAssert([api respondsToSelector:@selector(taskQueueIsBackgroundThreadWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(taskQueueIsBackgroundThreadWithError:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; NSNumber *output = [api taskQueueIsBackgroundThreadWithError:&error]; @@ -3723,18 +3011,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterNoop", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterNoopWithCompletion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterNoopWithCompletion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterNoopWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterNoopWithCompletion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api callFlutterNoopWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -3745,21 +3028,15 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterThrowError", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorWithCompletion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterThrowErrorWithCompletion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterThrowErrorWithCompletion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api callFlutterThrowErrorWithCompletion:^(id _Nullable output, - FlutterError *_Nullable error) { + [api callFlutterThrowErrorWithCompletion:^(id _Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); }]; }]; @@ -3768,19 +3045,13 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterThrowErrorFromVoid", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorFromVoidWithCompletion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterThrowErrorFromVoidWithCompletion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorFromVoidWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterThrowErrorFromVoidWithCompletion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api callFlutterThrowErrorFromVoidWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -3791,1338 +3062,918 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoAllTypes", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllTypes:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAllTypes:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllTypes:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAllTypes:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllTypes:arg_everything - completion:^(FLTAllTypes *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAllTypes:arg_everything completion:^(FLTAllTypes *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoAllNullableTypes", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllNullableTypes:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAllNullableTypes:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllNullableTypes:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAllNullableTypes:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllNullableTypes:arg_everything - completion:^(FLTAllNullableTypes *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAllNullableTypes:arg_everything completion:^(FLTAllNullableTypes *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector - (callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); - [api callFlutterSendMultipleNullableTypesABool:arg_aNullableBool - anInt:arg_aNullableInt - aString:arg_aNullableString - completion:^(FLTAllNullableTypes *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterSendMultipleNullableTypesABool:arg_aNullableBool anInt:arg_aNullableInt aString:arg_aNullableString completion:^(FLTAllNullableTypes *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi." - @"callFlutterEchoAllNullableTypesWithoutRecursion", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector - (callFlutterEchoAllNullableTypesWithoutRecursion:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAllNullableTypesWithoutRecursion:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllNullableTypesWithoutRecursion:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAllNullableTypesWithoutRecursion:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllNullableTypesWithoutRecursion:arg_everything - completion:^(FLTAllNullableTypesWithoutRecursion - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAllNullableTypesWithoutRecursion:arg_everything completion:^(FLTAllNullableTypesWithoutRecursion *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - @"callFlutterSendMultipleNullableTypesWithoutRecursion", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert( - [api respondsToSelector:@selector - (callFlutterSendMultipleNullableTypesWithoutRecursionABool: - anInt:aString:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterSendMultipleNullableTypesWithoutRecursionABool:anInt:aString:" - @"completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterSendMultipleNullableTypesWithoutRecursionABool:anInt:aString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterSendMultipleNullableTypesWithoutRecursionABool:anInt:aString:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); - [api callFlutterSendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool - anInt:arg_aNullableInt - aString:arg_aNullableString - completion:^( - FLTAllNullableTypesWithoutRecursion - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterSendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool anInt:arg_aNullableInt aString:arg_aNullableString completion:^(FLTAllNullableTypesWithoutRecursion *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoBool", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoBool:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoBool:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoBool:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoBool:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; - [api callFlutterEchoBool:arg_aBool - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoBool:arg_aBool completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoInt", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoInt:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoInt:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoInt:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoInt:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; - [api callFlutterEchoInt:arg_anInt - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoInt:arg_anInt completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoDouble", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoDouble:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoDouble:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoDouble:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoDouble:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; - [api callFlutterEchoDouble:arg_aDouble - completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoDouble:arg_aDouble completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoString:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoString:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoString:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoString:arg_aString - completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoUint8List", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoUint8List:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoUint8List:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoUint8List:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoUint8List:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoUint8List:arg_list - completion:^(FlutterStandardTypedData *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoUint8List:arg_list completion:^(FlutterStandardTypedData *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoList:arg_list - completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoList:arg_list completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoEnumList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoEnumList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoClassList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoClassList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNonNullEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullEnumList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullEnumList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNonNullEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNonNullClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullClassList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullClassList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNonNullClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoMap:arg_map - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoMap:arg_map completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoStringMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoStringMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoStringMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoStringMap:arg_stringMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoIntMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoIntMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoIntMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoEnumMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoEnumMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); - [api - callFlutterEchoEnumMap:arg_enumMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoClassMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoClassMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoClassMap:arg_classMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNonNullStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullStringMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullStringMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullStringMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullStringMap:arg_stringMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNonNullStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNonNullIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullIntMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullIntMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullIntMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNonNullIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullEnumMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullEnumMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullEnumMap:arg_enumMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNonNullClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNonNullClassMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullClassMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullClassMap:arg_classMap - completion:^(NSDictionary - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnum:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoEnum:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoEnum:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; - [api callFlutterEchoEnum:arg_anEnum - completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoAnotherEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherEnum:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAnotherEnum:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAnotherEnum:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; - [api callFlutterEchoAnotherEnum:arg_anotherEnum - completion:^(FLTAnotherEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAnotherEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableBool", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableBool:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableBool:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableBool:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableBool:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aBool = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableBool:arg_aBool - completion:^(NSNumber *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableBool:arg_aBool completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableInt", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableInt:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableInt:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableInt:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableInt:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_anInt = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableInt:arg_anInt - completion:^(NSNumber *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableInt:arg_anInt completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableDouble", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableDouble:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableDouble:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableDouble:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableDouble:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aDouble = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableDouble:arg_aDouble - completion:^(NSNumber *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableDouble:arg_aDouble completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableString:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableString:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableString:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableString:arg_aString - completion:^(NSString *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableUint8List", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableUint8List:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableUint8List:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableUint8List:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableUint8List:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableUint8List:arg_list - completion:^(FlutterStandardTypedData *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableUint8List:arg_list completion:^(FlutterStandardTypedData *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableList:arg_list - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableList:arg_list completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableEnumList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableEnumList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassList:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableClassList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableClassList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableClassList:arg_classList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumList: - completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullEnumList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullEnumList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullEnumList:arg_enumList - completion:^(NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableNonNullEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassList: - completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullClassList:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullClassList:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullClassList:arg_classList - completion:^( - NSArray *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableNonNullClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableMap:arg_map - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableMap:arg_map completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableStringMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableStringMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableStringMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableStringMap:arg_stringMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableIntMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableIntMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableIntMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableIntMap:arg_intMap - completion:^(NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableEnumMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableEnumMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnumMap:arg_enumMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassMap:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableClassMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableClassMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableClassMap:arg_classMap - completion:^(NSDictionary - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullStringMap: - completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullStringMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullStringMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api - callFlutterEchoNullableNonNullStringMap:arg_stringMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableNonNullStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullIntMap: - completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullIntMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullIntMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullIntMap:arg_intMap - completion:^( - NSDictionary *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableNonNullIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumMap: - completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullEnumMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullEnumMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = - GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullEnumMap:arg_enumMap - completion:^(NSDictionary - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableNonNullEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassMap: - completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableNonNullClassMap:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullClassMap:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = - GetNullableObjectAtIndex(args, 0); - [api - callFlutterEchoNullableNonNullClassMap:arg_classMap - completion:^(NSDictionary - *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableNonNullClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoNullableEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnum:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoNullableEnum:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableEnum:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnum:arg_anEnum - completion:^(FLTAnEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherNullableEnum:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterEchoAnotherNullableEnum:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherNullableEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAnotherNullableEnum:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAnotherNullableEnum:arg_anotherEnum - completion:^(FLTAnotherEnumBox *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAnotherNullableEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName: - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostIntegrationCoreApi.callFlutterSmallApiEchoString", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterSmallApiEchoString:completion:)], - @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " - @"@selector(callFlutterSmallApiEchoString:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(callFlutterSmallApiEchoString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterSmallApiEchoString:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterSmallApiEchoString:arg_aString - completion:^(NSString *_Nullable output, - FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterSmallApiEchoString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -5139,1510 +3990,1067 @@ @implementation FLTFlutterIntegrationCoreApi - (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { return [self initWithBinaryMessenger:binaryMessenger messageChannelSuffix:@""]; } -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger - messageChannelSuffix:(nullable NSString *)messageChannelSuffix { +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger messageChannelSuffix:(nullable NSString*)messageChannelSuffix{ self = [self init]; if (self) { _binaryMessenger = binaryMessenger; - _messageChannelSuffix = [messageChannelSuffix length] == 0 - ? @"" - : [NSString stringWithFormat:@".%@", messageChannelSuffix]; + _messageChannelSuffix = [messageChannelSuffix length] == 0 ? @"" : [NSString stringWithFormat: @".%@", messageChannelSuffix]; } return self; } - (void)noopWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop", - _messageChannelSuffix]; + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:nil - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:nil reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; } - (void)throwErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError", - _messageChannelSuffix]; + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:nil - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - id output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:nil reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + id output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } - (void)throwErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.throwErrorFromVoid", - _messageChannelSuffix]; + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:nil - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:nil reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; } -- (void)echoAllTypes:(FLTAllTypes *)arg_everything - completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes", - _messageChannelSuffix]; +- (void)echoAllTypes:(FLTAllTypes *)arg_everything completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_everything ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAllTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_everything ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAllTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoAllNullableTypes:(nullable FLTAllNullableTypes *)arg_everything - completion:(void (^)(FLTAllNullableTypes *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoAllNullableTypes", - _messageChannelSuffix]; +- (void)echoAllNullableTypes:(nullable FLTAllNullableTypes *)arg_everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_everything ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_everything ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)arg_aNullableBool - anInt:(nullable NSNumber *)arg_aNullableInt - aString:(nullable NSString *)arg_aNullableString - completion:(void (^)(FLTAllNullableTypes *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.sendMultipleNullableTypes", - _messageChannelSuffix]; +- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)arg_aNullableBool anInt:(nullable NSNumber *)arg_aNullableInt aString:(nullable NSString *)arg_aNullableString completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ - arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], - arg_aNullableString ?: [NSNull null] - ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], arg_aNullableString ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoAllNullableTypesWithoutRecursion: - (nullable FLTAllNullableTypesWithoutRecursion *)arg_everything - completion: - (void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion", - _messageChannelSuffix]; +- (void)echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)arg_everything completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_everything ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAllNullableTypesWithoutRecursion *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_everything ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAllNullableTypesWithoutRecursion *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)arg_aNullableBool - anInt:(nullable NSNumber *)arg_aNullableInt - aString:(nullable NSString *)arg_aNullableString - completion: - (void (^)( - FLTAllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - @"sendMultipleNullableTypesWithoutRecursion", - _messageChannelSuffix]; +- (void)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)arg_aNullableBool anInt:(nullable NSNumber *)arg_aNullableInt aString:(nullable NSString *)arg_aNullableString completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ - arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], - arg_aNullableString ?: [NSNull null] - ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAllNullableTypesWithoutRecursion *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], arg_aNullableString ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAllNullableTypesWithoutRecursion *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoBool:(BOOL)arg_aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool", - _messageChannelSuffix]; +- (void)echoBool:(BOOL)arg_aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ @(arg_aBool) ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[@(arg_aBool)] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoInt:(NSInteger)arg_anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt", - _messageChannelSuffix]; +- (void)echoInt:(NSInteger)arg_anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ @(arg_anInt) ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[@(arg_anInt)] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoDouble:(double)arg_aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble", - _messageChannelSuffix]; +- (void)echoDouble:(double)arg_aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ @(arg_aDouble) ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[@(arg_aDouble)] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoString:(NSString *)arg_aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString", - _messageChannelSuffix]; +- (void)echoString:(NSString *)arg_aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aString ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_aString ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoUint8List:(FlutterStandardTypedData *)arg_list - completion: - (void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List", - _messageChannelSuffix]; +- (void)echoUint8List:(FlutterStandardTypedData *)arg_list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_list ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FlutterStandardTypedData *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_list ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FlutterStandardTypedData *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoList:(NSArray *)arg_list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList", - _messageChannelSuffix]; +- (void)echoList:(NSArray *)arg_list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_list ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_list ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoEnumList:(NSArray *)arg_enumList - completion: - (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList", - _messageChannelSuffix]; +- (void)echoEnumList:(NSArray *)arg_enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_enumList ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoClassList:(NSArray *)arg_classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList", - _messageChannelSuffix]; +- (void)echoClassList:(NSArray *)arg_classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_classList ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullEnumList:(NSArray *)arg_enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNonNullEnumList", - _messageChannelSuffix]; +- (void)echoNonNullEnumList:(NSArray *)arg_enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_enumList ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullClassList:(NSArray *)arg_classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNonNullClassList", - _messageChannelSuffix]; +- (void)echoNonNullClassList:(NSArray *)arg_classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_classList ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoMap:(NSDictionary *)arg_map - completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap", - _messageChannelSuffix]; +- (void)echoMap:(NSDictionary *)arg_map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_map ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_map ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoStringMap:(NSDictionary *)arg_stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap", - _messageChannelSuffix]; +- (void)echoStringMap:(NSDictionary *)arg_stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_stringMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoIntMap:(NSDictionary *)arg_intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap", - _messageChannelSuffix]; +- (void)echoIntMap:(NSDictionary *)arg_intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_intMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoEnumMap:(NSDictionary *)arg_enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap", - _messageChannelSuffix]; +- (void)echoEnumMap:(NSDictionary *)arg_enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_enumMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoClassMap:(NSDictionary *)arg_classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap", - _messageChannelSuffix]; +- (void)echoClassMap:(NSDictionary *)arg_classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_classMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullStringMap:(NSDictionary *)arg_stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNonNullStringMap", - _messageChannelSuffix]; +- (void)echoNonNullStringMap:(NSDictionary *)arg_stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_stringMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullIntMap:(NSDictionary *)arg_intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNonNullIntMap", - _messageChannelSuffix]; +- (void)echoNonNullIntMap:(NSDictionary *)arg_intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_intMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullEnumMap:(NSDictionary *)arg_enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNonNullEnumMap", - _messageChannelSuffix]; +- (void)echoNonNullEnumMap:(NSDictionary *)arg_enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_enumMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullClassMap:(NSDictionary *)arg_classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNonNullClassMap", - _messageChannelSuffix]; +- (void)echoNonNullClassMap:(NSDictionary *)arg_classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_classMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoEnum:(FLTAnEnum)arg_anEnum - completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum", - _messageChannelSuffix]; +- (void)echoEnum:(FLTAnEnum)arg_anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ [[FLTAnEnumBox alloc] initWithValue:arg_anEnum] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[[[FLTAnEnumBox alloc] initWithValue:arg_anEnum]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoAnotherEnum:(FLTAnotherEnum)arg_anotherEnum - completion: - (void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum", - _messageChannelSuffix]; +- (void)echoAnotherEnum:(FLTAnotherEnum)arg_anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ [[FLTAnotherEnumBox alloc] initWithValue:arg_anotherEnum] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[[[FLTAnotherEnumBox alloc] initWithValue:arg_anotherEnum]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableBool:(nullable NSNumber *)arg_aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool", - _messageChannelSuffix]; +- (void)echoNullableBool:(nullable NSNumber *)arg_aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aBool ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_aBool ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableInt:(nullable NSNumber *)arg_anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt", - _messageChannelSuffix]; +- (void)echoNullableInt:(nullable NSNumber *)arg_anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_anInt ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_anInt ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableDouble:(nullable NSNumber *)arg_aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableDouble", - _messageChannelSuffix]; +- (void)echoNullableDouble:(nullable NSNumber *)arg_aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aDouble ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_aDouble ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableString:(nullable NSString *)arg_aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableString", - _messageChannelSuffix]; +- (void)echoNullableString:(nullable NSString *)arg_aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aString ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_aString ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)arg_list - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableUint8List", - _messageChannelSuffix]; +- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)arg_list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_list ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FlutterStandardTypedData *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_list ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FlutterStandardTypedData *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableList:(nullable NSArray *)arg_list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList", - _messageChannelSuffix]; +- (void)echoNullableList:(nullable NSArray *)arg_list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_list ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_list ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableEnumList:(nullable NSArray *)arg_enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableEnumList", - _messageChannelSuffix]; +- (void)echoNullableEnumList:(nullable NSArray *)arg_enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_enumList ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableClassList:(nullable NSArray *)arg_classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableClassList", - _messageChannelSuffix]; +- (void)echoNullableClassList:(nullable NSArray *)arg_classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_classList ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullEnumList:(nullable NSArray *)arg_enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableNonNullEnumList", - _messageChannelSuffix]; +- (void)echoNullableNonNullEnumList:(nullable NSArray *)arg_enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_enumList ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullClassList:(nullable NSArray *)arg_classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableNonNullClassList", - _messageChannelSuffix]; +- (void)echoNullableNonNullClassList:(nullable NSArray *)arg_classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classList ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSArray *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_classList ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableMap:(nullable NSDictionary *)arg_map - completion: - (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap", - _messageChannelSuffix]; +- (void)echoNullableMap:(nullable NSDictionary *)arg_map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_map ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_map ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableStringMap:(nullable NSDictionary *)arg_stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableStringMap", - _messageChannelSuffix]; +- (void)echoNullableStringMap:(nullable NSDictionary *)arg_stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_stringMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableIntMap:(nullable NSDictionary *)arg_intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableIntMap", - _messageChannelSuffix]; +- (void)echoNullableIntMap:(nullable NSDictionary *)arg_intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_intMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableEnumMap:(nullable NSDictionary *)arg_enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableEnumMap", - _messageChannelSuffix]; +- (void)echoNullableEnumMap:(nullable NSDictionary *)arg_enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_enumMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableClassMap: - (nullable NSDictionary *)arg_classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableClassMap", - _messageChannelSuffix]; +- (void)echoNullableClassMap:(nullable NSDictionary *)arg_classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_classMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)arg_stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableNonNullStringMap", - _messageChannelSuffix]; +- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)arg_stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_stringMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)arg_intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableNonNullIntMap", - _messageChannelSuffix]; +- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)arg_intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_intMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void) - echoNullableNonNullEnumMap:(nullable NSDictionary *)arg_enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableNonNullEnumMap", - _messageChannelSuffix]; +- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)arg_enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_enumMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullClassMap: - (nullable NSDictionary *)arg_classMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoNullableNonNullClassMap", - _messageChannelSuffix]; +- (void)echoNullableNonNullClassMap:(nullable NSDictionary *)arg_classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSDictionary *output = - reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_classMap ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableEnum:(nullable FLTAnEnumBox *)arg_anEnum - completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum", - _messageChannelSuffix]; +- (void)echoNullableEnum:(nullable FLTAnEnumBox *)arg_anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_anEnum == nil ? [NSNull null] : arg_anEnum ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_anEnum == nil ? [NSNull null] : arg_anEnum] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)arg_anotherEnum - completion:(void (^)(FLTAnotherEnumBox *_Nullable, - FlutterError *_Nullable))completion { - NSString *channelName = - [NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"FlutterIntegrationCoreApi.echoAnotherNullableEnum", - _messageChannelSuffix]; +- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)arg_anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_anotherEnum == nil ? [NSNull null] : arg_anotherEnum ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_anotherEnum == nil ? [NSNull null] : arg_anotherEnum] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync", - _messageChannelSuffix]; + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:nil - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:nil reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; } -- (void)echoAsyncString:(NSString *)arg_aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString", - _messageChannelSuffix]; +- (void)echoAsyncString:(NSString *)arg_aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aString ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_aString ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } @end -void SetUpFLTHostTrivialApi(id binaryMessenger, - NSObject *api) { +void SetUpFLTHostTrivialApi(id binaryMessenger, NSObject *api) { SetUpFLTHostTrivialApiWithSuffix(binaryMessenger, api, @""); } -void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger, - NSObject *api, - NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 - ? [NSString stringWithFormat:@".%@", messageChannelSuffix] - : @""; +void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger, NSObject *api, NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 ? [NSString stringWithFormat: @".%@", messageChannelSuffix] : @""; { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(noopWithError:)], - @"FLTHostTrivialApi api (%@) doesn't respond to @selector(noopWithError:)", api); + NSCAssert([api respondsToSelector:@selector(noopWithError:)], @"FLTHostTrivialApi api (%@) doesn't respond to @selector(noopWithError:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; [api noopWithError:&error]; @@ -6653,54 +5061,39 @@ void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger } } } -void SetUpFLTHostSmallApi(id binaryMessenger, - NSObject *api) { +void SetUpFLTHostSmallApi(id binaryMessenger, NSObject *api) { SetUpFLTHostSmallApiWithSuffix(binaryMessenger, api, @""); } -void SetUpFLTHostSmallApiWithSuffix(id binaryMessenger, - NSObject *api, - NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 - ? [NSString stringWithFormat:@".%@", messageChannelSuffix] - : @""; +void SetUpFLTHostSmallApiWithSuffix(id binaryMessenger, NSObject *api, NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 ? [NSString stringWithFormat: @".%@", messageChannelSuffix] : @""; { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString - stringWithFormat: - @"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoString:completion:)], - @"FLTHostSmallApi api (%@) doesn't respond to @selector(echoString:completion:)", - api); + NSCAssert([api respondsToSelector:@selector(echoString:completion:)], @"FLTHostSmallApi api (%@) doesn't respond to @selector(echoString:completion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoString:arg_aString - completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests." - @"HostSmallApi.voidVoid", - messageChannelSuffix] + FlutterBasicMessageChannel *channel = + [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid", messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(voidVoidWithCompletion:)], - @"FLTHostSmallApi api (%@) doesn't respond to @selector(voidVoidWithCompletion:)", - api); + NSCAssert([api respondsToSelector:@selector(voidVoidWithCompletion:)], @"FLTHostSmallApi api (%@) doesn't respond to @selector(voidVoidWithCompletion:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api voidVoidWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -6721,67 +5114,53 @@ @implementation FLTFlutterSmallApi - (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { return [self initWithBinaryMessenger:binaryMessenger messageChannelSuffix:@""]; } -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger - messageChannelSuffix:(nullable NSString *)messageChannelSuffix { +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger messageChannelSuffix:(nullable NSString*)messageChannelSuffix{ self = [self init]; if (self) { _binaryMessenger = binaryMessenger; - _messageChannelSuffix = [messageChannelSuffix length] == 0 - ? @"" - : [NSString stringWithFormat:@".%@", messageChannelSuffix]; + _messageChannelSuffix = [messageChannelSuffix length] == 0 ? @"" : [NSString stringWithFormat: @".%@", messageChannelSuffix]; } return self; } -- (void)echoWrappedList:(FLTTestMessage *)arg_msg - completion:(void (^)(FLTTestMessage *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat: - @"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList", - _messageChannelSuffix]; +- (void)echoWrappedList:(FLTTestMessage *)arg_msg completion:(void (^)(FLTTestMessage *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_msg ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - FLTTestMessage *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_msg ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + FLTTestMessage *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoString:(NSString *)arg_aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString - stringWithFormat:@"%@%@", - @"dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString", - _messageChannelSuffix]; +- (void)echoString:(NSString *)arg_aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString", _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[ arg_aString ?: [NSNull null] ] - reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] - message:reply[1] - details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel + messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[arg_aString ?: [NSNull null]] reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } @end + diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h index f9e257f06ce3..7dc733641802 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h @@ -46,8 +46,8 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @class FLTTestMessage; @interface FLTUnusedClass : NSObject -+ (instancetype)makeWithAField:(nullable id)aField; -@property(nonatomic, strong, nullable) id aField; ++ (instancetype)makeWithAField:(nullable id )aField; +@property(nonatomic, strong, nullable) id aField; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -56,133 +56,130 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @interface FLTAllTypes : NSObject /// `init` unavailable to enforce nonnull fields, see the `make` class method. - (instancetype)init NS_UNAVAILABLE; -+ (instancetype)makeWithABool:(BOOL)aBool - anInt:(NSInteger)anInt - anInt64:(NSInteger)anInt64 - aDouble:(double)aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(FLTAnEnum)anEnum - anotherEnum:(FLTAnotherEnum)anotherEnum - aString:(NSString *)aString - anObject:(id)anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - enumList:(NSArray *)enumList - objectList:(NSArray *)objectList - listList:(NSArray *> *)listList - mapList:(NSArray *> *)mapList - map:(NSDictionary *)map - stringMap:(NSDictionary *)stringMap - intMap:(NSDictionary *)intMap - enumMap:(NSDictionary *)enumMap - objectMap:(NSDictionary *)objectMap - listMap:(NSDictionary *> *)listMap - mapMap:(NSDictionary *> *)mapMap; -@property(nonatomic, assign) BOOL aBool; -@property(nonatomic, assign) NSInteger anInt; -@property(nonatomic, assign) NSInteger anInt64; -@property(nonatomic, assign) double aDouble; -@property(nonatomic, strong) FlutterStandardTypedData *aByteArray; -@property(nonatomic, strong) FlutterStandardTypedData *a4ByteArray; -@property(nonatomic, strong) FlutterStandardTypedData *a8ByteArray; -@property(nonatomic, strong) FlutterStandardTypedData *aFloatArray; ++ (instancetype)makeWithABool:(BOOL )aBool + anInt:(NSInteger )anInt + anInt64:(NSInteger )anInt64 + aDouble:(double )aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(FLTAnEnum)anEnum + anotherEnum:(FLTAnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id )anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + enumList:(NSArray *)enumList + objectList:(NSArray *)objectList + listList:(NSArray *> *)listList + mapList:(NSArray *> *)mapList + map:(NSDictionary *)map + stringMap:(NSDictionary *)stringMap + intMap:(NSDictionary *)intMap + enumMap:(NSDictionary *)enumMap + objectMap:(NSDictionary *)objectMap + listMap:(NSDictionary *> *)listMap + mapMap:(NSDictionary *> *)mapMap; +@property(nonatomic, assign) BOOL aBool; +@property(nonatomic, assign) NSInteger anInt; +@property(nonatomic, assign) NSInteger anInt64; +@property(nonatomic, assign) double aDouble; +@property(nonatomic, strong) FlutterStandardTypedData * aByteArray; +@property(nonatomic, strong) FlutterStandardTypedData * a4ByteArray; +@property(nonatomic, strong) FlutterStandardTypedData * a8ByteArray; +@property(nonatomic, strong) FlutterStandardTypedData * aFloatArray; @property(nonatomic, assign) FLTAnEnum anEnum; @property(nonatomic, assign) FLTAnotherEnum anotherEnum; -@property(nonatomic, copy) NSString *aString; -@property(nonatomic, strong) id anObject; -@property(nonatomic, copy) NSArray *list; -@property(nonatomic, copy) NSArray *stringList; -@property(nonatomic, copy) NSArray *intList; -@property(nonatomic, copy) NSArray *doubleList; -@property(nonatomic, copy) NSArray *boolList; -@property(nonatomic, copy) NSArray *enumList; -@property(nonatomic, copy) NSArray *objectList; -@property(nonatomic, copy) NSArray *> *listList; -@property(nonatomic, copy) NSArray *> *mapList; -@property(nonatomic, copy) NSDictionary *map; -@property(nonatomic, copy) NSDictionary *stringMap; -@property(nonatomic, copy) NSDictionary *intMap; -@property(nonatomic, copy) NSDictionary *enumMap; -@property(nonatomic, copy) NSDictionary *objectMap; -@property(nonatomic, copy) NSDictionary *> *listMap; -@property(nonatomic, copy) NSDictionary *> *mapMap; +@property(nonatomic, copy) NSString * aString; +@property(nonatomic, strong) id anObject; +@property(nonatomic, copy) NSArray * list; +@property(nonatomic, copy) NSArray * stringList; +@property(nonatomic, copy) NSArray * intList; +@property(nonatomic, copy) NSArray * doubleList; +@property(nonatomic, copy) NSArray * boolList; +@property(nonatomic, copy) NSArray * enumList; +@property(nonatomic, copy) NSArray * objectList; +@property(nonatomic, copy) NSArray *> * listList; +@property(nonatomic, copy) NSArray *> * mapList; +@property(nonatomic, copy) NSDictionary * map; +@property(nonatomic, copy) NSDictionary * stringMap; +@property(nonatomic, copy) NSDictionary * intMap; +@property(nonatomic, copy) NSDictionary * enumMap; +@property(nonatomic, copy) NSDictionary * objectMap; +@property(nonatomic, copy) NSDictionary *> * listMap; +@property(nonatomic, copy) NSDictionary *> * mapMap; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end /// A class containing all supported nullable types. @interface FLTAllNullableTypes : NSObject -+ (instancetype) - makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - recursiveClassList:(nullable NSArray *)recursiveClassList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap - recursiveClassMap: - (nullable NSDictionary *)recursiveClassMap; -@property(nonatomic, strong, nullable) NSNumber *aNullableBool; -@property(nonatomic, strong, nullable) NSNumber *aNullableInt; -@property(nonatomic, strong, nullable) NSNumber *aNullableInt64; -@property(nonatomic, strong, nullable) NSNumber *aNullableDouble; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable4ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable8ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableFloatArray; -@property(nonatomic, strong, nullable) FLTAnEnumBox *aNullableEnum; -@property(nonatomic, strong, nullable) FLTAnotherEnumBox *anotherNullableEnum; -@property(nonatomic, copy, nullable) NSString *aNullableString; -@property(nonatomic, strong, nullable) id aNullableObject; -@property(nonatomic, strong, nullable) FLTAllNullableTypes *allNullableTypes; -@property(nonatomic, copy, nullable) NSArray *list; -@property(nonatomic, copy, nullable) NSArray *stringList; -@property(nonatomic, copy, nullable) NSArray *intList; -@property(nonatomic, copy, nullable) NSArray *doubleList; -@property(nonatomic, copy, nullable) NSArray *boolList; -@property(nonatomic, copy, nullable) NSArray *enumList; -@property(nonatomic, copy, nullable) NSArray *objectList; -@property(nonatomic, copy, nullable) NSArray *> *listList; -@property(nonatomic, copy, nullable) NSArray *> *mapList; -@property(nonatomic, copy, nullable) NSArray *recursiveClassList; -@property(nonatomic, copy, nullable) NSDictionary *map; -@property(nonatomic, copy, nullable) NSDictionary *stringMap; -@property(nonatomic, copy, nullable) NSDictionary *intMap; -@property(nonatomic, copy, nullable) NSDictionary *enumMap; -@property(nonatomic, copy, nullable) NSDictionary *objectMap; -@property(nonatomic, copy, nullable) NSDictionary *> *listMap; -@property(nonatomic, copy, nullable) NSDictionary *> *mapMap; -@property(nonatomic, copy, nullable) - NSDictionary *recursiveClassMap; ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id )aNullableObject + allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + recursiveClassList:(nullable NSArray *)recursiveClassList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap + recursiveClassMap:(nullable NSDictionary *)recursiveClassMap; +@property(nonatomic, strong, nullable) NSNumber * aNullableBool; +@property(nonatomic, strong, nullable) NSNumber * aNullableInt; +@property(nonatomic, strong, nullable) NSNumber * aNullableInt64; +@property(nonatomic, strong, nullable) NSNumber * aNullableDouble; +@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullableByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullable4ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullable8ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullableFloatArray; +@property(nonatomic, strong, nullable) FLTAnEnumBox * aNullableEnum; +@property(nonatomic, strong, nullable) FLTAnotherEnumBox * anotherNullableEnum; +@property(nonatomic, copy, nullable) NSString * aNullableString; +@property(nonatomic, strong, nullable) id aNullableObject; +@property(nonatomic, strong, nullable) FLTAllNullableTypes * allNullableTypes; +@property(nonatomic, copy, nullable) NSArray * list; +@property(nonatomic, copy, nullable) NSArray * stringList; +@property(nonatomic, copy, nullable) NSArray * intList; +@property(nonatomic, copy, nullable) NSArray * doubleList; +@property(nonatomic, copy, nullable) NSArray * boolList; +@property(nonatomic, copy, nullable) NSArray * enumList; +@property(nonatomic, copy, nullable) NSArray * objectList; +@property(nonatomic, copy, nullable) NSArray *> * listList; +@property(nonatomic, copy, nullable) NSArray *> * mapList; +@property(nonatomic, copy, nullable) NSArray * recursiveClassList; +@property(nonatomic, copy, nullable) NSDictionary * map; +@property(nonatomic, copy, nullable) NSDictionary * stringMap; +@property(nonatomic, copy, nullable) NSDictionary * intMap; +@property(nonatomic, copy, nullable) NSDictionary * enumMap; +@property(nonatomic, copy, nullable) NSDictionary * objectMap; +@property(nonatomic, copy, nullable) NSDictionary *> * listMap; +@property(nonatomic, copy, nullable) NSDictionary *> * mapMap; +@property(nonatomic, copy, nullable) NSDictionary * recursiveClassMap; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -191,63 +188,62 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { /// with nullable items, as the primary [AllNullableTypes] class is being used to /// test Swift classes. @interface FLTAllNullableTypesWithoutRecursion : NSObject -+ (instancetype) - makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap; -@property(nonatomic, strong, nullable) NSNumber *aNullableBool; -@property(nonatomic, strong, nullable) NSNumber *aNullableInt; -@property(nonatomic, strong, nullable) NSNumber *aNullableInt64; -@property(nonatomic, strong, nullable) NSNumber *aNullableDouble; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable4ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable8ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableFloatArray; -@property(nonatomic, strong, nullable) FLTAnEnumBox *aNullableEnum; -@property(nonatomic, strong, nullable) FLTAnotherEnumBox *anotherNullableEnum; -@property(nonatomic, copy, nullable) NSString *aNullableString; -@property(nonatomic, strong, nullable) id aNullableObject; -@property(nonatomic, copy, nullable) NSArray *list; -@property(nonatomic, copy, nullable) NSArray *stringList; -@property(nonatomic, copy, nullable) NSArray *intList; -@property(nonatomic, copy, nullable) NSArray *doubleList; -@property(nonatomic, copy, nullable) NSArray *boolList; -@property(nonatomic, copy, nullable) NSArray *enumList; -@property(nonatomic, copy, nullable) NSArray *objectList; -@property(nonatomic, copy, nullable) NSArray *> *listList; -@property(nonatomic, copy, nullable) NSArray *> *mapList; -@property(nonatomic, copy, nullable) NSDictionary *map; -@property(nonatomic, copy, nullable) NSDictionary *stringMap; -@property(nonatomic, copy, nullable) NSDictionary *intMap; -@property(nonatomic, copy, nullable) NSDictionary *enumMap; -@property(nonatomic, copy, nullable) NSDictionary *objectMap; -@property(nonatomic, copy, nullable) NSDictionary *> *listMap; -@property(nonatomic, copy, nullable) NSDictionary *> *mapMap; ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id )aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap; +@property(nonatomic, strong, nullable) NSNumber * aNullableBool; +@property(nonatomic, strong, nullable) NSNumber * aNullableInt; +@property(nonatomic, strong, nullable) NSNumber * aNullableInt64; +@property(nonatomic, strong, nullable) NSNumber * aNullableDouble; +@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullableByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullable4ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullable8ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullableFloatArray; +@property(nonatomic, strong, nullable) FLTAnEnumBox * aNullableEnum; +@property(nonatomic, strong, nullable) FLTAnotherEnumBox * anotherNullableEnum; +@property(nonatomic, copy, nullable) NSString * aNullableString; +@property(nonatomic, strong, nullable) id aNullableObject; +@property(nonatomic, copy, nullable) NSArray * list; +@property(nonatomic, copy, nullable) NSArray * stringList; +@property(nonatomic, copy, nullable) NSArray * intList; +@property(nonatomic, copy, nullable) NSArray * doubleList; +@property(nonatomic, copy, nullable) NSArray * boolList; +@property(nonatomic, copy, nullable) NSArray * enumList; +@property(nonatomic, copy, nullable) NSArray * objectList; +@property(nonatomic, copy, nullable) NSArray *> * listList; +@property(nonatomic, copy, nullable) NSArray *> * mapList; +@property(nonatomic, copy, nullable) NSDictionary * map; +@property(nonatomic, copy, nullable) NSDictionary * stringMap; +@property(nonatomic, copy, nullable) NSDictionary * intMap; +@property(nonatomic, copy, nullable) NSDictionary * enumMap; +@property(nonatomic, copy, nullable) NSDictionary * objectMap; +@property(nonatomic, copy, nullable) NSDictionary *> * listMap; +@property(nonatomic, copy, nullable) NSDictionary *> * mapMap; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -260,28 +256,20 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @interface FLTAllClassesWrapper : NSObject /// `init` unavailable to enforce nonnull fields, see the `make` class method. - (instancetype)init NS_UNAVAILABLE; -+ (instancetype) - makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion: - (nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable FLTAllTypes *)allTypes - classList:(NSArray *)classList - nullableClassList: - (nullable NSArray *)nullableClassList - classMap:(NSDictionary *)classMap - nullableClassMap: - (nullable NSDictionary *) - nullableClassMap; -@property(nonatomic, strong) FLTAllNullableTypes *allNullableTypes; -@property(nonatomic, strong, nullable) - FLTAllNullableTypesWithoutRecursion *allNullableTypesWithoutRecursion; -@property(nonatomic, strong, nullable) FLTAllTypes *allTypes; -@property(nonatomic, copy) NSArray *classList; -@property(nonatomic, copy, nullable) - NSArray *nullableClassList; -@property(nonatomic, copy) NSDictionary *classMap; -@property(nonatomic, copy, nullable) - NSDictionary *nullableClassMap; ++ (instancetype)makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable FLTAllTypes *)allTypes + classList:(NSArray *)classList + nullableClassList:(nullable NSArray *)nullableClassList + classMap:(NSDictionary *)classMap + nullableClassMap:(nullable NSDictionary *)nullableClassMap; +@property(nonatomic, strong) FLTAllNullableTypes * allNullableTypes; +@property(nonatomic, strong, nullable) FLTAllNullableTypesWithoutRecursion * allNullableTypesWithoutRecursion; +@property(nonatomic, strong, nullable) FLTAllTypes * allTypes; +@property(nonatomic, copy) NSArray * classList; +@property(nonatomic, copy, nullable) NSArray * nullableClassList; +@property(nonatomic, copy) NSDictionary * classMap; +@property(nonatomic, copy, nullable) NSDictionary * nullableClassMap; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -289,7 +277,7 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { /// A data class containing a List, used in unit tests. @interface FLTTestMessage : NSObject + (instancetype)makeWithTestList:(nullable NSArray *)testList; -@property(nonatomic, copy, nullable) NSArray *testList; +@property(nonatomic, copy, nullable) NSArray * testList; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -306,8 +294,7 @@ NSObject *FLTGetCoreTestsCodec(void); /// Returns the passed object, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllTypes *)echoAllTypes:(FLTAllTypes *)everything - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllTypes *)echoAllTypes:(FLTAllTypes *)everything error:(FlutterError *_Nullable *_Nonnull)error; /// Returns an error, to test error handling. - (nullable id)throwErrorWithError:(FlutterError *_Nullable *_Nonnull)error; /// Returns an error from a void function, to test error handling. @@ -329,13 +316,11 @@ NSObject *FLTGetCoreTestsCodec(void); /// Returns the passed in string. /// /// @return `nil` only when `error != nil`. -- (nullable NSString *)echoString:(NSString *)aString - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)echoString:(NSString *)aString error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in Uint8List. /// /// @return `nil` only when `error != nil`. -- (nullable FlutterStandardTypedData *)echoUint8List:(FlutterStandardTypedData *)aUint8List - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FlutterStandardTypedData *)echoUint8List:(FlutterStandardTypedData *)aUint8List error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in generic Object. /// /// @return `nil` only when `error != nil`. @@ -343,370 +328,236 @@ NSObject *FLTGetCoreTestsCodec(void); /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoList:(NSArray *)list - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoList:(NSArray *)list error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoEnumList:(NSArray *)enumList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoEnumList:(NSArray *)enumList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoClassList: - (NSArray *)classList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoClassList:(NSArray *)classList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoNonNullEnumList:(NSArray *)enumList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNonNullEnumList:(NSArray *)enumList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *) - echoNonNullClassList:(NSArray *)classList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNonNullClassList:(NSArray *)classList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoMap:(NSDictionary *)map - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoMap:(NSDictionary *)map error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoStringMap:(NSDictionary *)stringMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoStringMap:(NSDictionary *)stringMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoIntMap:(NSDictionary *)intMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoIntMap:(NSDictionary *)intMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoEnumMap:(NSDictionary *)enumMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoEnumMap:(NSDictionary *)enumMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoClassMap:(NSDictionary *)classMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoClassMap:(NSDictionary *)classMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoNonNullStringMap:(NSDictionary *)stringMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNonNullStringMap:(NSDictionary *)stringMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoNonNullIntMap:(NSDictionary *)intMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNonNullIntMap:(NSDictionary *)intMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoNonNullEnumMap:(NSDictionary *)enumMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNonNullEnumMap:(NSDictionary *)enumMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *) - echoNonNullClassMap:(NSDictionary *)classMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNonNullClassMap:(NSDictionary *)classMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed class to test nested class serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllClassesWrapper *)echoClassWrapper:(FLTAllClassesWrapper *)wrapper - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllClassesWrapper *)echoClassWrapper:(FLTAllClassesWrapper *)wrapper error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed enum to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (FLTAnEnumBox *_Nullable)echoEnum:(FLTAnEnum)anEnum - error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnEnumBox *_Nullable)echoEnum:(FLTAnEnum)anEnum error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed enum to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (FLTAnotherEnumBox *_Nullable)echoAnotherEnum:(FLTAnotherEnum)anotherEnum - error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnotherEnumBox *_Nullable)echoAnotherEnum:(FLTAnotherEnum)anotherEnum error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the default string. /// /// @return `nil` only when `error != nil`. -- (nullable NSString *)echoNamedDefaultString:(NSString *)aString - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)echoNamedDefaultString:(NSString *)aString error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in double. /// /// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoOptionalDefaultDouble:(double)aDouble - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoOptionalDefaultDouble:(double)aDouble error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in int. /// /// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoRequiredInt:(NSInteger)anInt - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoRequiredInt:(NSInteger)anInt error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the result of platform-side equality check. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)areAllNullableTypesEqualA:(FLTAllNullableTypes *)a b:(FLTAllNullableTypes *)b error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the platform-side hash code for the given object. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *)getAllNullableTypesHashValue:(FLTAllNullableTypes *)value error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed object, to test serialization and deserialization. -- (nullable FLTAllNullableTypes *)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllNullableTypes *)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed object, to test serialization and deserialization. -- (nullable FLTAllNullableTypesWithoutRecursion *) - echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllNullableTypesWithoutRecursion *)echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. -- (nullable NSString *)extractNestedNullableStringFrom:(FLTAllClassesWrapper *)wrapper - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)extractNestedNullableStringFrom:(FLTAllClassesWrapper *)wrapper error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllClassesWrapper *) - createNestedObjectWithNullableString:(nullable NSString *)nullableString - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllClassesWrapper *)createNestedObjectWithNullableString:(nullable NSString *)nullableString error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in arguments of multiple types. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllNullableTypes *) - sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllNullableTypes *)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in arguments of multiple types. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllNullableTypesWithoutRecursion *) - sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllNullableTypesWithoutRecursion *)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in int. -- (nullable NSNumber *)echoNullableInt:(nullable NSNumber *)aNullableInt - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoNullableInt:(nullable NSNumber *)aNullableInt error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in double. -- (nullable NSNumber *)echoNullableDouble:(nullable NSNumber *)aNullableDouble - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoNullableDouble:(nullable NSNumber *)aNullableDouble error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in boolean. -- (nullable NSNumber *)echoNullableBool:(nullable NSNumber *)aNullableBool - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoNullableBool:(nullable NSNumber *)aNullableBool error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in string. -- (nullable NSString *)echoNullableString:(nullable NSString *)aNullableString - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)echoNullableString:(nullable NSString *)aNullableString error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in Uint8List. -- (nullable FlutterStandardTypedData *) - echoNullableUint8List:(nullable FlutterStandardTypedData *)aNullableUint8List - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FlutterStandardTypedData *)echoNullableUint8List:(nullable FlutterStandardTypedData *)aNullableUint8List error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in generic Object. -- (nullable id)echoNullableObject:(nullable id)aNullableObject - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable id)echoNullableObject:(nullable id)aNullableObject error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableList:(nullable NSArray *)aNullableList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNullableList:(nullable NSArray *)aNullableList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableEnumList: - (nullable NSArray *)enumList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNullableEnumList:(nullable NSArray *)enumList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *) - echoNullableClassList:(nullable NSArray *)classList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNullableClassList:(nullable NSArray *)classList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *) - echoNullableNonNullEnumList:(nullable NSArray *)enumList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNullableNonNullEnumList:(nullable NSArray *)enumList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *) - echoNullableNonNullClassList:(nullable NSArray *)classList - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNullableNonNullClassList:(nullable NSArray *)classList error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableMap:(nullable NSDictionary *)map - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableMap:(nullable NSDictionary *)map error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableStringMap:(nullable NSDictionary *)stringMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableStringMap:(nullable NSDictionary *)stringMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableIntMap:(nullable NSDictionary *)intMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableIntMap:(nullable NSDictionary *)intMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableEnumMap:(nullable NSDictionary *)enumMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableEnumMap:(nullable NSDictionary *)enumMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableClassMap:(nullable NSDictionary *)classMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableClassMap:(nullable NSDictionary *)classMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableNonNullIntMap:(nullable NSDictionary *)intMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableNonNullIntMap:(nullable NSDictionary *)intMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *) - echoNullableNonNullClassMap:(nullable NSDictionary *)classMap - error:(FlutterError *_Nullable *_Nonnull)error; -- (FLTAnEnumBox *_Nullable)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed - error:(FlutterError *_Nullable *_Nonnull)error; -- (FLTAnotherEnumBox *_Nullable)echoAnotherNullableEnum: - (nullable FLTAnotherEnumBox *)anotherEnumBoxed - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableNonNullClassMap:(nullable NSDictionary *)classMap error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnEnumBox *_Nullable)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnotherEnumBox *_Nullable)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in int. -- (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in string. -- (nullable NSString *)echoNamedNullableString:(nullable NSString *)aNullableString - error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)echoNamedNullableString:(nullable NSString *)aNullableString error:(FlutterError *_Nullable *_Nonnull)error; /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; /// Returns passed in int asynchronously. -- (void)echoAsyncInt:(NSInteger)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncInt:(NSInteger)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns passed in double asynchronously. -- (void)echoAsyncDouble:(double)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncDouble:(double)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in boolean asynchronously. -- (void)echoAsyncBool:(BOOL)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncBool:(BOOL)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed string asynchronously. -- (void)echoAsyncString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in Uint8List asynchronously. -- (void)echoAsyncUint8List:(FlutterStandardTypedData *)aUint8List - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncUint8List:(FlutterStandardTypedData *)aUint8List completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in generic Object asynchronously. -- (void)echoAsyncObject:(id)anObject - completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncObject:(id)anObject completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncList:(NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncList:(NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnumList:(NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncMap:(NSDictionary *)map - completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncMap:(NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncClassMap:(NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnum:(FLTAnEnum)anEnum - completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAnotherAsyncEnum:(FLTAnotherEnum)anotherEnum - completion: - (void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAnotherAsyncEnum:(FLTAnotherEnum)anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Responds with an error from an async function returning a value. - (void)throwAsyncErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Responds with an error from an async void function. - (void)throwAsyncErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; /// Responds with a Flutter error from an async function returning a value. -- (void)throwAsyncFlutterErrorWithCompletion:(void (^)(id _Nullable, - FlutterError *_Nullable))completion; +- (void)throwAsyncFlutterErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Returns the passed object, to test async serialization and deserialization. -- (void)echoAsyncAllTypes:(FLTAllTypes *)everything - completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncAllTypes:(FLTAllTypes *)everything completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAsyncNullableAllNullableTypes:(nullable FLTAllNullableTypes *)everything - completion:(void (^)(FLTAllNullableTypes *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableAllNullableTypes:(nullable FLTAllNullableTypes *)everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAsyncNullableAllNullableTypesWithoutRecursion: - (nullable FLTAllNullableTypesWithoutRecursion *)everything - completion: - (void (^)(FLTAllNullableTypesWithoutRecursion - *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; /// Returns passed in int asynchronously. -- (void)echoAsyncNullableInt:(nullable NSNumber *)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableInt:(nullable NSNumber *)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns passed in double asynchronously. -- (void)echoAsyncNullableDouble:(nullable NSNumber *)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableDouble:(nullable NSNumber *)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in boolean asynchronously. -- (void)echoAsyncNullableBool:(nullable NSNumber *)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableBool:(nullable NSNumber *)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed string asynchronously. -- (void)echoAsyncNullableString:(nullable NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableString:(nullable NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in Uint8List asynchronously. -- (void)echoAsyncNullableUint8List:(nullable FlutterStandardTypedData *)aUint8List - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableUint8List:(nullable FlutterStandardTypedData *)aUint8List completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in generic Object asynchronously. -- (void)echoAsyncNullableObject:(nullable id)anObject - completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableObject:(nullable id)anObject completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableList:(nullable NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableList:(nullable NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableMap:(nullable NSDictionary *)map - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableMap:(nullable NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableStringMap:(nullable NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableIntMap:(nullable NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnumMap:(nullable NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void) - echoAsyncNullableClassMap:(nullable NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAsyncNullableClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed - completion: - (void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAnotherAsyncNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed - completion:(void (^)(FLTAnotherEnumBox *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAnotherAsyncNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. /// @@ -716,194 +567,70 @@ NSObject *FLTGetCoreTestsCodec(void); /// true for any platform with TaskQueue support. /// /// @return `nil` only when `error != nil`. -- (nullable NSNumber *)taskQueueIsBackgroundThreadWithError: - (FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)taskQueueIsBackgroundThreadWithError:(FlutterError *_Nullable *_Nonnull)error; - (void)callFlutterNoopWithCompletion:(void (^)(FlutterError *_Nullable))completion; -- (void)callFlutterThrowErrorWithCompletion:(void (^)(id _Nullable, - FlutterError *_Nullable))completion; +- (void)callFlutterThrowErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; - (void)callFlutterThrowErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; -- (void)callFlutterEchoAllTypes:(FLTAllTypes *)everything - completion: - (void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAllNullableTypes:(nullable FLTAllNullableTypes *)everything - completion:(void (^)(FLTAllNullableTypes *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterSendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - completion:(void (^)(FLTAllNullableTypes *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoAllNullableTypesWithoutRecursion: - (nullable FLTAllNullableTypesWithoutRecursion *)everything - completion: - (void (^)( - FLTAllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion; -- (void) - callFlutterSendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - completion: - (void (^)(FLTAllNullableTypesWithoutRecursion - *_Nullable, - FlutterError *_Nullable)) - completion; -- (void)callFlutterEchoBool:(BOOL)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoInt:(NSInteger)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoDouble:(double)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoUint8List:(FlutterStandardTypedData *)list - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoList:(NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnumList:(NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullEnumList:(NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoMap:(NSDictionary *)map - completion: - (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoClassMap:(NSDictionary *)classMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullEnumMap:(NSDictionary *)enumMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void) - callFlutterEchoNonNullClassMap:(NSDictionary *)classMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnum:(FLTAnEnum)anEnum - completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAnotherEnum:(FLTAnotherEnum)anotherEnum - completion:(void (^)(FLTAnotherEnumBox *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableBool:(nullable NSNumber *)aBool - completion: - (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableInt:(nullable NSNumber *)anInt - completion: - (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableDouble:(nullable NSNumber *)aDouble - completion: - (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableString:(nullable NSString *)aString - completion: - (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableUint8List:(nullable FlutterStandardTypedData *)list - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableList:(nullable NSArray *)list - completion: - (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableMap:(nullable NSDictionary *)map - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableStringMap:(nullable NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableIntMap:(nullable NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnumMap: - (nullable NSDictionary *)enumMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void) - callFlutterEchoNullableClassMap: - (nullable NSDictionary *)classMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullStringMap: - (nullable NSDictionary *)stringMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullIntMap:(nullable NSDictionary *)intMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullEnumMap: - (nullable NSDictionary *)enumMap - completion: - (void (^)( - NSDictionary *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullClassMap: - (nullable NSDictionary *)classMap - completion: - (void (^)(NSDictionary - *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed - completion: - (void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed - completion:(void (^)(FLTAnotherEnumBox *_Nullable, - FlutterError *_Nullable))completion; -- (void)callFlutterSmallApiEchoString:(NSString *)aString - completion: - (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAllTypes:(FLTAllTypes *)everything completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAllNullableTypes:(nullable FLTAllNullableTypes *)everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterSendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterSendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoBool:(BOOL)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoInt:(NSInteger)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoDouble:(double)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoUint8List:(FlutterStandardTypedData *)list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoList:(NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoMap:(NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherEnum:(FLTAnotherEnum)anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableBool:(nullable NSNumber *)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableInt:(nullable NSNumber *)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableDouble:(nullable NSNumber *)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableString:(nullable NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableUint8List:(nullable FlutterStandardTypedData *)list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableList:(nullable NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableMap:(nullable NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterSmallApiEchoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; @end -extern void SetUpFLTHostIntegrationCoreApi(id binaryMessenger, - NSObject *_Nullable api); +extern void SetUpFLTHostIntegrationCoreApi(id binaryMessenger, NSObject *_Nullable api); + +extern void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryMessenger, NSObject *_Nullable api, NSString *messageChannelSuffix); -extern void SetUpFLTHostIntegrationCoreApiWithSuffix( - id binaryMessenger, NSObject *_Nullable api, - NSString *messageChannelSuffix); /// The core interface that the Dart platform_test code implements for host /// integration tests to call into. @interface FLTFlutterIntegrationCoreApi : NSObject - (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger - messageChannelSuffix:(nullable NSString *)messageChannelSuffix; +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger messageChannelSuffix:(nullable NSString *)messageChannelSuffix; /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - (void)noopWithCompletion:(void (^)(FlutterError *_Nullable))completion; @@ -912,235 +639,138 @@ extern void SetUpFLTHostIntegrationCoreApiWithSuffix( /// Responds with an error from an async void function. - (void)throwErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAllTypes:(FLTAllTypes *)everything - completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAllTypes:(FLTAllTypes *)everything completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything - completion: - (void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. -- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - completion:(void (^)(FLTAllNullableTypes *_Nullable, - FlutterError *_Nullable))completion; +- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void) - echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything - completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. -- (void)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool - anInt:(nullable NSNumber *)aNullableInt - aString:(nullable NSString *)aNullableString - completion: - (void (^)( - FLTAllNullableTypesWithoutRecursion *_Nullable, - FlutterError *_Nullable))completion; +- (void)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed boolean, to test serialization and deserialization. -- (void)echoBool:(BOOL)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoBool:(BOOL)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed int, to test serialization and deserialization. -- (void)echoInt:(NSInteger)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoInt:(NSInteger)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed double, to test serialization and deserialization. -- (void)echoDouble:(double)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoDouble:(double)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed string, to test serialization and deserialization. -- (void)echoString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed byte list, to test serialization and deserialization. -- (void)echoUint8List:(FlutterStandardTypedData *)list - completion: - (void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; +- (void)echoUint8List:(FlutterStandardTypedData *)list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoList:(NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoList:(NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoEnumList:(NSArray *)enumList - completion: - (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNonNullEnumList:(NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNonNullEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNonNullClassList:(NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNonNullClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoMap:(NSDictionary *)map - completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoMap:(NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoClassMap:(NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullStringMap:(NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNonNullStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullIntMap:(NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNonNullIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullEnumMap:(NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNonNullEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullClassMap:(NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNonNullClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum to test serialization and deserialization. -- (void)echoEnum:(FLTAnEnum)anEnum - completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum to test serialization and deserialization. -- (void)echoAnotherEnum:(FLTAnotherEnum)anotherEnum - completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAnotherEnum:(FLTAnotherEnum)anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed boolean, to test serialization and deserialization. -- (void)echoNullableBool:(nullable NSNumber *)aBool - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableBool:(nullable NSNumber *)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed int, to test serialization and deserialization. -- (void)echoNullableInt:(nullable NSNumber *)anInt - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableInt:(nullable NSNumber *)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed double, to test serialization and deserialization. -- (void)echoNullableDouble:(nullable NSNumber *)aDouble - completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableDouble:(nullable NSNumber *)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed string, to test serialization and deserialization. -- (void)echoNullableString:(nullable NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableString:(nullable NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed byte list, to test serialization and deserialization. -- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)list - completion:(void (^)(FlutterStandardTypedData *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableList:(nullable NSArray *)list - completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableList:(nullable NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableNonNullEnumList:(nullable NSArray *)enumList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableNonNullEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableNonNullClassList:(nullable NSArray *)classList - completion:(void (^)(NSArray *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableNonNullClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableMap:(nullable NSDictionary *)map - completion: - (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableMap:(nullable NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableStringMap:(nullable NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableIntMap:(nullable NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableEnumMap:(nullable NSDictionary *)enumMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableClassMap:(nullable NSDictionary *)classMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)intMap - completion:(void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullClassMap: - (nullable NSDictionary *)classMap - completion: - (void (^)(NSDictionary *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoNullableNonNullClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum to test serialization and deserialization. -- (void)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed - completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum to test serialization and deserialization. -- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed - completion:(void (^)(FLTAnotherEnumBox *_Nullable, - FlutterError *_Nullable))completion; +- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; /// Returns the passed in generic Object asynchronously. -- (void)echoAsyncString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; @end + /// An API that can be implemented for minimal, compile-only tests. @protocol FLTHostTrivialApi - (void)noopWithError:(FlutterError *_Nullable *_Nonnull)error; @end -extern void SetUpFLTHostTrivialApi(id binaryMessenger, - NSObject *_Nullable api); +extern void SetUpFLTHostTrivialApi(id binaryMessenger, NSObject *_Nullable api); + +extern void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger, NSObject *_Nullable api, NSString *messageChannelSuffix); -extern void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger, - NSObject *_Nullable api, - NSString *messageChannelSuffix); /// A simple API implemented in some unit tests. @protocol FLTHostSmallApi -- (void)echoString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; - (void)voidVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; @end -extern void SetUpFLTHostSmallApi(id binaryMessenger, - NSObject *_Nullable api); +extern void SetUpFLTHostSmallApi(id binaryMessenger, NSObject *_Nullable api); + +extern void SetUpFLTHostSmallApiWithSuffix(id binaryMessenger, NSObject *_Nullable api, NSString *messageChannelSuffix); -extern void SetUpFLTHostSmallApiWithSuffix(id binaryMessenger, - NSObject *_Nullable api, - NSString *messageChannelSuffix); /// A simple API called in some unit tests. @interface FLTFlutterSmallApi : NSObject - (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger - messageChannelSuffix:(nullable NSString *)messageChannelSuffix; -- (void)echoWrappedList:(FLTTestMessage *)msg - completion:(void (^)(FLTTestMessage *_Nullable, FlutterError *_Nullable))completion; -- (void)echoString:(NSString *)aString - completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger messageChannelSuffix:(nullable NSString *)messageChannelSuffix; +- (void)echoWrappedList:(FLTTestMessage *)msg completion:(void (^)(FLTTestMessage *_Nullable, FlutterError *_Nullable))completion; +- (void)echoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; @end NS_ASSUME_NONNULL_END diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart index aedbf2da1644..7ea0c00dd683 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart @@ -1024,6 +1024,34 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final String? receivedNullString = await api.echoNamedNullableString(); expect(receivedNullString, null); }); + + testWidgets('Signed zero equality and hashing', (WidgetTester _) async { + final api = HostIntegrationCoreApi(); + + final a = AllNullableTypes(aNullableDouble: 0.0); + final b = AllNullableTypes(aNullableDouble: -0.0); + + expect(await api.areAllNullableTypesEqual(a, b), isTrue); + final int hashA = await api.getAllNullableTypesHash(a); + final int hashB = await api.getAllNullableTypesHash(b); + expect( + hashA, + hashB, + reason: 'Hash codes for 0.0 and -0.0 should be equal', + ); + }); + + testWidgets('NaN equality and hashing', (WidgetTester _) async { + final api = HostIntegrationCoreApi(); + + final a = AllNullableTypes(aNullableDouble: double.nan); + final b = AllNullableTypes(aNullableDouble: double.nan); + + expect(await api.areAllNullableTypesEqual(a, b), isTrue); + final int hashA = await api.getAllNullableTypesHash(a); + final int hashB = await api.getAllNullableTypesHash(b); + expect(hashA, hashB, reason: 'Hash codes for two NaNs should be equal'); + }); }); group('Host async API tests', () { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart new file mode 100644 index 000000000000..f7f8a2508e0c --- /dev/null +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart @@ -0,0 +1,442 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// Autogenerated from Pigeon (v26.2.0), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, omit_obvious_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +Object? _extractReplyValueOrThrow( + List? replyList, + String channelName, { + required bool isNullValid, +}) { + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel: "$channelName".', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (!isNullValid && (replyList.isNotEmpty && replyList[0] == null)) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } + return replyList.firstOrNull; +} + + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { + if (empty) { + return []; + } + if (error == null) { + return [result]; + } + return [error.code, error.message, error.details]; +} +bool _deepEquals(Object? a, Object? b) { + if (identical(a, b)) { + return true; + } + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + } + if (a is List && b is List) { + return a.length == b.length && + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + } + if (a is Map && b is Map) { + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; + } + return a == b; +} + +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } + if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += _deepHash(entry.key) ^ _deepHash(entry.value); + } + return result; + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } + return value.hashCode; +} + + +/// This comment is to test enum documentation comments. +/// +/// This comment also tests multiple line comments. +/// +/// //////////////////////// +/// This comment also tests comments that start with '/' +/// //////////////////////// +enum MessageRequestState { + pending, + success, + failure, +} + +/// This comment is to test class documentation comments. +/// +/// This comment also tests multiple line comments. +class MessageSearchRequest { + MessageSearchRequest({ + this.query, + this.anInt, + this.aBool, + }); + + /// This comment is to test field documentation comments. + String? query; + + /// This comment is to test field documentation comments. + int? anInt; + + /// This comment is to test field documentation comments. + bool? aBool; + + List _toList() { + return [ + query, + anInt, + aBool, + ]; + } + + Object encode() { + return _toList(); } + + static MessageSearchRequest decode(Object result) { + result as List; + return MessageSearchRequest( + query: result[0] as String?, + anInt: result[1] as int?, + aBool: result[2] as bool?, + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! MessageSearchRequest || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(query, other.query) && _deepEquals(anInt, other.anInt) && _deepEquals(aBool, other.aBool); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// This comment is to test class documentation comments. +class MessageSearchReply { + MessageSearchReply({ + this.result, + this.error, + this.state, + }); + + /// This comment is to test field documentation comments. + /// + /// This comment also tests multiple line comments. + String? result; + + /// This comment is to test field documentation comments. + String? error; + + /// This comment is to test field documentation comments. + MessageRequestState? state; + + List _toList() { + return [ + result, + error, + state, + ]; + } + + Object encode() { + return _toList(); } + + static MessageSearchReply decode(Object result) { + result as List; + return MessageSearchReply( + result: result[0] as String?, + error: result[1] as String?, + state: result[2] as MessageRequestState?, + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! MessageSearchReply || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(result, other.result) && _deepEquals(error, other.error) && _deepEquals(state, other.state); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// This comment is to test class documentation comments. +class MessageNested { + MessageNested({ + this.request, + }); + + /// This comment is to test field documentation comments. + MessageSearchRequest? request; + + List _toList() { + return [ + request, + ]; + } + + Object encode() { + return _toList(); } + + static MessageNested decode(Object result) { + result as List; + return MessageNested( + request: result[0] as MessageSearchRequest?, + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! MessageNested || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(request, other.request); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + + +class _PigeonCodec extends StandardMessageCodec { + const _PigeonCodec(); + @override + void writeValue(WriteBuffer buffer, Object? value) { + if (value is int) { + buffer.putUint8(4); + buffer.putInt64(value); + } else if (value is MessageRequestState) { + buffer.putUint8(129); + writeValue(buffer, value.index); + } else if (value is MessageSearchRequest) { + buffer.putUint8(130); + writeValue(buffer, value.encode()); + } else if (value is MessageSearchReply) { + buffer.putUint8(131); + writeValue(buffer, value.encode()); + } else if (value is MessageNested) { + buffer.putUint8(132); + writeValue(buffer, value.encode()); + } else { + super.writeValue(buffer, value); + } + } + + @override + Object? readValueOfType(int type, ReadBuffer buffer) { + switch (type) { + case 129: + final value = readValue(buffer) as int?; + return value == null ? null : MessageRequestState.values[value]; + case 130: + return MessageSearchRequest.decode(readValue(buffer)!); + case 131: + return MessageSearchReply.decode(readValue(buffer)!); + case 132: + return MessageNested.decode(readValue(buffer)!); + default: + return super.readValueOfType(type, buffer); + } + } +} + +/// This comment is to test api documentation comments. +/// +/// This comment also tests multiple line comments. +class MessageApi { + /// Constructor for [MessageApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + MessageApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + final BinaryMessenger? pigeonVar_binaryMessenger; + + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + final String pigeonVar_messageChannelSuffix; + + /// This comment is to test documentation comments. + /// + /// This comment also tests multiple line comments. + Future initialize() async { + final pigeonVar_channelName = 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + } + + /// This comment is to test method documentation comments. + Future search(MessageSearchRequest request) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + final Object pigeonVar_replyValue = _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return pigeonVar_replyValue as MessageSearchReply; + } +} + +/// This comment is to test api documentation comments. +class MessageNestedApi { + /// Constructor for [MessageNestedApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + MessageNestedApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + final BinaryMessenger? pigeonVar_binaryMessenger; + + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + final String pigeonVar_messageChannelSuffix; + + /// This comment is to test method documentation comments. + /// + /// This comment also tests multiple line comments. + Future search(MessageNested nested) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([nested]); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + final Object pigeonVar_replyValue = _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return pigeonVar_replyValue as MessageSearchReply; + } +} + +/// This comment is to test api documentation comments. +abstract class MessageFlutterSearchApi { + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// This comment is to test method documentation comments. + MessageSearchReply search(MessageSearchRequest request); + + static void setUp(MessageFlutterSearchApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null.'); + final List args = (message as List?)!; + final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); + assert(arg_request != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.'); + try { + final MessageSearchReply output = api.search(arg_request!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 1492f83500b4..c0829a9fe8f3 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,11 +37,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -50,7 +47,6 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -62,9 +58,8 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -97,29 +92,46 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } -enum AnEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } -enum AnotherEnum { justInCase } +enum AnEnum { + one, + two, + three, + fortyTwo, + fourHundredTwentyTwo, +} + +enum AnotherEnum { + justInCase, +} class UnusedClass { - UnusedClass({this.aField}); + UnusedClass({ + this.aField, + }); Object? aField; List _toList() { - return [aField]; + return [ + aField, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static UnusedClass decode(Object result) { result as List; - return UnusedClass(aField: result[0]); + return UnusedClass( + aField: result[0], + ); } @override @@ -262,8 +274,7 @@ class AllTypes { } Object encode() { - return _toList(); - } + return _toList(); } static AllTypes decode(Object result) { result as List; @@ -294,10 +305,8 @@ class AllTypes { intMap: (result[23] as Map?)!.cast(), enumMap: (result[24] as Map?)!.cast(), objectMap: (result[25] as Map?)!.cast(), - listMap: (result[26] as Map?)! - .cast>(), - mapMap: (result[27] as Map?)! - .cast>(), + listMap: (result[26] as Map?)!.cast>(), + mapMap: (result[27] as Map?)!.cast>(), ); } @@ -310,34 +319,7 @@ class AllTypes { if (identical(this, other)) { return true; } - return _deepEquals(aBool, other.aBool) && - _deepEquals(anInt, other.anInt) && - _deepEquals(anInt64, other.anInt64) && - _deepEquals(aDouble, other.aDouble) && - _deepEquals(aByteArray, other.aByteArray) && - _deepEquals(a4ByteArray, other.a4ByteArray) && - _deepEquals(a8ByteArray, other.a8ByteArray) && - _deepEquals(aFloatArray, other.aFloatArray) && - _deepEquals(anEnum, other.anEnum) && - _deepEquals(anotherEnum, other.anotherEnum) && - _deepEquals(aString, other.aString) && - _deepEquals(anObject, other.anObject) && - _deepEquals(list, other.list) && - _deepEquals(stringList, other.stringList) && - _deepEquals(intList, other.intList) && - _deepEquals(doubleList, other.doubleList) && - _deepEquals(boolList, other.boolList) && - _deepEquals(enumList, other.enumList) && - _deepEquals(objectList, other.objectList) && - _deepEquals(listList, other.listList) && - _deepEquals(mapList, other.mapList) && - _deepEquals(map, other.map) && - _deepEquals(stringMap, other.stringMap) && - _deepEquals(intMap, other.intMap) && - _deepEquals(enumMap, other.enumMap) && - _deepEquals(objectMap, other.objectMap) && - _deepEquals(listMap, other.listMap) && - _deepEquals(mapMap, other.mapMap); + return _deepEquals(aBool, other.aBool) && _deepEquals(anInt, other.anInt) && _deepEquals(anInt64, other.anInt64) && _deepEquals(aDouble, other.aDouble) && _deepEquals(aByteArray, other.aByteArray) && _deepEquals(a4ByteArray, other.a4ByteArray) && _deepEquals(a8ByteArray, other.a8ByteArray) && _deepEquals(aFloatArray, other.aFloatArray) && _deepEquals(anEnum, other.anEnum) && _deepEquals(anotherEnum, other.anotherEnum) && _deepEquals(aString, other.aString) && _deepEquals(anObject, other.anObject) && _deepEquals(list, other.list) && _deepEquals(stringList, other.stringList) && _deepEquals(intList, other.intList) && _deepEquals(doubleList, other.doubleList) && _deepEquals(boolList, other.boolList) && _deepEquals(enumList, other.enumList) && _deepEquals(objectList, other.objectList) && _deepEquals(listList, other.listList) && _deepEquals(mapList, other.mapList) && _deepEquals(map, other.map) && _deepEquals(stringMap, other.stringMap) && _deepEquals(intMap, other.intMap) && _deepEquals(enumMap, other.enumMap) && _deepEquals(objectMap, other.objectMap) && _deepEquals(listMap, other.listMap) && _deepEquals(mapMap, other.mapMap); } @override @@ -480,8 +462,7 @@ class AllNullableTypes { } Object encode() { - return _toList(); - } + return _toList(); } static AllNullableTypes decode(Object result) { result as List; @@ -508,21 +489,15 @@ class AllNullableTypes { objectList: (result[19] as List?)?.cast(), listList: (result[20] as List?)?.cast?>(), mapList: (result[21] as List?)?.cast?>(), - recursiveClassList: (result[22] as List?) - ?.cast(), + recursiveClassList: (result[22] as List?)?.cast(), map: result[23] as Map?, - stringMap: (result[24] as Map?) - ?.cast(), + stringMap: (result[24] as Map?)?.cast(), intMap: (result[25] as Map?)?.cast(), enumMap: (result[26] as Map?)?.cast(), - objectMap: (result[27] as Map?) - ?.cast(), - listMap: (result[28] as Map?) - ?.cast?>(), - mapMap: (result[29] as Map?) - ?.cast?>(), - recursiveClassMap: (result[30] as Map?) - ?.cast(), + objectMap: (result[27] as Map?)?.cast(), + listMap: (result[28] as Map?)?.cast?>(), + mapMap: (result[29] as Map?)?.cast?>(), + recursiveClassMap: (result[30] as Map?)?.cast(), ); } @@ -535,37 +510,7 @@ class AllNullableTypes { if (identical(this, other)) { return true; } - return _deepEquals(aNullableBool, other.aNullableBool) && - _deepEquals(aNullableInt, other.aNullableInt) && - _deepEquals(aNullableInt64, other.aNullableInt64) && - _deepEquals(aNullableDouble, other.aNullableDouble) && - _deepEquals(aNullableByteArray, other.aNullableByteArray) && - _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && - _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && - _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && - _deepEquals(aNullableEnum, other.aNullableEnum) && - _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && - _deepEquals(aNullableString, other.aNullableString) && - _deepEquals(aNullableObject, other.aNullableObject) && - _deepEquals(allNullableTypes, other.allNullableTypes) && - _deepEquals(list, other.list) && - _deepEquals(stringList, other.stringList) && - _deepEquals(intList, other.intList) && - _deepEquals(doubleList, other.doubleList) && - _deepEquals(boolList, other.boolList) && - _deepEquals(enumList, other.enumList) && - _deepEquals(objectList, other.objectList) && - _deepEquals(listList, other.listList) && - _deepEquals(mapList, other.mapList) && - _deepEquals(recursiveClassList, other.recursiveClassList) && - _deepEquals(map, other.map) && - _deepEquals(stringMap, other.stringMap) && - _deepEquals(intMap, other.intMap) && - _deepEquals(enumMap, other.enumMap) && - _deepEquals(objectMap, other.objectMap) && - _deepEquals(listMap, other.listMap) && - _deepEquals(mapMap, other.mapMap) && - _deepEquals(recursiveClassMap, other.recursiveClassMap); + return _deepEquals(aNullableBool, other.aNullableBool) && _deepEquals(aNullableInt, other.aNullableInt) && _deepEquals(aNullableInt64, other.aNullableInt64) && _deepEquals(aNullableDouble, other.aNullableDouble) && _deepEquals(aNullableByteArray, other.aNullableByteArray) && _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && _deepEquals(aNullableEnum, other.aNullableEnum) && _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && _deepEquals(aNullableString, other.aNullableString) && _deepEquals(aNullableObject, other.aNullableObject) && _deepEquals(allNullableTypes, other.allNullableTypes) && _deepEquals(list, other.list) && _deepEquals(stringList, other.stringList) && _deepEquals(intList, other.intList) && _deepEquals(doubleList, other.doubleList) && _deepEquals(boolList, other.boolList) && _deepEquals(enumList, other.enumList) && _deepEquals(objectList, other.objectList) && _deepEquals(listList, other.listList) && _deepEquals(mapList, other.mapList) && _deepEquals(recursiveClassList, other.recursiveClassList) && _deepEquals(map, other.map) && _deepEquals(stringMap, other.stringMap) && _deepEquals(intMap, other.intMap) && _deepEquals(enumMap, other.enumMap) && _deepEquals(objectMap, other.objectMap) && _deepEquals(listMap, other.listMap) && _deepEquals(mapMap, other.mapMap) && _deepEquals(recursiveClassMap, other.recursiveClassMap); } @override @@ -698,8 +643,7 @@ class AllNullableTypesWithoutRecursion { } Object encode() { - return _toList(); - } + return _toList(); } static AllNullableTypesWithoutRecursion decode(Object result) { result as List; @@ -726,57 +670,25 @@ class AllNullableTypesWithoutRecursion { listList: (result[19] as List?)?.cast?>(), mapList: (result[20] as List?)?.cast?>(), map: result[21] as Map?, - stringMap: (result[22] as Map?) - ?.cast(), + stringMap: (result[22] as Map?)?.cast(), intMap: (result[23] as Map?)?.cast(), enumMap: (result[24] as Map?)?.cast(), - objectMap: (result[25] as Map?) - ?.cast(), - listMap: (result[26] as Map?) - ?.cast?>(), - mapMap: (result[27] as Map?) - ?.cast?>(), + objectMap: (result[25] as Map?)?.cast(), + listMap: (result[26] as Map?)?.cast?>(), + mapMap: (result[27] as Map?)?.cast?>(), ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! AllNullableTypesWithoutRecursion || - other.runtimeType != runtimeType) { + if (other is! AllNullableTypesWithoutRecursion || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(aNullableBool, other.aNullableBool) && - _deepEquals(aNullableInt, other.aNullableInt) && - _deepEquals(aNullableInt64, other.aNullableInt64) && - _deepEquals(aNullableDouble, other.aNullableDouble) && - _deepEquals(aNullableByteArray, other.aNullableByteArray) && - _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && - _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && - _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && - _deepEquals(aNullableEnum, other.aNullableEnum) && - _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && - _deepEquals(aNullableString, other.aNullableString) && - _deepEquals(aNullableObject, other.aNullableObject) && - _deepEquals(list, other.list) && - _deepEquals(stringList, other.stringList) && - _deepEquals(intList, other.intList) && - _deepEquals(doubleList, other.doubleList) && - _deepEquals(boolList, other.boolList) && - _deepEquals(enumList, other.enumList) && - _deepEquals(objectList, other.objectList) && - _deepEquals(listList, other.listList) && - _deepEquals(mapList, other.mapList) && - _deepEquals(map, other.map) && - _deepEquals(stringMap, other.stringMap) && - _deepEquals(intMap, other.intMap) && - _deepEquals(enumMap, other.enumMap) && - _deepEquals(objectMap, other.objectMap) && - _deepEquals(listMap, other.listMap) && - _deepEquals(mapMap, other.mapMap); + return _deepEquals(aNullableBool, other.aNullableBool) && _deepEquals(aNullableInt, other.aNullableInt) && _deepEquals(aNullableInt64, other.aNullableInt64) && _deepEquals(aNullableDouble, other.aNullableDouble) && _deepEquals(aNullableByteArray, other.aNullableByteArray) && _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && _deepEquals(aNullableEnum, other.aNullableEnum) && _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && _deepEquals(aNullableString, other.aNullableString) && _deepEquals(aNullableObject, other.aNullableObject) && _deepEquals(list, other.list) && _deepEquals(stringList, other.stringList) && _deepEquals(intList, other.intList) && _deepEquals(doubleList, other.doubleList) && _deepEquals(boolList, other.boolList) && _deepEquals(enumList, other.enumList) && _deepEquals(objectList, other.objectList) && _deepEquals(listList, other.listList) && _deepEquals(mapList, other.mapList) && _deepEquals(map, other.map) && _deepEquals(stringMap, other.stringMap) && _deepEquals(intMap, other.intMap) && _deepEquals(enumMap, other.enumMap) && _deepEquals(objectMap, other.objectMap) && _deepEquals(listMap, other.listMap) && _deepEquals(mapMap, other.mapMap); } @override @@ -827,22 +739,18 @@ class AllClassesWrapper { } Object encode() { - return _toList(); - } + return _toList(); } static AllClassesWrapper decode(Object result) { result as List; return AllClassesWrapper( allNullableTypes: result[0]! as AllNullableTypes, - allNullableTypesWithoutRecursion: - result[1] as AllNullableTypesWithoutRecursion?, + allNullableTypesWithoutRecursion: result[1] as AllNullableTypesWithoutRecursion?, allTypes: result[2] as AllTypes?, classList: (result[3] as List?)!.cast(), - nullableClassList: (result[4] as List?) - ?.cast(), + nullableClassList: (result[4] as List?)?.cast(), classMap: (result[5] as Map?)!.cast(), - nullableClassMap: (result[6] as Map?) - ?.cast(), + nullableClassMap: (result[6] as Map?)?.cast(), ); } @@ -855,16 +763,7 @@ class AllClassesWrapper { if (identical(this, other)) { return true; } - return _deepEquals(allNullableTypes, other.allNullableTypes) && - _deepEquals( - allNullableTypesWithoutRecursion, - other.allNullableTypesWithoutRecursion, - ) && - _deepEquals(allTypes, other.allTypes) && - _deepEquals(classList, other.classList) && - _deepEquals(nullableClassList, other.nullableClassList) && - _deepEquals(classMap, other.classMap) && - _deepEquals(nullableClassMap, other.nullableClassMap); + return _deepEquals(allNullableTypes, other.allNullableTypes) && _deepEquals(allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && _deepEquals(allTypes, other.allTypes) && _deepEquals(classList, other.classList) && _deepEquals(nullableClassList, other.nullableClassList) && _deepEquals(classMap, other.classMap) && _deepEquals(nullableClassMap, other.nullableClassMap); } @override @@ -874,21 +773,26 @@ class AllClassesWrapper { /// A data class containing a List, used in unit tests. class TestMessage { - TestMessage({this.testList}); + TestMessage({ + this.testList, + }); List? testList; List _toList() { - return [testList]; + return [ + testList, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static TestMessage decode(Object result) { result as List; - return TestMessage(testList: result[0] as List?); + return TestMessage( + testList: result[0] as List?, + ); } @override @@ -908,6 +812,7 @@ class TestMessage { int get hashCode => _deepHash([runtimeType, ..._toList()]); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -915,28 +820,28 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is AnEnum) { + } else if (value is AnEnum) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is AnotherEnum) { + } else if (value is AnotherEnum) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is UnusedClass) { + } else if (value is UnusedClass) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is AllTypes) { + } else if (value is AllTypes) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is AllNullableTypes) { + } else if (value is AllNullableTypes) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is AllNullableTypesWithoutRecursion) { + } else if (value is AllNullableTypesWithoutRecursion) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is AllClassesWrapper) { + } else if (value is AllClassesWrapper) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is TestMessage) { + } else if (value is TestMessage) { buffer.putUint8(136); writeValue(buffer, value.encode()); } else { @@ -977,13 +882,9 @@ class HostIntegrationCoreApi { /// Constructor for [HostIntegrationCoreApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - HostIntegrationCoreApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + HostIntegrationCoreApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -993,8 +894,7 @@ class HostIntegrationCoreApi { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. Future noop() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -1004,38 +904,36 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } /// Returns the passed object, to test serialization and deserialization. Future echoAllTypes(AllTypes everything) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllTypes; } /// Returns an error, to test error handling. Future throwError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -1045,17 +943,17 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue; } /// Returns an error from a void function, to test error handling. Future throwErrorFromVoid() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -1065,16 +963,16 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } /// Returns a Flutter error, to test error handling. Future throwFlutterError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -1084,1320 +982,1178 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue; } /// Returns passed in int. Future echoInt(int anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as int; } /// Returns passed in double. Future echoDouble(double aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as double; } /// Returns the passed in boolean. Future echoBool(bool aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as bool; } /// Returns the passed in string. Future echoString(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as String; } /// Returns the passed in Uint8List. Future echoUint8List(Uint8List aUint8List) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aUint8List], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as Uint8List; } /// Returns the passed in generic Object. Future echoObject(Object anObject) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anObject], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anObject]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue; } /// Returns the passed list, to test serialization and deserialization. Future> echoList(List list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test serialization and deserialization. Future> echoEnumList(List enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test serialization and deserialization. - Future> echoClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$pigeonVar_messageChannelSuffix'; + Future> echoClassList(List classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test serialization and deserialization. Future> echoNonNullEnumList(List enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test serialization and deserialization. - Future> echoNonNullClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$pigeonVar_messageChannelSuffix'; + Future> echoNonNullClassList(List classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed map, to test serialization and deserialization. Future> echoMap(Map map) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$pigeonVar_messageChannelSuffix'; + Future> echoStringMap(Map stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. Future> echoIntMap(Map intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$pigeonVar_messageChannelSuffix'; + Future> echoEnumMap(Map enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$pigeonVar_messageChannelSuffix'; + Future> echoClassMap(Map classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$pigeonVar_messageChannelSuffix'; + Future> echoNonNullStringMap(Map stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. Future> echoNonNullIntMap(Map intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$pigeonVar_messageChannelSuffix'; + Future> echoNonNullEnumMap(Map enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$pigeonVar_messageChannelSuffix'; + Future> echoNonNullClassMap(Map classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed class to test nested class serialization and deserialization. Future echoClassWrapper(AllClassesWrapper wrapper) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [wrapper], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([wrapper]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllClassesWrapper; } /// Returns the passed enum to test serialization and deserialization. Future echoEnum(AnEnum anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AnEnum; } /// Returns the passed enum to test serialization and deserialization. Future echoAnotherEnum(AnotherEnum anotherEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AnotherEnum; } /// Returns the default string. Future echoNamedDefaultString({String aString = 'default'}) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as String; } /// Returns passed in double. Future echoOptionalDefaultDouble([double aDouble = 3.14]) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as double; } /// Returns passed in int. Future echoRequiredInt({required int anInt}) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + final Object pigeonVar_replyValue = _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return pigeonVar_replyValue as int; + } + + /// Returns the result of platform-side equality check. + Future areAllNullableTypesEqual(AllNullableTypes a, AllNullableTypes b) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([a, b]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return pigeonVar_replyValue as bool; + } + + /// Returns the platform-side hash code for the given object. + Future getAllNullableTypesHash(AllNullableTypes value) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, - isNullValid: false, - )!; + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + final Object pigeonVar_replyValue = _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as int; } /// Returns the passed object, to test serialization and deserialization. - Future echoAllNullableTypes( - AllNullableTypes? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; + Future echoAllNullableTypes(AllNullableTypes? everything) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AllNullableTypes?; } /// Returns the passed object, to test serialization and deserialization. - Future - echoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future echoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AllNullableTypesWithoutRecursion?; } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. Future extractNestedNullableString(AllClassesWrapper wrapper) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [wrapper], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([wrapper]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as String?; } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - Future createNestedNullableString( - String? nullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; + Future createNestedNullableString(String? nullableString) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [nullableString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([nullableString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllClassesWrapper; } /// Returns passed in arguments of multiple types. - Future sendMultipleNullableTypes( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + Future sendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool, aNullableInt, aNullableString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllNullableTypes; } /// Returns passed in arguments of multiple types. - Future - sendMultipleNullableTypesWithoutRecursion( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool, aNullableInt, aNullableString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllNullableTypesWithoutRecursion; } /// Returns passed in int. Future echoNullableInt(int? aNullableInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableInt], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as int?; } /// Returns passed in double. Future echoNullableDouble(double? aNullableDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableDouble], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as double?; } /// Returns the passed in boolean. Future echoNullableBool(bool? aNullableBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as bool?; } /// Returns the passed in string. Future echoNullableString(String? aNullableString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as String?; } /// Returns the passed in Uint8List. - Future echoNullableUint8List( - Uint8List? aNullableUint8List, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; + Future echoNullableUint8List(Uint8List? aNullableUint8List) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableUint8List], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as Uint8List?; } /// Returns the passed in generic Object. Future echoNullableObject(Object? aNullableObject) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableObject], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableObject]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue; } /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableList(List? aNullableList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableEnumList(List? enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$pigeonVar_messageChannelSuffix'; + Future?> echoNullableClassList(List? classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableNonNullEnumList( - List? enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullEnumList(List? enumList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableNonNullClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullClassList(List? classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableMap( - Map? map, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableMap(Map? map) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableStringMap(Map? stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. Future?> echoNullableIntMap(Map? intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableEnumMap(Map? enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableClassMap(Map? classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullStringMap(Map? stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullIntMap( - Map? intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullIntMap(Map? intMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullEnumMap(Map? enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullClassMap(Map? classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } Future echoNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AnEnum?; } Future echoAnotherNullableEnum(AnotherEnum? anotherEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AnotherEnum?; } /// Returns passed in int. Future echoOptionalNullableInt([int? aNullableInt]) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableInt], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as int?; } /// Returns the passed in string. Future echoNamedNullableString({String? aNullableString}) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as String?; } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. Future noopAsync() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2407,380 +2163,336 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } /// Returns passed in int asynchronously. Future echoAsyncInt(int anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as int; } /// Returns passed in double asynchronously. Future echoAsyncDouble(double aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as double; } /// Returns the passed in boolean asynchronously. Future echoAsyncBool(bool aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as bool; } /// Returns the passed string asynchronously. Future echoAsyncString(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as String; } /// Returns the passed in Uint8List asynchronously. Future echoAsyncUint8List(Uint8List aUint8List) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aUint8List], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as Uint8List; } /// Returns the passed in generic Object asynchronously. Future echoAsyncObject(Object anObject) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anObject], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anObject]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue; } /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncList(List list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncEnumList(List enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future> echoAsyncClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$pigeonVar_messageChannelSuffix'; + Future> echoAsyncClassList(List classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncMap(Map map) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$pigeonVar_messageChannelSuffix'; + Future> echoAsyncStringMap(Map stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncIntMap(Map intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$pigeonVar_messageChannelSuffix'; + Future> echoAsyncEnumMap(Map enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$pigeonVar_messageChannelSuffix'; + Future> echoAsyncClassMap(Map classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncEnum(AnEnum anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AnEnum; } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAnotherAsyncEnum(AnotherEnum anotherEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AnotherEnum; } /// Responds with an error from an async function returning a value. Future throwAsyncError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2790,17 +2502,17 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue; } /// Responds with an error from an async void function. Future throwAsyncErrorFromVoid() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2810,16 +2522,16 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } /// Responds with a Flutter error from an async function returning a value. Future throwAsyncFlutterError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2829,461 +2541,398 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue; } /// Returns the passed object, to test async serialization and deserialization. Future echoAsyncAllTypes(AllTypes everything) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllTypes; } /// Returns the passed object, to test serialization and deserialization. - Future echoAsyncNullableAllNullableTypes( - AllNullableTypes? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; + Future echoAsyncNullableAllNullableTypes(AllNullableTypes? everything) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AllNullableTypes?; } /// Returns the passed object, to test serialization and deserialization. - Future - echoAsyncNullableAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future echoAsyncNullableAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AllNullableTypesWithoutRecursion?; } /// Returns passed in int asynchronously. Future echoAsyncNullableInt(int? anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as int?; } /// Returns passed in double asynchronously. Future echoAsyncNullableDouble(double? aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as double?; } /// Returns the passed in boolean asynchronously. Future echoAsyncNullableBool(bool? aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as bool?; } /// Returns the passed string asynchronously. Future echoAsyncNullableString(String? aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as String?; } /// Returns the passed in Uint8List asynchronously. Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aUint8List], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as Uint8List?; } /// Returns the passed in generic Object asynchronously. Future echoAsyncNullableObject(Object? anObject) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anObject], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anObject]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue; } /// Returns the passed list, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableList(List? list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableEnumList( - List? enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableEnumList(List? enumList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableClassList(List? classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableMap( - Map? map, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableMap(Map? map) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableStringMap(Map? stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableIntMap( - Map? intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableIntMap(Map? intMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableEnumMap(Map? enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableClassMap(Map? classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AnEnum?; } /// Returns the passed enum, to test asynchronous serialization and deserialization. - Future echoAnotherAsyncNullableEnum( - AnotherEnum? anotherEnum, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + Future echoAnotherAsyncNullableEnum(AnotherEnum? anotherEnum) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AnotherEnum?; } /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. Future defaultIsMainThread() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -3293,18 +2942,18 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as bool; } /// Returns true if the handler is run on a non-main thread, which should be /// true for any platform with TaskQueue support. Future taskQueueIsBackgroundThread() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -3314,16 +2963,16 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as bool; } Future callFlutterNoop() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -3333,15 +2982,15 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } Future callFlutterThrowError() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -3351,16 +3000,16 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue; } Future callFlutterThrowErrorFromVoid() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -3370,1099 +3019,922 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } Future callFlutterEchoAllTypes(AllTypes everything) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllTypes; } - Future callFlutterEchoAllNullableTypes( - AllNullableTypes? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; + Future callFlutterEchoAllNullableTypes(AllNullableTypes? everything) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AllNullableTypes?; } - Future callFlutterSendMultipleNullableTypes( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + Future callFlutterSendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool, aNullableInt, aNullableString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllNullableTypes; } - Future - callFlutterEchoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future callFlutterEchoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [everything], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AllNullableTypesWithoutRecursion?; } - Future - callFlutterSendMultipleNullableTypesWithoutRecursion( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future callFlutterSendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aNullableBool, aNullableInt, aNullableString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AllNullableTypesWithoutRecursion; } Future callFlutterEchoBool(bool aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as bool; } Future callFlutterEchoInt(int anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as int; } Future callFlutterEchoDouble(double aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as double; } Future callFlutterEchoString(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as String; } Future callFlutterEchoUint8List(Uint8List list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as Uint8List; } Future> callFlutterEchoList(List list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } Future> callFlutterEchoEnumList(List enumList) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } - Future> callFlutterEchoClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoClassList(List classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } - Future> callFlutterEchoNonNullEnumList( - List enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullEnumList(List enumList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } - Future> callFlutterEchoNonNullClassList( - List classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullClassList(List classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } - Future> callFlutterEchoMap( - Map map, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoMap(Map map) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoStringMap(Map stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } Future> callFlutterEchoIntMap(Map intMap) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoEnumMap(Map enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoClassMap(Map classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoNonNullStringMap( - Map stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullStringMap(Map stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoNonNullIntMap( - Map intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullIntMap(Map intMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoNonNullEnumMap( - Map enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullEnumMap(Map enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoNonNullClassMap( - Map classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullClassMap(Map classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } Future callFlutterEchoEnum(AnEnum anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AnEnum; } - Future callFlutterEchoAnotherEnum( - AnotherEnum anotherEnum, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; + Future callFlutterEchoAnotherEnum(AnotherEnum anotherEnum) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as AnotherEnum; } Future callFlutterEchoNullableBool(bool? aBool) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aBool], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as bool?; } Future callFlutterEchoNullableInt(int? anInt) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anInt], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as int?; } Future callFlutterEchoNullableDouble(double? aDouble) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aDouble], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as double?; } Future callFlutterEchoNullableString(String? aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as String?; } Future callFlutterEchoNullableUint8List(Uint8List? list) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as Uint8List?; } - Future?> callFlutterEchoNullableList( - List? list, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableList(List? list) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [list], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableEnumList( - List? enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableEnumList(List? enumList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableClassList(List? classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableNonNullEnumList( - List? enumList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullEnumList(List? enumList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableNonNullClassList( - List? classList, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullClassList(List? classList) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classList], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableMap( - Map? map, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableMap(Map? map) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [map], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableStringMap(Map? stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableIntMap( - Map? intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableIntMap(Map? intMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableEnumMap(Map? enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableClassMap(Map? classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableNonNullStringMap( - Map? stringMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullStringMap(Map? stringMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [stringMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableNonNullIntMap( - Map? intMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullIntMap(Map? intMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [intMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableNonNullEnumMap( - Map? enumMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullEnumMap(Map? enumMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enumMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableNonNullClassMap( - Map? classMap, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullClassMap(Map? classMap) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [classMap], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - return (pigeonVar_replyValue as Map?) - ?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; + return (pigeonVar_replyValue as Map?)?.cast(); } Future callFlutterEchoNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AnEnum?; } - Future callFlutterEchoAnotherNullableEnum( - AnotherEnum? anotherEnum, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + Future callFlutterEchoAnotherNullableEnum(AnotherEnum? anotherEnum) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [anotherEnum], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as AnotherEnum?; } Future callFlutterSmallApiEchoString(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as String; } } @@ -4491,25 +3963,15 @@ abstract class FlutterIntegrationCoreApi { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - AllNullableTypes sendMultipleNullableTypes( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ); + AllNullableTypes sendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString); /// Returns the passed object, to test serialization and deserialization. - AllNullableTypesWithoutRecursion? echoAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? everything, - ); + AllNullableTypesWithoutRecursion? echoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything); /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( - bool? aNullableBool, - int? aNullableInt, - String? aNullableString, - ); + AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString); /// Returns the passed boolean, to test serialization and deserialization. bool echoBool(bool aBool); @@ -4554,9 +4016,7 @@ abstract class FlutterIntegrationCoreApi { Map echoEnumMap(Map enumMap); /// Returns the passed map, to test serialization and deserialization. - Map echoClassMap( - Map classMap, - ); + Map echoClassMap(Map classMap); /// Returns the passed map, to test serialization and deserialization. Map echoNonNullStringMap(Map stringMap); @@ -4568,9 +4028,7 @@ abstract class FlutterIntegrationCoreApi { Map echoNonNullEnumMap(Map enumMap); /// Returns the passed map, to test serialization and deserialization. - Map echoNonNullClassMap( - Map classMap, - ); + Map echoNonNullClassMap(Map classMap); /// Returns the passed enum to test serialization and deserialization. AnEnum echoEnum(AnEnum anEnum); @@ -4600,25 +4058,19 @@ abstract class FlutterIntegrationCoreApi { List? echoNullableEnumList(List? enumList); /// Returns the passed list, to test serialization and deserialization. - List? echoNullableClassList( - List? classList, - ); + List? echoNullableClassList(List? classList); /// Returns the passed list, to test serialization and deserialization. List? echoNullableNonNullEnumList(List? enumList); /// Returns the passed list, to test serialization and deserialization. - List? echoNullableNonNullClassList( - List? classList, - ); + List? echoNullableNonNullClassList(List? classList); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableMap(Map? map); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableStringMap( - Map? stringMap, - ); + Map? echoNullableStringMap(Map? stringMap); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableIntMap(Map? intMap); @@ -4627,14 +4079,10 @@ abstract class FlutterIntegrationCoreApi { Map? echoNullableEnumMap(Map? enumMap); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableClassMap( - Map? classMap, - ); + Map? echoNullableClassMap(Map? classMap); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullStringMap( - Map? stringMap, - ); + Map? echoNullableNonNullStringMap(Map? stringMap); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableNonNullIntMap(Map? intMap); @@ -4643,9 +4091,7 @@ abstract class FlutterIntegrationCoreApi { Map? echoNullableNonNullEnumMap(Map? enumMap); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullClassMap( - Map? classMap, - ); + Map? echoNullableNonNullClassMap(Map? classMap); /// Returns the passed enum to test serialization and deserialization. AnEnum? echoNullableEnum(AnEnum? anEnum); @@ -4660,20 +4106,12 @@ abstract class FlutterIntegrationCoreApi { /// Returns the passed in generic Object asynchronously. Future echoAsyncString(String aString); - static void setUp( - FlutterIntegrationCoreApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(FlutterIntegrationCoreApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -4683,20 +4121,16 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -4706,20 +4140,16 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -4729,918 +4159,668 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null.'); final List args = (message as List?)!; final AllTypes? arg_everything = (args[0] as AllTypes?); - assert( - arg_everything != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null, expected non-null AllTypes.', - ); + assert(arg_everything != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null, expected non-null AllTypes.'); try { final AllTypes output = api.echoAllTypes(arg_everything!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes was null.'); final List args = (message as List?)!; - final AllNullableTypes? arg_everything = - (args[0] as AllNullableTypes?); + final AllNullableTypes? arg_everything = (args[0] as AllNullableTypes?); try { - final AllNullableTypes? output = api.echoAllNullableTypes( - arg_everything, - ); + final AllNullableTypes? output = api.echoAllNullableTypes(arg_everything); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.'); final List args = (message as List?)!; final bool? arg_aNullableBool = (args[0] as bool?); final int? arg_aNullableInt = (args[1] as int?); final String? arg_aNullableString = (args[2] as String?); try { - final AllNullableTypes output = api.sendMultipleNullableTypes( - arg_aNullableBool, - arg_aNullableInt, - arg_aNullableString, - ); + final AllNullableTypes output = api.sendMultipleNullableTypes(arg_aNullableBool, arg_aNullableInt, arg_aNullableString); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.'); final List args = (message as List?)!; - final AllNullableTypesWithoutRecursion? arg_everything = - (args[0] as AllNullableTypesWithoutRecursion?); + final AllNullableTypesWithoutRecursion? arg_everything = (args[0] as AllNullableTypesWithoutRecursion?); try { - final AllNullableTypesWithoutRecursion? output = api - .echoAllNullableTypesWithoutRecursion(arg_everything); + final AllNullableTypesWithoutRecursion? output = api.echoAllNullableTypesWithoutRecursion(arg_everything); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.'); final List args = (message as List?)!; final bool? arg_aNullableBool = (args[0] as bool?); final int? arg_aNullableInt = (args[1] as int?); final String? arg_aNullableString = (args[2] as String?); try { - final AllNullableTypesWithoutRecursion output = api - .sendMultipleNullableTypesWithoutRecursion( - arg_aNullableBool, - arg_aNullableInt, - arg_aNullableString, - ); + final AllNullableTypesWithoutRecursion output = api.sendMultipleNullableTypesWithoutRecursion(arg_aNullableBool, arg_aNullableInt, arg_aNullableString); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null.'); final List args = (message as List?)!; final bool? arg_aBool = (args[0] as bool?); - assert( - arg_aBool != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null, expected non-null bool.', - ); + assert(arg_aBool != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null, expected non-null bool.'); try { final bool output = api.echoBool(arg_aBool!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null.'); final List args = (message as List?)!; final int? arg_anInt = (args[0] as int?); - assert( - arg_anInt != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null, expected non-null int.', - ); + assert(arg_anInt != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null, expected non-null int.'); try { final int output = api.echoInt(arg_anInt!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null.'); final List args = (message as List?)!; final double? arg_aDouble = (args[0] as double?); - assert( - arg_aDouble != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null, expected non-null double.', - ); + assert(arg_aDouble != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null, expected non-null double.'); try { final double output = api.echoDouble(arg_aDouble!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null.'); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); - assert( - arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null, expected non-null String.', - ); + assert(arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null, expected non-null String.'); try { final String output = api.echoString(arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null.'); final List args = (message as List?)!; final Uint8List? arg_list = (args[0] as Uint8List?); - assert( - arg_list != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null, expected non-null Uint8List.', - ); + assert(arg_list != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null, expected non-null Uint8List.'); try { final Uint8List output = api.echoUint8List(arg_list!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null.'); final List args = (message as List?)!; - final List? arg_list = (args[0] as List?) - ?.cast(); - assert( - arg_list != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null, expected non-null List.', - ); + final List? arg_list = (args[0] as List?)?.cast(); + assert(arg_list != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null, expected non-null List.'); try { final List output = api.echoList(arg_list!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null.'); final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?) - ?.cast(); - assert( - arg_enumList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null, expected non-null List.', - ); + final List? arg_enumList = (args[0] as List?)?.cast(); + assert(arg_enumList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null, expected non-null List.'); try { final List output = api.echoEnumList(arg_enumList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null.'); final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); - assert( - arg_classList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null, expected non-null List.', - ); + final List? arg_classList = (args[0] as List?)?.cast(); + assert(arg_classList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null, expected non-null List.'); try { - final List output = api.echoClassList( - arg_classList!, - ); + final List output = api.echoClassList(arg_classList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null.'); final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?) - ?.cast(); - assert( - arg_enumList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null, expected non-null List.', - ); + final List? arg_enumList = (args[0] as List?)?.cast(); + assert(arg_enumList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null, expected non-null List.'); try { final List output = api.echoNonNullEnumList(arg_enumList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null.'); final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); - assert( - arg_classList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null, expected non-null List.', - ); + final List? arg_classList = (args[0] as List?)?.cast(); + assert(arg_classList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null, expected non-null List.'); try { - final List output = api.echoNonNullClassList( - arg_classList!, - ); + final List output = api.echoNonNullClassList(arg_classList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null.'); final List args = (message as List?)!; - final Map? arg_map = - (args[0] as Map?)?.cast(); - assert( - arg_map != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null, expected non-null Map.', - ); + final Map? arg_map = (args[0] as Map?)?.cast(); + assert(arg_map != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null, expected non-null Map.'); try { final Map output = api.echoMap(arg_map!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null.'); final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); - assert( - arg_stringMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null, expected non-null Map.', - ); + final Map? arg_stringMap = (args[0] as Map?)?.cast(); + assert(arg_stringMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null, expected non-null Map.'); try { - final Map output = api.echoStringMap( - arg_stringMap!, - ); + final Map output = api.echoStringMap(arg_stringMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null.'); final List args = (message as List?)!; - final Map? arg_intMap = - (args[0] as Map?)?.cast(); - assert( - arg_intMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null, expected non-null Map.', - ); + final Map? arg_intMap = (args[0] as Map?)?.cast(); + assert(arg_intMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null, expected non-null Map.'); try { final Map output = api.echoIntMap(arg_intMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null.'); final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); - assert( - arg_enumMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null, expected non-null Map.', - ); + final Map? arg_enumMap = (args[0] as Map?)?.cast(); + assert(arg_enumMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null, expected non-null Map.'); try { final Map output = api.echoEnumMap(arg_enumMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null.'); final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); - assert( - arg_classMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null, expected non-null Map.', - ); + final Map? arg_classMap = (args[0] as Map?)?.cast(); + assert(arg_classMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null, expected non-null Map.'); try { - final Map output = api.echoClassMap( - arg_classMap!, - ); + final Map output = api.echoClassMap(arg_classMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null.'); final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); - assert( - arg_stringMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null, expected non-null Map.', - ); + final Map? arg_stringMap = (args[0] as Map?)?.cast(); + assert(arg_stringMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null, expected non-null Map.'); try { - final Map output = api.echoNonNullStringMap( - arg_stringMap!, - ); + final Map output = api.echoNonNullStringMap(arg_stringMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null.'); final List args = (message as List?)!; - final Map? arg_intMap = (args[0] as Map?) - ?.cast(); - assert( - arg_intMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null, expected non-null Map.', - ); + final Map? arg_intMap = (args[0] as Map?)?.cast(); + assert(arg_intMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null, expected non-null Map.'); try { final Map output = api.echoNonNullIntMap(arg_intMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null.'); final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); - assert( - arg_enumMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null, expected non-null Map.', - ); + final Map? arg_enumMap = (args[0] as Map?)?.cast(); + assert(arg_enumMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null, expected non-null Map.'); try { - final Map output = api.echoNonNullEnumMap( - arg_enumMap!, - ); + final Map output = api.echoNonNullEnumMap(arg_enumMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null.'); final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); - assert( - arg_classMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null, expected non-null Map.', - ); + final Map? arg_classMap = (args[0] as Map?)?.cast(); + assert(arg_classMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null, expected non-null Map.'); try { - final Map output = api.echoNonNullClassMap( - arg_classMap!, - ); + final Map output = api.echoNonNullClassMap(arg_classMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null.'); final List args = (message as List?)!; final AnEnum? arg_anEnum = (args[0] as AnEnum?); - assert( - arg_anEnum != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null, expected non-null AnEnum.', - ); + assert(arg_anEnum != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null, expected non-null AnEnum.'); try { final AnEnum output = api.echoEnum(arg_anEnum!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.'); final List args = (message as List?)!; final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); - assert( - arg_anotherEnum != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null, expected non-null AnotherEnum.', - ); + assert(arg_anotherEnum != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null, expected non-null AnotherEnum.'); try { final AnotherEnum output = api.echoAnotherEnum(arg_anotherEnum!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool was null.'); final List args = (message as List?)!; final bool? arg_aBool = (args[0] as bool?); try { @@ -5648,28 +4828,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt was null.'); final List args = (message as List?)!; final int? arg_anInt = (args[0] as int?); try { @@ -5677,28 +4851,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble was null.'); final List args = (message as List?)!; final double? arg_aDouble = (args[0] as double?); try { @@ -5706,28 +4874,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString was null.'); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); try { @@ -5735,28 +4897,22 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List was null.'); final List args = (message as List?)!; final Uint8List? arg_list = (args[0] as Uint8List?); try { @@ -5764,468 +4920,344 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList was null.'); final List args = (message as List?)!; - final List? arg_list = (args[0] as List?) - ?.cast(); + final List? arg_list = (args[0] as List?)?.cast(); try { final List? output = api.echoNullableList(arg_list); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList was null.'); final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?) - ?.cast(); + final List? arg_enumList = (args[0] as List?)?.cast(); try { - final List? output = api.echoNullableEnumList( - arg_enumList, - ); + final List? output = api.echoNullableEnumList(arg_enumList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList was null.'); final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); + final List? arg_classList = (args[0] as List?)?.cast(); try { - final List? output = api.echoNullableClassList( - arg_classList, - ); + final List? output = api.echoNullableClassList(arg_classList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList was null.'); final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?) - ?.cast(); + final List? arg_enumList = (args[0] as List?)?.cast(); try { - final List? output = api.echoNullableNonNullEnumList( - arg_enumList, - ); + final List? output = api.echoNullableNonNullEnumList(arg_enumList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList was null.'); final List args = (message as List?)!; - final List? arg_classList = - (args[0] as List?)?.cast(); + final List? arg_classList = (args[0] as List?)?.cast(); try { - final List? output = api - .echoNullableNonNullClassList(arg_classList); + final List? output = api.echoNullableNonNullClassList(arg_classList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap was null.'); final List args = (message as List?)!; - final Map? arg_map = - (args[0] as Map?)?.cast(); + final Map? arg_map = (args[0] as Map?)?.cast(); try { final Map? output = api.echoNullableMap(arg_map); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap was null.'); final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); + final Map? arg_stringMap = (args[0] as Map?)?.cast(); try { - final Map? output = api.echoNullableStringMap( - arg_stringMap, - ); + final Map? output = api.echoNullableStringMap(arg_stringMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap was null.'); final List args = (message as List?)!; - final Map? arg_intMap = - (args[0] as Map?)?.cast(); + final Map? arg_intMap = (args[0] as Map?)?.cast(); try { final Map? output = api.echoNullableIntMap(arg_intMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap was null.'); final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); + final Map? arg_enumMap = (args[0] as Map?)?.cast(); try { - final Map? output = api.echoNullableEnumMap( - arg_enumMap, - ); + final Map? output = api.echoNullableEnumMap(arg_enumMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap was null.'); final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); + final Map? arg_classMap = (args[0] as Map?)?.cast(); try { - final Map? output = api - .echoNullableClassMap(arg_classMap); + final Map? output = api.echoNullableClassMap(arg_classMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap was null.'); final List args = (message as List?)!; - final Map? arg_stringMap = - (args[0] as Map?)?.cast(); + final Map? arg_stringMap = (args[0] as Map?)?.cast(); try { - final Map? output = api - .echoNullableNonNullStringMap(arg_stringMap); + final Map? output = api.echoNullableNonNullStringMap(arg_stringMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap was null.'); final List args = (message as List?)!; - final Map? arg_intMap = (args[0] as Map?) - ?.cast(); + final Map? arg_intMap = (args[0] as Map?)?.cast(); try { - final Map? output = api.echoNullableNonNullIntMap( - arg_intMap, - ); + final Map? output = api.echoNullableNonNullIntMap(arg_intMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap was null.'); final List args = (message as List?)!; - final Map? arg_enumMap = - (args[0] as Map?)?.cast(); + final Map? arg_enumMap = (args[0] as Map?)?.cast(); try { - final Map? output = api.echoNullableNonNullEnumMap( - arg_enumMap, - ); + final Map? output = api.echoNullableNonNullEnumMap(arg_enumMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap was null.'); final List args = (message as List?)!; - final Map? arg_classMap = - (args[0] as Map?) - ?.cast(); + final Map? arg_classMap = (args[0] as Map?)?.cast(); try { - final Map? output = api - .echoNullableNonNullClassMap(arg_classMap); + final Map? output = api.echoNullableNonNullClassMap(arg_classMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum was null.'); final List args = (message as List?)!; final AnEnum? arg_anEnum = (args[0] as AnEnum?); try { @@ -6233,51 +5265,39 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.'); final List args = (message as List?)!; final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); try { - final AnotherEnum? output = api.echoAnotherNullableEnum( - arg_anotherEnum, - ); + final AnotherEnum? output = api.echoAnotherNullableEnum(arg_anotherEnum); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -6287,43 +5307,33 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null.'); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); - assert( - arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null, expected non-null String.', - ); + assert(arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null, expected non-null String.'); try { final String output = await api.echoAsyncString(arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -6336,13 +5346,9 @@ class HostTrivialApi { /// Constructor for [HostTrivialApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - HostTrivialApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + HostTrivialApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -6350,8 +5356,7 @@ class HostTrivialApi { final String pigeonVar_messageChannelSuffix; Future noop() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -6361,10 +5366,11 @@ class HostTrivialApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } } @@ -6373,13 +5379,9 @@ class HostSmallApi { /// Constructor for [HostSmallApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - HostSmallApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + HostSmallApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -6387,29 +5389,26 @@ class HostSmallApi { final String pigeonVar_messageChannelSuffix; Future echo(String aString) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as String; } Future voidVoid() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -6419,10 +5418,11 @@ class HostSmallApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } } @@ -6434,76 +5434,54 @@ abstract class FlutterSmallApi { String echoString(String aString); - static void setUp( - FlutterSmallApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(FlutterSmallApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null.'); final List args = (message as List?)!; final TestMessage? arg_msg = (args[0] as TestMessage?); - assert( - arg_msg != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null, expected non-null TestMessage.', - ); + assert(arg_msg != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null, expected non-null TestMessage.'); try { final TestMessage output = api.echoWrappedList(arg_msg!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null.'); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); - assert( - arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null, expected non-null String.', - ); + assert(arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null, expected non-null String.'); try { final String output = api.echoString(arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 11020254468d..bca289b6be8a 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,11 +37,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -50,7 +47,6 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -62,9 +58,8 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -97,42 +92,48 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } + /// This comment is to test enum documentation comments. enum EnumState { /// This comment is to test enum member (Pending) documentation comments. Pending, - /// This comment is to test enum member (Success) documentation comments. Success, - /// This comment is to test enum member (Error) documentation comments. Error, - /// This comment is to test enum member (SnakeCase) documentation comments. SnakeCase, } /// This comment is to test class documentation comments. class DataWithEnum { - DataWithEnum({this.state}); + DataWithEnum({ + this.state, + }); /// This comment is to test field documentation comments. EnumState? state; List _toList() { - return [state]; + return [ + state, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static DataWithEnum decode(Object result) { result as List; - return DataWithEnum(state: result[0] as EnumState?); + return DataWithEnum( + state: result[0] as EnumState?, + ); } @override @@ -152,6 +153,7 @@ class DataWithEnum { int get hashCode => _deepHash([runtimeType, ..._toList()]); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -159,10 +161,10 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is EnumState) { + } else if (value is EnumState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is DataWithEnum) { + } else if (value is DataWithEnum) { buffer.putUint8(130); writeValue(buffer, value.encode()); } else { @@ -189,13 +191,9 @@ class EnumApi2Host { /// Constructor for [EnumApi2Host]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - EnumApi2Host({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + EnumApi2Host({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -204,23 +202,21 @@ class EnumApi2Host { /// This comment is to test method documentation comments. Future echo(DataWithEnum data) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [data], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([data]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as DataWithEnum; } } @@ -232,43 +228,29 @@ abstract class EnumApi2Flutter { /// This comment is to test method documentation comments. DataWithEnum echo(DataWithEnum data); - static void setUp( - EnumApi2Flutter? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(EnumApi2Flutter? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null.'); final List args = (message as List?)!; final DataWithEnum? arg_data = (args[0] as DataWithEnum?); - assert( - arg_data != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null, expected non-null DataWithEnum.', - ); + assert(arg_data != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null, expected non-null DataWithEnum.'); try { final DataWithEnum output = api.echo(arg_data!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index 8704076f27c2..c8511be29704 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -11,7 +11,6 @@ import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; - bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -23,9 +22,8 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -58,12 +56,24 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } -enum EventEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } -enum AnotherEventEnum { justInCase } +enum EventEnum { + one, + two, + three, + fortyTwo, + fourHundredTwentyTwo, +} + +enum AnotherEventEnum { + justInCase, +} /// A class containing all supported nullable types. class EventAllNullableTypes { @@ -200,8 +210,7 @@ class EventAllNullableTypes { } Object encode() { - return _toList(); - } + return _toList(); } static EventAllNullableTypes decode(Object result) { result as List; @@ -228,22 +237,15 @@ class EventAllNullableTypes { objectList: (result[19] as List?)?.cast(), listList: (result[20] as List?)?.cast?>(), mapList: (result[21] as List?)?.cast?>(), - recursiveClassList: (result[22] as List?) - ?.cast(), + recursiveClassList: (result[22] as List?)?.cast(), map: result[23] as Map?, - stringMap: (result[24] as Map?) - ?.cast(), + stringMap: (result[24] as Map?)?.cast(), intMap: (result[25] as Map?)?.cast(), - enumMap: (result[26] as Map?) - ?.cast(), - objectMap: (result[27] as Map?) - ?.cast(), - listMap: (result[28] as Map?) - ?.cast?>(), - mapMap: (result[29] as Map?) - ?.cast?>(), - recursiveClassMap: (result[30] as Map?) - ?.cast(), + enumMap: (result[26] as Map?)?.cast(), + objectMap: (result[27] as Map?)?.cast(), + listMap: (result[28] as Map?)?.cast?>(), + mapMap: (result[29] as Map?)?.cast?>(), + recursiveClassMap: (result[30] as Map?)?.cast(), ); } @@ -256,37 +258,7 @@ class EventAllNullableTypes { if (identical(this, other)) { return true; } - return _deepEquals(aNullableBool, other.aNullableBool) && - _deepEquals(aNullableInt, other.aNullableInt) && - _deepEquals(aNullableInt64, other.aNullableInt64) && - _deepEquals(aNullableDouble, other.aNullableDouble) && - _deepEquals(aNullableByteArray, other.aNullableByteArray) && - _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && - _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && - _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && - _deepEquals(aNullableEnum, other.aNullableEnum) && - _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && - _deepEquals(aNullableString, other.aNullableString) && - _deepEquals(aNullableObject, other.aNullableObject) && - _deepEquals(allNullableTypes, other.allNullableTypes) && - _deepEquals(list, other.list) && - _deepEquals(stringList, other.stringList) && - _deepEquals(intList, other.intList) && - _deepEquals(doubleList, other.doubleList) && - _deepEquals(boolList, other.boolList) && - _deepEquals(enumList, other.enumList) && - _deepEquals(objectList, other.objectList) && - _deepEquals(listList, other.listList) && - _deepEquals(mapList, other.mapList) && - _deepEquals(recursiveClassList, other.recursiveClassList) && - _deepEquals(map, other.map) && - _deepEquals(stringMap, other.stringMap) && - _deepEquals(intMap, other.intMap) && - _deepEquals(enumMap, other.enumMap) && - _deepEquals(objectMap, other.objectMap) && - _deepEquals(listMap, other.listMap) && - _deepEquals(mapMap, other.mapMap) && - _deepEquals(recursiveClassMap, other.recursiveClassMap); + return _deepEquals(aNullableBool, other.aNullableBool) && _deepEquals(aNullableInt, other.aNullableInt) && _deepEquals(aNullableInt64, other.aNullableInt64) && _deepEquals(aNullableDouble, other.aNullableDouble) && _deepEquals(aNullableByteArray, other.aNullableByteArray) && _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && _deepEquals(aNullableEnum, other.aNullableEnum) && _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && _deepEquals(aNullableString, other.aNullableString) && _deepEquals(aNullableObject, other.aNullableObject) && _deepEquals(allNullableTypes, other.allNullableTypes) && _deepEquals(list, other.list) && _deepEquals(stringList, other.stringList) && _deepEquals(intList, other.intList) && _deepEquals(doubleList, other.doubleList) && _deepEquals(boolList, other.boolList) && _deepEquals(enumList, other.enumList) && _deepEquals(objectList, other.objectList) && _deepEquals(listList, other.listList) && _deepEquals(mapList, other.mapList) && _deepEquals(recursiveClassList, other.recursiveClassList) && _deepEquals(map, other.map) && _deepEquals(stringMap, other.stringMap) && _deepEquals(intMap, other.intMap) && _deepEquals(enumMap, other.enumMap) && _deepEquals(objectMap, other.objectMap) && _deepEquals(listMap, other.listMap) && _deepEquals(mapMap, other.mapMap) && _deepEquals(recursiveClassMap, other.recursiveClassMap); } @override @@ -294,24 +266,30 @@ class EventAllNullableTypes { int get hashCode => _deepHash([runtimeType, ..._toList()]); } -sealed class PlatformEvent {} +sealed class PlatformEvent { +} class IntEvent extends PlatformEvent { - IntEvent({required this.value}); + IntEvent({ + required this.value, + }); int value; List _toList() { - return [value]; + return [ + value, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static IntEvent decode(Object result) { result as List; - return IntEvent(value: result[0]! as int); + return IntEvent( + value: result[0]! as int, + ); } @override @@ -332,21 +310,26 @@ class IntEvent extends PlatformEvent { } class StringEvent extends PlatformEvent { - StringEvent({required this.value}); + StringEvent({ + required this.value, + }); String value; List _toList() { - return [value]; + return [ + value, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static StringEvent decode(Object result) { result as List; - return StringEvent(value: result[0]! as String); + return StringEvent( + value: result[0]! as String, + ); } @override @@ -367,21 +350,26 @@ class StringEvent extends PlatformEvent { } class BoolEvent extends PlatformEvent { - BoolEvent({required this.value}); + BoolEvent({ + required this.value, + }); bool value; List _toList() { - return [value]; + return [ + value, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static BoolEvent decode(Object result) { result as List; - return BoolEvent(value: result[0]! as bool); + return BoolEvent( + value: result[0]! as bool, + ); } @override @@ -402,21 +390,26 @@ class BoolEvent extends PlatformEvent { } class DoubleEvent extends PlatformEvent { - DoubleEvent({required this.value}); + DoubleEvent({ + required this.value, + }); double value; List _toList() { - return [value]; + return [ + value, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static DoubleEvent decode(Object result) { result as List; - return DoubleEvent(value: result[0]! as double); + return DoubleEvent( + value: result[0]! as double, + ); } @override @@ -437,21 +430,26 @@ class DoubleEvent extends PlatformEvent { } class ObjectsEvent extends PlatformEvent { - ObjectsEvent({required this.value}); + ObjectsEvent({ + required this.value, + }); Object value; List _toList() { - return [value]; + return [ + value, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ObjectsEvent decode(Object result) { result as List; - return ObjectsEvent(value: result[0]!); + return ObjectsEvent( + value: result[0]!, + ); } @override @@ -472,21 +470,26 @@ class ObjectsEvent extends PlatformEvent { } class EnumEvent extends PlatformEvent { - EnumEvent({required this.value}); + EnumEvent({ + required this.value, + }); EventEnum value; List _toList() { - return [value]; + return [ + value, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static EnumEvent decode(Object result) { result as List; - return EnumEvent(value: result[0]! as EventEnum); + return EnumEvent( + value: result[0]! as EventEnum, + ); } @override @@ -507,21 +510,26 @@ class EnumEvent extends PlatformEvent { } class ClassEvent extends PlatformEvent { - ClassEvent({required this.value}); + ClassEvent({ + required this.value, + }); EventAllNullableTypes value; List _toList() { - return [value]; + return [ + value, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ClassEvent decode(Object result) { result as List; - return ClassEvent(value: result[0]! as EventAllNullableTypes); + return ClassEvent( + value: result[0]! as EventAllNullableTypes, + ); } @override @@ -541,6 +549,7 @@ class ClassEvent extends PlatformEvent { int get hashCode => _deepHash([runtimeType, ..._toList()]); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -548,34 +557,34 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is EventEnum) { + } else if (value is EventEnum) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is AnotherEventEnum) { + } else if (value is AnotherEventEnum) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is EventAllNullableTypes) { + } else if (value is EventAllNullableTypes) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is IntEvent) { + } else if (value is IntEvent) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is StringEvent) { + } else if (value is StringEvent) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is BoolEvent) { + } else if (value is BoolEvent) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is DoubleEvent) { + } else if (value is DoubleEvent) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is ObjectsEvent) { + } else if (value is ObjectsEvent) { buffer.putUint8(136); writeValue(buffer, value.encode()); - } else if (value is EnumEvent) { + } else if (value is EnumEvent) { buffer.putUint8(137); writeValue(buffer, value.encode()); - } else if (value is ClassEvent) { + } else if (value is ClassEvent) { buffer.putUint8(138); writeValue(buffer, value.encode()); } else { @@ -614,47 +623,38 @@ class _PigeonCodec extends StandardMessageCodec { } } -const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec( - _PigeonCodec(), -); +const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec(_PigeonCodec()); -Stream streamInts({String instanceName = ''}) { +Stream streamInts( {String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - final EventChannel streamIntsChannel = EventChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts$instanceName', - pigeonMethodCodec, - ); + final EventChannel streamIntsChannel = + EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts$instanceName', pigeonMethodCodec); return streamIntsChannel.receiveBroadcastStream().map((dynamic event) { return event as int; }); } - -Stream streamEvents({String instanceName = ''}) { + +Stream streamEvents( {String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - final EventChannel streamEventsChannel = EventChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents$instanceName', - pigeonMethodCodec, - ); + final EventChannel streamEventsChannel = + EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents$instanceName', pigeonMethodCodec); return streamEventsChannel.receiveBroadcastStream().map((dynamic event) { return event as PlatformEvent; }); } - -Stream streamConsistentNumbers({String instanceName = ''}) { + +Stream streamConsistentNumbers( {String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - final EventChannel streamConsistentNumbersChannel = EventChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers$instanceName', - pigeonMethodCodec, - ); - return streamConsistentNumbersChannel.receiveBroadcastStream().map(( - dynamic event, - ) { + final EventChannel streamConsistentNumbersChannel = + EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers$instanceName', pigeonMethodCodec); + return streamConsistentNumbersChannel.receiveBroadcastStream().map((dynamic event) { return event as int; }); } + diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_without_classes_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_without_classes_tests.gen.dart index 6e58cd7c26db..f2d8037526c2 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_without_classes_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_without_classes_tests.gen.dart @@ -12,6 +12,7 @@ import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -33,19 +34,16 @@ class _PigeonCodec extends StandardMessageCodec { } } -const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec( - _PigeonCodec(), -); +const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec(_PigeonCodec()); -Stream streamIntsAgain({String instanceName = ''}) { +Stream streamIntsAgain( {String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - final EventChannel streamIntsAgainChannel = EventChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamIntsAgain$instanceName', - pigeonMethodCodec, - ); + final EventChannel streamIntsAgainChannel = + EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamIntsAgain$instanceName', pigeonMethodCodec); return streamIntsAgainChannel.receiveBroadcastStream().map((dynamic event) { return event as int; }); } + diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index 0796404d59a4..99c4a56e5050 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -48,9 +48,8 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -83,25 +82,34 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } + class FlutterSearchRequest { - FlutterSearchRequest({this.query}); + FlutterSearchRequest({ + this.query, + }); String? query; List _toList() { - return [query]; + return [ + query, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static FlutterSearchRequest decode(Object result) { result as List; - return FlutterSearchRequest(query: result[0] as String?); + return FlutterSearchRequest( + query: result[0] as String?, + ); } @override @@ -122,19 +130,24 @@ class FlutterSearchRequest { } class FlutterSearchReply { - FlutterSearchReply({this.result, this.error}); + FlutterSearchReply({ + this.result, + this.error, + }); String? result; String? error; List _toList() { - return [result, error]; + return [ + result, + error, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static FlutterSearchReply decode(Object result) { result as List; @@ -162,21 +175,26 @@ class FlutterSearchReply { } class FlutterSearchRequests { - FlutterSearchRequests({this.requests}); + FlutterSearchRequests({ + this.requests, + }); List? requests; List _toList() { - return [requests]; + return [ + requests, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static FlutterSearchRequests decode(Object result) { result as List; - return FlutterSearchRequests(requests: result[0] as List?); + return FlutterSearchRequests( + requests: result[0] as List?, + ); } @override @@ -197,21 +215,26 @@ class FlutterSearchRequests { } class FlutterSearchReplies { - FlutterSearchReplies({this.replies}); + FlutterSearchReplies({ + this.replies, + }); List? replies; List _toList() { - return [replies]; + return [ + replies, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static FlutterSearchReplies decode(Object result) { result as List; - return FlutterSearchReplies(replies: result[0] as List?); + return FlutterSearchReplies( + replies: result[0] as List?, + ); } @override @@ -231,6 +254,7 @@ class FlutterSearchReplies { int get hashCode => _deepHash([runtimeType, ..._toList()]); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -238,16 +262,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is FlutterSearchRequest) { + } else if (value is FlutterSearchRequest) { buffer.putUint8(129); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchReply) { + } else if (value is FlutterSearchReply) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchRequests) { + } else if (value is FlutterSearchRequests) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchReplies) { + } else if (value is FlutterSearchReplies) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -277,10 +301,8 @@ class Api { /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. Api({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -288,86 +310,78 @@ class Api { final String pigeonVar_messageChannelSuffix; Future search(FlutterSearchRequest request) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [request], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as FlutterSearchReply; } Future doSearches(FlutterSearchRequests request) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [request], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as FlutterSearchReplies; } Future echo(FlutterSearchRequests requests) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [requests], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([requests]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as FlutterSearchRequests; } Future anInt(int value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as int; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 97c05a5ba6e5..a3a767838798 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,11 +37,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -50,7 +47,6 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -62,9 +58,8 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -97,9 +92,13 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } + /// This comment is to test enum documentation comments. /// /// This comment also tests multiple line comments. @@ -107,13 +106,21 @@ int _deepHash(Object? value) { /// //////////////////////// /// This comment also tests comments that start with '/' /// //////////////////////// -enum MessageRequestState { pending, success, failure } +enum MessageRequestState { + pending, + success, + failure, +} /// This comment is to test class documentation comments. /// /// This comment also tests multiple line comments. class MessageSearchRequest { - MessageSearchRequest({this.query, this.anInt, this.aBool}); + MessageSearchRequest({ + this.query, + this.anInt, + this.aBool, + }); /// This comment is to test field documentation comments. String? query; @@ -125,12 +132,15 @@ class MessageSearchRequest { bool? aBool; List _toList() { - return [query, anInt, aBool]; + return [ + query, + anInt, + aBool, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MessageSearchRequest decode(Object result) { result as List; @@ -150,9 +160,7 @@ class MessageSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(query, other.query) && - _deepEquals(anInt, other.anInt) && - _deepEquals(aBool, other.aBool); + return _deepEquals(query, other.query) && _deepEquals(anInt, other.anInt) && _deepEquals(aBool, other.aBool); } @override @@ -162,7 +170,11 @@ class MessageSearchRequest { /// This comment is to test class documentation comments. class MessageSearchReply { - MessageSearchReply({this.result, this.error, this.state}); + MessageSearchReply({ + this.result, + this.error, + this.state, + }); /// This comment is to test field documentation comments. /// @@ -176,12 +188,15 @@ class MessageSearchReply { MessageRequestState? state; List _toList() { - return [result, error, state]; + return [ + result, + error, + state, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MessageSearchReply decode(Object result) { result as List; @@ -201,9 +216,7 @@ class MessageSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(result, other.result) && - _deepEquals(error, other.error) && - _deepEquals(state, other.state); + return _deepEquals(result, other.result) && _deepEquals(error, other.error) && _deepEquals(state, other.state); } @override @@ -213,22 +226,27 @@ class MessageSearchReply { /// This comment is to test class documentation comments. class MessageNested { - MessageNested({this.request}); + MessageNested({ + this.request, + }); /// This comment is to test field documentation comments. MessageSearchRequest? request; List _toList() { - return [request]; + return [ + request, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MessageNested decode(Object result) { result as List; - return MessageNested(request: result[0] as MessageSearchRequest?); + return MessageNested( + request: result[0] as MessageSearchRequest?, + ); } @override @@ -248,6 +266,7 @@ class MessageNested { int get hashCode => _deepHash([runtimeType, ..._toList()]); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -255,16 +274,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MessageRequestState) { + } else if (value is MessageRequestState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageNested) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -297,13 +316,9 @@ class MessageApi { /// Constructor for [MessageApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MessageApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + MessageApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -314,8 +329,7 @@ class MessageApi { /// /// This comment also tests multiple line comments. Future initialize() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -325,31 +339,30 @@ class MessageApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; } /// This comment is to test method documentation comments. Future search(MessageSearchRequest request) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [request], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as MessageSearchReply; } } @@ -359,13 +372,9 @@ class MessageNestedApi { /// Constructor for [MessageNestedApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MessageNestedApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + MessageNestedApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -376,23 +385,21 @@ class MessageNestedApi { /// /// This comment also tests multiple line comments. Future search(MessageNested nested) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [nested], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([nested]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as MessageSearchReply; } } @@ -404,44 +411,29 @@ abstract class MessageFlutterSearchApi { /// This comment is to test method documentation comments. MessageSearchReply search(MessageSearchRequest request); - static void setUp( - MessageFlutterSearchApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(MessageFlutterSearchApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null.'); final List args = (message as List?)!; - final MessageSearchRequest? arg_request = - (args[0] as MessageSearchRequest?); - assert( - arg_request != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.', - ); + final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); + assert(arg_request != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.'); try { final MessageSearchReply output = api.search(arg_request!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart index 5b62e1baac51..884e3b09d2d8 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,11 +37,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -51,6 +48,7 @@ List wrapResponse({ return [error.code, error.message, error.details]; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -76,13 +74,9 @@ class MultipleArityHostApi { /// Constructor for [MultipleArityHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MultipleArityHostApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + MultipleArityHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -90,23 +84,21 @@ class MultipleArityHostApi { final String pigeonVar_messageChannelSuffix; Future subtract(int x, int y) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [x, y], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([x, y]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as int; } } @@ -116,48 +108,32 @@ abstract class MultipleArityFlutterApi { int subtract(int x, int y); - static void setUp( - MultipleArityFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(MultipleArityFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null.'); final List args = (message as List?)!; final int? arg_x = (args[0] as int?); - assert( - arg_x != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null, expected non-null int.', - ); + assert(arg_x != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null, expected non-null int.'); final int? arg_y = (args[1] as int?); - assert( - arg_y != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null, expected non-null int.', - ); + assert(arg_y != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null, expected non-null int.'); try { final int output = api.subtract(arg_x!, arg_y!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index 3637238b1ddf..f294370e51bc 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,11 +37,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -50,7 +47,6 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -62,9 +58,8 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -97,34 +92,45 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } -enum ReplyType { success, error } + +enum ReplyType { + success, + error, +} class NonNullFieldSearchRequest { - NonNullFieldSearchRequest({required this.query}); + NonNullFieldSearchRequest({ + required this.query, + }); String query; List _toList() { - return [query]; + return [ + query, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NonNullFieldSearchRequest decode(Object result) { result as List; - return NonNullFieldSearchRequest(query: result[0]! as String); + return NonNullFieldSearchRequest( + query: result[0]! as String, + ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NonNullFieldSearchRequest || - other.runtimeType != runtimeType) { + if (other is! NonNullFieldSearchRequest || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -139,19 +145,24 @@ class NonNullFieldSearchRequest { } class ExtraData { - ExtraData({required this.detailA, required this.detailB}); + ExtraData({ + required this.detailA, + required this.detailB, + }); String detailA; String detailB; List _toList() { - return [detailA, detailB]; + return [ + detailA, + detailB, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ExtraData decode(Object result) { result as List; @@ -170,8 +181,7 @@ class ExtraData { if (identical(this, other)) { return true; } - return _deepEquals(detailA, other.detailA) && - _deepEquals(detailB, other.detailB); + return _deepEquals(detailA, other.detailA) && _deepEquals(detailB, other.detailB); } @override @@ -199,12 +209,17 @@ class NonNullFieldSearchReply { ReplyType type; List _toList() { - return [result, error, indices, extraData, type]; + return [ + result, + error, + indices, + extraData, + type, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NonNullFieldSearchReply decode(Object result) { result as List; @@ -226,11 +241,7 @@ class NonNullFieldSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(result, other.result) && - _deepEquals(error, other.error) && - _deepEquals(indices, other.indices) && - _deepEquals(extraData, other.extraData) && - _deepEquals(type, other.type); + return _deepEquals(result, other.result) && _deepEquals(error, other.error) && _deepEquals(indices, other.indices) && _deepEquals(extraData, other.extraData) && _deepEquals(type, other.type); } @override @@ -238,6 +249,7 @@ class NonNullFieldSearchReply { int get hashCode => _deepHash([runtimeType, ..._toList()]); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -245,16 +257,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is ReplyType) { + } else if (value is ReplyType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NonNullFieldSearchRequest) { + } else if (value is NonNullFieldSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is ExtraData) { + } else if (value is ExtraData) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is NonNullFieldSearchReply) { + } else if (value is NonNullFieldSearchReply) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -284,39 +296,31 @@ class NonNullFieldHostApi { /// Constructor for [NonNullFieldHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NonNullFieldHostApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NonNullFieldHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future search( - NonNullFieldSearchRequest nested, - ) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeonVar_messageChannelSuffix'; + Future search(NonNullFieldSearchRequest nested) async { + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [nested], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([nested]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as NonNullFieldSearchReply; } } @@ -326,44 +330,29 @@ abstract class NonNullFieldFlutterApi { NonNullFieldSearchReply search(NonNullFieldSearchRequest request); - static void setUp( - NonNullFieldFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(NonNullFieldFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null.'); final List args = (message as List?)!; - final NonNullFieldSearchRequest? arg_request = - (args[0] as NonNullFieldSearchRequest?); - assert( - arg_request != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null, expected non-null NonNullFieldSearchRequest.', - ); + final NonNullFieldSearchRequest? arg_request = (args[0] as NonNullFieldSearchRequest?); + assert(arg_request != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null, expected non-null NonNullFieldSearchRequest.'); try { final NonNullFieldSearchReply output = api.search(arg_request!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index d6c859d9d8bd..96eb9f6e222d 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,11 +37,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -50,7 +47,6 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -62,9 +58,8 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -97,25 +92,37 @@ int _deepHash(Object? value) { if (value is double && value.isNaN) { return 0x7FF8000000000000.hashCode; } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } return value.hashCode; } -enum NullFieldsSearchReplyType { success, failure } + +enum NullFieldsSearchReplyType { + success, + failure, +} class NullFieldsSearchRequest { - NullFieldsSearchRequest({this.query, required this.identifier}); + NullFieldsSearchRequest({ + this.query, + required this.identifier, + }); String? query; int identifier; List _toList() { - return [query, identifier]; + return [ + query, + identifier, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NullFieldsSearchRequest decode(Object result) { result as List; @@ -134,8 +141,7 @@ class NullFieldsSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(query, other.query) && - _deepEquals(identifier, other.identifier); + return _deepEquals(query, other.query) && _deepEquals(identifier, other.identifier); } @override @@ -163,12 +169,17 @@ class NullFieldsSearchReply { NullFieldsSearchReplyType? type; List _toList() { - return [result, error, indices, request, type]; + return [ + result, + error, + indices, + request, + type, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NullFieldsSearchReply decode(Object result) { result as List; @@ -190,11 +201,7 @@ class NullFieldsSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(result, other.result) && - _deepEquals(error, other.error) && - _deepEquals(indices, other.indices) && - _deepEquals(request, other.request) && - _deepEquals(type, other.type); + return _deepEquals(result, other.result) && _deepEquals(error, other.error) && _deepEquals(indices, other.indices) && _deepEquals(request, other.request) && _deepEquals(type, other.type); } @override @@ -202,6 +209,7 @@ class NullFieldsSearchReply { int get hashCode => _deepHash([runtimeType, ..._toList()]); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -209,13 +217,13 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is NullFieldsSearchReplyType) { + } else if (value is NullFieldsSearchReplyType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NullFieldsSearchRequest) { + } else if (value is NullFieldsSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is NullFieldsSearchReply) { + } else if (value is NullFieldsSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); } else { @@ -243,13 +251,9 @@ class NullFieldsHostApi { /// Constructor for [NullFieldsHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullFieldsHostApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NullFieldsHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -257,23 +261,21 @@ class NullFieldsHostApi { final String pigeonVar_messageChannelSuffix; Future search(NullFieldsSearchRequest nested) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [nested], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([nested]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as NullFieldsSearchReply; } } @@ -283,44 +285,29 @@ abstract class NullFieldsFlutterApi { NullFieldsSearchReply search(NullFieldsSearchRequest request); - static void setUp( - NullFieldsFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(NullFieldsFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null.'); final List args = (message as List?)!; - final NullFieldsSearchRequest? arg_request = - (args[0] as NullFieldsSearchRequest?); - assert( - arg_request != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null, expected non-null NullFieldsSearchRequest.', - ); + final NullFieldsSearchRequest? arg_request = (args[0] as NullFieldsSearchRequest?); + assert(arg_request != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null, expected non-null NullFieldsSearchRequest.'); try { final NullFieldsSearchReply output = api.search(arg_request!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart index b41ddd61dba0..32b6435c4c39 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,11 +37,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -51,6 +48,7 @@ List wrapResponse({ return [error.code, error.message, error.details]; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -76,13 +74,9 @@ class NullableReturnHostApi { /// Constructor for [NullableReturnHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullableReturnHostApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NullableReturnHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -90,8 +84,7 @@ class NullableReturnHostApi { final String pigeonVar_messageChannelSuffix; Future doit() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -101,10 +94,11 @@ class NullableReturnHostApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return pigeonVar_replyValue as int?; } } @@ -114,20 +108,12 @@ abstract class NullableReturnFlutterApi { int? doit(); - static void setUp( - NullableReturnFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(NullableReturnFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnFlutterApi.doit$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -137,10 +123,8 @@ abstract class NullableReturnFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -152,13 +136,9 @@ class NullableArgHostApi { /// Constructor for [NullableArgHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullableArgHostApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NullableArgHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -166,23 +146,21 @@ class NullableArgHostApi { final String pigeonVar_messageChannelSuffix; Future doit(int? x) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [x], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([x]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as int; } } @@ -192,28 +170,18 @@ abstract class NullableArgFlutterApi { int? doit(int? x); - static void setUp( - NullableArgFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(NullableArgFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit was null.'); final List args = (message as List?)!; final int? arg_x = (args[0] as int?); try { @@ -221,10 +189,8 @@ abstract class NullableArgFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -236,13 +202,9 @@ class NullableCollectionReturnHostApi { /// Constructor for [NullableCollectionReturnHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullableCollectionReturnHostApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NullableCollectionReturnHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -250,8 +212,7 @@ class NullableCollectionReturnHostApi { final String pigeonVar_messageChannelSuffix; Future?> doit() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -261,10 +222,11 @@ class NullableCollectionReturnHostApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ) + ; return (pigeonVar_replyValue as List?)?.cast(); } } @@ -274,20 +236,12 @@ abstract class NullableCollectionReturnFlutterApi { List? doit(); - static void setUp( - NullableCollectionReturnFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(NullableCollectionReturnFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnFlutterApi.doit$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -297,10 +251,8 @@ abstract class NullableCollectionReturnFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -312,13 +264,9 @@ class NullableCollectionArgHostApi { /// Constructor for [NullableCollectionArgHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullableCollectionArgHostApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NullableCollectionArgHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -326,23 +274,21 @@ class NullableCollectionArgHostApi { final String pigeonVar_messageChannelSuffix; Future> doit(List? x) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [x], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([x]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } } @@ -352,40 +298,27 @@ abstract class NullableCollectionArgFlutterApi { List doit(List? x); - static void setUp( - NullableCollectionArgFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(NullableCollectionArgFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit was null.'); final List args = (message as List?)!; - final List? arg_x = (args[0] as List?) - ?.cast(); + final List? arg_x = (args[0] as List?)?.cast(); try { final List output = api.doit(arg_x); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart index d1a8fef75d5c..3bc3112e0ccd 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,11 +37,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -51,6 +48,7 @@ List wrapResponse({ return [error.code, error.message, error.details]; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -76,13 +74,9 @@ class PrimitiveHostApi { /// Constructor for [PrimitiveHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - PrimitiveHostApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + PrimitiveHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -90,193 +84,174 @@ class PrimitiveHostApi { final String pigeonVar_messageChannelSuffix; Future anInt(int value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as int; } Future aBool(bool value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as bool; } Future aString(String value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as String; } Future aDouble(double value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as double; } Future> aMap(Map value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as Map; } Future> aList(List value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as List; } Future anInt32List(Int32List value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return pigeonVar_replyValue as Int32List; } Future> aBoolList(List value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; return (pigeonVar_replyValue as List).cast(); } Future> aStringIntMap(Map value) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [value], - ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return (pigeonVar_replyValue as Map) - .cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + ) + !; + return (pigeonVar_replyValue as Map).cast(); } } @@ -301,310 +276,229 @@ abstract class PrimitiveFlutterApi { Map aStringIntMap(Map value); - static void setUp( - PrimitiveFlutterApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(PrimitiveFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null.'); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null, expected non-null int.', - ); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null, expected non-null int.'); try { final int output = api.anInt(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null.'); final List args = (message as List?)!; final bool? arg_value = (args[0] as bool?); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null, expected non-null bool.', - ); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null, expected non-null bool.'); try { final bool output = api.aBool(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null.'); final List args = (message as List?)!; final String? arg_value = (args[0] as String?); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null, expected non-null String.', - ); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null, expected non-null String.'); try { final String output = api.aString(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null.'); final List args = (message as List?)!; final double? arg_value = (args[0] as double?); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null, expected non-null double.', - ); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null, expected non-null double.'); try { final double output = api.aDouble(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null.'); final List args = (message as List?)!; - final Map? arg_value = - (args[0] as Map?); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null, expected non-null Map.', - ); + final Map? arg_value = (args[0] as Map?); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null, expected non-null Map.'); try { final Map output = api.aMap(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null.'); final List args = (message as List?)!; final List? arg_value = (args[0] as List?); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null, expected non-null List.', - ); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null, expected non-null List.'); try { final List output = api.aList(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null.'); final List args = (message as List?)!; final Int32List? arg_value = (args[0] as Int32List?); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null, expected non-null Int32List.', - ); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null, expected non-null Int32List.'); try { final Int32List output = api.anInt32List(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null.'); final List args = (message as List?)!; - final List? arg_value = (args[0] as List?) - ?.cast(); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null, expected non-null List.', - ); + final List? arg_value = (args[0] as List?)?.cast(); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null, expected non-null List.'); try { final List output = api.aBoolList(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null.'); final List args = (message as List?)!; - final Map? arg_value = - (args[0] as Map?)?.cast(); - assert( - arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null, expected non-null Map.', - ); + final Map? arg_value = (args[0] as Map?)?.cast(); + assert(arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null, expected non-null Map.'); try { final Map output = api.aStringIntMap(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart index b645e66dca32..0312b6c626f6 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart @@ -10,15 +10,14 @@ import 'dart:async'; import 'dart:io' show Platform; import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; -import 'package:flutter/foundation.dart' - show ReadBuffer, WriteBuffer, immutable, protected, visibleForTesting; +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer, immutable, protected, visibleForTesting; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart' show WidgetsFlutterBinding; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -40,11 +39,8 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { + +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -53,7 +49,6 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - /// Provides overrides for the constructors and static members of each /// Dart proxy class. /// @@ -74,54 +69,54 @@ class PigeonOverrides { required Map aMap, required ProxyApiTestEnum anEnum, required ProxyApiSuperClass aProxyApi, - required bool Function(ProxyApiTestClass pigeon_instance, bool aBool) - flutterEchoBool, - required int Function(ProxyApiTestClass pigeon_instance, int anInt) - flutterEchoInt, - required double Function(ProxyApiTestClass pigeon_instance, double aDouble) - flutterEchoDouble, - required String Function(ProxyApiTestClass pigeon_instance, String aString) - flutterEchoString, + required bool Function( + ProxyApiTestClass pigeon_instance, + bool aBool, + ) flutterEchoBool, + required int Function( + ProxyApiTestClass pigeon_instance, + int anInt, + ) flutterEchoInt, + required double Function( + ProxyApiTestClass pigeon_instance, + double aDouble, + ) flutterEchoDouble, + required String Function( + ProxyApiTestClass pigeon_instance, + String aString, + ) flutterEchoString, required Uint8List Function( ProxyApiTestClass pigeon_instance, Uint8List aList, - ) - flutterEchoUint8List, + ) flutterEchoUint8List, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoList, + ) flutterEchoList, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoProxyApiList, + ) flutterEchoProxyApiList, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoMap, + ) flutterEchoMap, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoProxyApiMap, + ) flutterEchoProxyApiMap, required ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) - flutterEchoEnum, + ) flutterEchoEnum, required ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) - flutterEchoProxyApi, + ) flutterEchoProxyApi, required Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) - flutterEchoAsyncString, + ) flutterEchoAsyncString, required bool boolParam, required int intParam, required double doubleParam, @@ -144,36 +139,42 @@ class PigeonOverrides { void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? - flutterEchoNullableBool, - int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? - flutterEchoNullableInt, - double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? - flutterEchoNullableDouble, - String? Function(ProxyApiTestClass pigeon_instance, String? aString)? - flutterEchoNullableString, - Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? - flutterEchoNullableUint8List, + bool? Function( + ProxyApiTestClass pigeon_instance, + bool? aBool, + )? flutterEchoNullableBool, + int? Function( + ProxyApiTestClass pigeon_instance, + int? anInt, + )? flutterEchoNullableInt, + double? Function( + ProxyApiTestClass pigeon_instance, + double? aDouble, + )? flutterEchoNullableDouble, + String? Function( + ProxyApiTestClass pigeon_instance, + String? aString, + )? flutterEchoNullableString, + Uint8List? Function( + ProxyApiTestClass pigeon_instance, + Uint8List? aList, + )? flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? - flutterEchoNullableList, + )? flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? - flutterEchoNullableMap, + )? flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? - flutterEchoNullableEnum, + )? flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? - flutterEchoNullableProxyApi, + )? flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, bool? nullableBoolParam, int? nullableIntParam, @@ -184,8 +185,7 @@ class PigeonOverrides { Map? nullableMapParam, ProxyApiTestEnum? nullableEnumParam, ProxyApiSuperClass? nullableProxyApiParam, - })? - proxyApiTestClass_new; + })? proxyApiTestClass_new; /// Overrides [ProxyApiTestClass.namedConstructor]. static ProxyApiTestClass Function({ @@ -198,54 +198,54 @@ class PigeonOverrides { required Map aMap, required ProxyApiTestEnum anEnum, required ProxyApiSuperClass aProxyApi, - required bool Function(ProxyApiTestClass pigeon_instance, bool aBool) - flutterEchoBool, - required int Function(ProxyApiTestClass pigeon_instance, int anInt) - flutterEchoInt, - required double Function(ProxyApiTestClass pigeon_instance, double aDouble) - flutterEchoDouble, - required String Function(ProxyApiTestClass pigeon_instance, String aString) - flutterEchoString, + required bool Function( + ProxyApiTestClass pigeon_instance, + bool aBool, + ) flutterEchoBool, + required int Function( + ProxyApiTestClass pigeon_instance, + int anInt, + ) flutterEchoInt, + required double Function( + ProxyApiTestClass pigeon_instance, + double aDouble, + ) flutterEchoDouble, + required String Function( + ProxyApiTestClass pigeon_instance, + String aString, + ) flutterEchoString, required Uint8List Function( ProxyApiTestClass pigeon_instance, Uint8List aList, - ) - flutterEchoUint8List, + ) flutterEchoUint8List, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoList, + ) flutterEchoList, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoProxyApiList, + ) flutterEchoProxyApiList, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoMap, + ) flutterEchoMap, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoProxyApiMap, + ) flutterEchoProxyApiMap, required ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) - flutterEchoEnum, + ) flutterEchoEnum, required ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) - flutterEchoProxyApi, + ) flutterEchoProxyApi, required Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) - flutterEchoAsyncString, + ) flutterEchoAsyncString, bool? aNullableBool, int? aNullableInt, double? aNullableDouble, @@ -259,39 +259,44 @@ class PigeonOverrides { void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? - flutterEchoNullableBool, - int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? - flutterEchoNullableInt, - double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? - flutterEchoNullableDouble, - String? Function(ProxyApiTestClass pigeon_instance, String? aString)? - flutterEchoNullableString, - Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? - flutterEchoNullableUint8List, + bool? Function( + ProxyApiTestClass pigeon_instance, + bool? aBool, + )? flutterEchoNullableBool, + int? Function( + ProxyApiTestClass pigeon_instance, + int? anInt, + )? flutterEchoNullableInt, + double? Function( + ProxyApiTestClass pigeon_instance, + double? aDouble, + )? flutterEchoNullableDouble, + String? Function( + ProxyApiTestClass pigeon_instance, + String? aString, + )? flutterEchoNullableString, + Uint8List? Function( + ProxyApiTestClass pigeon_instance, + Uint8List? aList, + )? flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? - flutterEchoNullableList, + )? flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? - flutterEchoNullableMap, + )? flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? - flutterEchoNullableEnum, + )? flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? - flutterEchoNullableProxyApi, + )? flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, - })? - proxyApiTestClass_namedConstructor; + })? proxyApiTestClass_namedConstructor; /// Overrides [ProxyApiSuperClass.new]. static ProxyApiSuperClass Function()? proxyApiSuperClass_new; @@ -336,7 +341,7 @@ abstract class PigeonInternalProxyApiBaseClass { this.pigeon_binaryMessenger, PigeonInstanceManager? pigeon_instanceManager, }) : pigeon_instanceManager = - pigeon_instanceManager ?? PigeonInstanceManager.instance; + pigeon_instanceManager ?? PigeonInstanceManager.instance; /// Sends and receives binary data across the Flutter platform barrier. /// @@ -406,10 +411,9 @@ class PigeonInstanceManager { // by calling instanceManager.getIdentifier() inside of `==` while this was a // HashMap). final Expando _identifiers = Expando(); - final Map> - _weakInstances = >{}; - final Map _strongInstances = - {}; + final Map> _weakInstances = + >{}; + final Map _strongInstances = {}; late final Finalizer _finalizer; int _nextIdentifier = 0; @@ -422,8 +426,7 @@ class PigeonInstanceManager { return PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); } WidgetsFlutterBinding.ensureInitialized(); - final _PigeonInternalInstanceManagerApi api = - _PigeonInternalInstanceManagerApi(); + final _PigeonInternalInstanceManagerApi api = _PigeonInternalInstanceManagerApi(); // Clears the native `PigeonInstanceManager` on the initial use of the Dart one. api.clear(); final PigeonInstanceManager instanceManager = PigeonInstanceManager( @@ -431,21 +434,11 @@ class PigeonInstanceManager { api.removeStrongReference(identifier); }, ); - _PigeonInternalInstanceManagerApi.setUpMessageHandlers( - instanceManager: instanceManager, - ); - ProxyApiTestClass.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager, - ); - ProxyApiSuperClass.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager, - ); - ProxyApiInterface.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager, - ); - ClassWithApiRequirement.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager, - ); + _PigeonInternalInstanceManagerApi.setUpMessageHandlers(instanceManager: instanceManager); + ProxyApiTestClass.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); + ProxyApiSuperClass.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); + ProxyApiInterface.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); + ClassWithApiRequirement.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); return instanceManager; } @@ -462,9 +455,8 @@ class PigeonInstanceManager { final int identifier = _nextUniqueIdentifier(); _identifiers[instance] = identifier; - _weakInstances[identifier] = WeakReference( - instance, - ); + _weakInstances[identifier] = + WeakReference(instance); _finalizer.attach(instance, identifier, detach: instance); final PigeonInternalProxyApiBaseClass copy = instance.pigeon_copy(); @@ -525,21 +517,15 @@ class PigeonInstanceManager { /// /// This method also expects the host `InstanceManager` to have a strong /// reference to the instance the identifier is associated with. - T? getInstanceWithWeakReference( - int identifier, - ) { - final PigeonInternalProxyApiBaseClass? weakInstance = - _weakInstances[identifier]?.target; + T? getInstanceWithWeakReference(int identifier) { + final PigeonInternalProxyApiBaseClass? weakInstance = _weakInstances[identifier]?.target; if (weakInstance == null) { - final PigeonInternalProxyApiBaseClass? strongInstance = - _strongInstances[identifier]; + final PigeonInternalProxyApiBaseClass? strongInstance = _strongInstances[identifier]; if (strongInstance != null) { - final PigeonInternalProxyApiBaseClass copy = strongInstance - .pigeon_copy(); + final PigeonInternalProxyApiBaseClass copy = strongInstance.pigeon_copy(); _identifiers[copy] = identifier; - _weakInstances[identifier] = - WeakReference(copy); + _weakInstances[identifier] = WeakReference(copy); _finalizer.attach(copy, identifier, detach: copy); return copy as T; } @@ -561,10 +547,7 @@ class PigeonInstanceManager { /// /// Throws assertion error if the instance or its identifier has already been /// added. - void addHostCreatedInstance( - PigeonInternalProxyApiBaseClass instance, - int identifier, - ) { + void addHostCreatedInstance(PigeonInternalProxyApiBaseClass instance, int identifier) { assert(!containsIdentifier(identifier)); assert(getIdentifier(instance) == null); assert(identifier >= 0); @@ -593,7 +576,7 @@ class PigeonInstanceManager { class _PigeonInternalInstanceManagerApi { /// Constructor for [_PigeonInternalInstanceManagerApi]. _PigeonInternalInstanceManagerApi({BinaryMessenger? binaryMessenger}) - : pigeonVar_binaryMessenger = binaryMessenger; + : pigeonVar_binaryMessenger = binaryMessenger; final BinaryMessenger? pigeonVar_binaryMessenger; @@ -606,35 +589,28 @@ class _PigeonInternalInstanceManagerApi { }) { { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference was null.'); final List args = (message as List?)!; final int? arg_identifier = (args[0] as int?); - assert( - arg_identifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference was null, expected non-null int.', - ); + assert(arg_identifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference was null, expected non-null int.'); try { - (instanceManager ?? PigeonInstanceManager.instance).remove( - arg_identifier!, - ); + (instanceManager ?? PigeonInstanceManager.instance) + .remove(arg_identifier!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -649,9 +625,8 @@ class _PigeonInternalInstanceManagerApi { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [identifier], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([identifier]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -684,32 +659,36 @@ class _PigeonInternalInstanceManagerApi { } class _PigeonInternalProxyApiBaseCodec extends _PigeonCodec { - const _PigeonInternalProxyApiBaseCodec(this.instanceManager); - final PigeonInstanceManager instanceManager; - @override - void writeValue(WriteBuffer buffer, Object? value) { - if (value is PigeonInternalProxyApiBaseClass) { - buffer.putUint8(128); - writeValue(buffer, instanceManager.getIdentifier(value)); - } else { - super.writeValue(buffer, value); - } - } + const _PigeonInternalProxyApiBaseCodec(this.instanceManager); + final PigeonInstanceManager instanceManager; + @override + void writeValue(WriteBuffer buffer, Object? value) { + if (value is PigeonInternalProxyApiBaseClass) { + buffer.putUint8(128); + writeValue(buffer, instanceManager.getIdentifier(value)); + } else { + super.writeValue(buffer, value); + } + } + @override + Object? readValueOfType(int type, ReadBuffer buffer) { + switch (type) { + case 128: + return instanceManager + .getInstanceWithWeakReference(readValue(buffer)! as int); + default: + return super.readValueOfType(type, buffer); + } + } +} - @override - Object? readValueOfType(int type, ReadBuffer buffer) { - switch (type) { - case 128: - return instanceManager.getInstanceWithWeakReference( - readValue(buffer)! as int, - ); - default: - return super.readValueOfType(type, buffer); - } - } + +enum ProxyApiTestEnum { + one, + two, + three, } -enum ProxyApiTestEnum { one, two, three } class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @@ -718,7 +697,7 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is ProxyApiTestEnum) { + } else if (value is ProxyApiTestEnum) { buffer.putUint8(129); writeValue(buffer, value.index); } else { @@ -737,7 +716,6 @@ class _PigeonCodec extends StandardMessageCodec { } } } - /// The core ProxyApi test class that each supported host language must /// implement in platform_tests integration tests. class ProxyApiTestClass extends ProxyApiSuperClass @@ -767,85 +745,91 @@ class ProxyApiTestClass extends ProxyApiSuperClass void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - required bool Function(ProxyApiTestClass pigeon_instance, bool aBool) - flutterEchoBool, - required int Function(ProxyApiTestClass pigeon_instance, int anInt) - flutterEchoInt, - required double Function(ProxyApiTestClass pigeon_instance, double aDouble) - flutterEchoDouble, - required String Function(ProxyApiTestClass pigeon_instance, String aString) - flutterEchoString, + required bool Function( + ProxyApiTestClass pigeon_instance, + bool aBool, + ) flutterEchoBool, + required int Function( + ProxyApiTestClass pigeon_instance, + int anInt, + ) flutterEchoInt, + required double Function( + ProxyApiTestClass pigeon_instance, + double aDouble, + ) flutterEchoDouble, + required String Function( + ProxyApiTestClass pigeon_instance, + String aString, + ) flutterEchoString, required Uint8List Function( ProxyApiTestClass pigeon_instance, Uint8List aList, - ) - flutterEchoUint8List, + ) flutterEchoUint8List, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoList, + ) flutterEchoList, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoProxyApiList, + ) flutterEchoProxyApiList, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoMap, + ) flutterEchoMap, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoProxyApiMap, + ) flutterEchoProxyApiMap, required ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) - flutterEchoEnum, + ) flutterEchoEnum, required ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) - flutterEchoProxyApi, - bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? - flutterEchoNullableBool, - int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? - flutterEchoNullableInt, - double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? - flutterEchoNullableDouble, - String? Function(ProxyApiTestClass pigeon_instance, String? aString)? - flutterEchoNullableString, - Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? - flutterEchoNullableUint8List, + ) flutterEchoProxyApi, + bool? Function( + ProxyApiTestClass pigeon_instance, + bool? aBool, + )? flutterEchoNullableBool, + int? Function( + ProxyApiTestClass pigeon_instance, + int? anInt, + )? flutterEchoNullableInt, + double? Function( + ProxyApiTestClass pigeon_instance, + double? aDouble, + )? flutterEchoNullableDouble, + String? Function( + ProxyApiTestClass pigeon_instance, + String? aString, + )? flutterEchoNullableString, + Uint8List? Function( + ProxyApiTestClass pigeon_instance, + Uint8List? aList, + )? flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? - flutterEchoNullableList, + )? flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? - flutterEchoNullableMap, + )? flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? - flutterEchoNullableEnum, + )? flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? - flutterEchoNullableProxyApi, + )? flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, required Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) - flutterEchoAsyncString, + ) flutterEchoAsyncString, required bool boolParam, required int intParam, required double doubleParam, @@ -1066,8 +1050,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass ProxyApiTestEnum? nullableEnumParam, ProxyApiSuperClass? nullableProxyApiParam, }) : super.pigeon_detached() { - final int pigeonVar_instanceIdentifier = pigeon_instanceManager - .addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = + pigeon_instanceManager.addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -1078,46 +1062,46 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel - .send([ - pigeonVar_instanceIdentifier, - aBool, - anInt, - aDouble, - aString, - aUint8List, - aList, - aMap, - anEnum, - aProxyApi, - aNullableBool, - aNullableInt, - aNullableDouble, - aNullableString, - aNullableUint8List, - aNullableList, - aNullableMap, - aNullableEnum, - aNullableProxyApi, - boolParam, - intParam, - doubleParam, - stringParam, - aUint8ListParam, - listParam, - mapParam, - enumParam, - proxyApiParam, - nullableBoolParam, - nullableIntParam, - nullableDoubleParam, - nullableStringParam, - nullableUint8ListParam, - nullableListParam, - nullableMapParam, - nullableEnumParam, - nullableProxyApiParam, - ]); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([ + pigeonVar_instanceIdentifier, + aBool, + anInt, + aDouble, + aString, + aUint8List, + aList, + aMap, + anEnum, + aProxyApi, + aNullableBool, + aNullableInt, + aNullableDouble, + aNullableString, + aNullableUint8List, + aNullableList, + aNullableMap, + aNullableEnum, + aNullableProxyApi, + boolParam, + intParam, + doubleParam, + stringParam, + aUint8ListParam, + listParam, + mapParam, + enumParam, + proxyApiParam, + nullableBoolParam, + nullableIntParam, + nullableDoubleParam, + nullableStringParam, + nullableUint8ListParam, + nullableListParam, + nullableMapParam, + nullableEnumParam, + nullableProxyApiParam + ]); () async { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -1154,85 +1138,91 @@ class ProxyApiTestClass extends ProxyApiSuperClass void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - required bool Function(ProxyApiTestClass pigeon_instance, bool aBool) - flutterEchoBool, - required int Function(ProxyApiTestClass pigeon_instance, int anInt) - flutterEchoInt, - required double Function(ProxyApiTestClass pigeon_instance, double aDouble) - flutterEchoDouble, - required String Function(ProxyApiTestClass pigeon_instance, String aString) - flutterEchoString, + required bool Function( + ProxyApiTestClass pigeon_instance, + bool aBool, + ) flutterEchoBool, + required int Function( + ProxyApiTestClass pigeon_instance, + int anInt, + ) flutterEchoInt, + required double Function( + ProxyApiTestClass pigeon_instance, + double aDouble, + ) flutterEchoDouble, + required String Function( + ProxyApiTestClass pigeon_instance, + String aString, + ) flutterEchoString, required Uint8List Function( ProxyApiTestClass pigeon_instance, Uint8List aList, - ) - flutterEchoUint8List, + ) flutterEchoUint8List, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoList, + ) flutterEchoList, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoProxyApiList, + ) flutterEchoProxyApiList, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoMap, + ) flutterEchoMap, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoProxyApiMap, + ) flutterEchoProxyApiMap, required ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) - flutterEchoEnum, + ) flutterEchoEnum, required ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) - flutterEchoProxyApi, - bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? - flutterEchoNullableBool, - int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? - flutterEchoNullableInt, - double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? - flutterEchoNullableDouble, - String? Function(ProxyApiTestClass pigeon_instance, String? aString)? - flutterEchoNullableString, - Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? - flutterEchoNullableUint8List, + ) flutterEchoProxyApi, + bool? Function( + ProxyApiTestClass pigeon_instance, + bool? aBool, + )? flutterEchoNullableBool, + int? Function( + ProxyApiTestClass pigeon_instance, + int? anInt, + )? flutterEchoNullableInt, + double? Function( + ProxyApiTestClass pigeon_instance, + double? aDouble, + )? flutterEchoNullableDouble, + String? Function( + ProxyApiTestClass pigeon_instance, + String? aString, + )? flutterEchoNullableString, + Uint8List? Function( + ProxyApiTestClass pigeon_instance, + Uint8List? aList, + )? flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? - flutterEchoNullableList, + )? flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? - flutterEchoNullableMap, + )? flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? - flutterEchoNullableEnum, + )? flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? - flutterEchoNullableProxyApi, + )? flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, required Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) - flutterEchoAsyncString, + ) flutterEchoAsyncString, }) { if (PigeonOverrides.proxyApiTestClass_namedConstructor != null) { return PigeonOverrides.proxyApiTestClass_namedConstructor!( @@ -1381,8 +1371,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass this.flutterNoopAsync, required this.flutterEchoAsyncString, }) : super.pigeon_detached() { - final int pigeonVar_instanceIdentifier = pigeon_instanceManager - .addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = + pigeon_instanceManager.addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -1393,28 +1383,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel - .send([ - pigeonVar_instanceIdentifier, - aBool, - anInt, - aDouble, - aString, - aUint8List, - aList, - aMap, - anEnum, - aProxyApi, - aNullableBool, - aNullableInt, - aNullableDouble, - aNullableString, - aNullableUint8List, - aNullableList, - aNullableMap, - aNullableEnum, - aNullableProxyApi, - ]); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([ + pigeonVar_instanceIdentifier, + aBool, + anInt, + aDouble, + aString, + aUint8List, + aList, + aMap, + anEnum, + aProxyApi, + aNullableBool, + aNullableInt, + aNullableDouble, + aNullableString, + aNullableUint8List, + aNullableList, + aNullableMap, + aNullableEnum, + aNullableProxyApi + ]); () async { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -1481,9 +1471,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass }) : super.pigeon_detached(); late final _PigeonInternalProxyApiBaseCodec - _pigeonVar_codecProxyApiTestClass = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager, - ); + _pigeonVar_codecProxyApiTestClass = + _PigeonInternalProxyApiBaseCodec(pigeon_instanceManager); final bool aBool; @@ -1584,7 +1573,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final void Function(ProxyApiTestClass pigeon_instance)? - flutterThrowErrorFromVoid; + flutterThrowErrorFromVoid; /// Returns the passed boolean, to test serialization and deserialization. /// @@ -1605,8 +1594,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final bool Function(ProxyApiTestClass pigeon_instance, bool aBool) - flutterEchoBool; + final bool Function( + ProxyApiTestClass pigeon_instance, + bool aBool, + ) flutterEchoBool; /// Returns the passed int, to test serialization and deserialization. /// @@ -1627,8 +1618,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final int Function(ProxyApiTestClass pigeon_instance, int anInt) - flutterEchoInt; + final int Function( + ProxyApiTestClass pigeon_instance, + int anInt, + ) flutterEchoInt; /// Returns the passed double, to test serialization and deserialization. /// @@ -1649,8 +1642,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final double Function(ProxyApiTestClass pigeon_instance, double aDouble) - flutterEchoDouble; + final double Function( + ProxyApiTestClass pigeon_instance, + double aDouble, + ) flutterEchoDouble; /// Returns the passed string, to test serialization and deserialization. /// @@ -1671,8 +1666,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final String Function(ProxyApiTestClass pigeon_instance, String aString) - flutterEchoString; + final String Function( + ProxyApiTestClass pigeon_instance, + String aString, + ) flutterEchoString; /// Returns the passed byte list, to test serialization and deserialization. /// @@ -1693,8 +1690,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final Uint8List Function(ProxyApiTestClass pigeon_instance, Uint8List aList) - flutterEchoUint8List; + final Uint8List Function( + ProxyApiTestClass pigeon_instance, + Uint8List aList, + ) flutterEchoUint8List; /// Returns the passed list, to test serialization and deserialization. /// @@ -1718,8 +1717,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoList; + ) flutterEchoList; /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. @@ -1744,8 +1742,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final List Function( ProxyApiTestClass pigeon_instance, List aList, - ) - flutterEchoProxyApiList; + ) flutterEchoProxyApiList; /// Returns the passed map, to test serialization and deserialization. /// @@ -1769,8 +1766,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoMap; + ) flutterEchoMap; /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. @@ -1795,8 +1791,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) - flutterEchoProxyApiMap; + ) flutterEchoProxyApiMap; /// Returns the passed enum to test serialization and deserialization. /// @@ -1820,8 +1815,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) - flutterEchoEnum; + ) flutterEchoEnum; /// Returns the passed ProxyApi to test serialization and deserialization. /// @@ -1845,8 +1839,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) - flutterEchoProxyApi; + ) flutterEchoProxyApi; /// Returns the passed boolean, to test serialization and deserialization. /// @@ -1867,8 +1860,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? - flutterEchoNullableBool; + final bool? Function( + ProxyApiTestClass pigeon_instance, + bool? aBool, + )? flutterEchoNullableBool; /// Returns the passed int, to test serialization and deserialization. /// @@ -1889,8 +1884,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? - flutterEchoNullableInt; + final int? Function( + ProxyApiTestClass pigeon_instance, + int? anInt, + )? flutterEchoNullableInt; /// Returns the passed double, to test serialization and deserialization. /// @@ -1911,8 +1908,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? - flutterEchoNullableDouble; + final double? Function( + ProxyApiTestClass pigeon_instance, + double? aDouble, + )? flutterEchoNullableDouble; /// Returns the passed string, to test serialization and deserialization. /// @@ -1933,8 +1932,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final String? Function(ProxyApiTestClass pigeon_instance, String? aString)? - flutterEchoNullableString; + final String? Function( + ProxyApiTestClass pigeon_instance, + String? aString, + )? flutterEchoNullableString; /// Returns the passed byte list, to test serialization and deserialization. /// @@ -1958,8 +1959,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Uint8List? Function( ProxyApiTestClass pigeon_instance, Uint8List? aList, - )? - flutterEchoNullableUint8List; + )? flutterEchoNullableUint8List; /// Returns the passed list, to test serialization and deserialization. /// @@ -1983,8 +1983,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? - flutterEchoNullableList; + )? flutterEchoNullableList; /// Returns the passed map, to test serialization and deserialization. /// @@ -2008,8 +2007,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? - flutterEchoNullableMap; + )? flutterEchoNullableMap; /// Returns the passed enum to test serialization and deserialization. /// @@ -2033,8 +2031,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? - flutterEchoNullableEnum; + )? flutterEchoNullableEnum; /// Returns the passed ProxyApi to test serialization and deserialization. /// @@ -2058,8 +2055,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? - flutterEchoNullableProxyApi; + )? flutterEchoNullableProxyApi; /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. @@ -2082,7 +2078,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Future Function(ProxyApiTestClass pigeon_instance)? - flutterNoopAsync; + flutterNoopAsync; /// Returns the passed in generic Object asynchronously. /// @@ -2106,8 +2102,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) - flutterEchoAsyncString; + ) flutterEchoAsyncString; @override final void Function(ProxyApiInterface pigeon_instance)? anInterfaceMethod; @@ -2128,116 +2123,121 @@ class ProxyApiTestClass extends ProxyApiSuperClass void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - bool Function(ProxyApiTestClass pigeon_instance, bool aBool)? - flutterEchoBool, - int Function(ProxyApiTestClass pigeon_instance, int anInt)? flutterEchoInt, - double Function(ProxyApiTestClass pigeon_instance, double aDouble)? - flutterEchoDouble, - String Function(ProxyApiTestClass pigeon_instance, String aString)? - flutterEchoString, - Uint8List Function(ProxyApiTestClass pigeon_instance, Uint8List aList)? - flutterEchoUint8List, + bool Function( + ProxyApiTestClass pigeon_instance, + bool aBool, + )? flutterEchoBool, + int Function( + ProxyApiTestClass pigeon_instance, + int anInt, + )? flutterEchoInt, + double Function( + ProxyApiTestClass pigeon_instance, + double aDouble, + )? flutterEchoDouble, + String Function( + ProxyApiTestClass pigeon_instance, + String aString, + )? flutterEchoString, + Uint8List Function( + ProxyApiTestClass pigeon_instance, + Uint8List aList, + )? flutterEchoUint8List, List Function( ProxyApiTestClass pigeon_instance, List aList, - )? - flutterEchoList, + )? flutterEchoList, List Function( ProxyApiTestClass pigeon_instance, List aList, - )? - flutterEchoProxyApiList, + )? flutterEchoProxyApiList, Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - )? - flutterEchoMap, + )? flutterEchoMap, Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - )? - flutterEchoProxyApiMap, + )? flutterEchoProxyApiMap, ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - )? - flutterEchoEnum, + )? flutterEchoEnum, ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - )? - flutterEchoProxyApi, - bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? - flutterEchoNullableBool, - int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? - flutterEchoNullableInt, - double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? - flutterEchoNullableDouble, - String? Function(ProxyApiTestClass pigeon_instance, String? aString)? - flutterEchoNullableString, - Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? - flutterEchoNullableUint8List, + )? flutterEchoProxyApi, + bool? Function( + ProxyApiTestClass pigeon_instance, + bool? aBool, + )? flutterEchoNullableBool, + int? Function( + ProxyApiTestClass pigeon_instance, + int? anInt, + )? flutterEchoNullableInt, + double? Function( + ProxyApiTestClass pigeon_instance, + double? aDouble, + )? flutterEchoNullableDouble, + String? Function( + ProxyApiTestClass pigeon_instance, + String? aString, + )? flutterEchoNullableString, + Uint8List? Function( + ProxyApiTestClass pigeon_instance, + Uint8List? aList, + )? flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? - flutterEchoNullableList, + )? flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? - flutterEchoNullableMap, + )? flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? - flutterEchoNullableEnum, + )? flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? - flutterEchoNullableProxyApi, + )? flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, - Future Function(ProxyApiTestClass pigeon_instance, String aString)? - flutterEchoAsyncString, + Future Function( + ProxyApiTestClass pigeon_instance, + String aString, + )? flutterEchoAsyncString, }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance, - ); + pigeon_instanceManager ?? PigeonInstanceManager.instance); final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null, expected non-null ProxyApiTestClass.'); try { - (flutterNoop ?? arg_pigeon_instance!.flutterNoop)?.call( - arg_pigeon_instance!, - ); + (flutterNoop ?? arg_pigeon_instance!.flutterNoop) + ?.call(arg_pigeon_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2245,25 +2245,20 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null, expected non-null ProxyApiTestClass.'); try { final Object? output = (flutterThrowError ?? arg_pigeon_instance!.flutterThrowError) @@ -2273,8 +2268,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2282,25 +2276,20 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null, expected non-null ProxyApiTestClass.'); try { (flutterThrowErrorFromVoid ?? arg_pigeon_instance!.flutterThrowErrorFromVoid) @@ -2310,8 +2299,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2319,43 +2307,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null ProxyApiTestClass.'); final bool? arg_aBool = (args[1] as bool?); - assert( - arg_aBool != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null bool.', - ); + assert(arg_aBool != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null bool.'); try { final bool output = - (flutterEchoBool ?? arg_pigeon_instance!.flutterEchoBool).call( - arg_pigeon_instance!, - arg_aBool!, - ); + (flutterEchoBool ?? arg_pigeon_instance!.flutterEchoBool) + .call(arg_pigeon_instance!, arg_aBool!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2363,43 +2341,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null ProxyApiTestClass.'); final int? arg_anInt = (args[1] as int?); - assert( - arg_anInt != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null int.', - ); + assert(arg_anInt != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null int.'); try { final int output = - (flutterEchoInt ?? arg_pigeon_instance!.flutterEchoInt).call( - arg_pigeon_instance!, - arg_anInt!, - ); + (flutterEchoInt ?? arg_pigeon_instance!.flutterEchoInt) + .call(arg_pigeon_instance!, arg_anInt!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2407,30 +2375,23 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null ProxyApiTestClass.'); final double? arg_aDouble = (args[1] as double?); - assert( - arg_aDouble != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null double.', - ); + assert(arg_aDouble != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null double.'); try { final double output = (flutterEchoDouble ?? arg_pigeon_instance!.flutterEchoDouble) @@ -2440,8 +2401,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2449,30 +2409,23 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); - assert( - arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null String.', - ); + assert(arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null String.'); try { final String output = (flutterEchoString ?? arg_pigeon_instance!.flutterEchoString) @@ -2482,8 +2435,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2491,42 +2443,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null ProxyApiTestClass.'); final Uint8List? arg_aList = (args[1] as Uint8List?); - assert( - arg_aList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null Uint8List.', - ); + assert(arg_aList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null Uint8List.'); try { - final Uint8List output = - (flutterEchoUint8List ?? - arg_pigeon_instance!.flutterEchoUint8List) - .call(arg_pigeon_instance!, arg_aList!); + final Uint8List output = (flutterEchoUint8List ?? + arg_pigeon_instance!.flutterEchoUint8List) + .call(arg_pigeon_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2534,44 +2477,34 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null ProxyApiTestClass.', - ); - final List? arg_aList = (args[1] as List?) - ?.cast(); - assert( - arg_aList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null List.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null ProxyApiTestClass.'); + final List? arg_aList = + (args[1] as List?)?.cast(); + assert(arg_aList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null List.'); try { final List output = - (flutterEchoList ?? arg_pigeon_instance!.flutterEchoList).call( - arg_pigeon_instance!, - arg_aList!, - ); + (flutterEchoList ?? arg_pigeon_instance!.flutterEchoList) + .call(arg_pigeon_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2579,43 +2512,34 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null ProxyApiTestClass.'); final List? arg_aList = (args[1] as List?)?.cast(); - assert( - arg_aList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null List.', - ); + assert(arg_aList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null List.'); try { - final List output = - (flutterEchoProxyApiList ?? - arg_pigeon_instance!.flutterEchoProxyApiList) - .call(arg_pigeon_instance!, arg_aList!); + final List output = (flutterEchoProxyApiList ?? + arg_pigeon_instance!.flutterEchoProxyApiList) + .call(arg_pigeon_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2623,44 +2547,34 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?)?.cast(); - assert( - arg_aMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null Map.', - ); + assert(arg_aMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null Map.'); try { final Map output = - (flutterEchoMap ?? arg_pigeon_instance!.flutterEchoMap).call( - arg_pigeon_instance!, - arg_aMap!, - ); + (flutterEchoMap ?? arg_pigeon_instance!.flutterEchoMap) + .call(arg_pigeon_instance!, arg_aMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2668,32 +2582,25 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?) ?.cast(); - assert( - arg_aMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null Map.', - ); + assert(arg_aMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null Map.'); try { final Map output = (flutterEchoProxyApiMap ?? @@ -2704,8 +2611,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2713,43 +2619,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestClass.'); final ProxyApiTestEnum? arg_anEnum = (args[1] as ProxyApiTestEnum?); - assert( - arg_anEnum != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestEnum.', - ); + assert(arg_anEnum != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestEnum.'); try { final ProxyApiTestEnum output = - (flutterEchoEnum ?? arg_pigeon_instance!.flutterEchoEnum).call( - arg_pigeon_instance!, - arg_anEnum!, - ); + (flutterEchoEnum ?? arg_pigeon_instance!.flutterEchoEnum) + .call(arg_pigeon_instance!, arg_anEnum!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2757,43 +2653,34 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiTestClass.'); final ProxyApiSuperClass? arg_aProxyApi = (args[1] as ProxyApiSuperClass?); - assert( - arg_aProxyApi != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiSuperClass.', - ); + assert(arg_aProxyApi != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiSuperClass.'); try { - final ProxyApiSuperClass output = - (flutterEchoProxyApi ?? - arg_pigeon_instance!.flutterEchoProxyApi) - .call(arg_pigeon_instance!, arg_aProxyApi!); + final ProxyApiSuperClass output = (flutterEchoProxyApi ?? + arg_pigeon_instance!.flutterEchoProxyApi) + .call(arg_pigeon_instance!, arg_aProxyApi!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2801,38 +2688,31 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null, expected non-null ProxyApiTestClass.'); final bool? arg_aBool = (args[1] as bool?); try { - final bool? output = - (flutterEchoNullableBool ?? - arg_pigeon_instance!.flutterEchoNullableBool) - ?.call(arg_pigeon_instance!, arg_aBool); + final bool? output = (flutterEchoNullableBool ?? + arg_pigeon_instance!.flutterEchoNullableBool) + ?.call(arg_pigeon_instance!, arg_aBool); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2840,38 +2720,31 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null, expected non-null ProxyApiTestClass.'); final int? arg_anInt = (args[1] as int?); try { - final int? output = - (flutterEchoNullableInt ?? - arg_pigeon_instance!.flutterEchoNullableInt) - ?.call(arg_pigeon_instance!, arg_anInt); + final int? output = (flutterEchoNullableInt ?? + arg_pigeon_instance!.flutterEchoNullableInt) + ?.call(arg_pigeon_instance!, arg_anInt); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2879,38 +2752,31 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null, expected non-null ProxyApiTestClass.'); final double? arg_aDouble = (args[1] as double?); try { - final double? output = - (flutterEchoNullableDouble ?? - arg_pigeon_instance!.flutterEchoNullableDouble) - ?.call(arg_pigeon_instance!, arg_aDouble); + final double? output = (flutterEchoNullableDouble ?? + arg_pigeon_instance!.flutterEchoNullableDouble) + ?.call(arg_pigeon_instance!, arg_aDouble); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2918,38 +2784,31 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); try { - final String? output = - (flutterEchoNullableString ?? - arg_pigeon_instance!.flutterEchoNullableString) - ?.call(arg_pigeon_instance!, arg_aString); + final String? output = (flutterEchoNullableString ?? + arg_pigeon_instance!.flutterEchoNullableString) + ?.call(arg_pigeon_instance!, arg_aString); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2957,38 +2816,31 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null, expected non-null ProxyApiTestClass.'); final Uint8List? arg_aList = (args[1] as Uint8List?); try { - final Uint8List? output = - (flutterEchoNullableUint8List ?? - arg_pigeon_instance!.flutterEchoNullableUint8List) - ?.call(arg_pigeon_instance!, arg_aList); + final Uint8List? output = (flutterEchoNullableUint8List ?? + arg_pigeon_instance!.flutterEchoNullableUint8List) + ?.call(arg_pigeon_instance!, arg_aList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2996,39 +2848,32 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null, expected non-null ProxyApiTestClass.', - ); - final List? arg_aList = (args[1] as List?) - ?.cast(); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null, expected non-null ProxyApiTestClass.'); + final List? arg_aList = + (args[1] as List?)?.cast(); try { - final List? output = - (flutterEchoNullableList ?? - arg_pigeon_instance!.flutterEchoNullableList) - ?.call(arg_pigeon_instance!, arg_aList); + final List? output = (flutterEchoNullableList ?? + arg_pigeon_instance!.flutterEchoNullableList) + ?.call(arg_pigeon_instance!, arg_aList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -3036,39 +2881,32 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?)?.cast(); try { - final Map? output = - (flutterEchoNullableMap ?? - arg_pigeon_instance!.flutterEchoNullableMap) - ?.call(arg_pigeon_instance!, arg_aMap); + final Map? output = (flutterEchoNullableMap ?? + arg_pigeon_instance!.flutterEchoNullableMap) + ?.call(arg_pigeon_instance!, arg_aMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -3076,38 +2914,31 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null, expected non-null ProxyApiTestClass.'); final ProxyApiTestEnum? arg_anEnum = (args[1] as ProxyApiTestEnum?); try { - final ProxyApiTestEnum? output = - (flutterEchoNullableEnum ?? - arg_pigeon_instance!.flutterEchoNullableEnum) - ?.call(arg_pigeon_instance!, arg_anEnum); + final ProxyApiTestEnum? output = (flutterEchoNullableEnum ?? + arg_pigeon_instance!.flutterEchoNullableEnum) + ?.call(arg_pigeon_instance!, arg_anEnum); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -3115,39 +2946,32 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null, expected non-null ProxyApiTestClass.'); final ProxyApiSuperClass? arg_aProxyApi = (args[1] as ProxyApiSuperClass?); try { - final ProxyApiSuperClass? output = - (flutterEchoNullableProxyApi ?? - arg_pigeon_instance!.flutterEchoNullableProxyApi) - ?.call(arg_pigeon_instance!, arg_aProxyApi); + final ProxyApiSuperClass? output = (flutterEchoNullableProxyApi ?? + arg_pigeon_instance!.flutterEchoNullableProxyApi) + ?.call(arg_pigeon_instance!, arg_aProxyApi); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -3155,25 +2979,20 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null, expected non-null ProxyApiTestClass.'); try { await (flutterNoopAsync ?? arg_pigeon_instance!.flutterNoopAsync) ?.call(arg_pigeon_instance!); @@ -3182,8 +3001,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -3191,42 +3009,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null.'); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null ProxyApiTestClass.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); - assert( - arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null String.', - ); + assert(arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null String.'); try { - final String output = - await (flutterEchoAsyncString ?? - arg_pigeon_instance!.flutterEchoAsyncString) - .call(arg_pigeon_instance!, arg_aString!); + final String output = await (flutterEchoAsyncString ?? + arg_pigeon_instance!.flutterEchoAsyncString) + .call(arg_pigeon_instance!, arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -3236,14 +3045,14 @@ class ProxyApiTestClass extends ProxyApiSuperClass ProxyApiSuperClass pigeonVar_attachedField() { final ProxyApiSuperClass pigeonVar_instance = ProxyApiSuperClass.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, - ); + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + ); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; - final int pigeonVar_instanceIdentifier = pigeon_instanceManager - .addDartCreatedInstance(pigeonVar_instance); + final int pigeonVar_instanceIdentifier = + pigeon_instanceManager.addDartCreatedInstance(pigeonVar_instance); () async { const pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField'; @@ -3252,9 +3061,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, pigeonVar_instanceIdentifier], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, pigeonVar_instanceIdentifier]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3283,9 +3091,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [pigeonVar_instanceIdentifier], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([pigeonVar_instanceIdentifier]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3310,9 +3117,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3334,9 +3140,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3359,9 +3164,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3383,9 +3187,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3408,9 +3211,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anInt], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3433,9 +3235,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aDouble], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3458,9 +3259,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aBool], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3483,9 +3283,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aString], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3508,9 +3307,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aUint8List], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3533,9 +3331,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anObject], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anObject]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3558,9 +3355,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aList], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3574,8 +3370,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. Future> echoProxyApiList( - List aList, - ) async { + List aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3586,9 +3381,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aList], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3611,9 +3405,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aMap], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3628,8 +3421,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. Future> echoProxyApiMap( - Map aMap, - ) async { + Map aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3640,9 +3432,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aMap], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3666,9 +3457,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anEnum], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3691,9 +3481,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aProxyApi], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aProxyApi]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3716,9 +3505,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableInt], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3741,9 +3529,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableDouble], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3766,9 +3553,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableBool], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3791,9 +3577,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableString], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3806,8 +3591,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed in Uint8List. Future echoNullableUint8List( - Uint8List? aNullableUint8List, - ) async { + Uint8List? aNullableUint8List) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3818,9 +3602,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableUint8List], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3843,9 +3626,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableObject], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableObject]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3868,9 +3650,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableList], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3883,8 +3664,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed map, to test serialization and deserialization. Future?> echoNullableMap( - Map? aNullableMap, - ) async { + Map? aNullableMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3895,9 +3675,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableMap], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3910,8 +3689,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future echoNullableEnum( - ProxyApiTestEnum? aNullableEnum, - ) async { + ProxyApiTestEnum? aNullableEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3922,9 +3700,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableEnum], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3937,8 +3714,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed ProxyApi to test serialization and deserialization. Future echoNullableProxyApi( - ProxyApiSuperClass? aNullableProxyApi, - ) async { + ProxyApiSuperClass? aNullableProxyApi) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3949,9 +3725,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aNullableProxyApi], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aNullableProxyApi]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3975,9 +3750,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3999,9 +3773,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anInt], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4024,9 +3797,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aDouble], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4049,9 +3821,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aBool], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4074,9 +3845,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aString], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4099,9 +3869,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aUint8List], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4124,9 +3893,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anObject], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anObject]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4149,9 +3917,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aList], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4174,9 +3941,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aMap], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4200,9 +3966,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anEnum], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4225,9 +3990,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4250,9 +4014,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -4274,9 +4037,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4299,9 +4061,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anInt], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4324,9 +4085,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aDouble], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4349,9 +4109,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aBool], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4374,9 +4133,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aString], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4399,9 +4157,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aUint8List], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4424,9 +4181,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anObject], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anObject]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4449,9 +4205,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aList], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4464,8 +4219,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed map, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableMap( - Map? aMap, - ) async { + Map? aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4476,9 +4230,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aMap], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4492,8 +4245,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncNullableEnum( - ProxyApiTestEnum? anEnum, - ) async { + ProxyApiTestEnum? anEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4504,9 +4256,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anEnum], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4526,8 +4277,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance, - ); + pigeon_instanceManager ?? PigeonInstanceManager.instance); final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; const pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop'; @@ -4556,8 +4306,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance, - ); + pigeon_instanceManager ?? PigeonInstanceManager.instance); final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; const pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString'; @@ -4566,9 +4315,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [aString], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4588,8 +4336,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance, - ); + pigeon_instanceManager ?? PigeonInstanceManager.instance); final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; const pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop'; @@ -4619,9 +4366,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -4642,9 +4388,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4666,9 +4411,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -4689,9 +4433,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aBool], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4713,9 +4456,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anInt], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4737,9 +4479,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aDouble], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4761,9 +4502,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aString], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4785,9 +4525,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aUint8List], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4809,9 +4548,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aList], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4823,8 +4561,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future> callFlutterEchoProxyApiList( - List aList, - ) async { + List aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4835,9 +4572,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aList], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4849,8 +4585,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future> callFlutterEchoMap( - Map aMap, - ) async { + Map aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4861,9 +4596,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aMap], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4876,8 +4610,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future> callFlutterEchoProxyApiMap( - Map aMap, - ) async { + Map aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4888,9 +4621,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aMap], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4913,9 +4645,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anEnum], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4927,8 +4658,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoProxyApi( - ProxyApiSuperClass aProxyApi, - ) async { + ProxyApiSuperClass aProxyApi) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4939,9 +4669,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aProxyApi], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aProxyApi]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4963,9 +4692,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aBool], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aBool]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4987,9 +4715,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anInt], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anInt]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5011,9 +4738,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aDouble], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aDouble]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5035,9 +4761,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aString], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5049,8 +4774,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoNullableUint8List( - Uint8List? aUint8List, - ) async { + Uint8List? aUint8List) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5061,9 +4785,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aUint8List], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aUint8List]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5075,8 +4798,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future?> callFlutterEchoNullableList( - List? aList, - ) async { + List? aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5087,9 +4809,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aList], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aList]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5101,8 +4822,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future?> callFlutterEchoNullableMap( - Map? aMap, - ) async { + Map? aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5113,9 +4833,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aMap], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aMap]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5128,8 +4847,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoNullableEnum( - ProxyApiTestEnum? anEnum, - ) async { + ProxyApiTestEnum? anEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5140,9 +4858,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, anEnum], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, anEnum]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5154,8 +4871,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoNullableProxyApi( - ProxyApiSuperClass? aProxyApi, - ) async { + ProxyApiSuperClass? aProxyApi) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5166,9 +4882,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aProxyApi], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aProxyApi]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5190,9 +4905,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -5213,9 +4927,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this, aString], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this, aString]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5299,8 +5012,8 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { super.pigeon_binaryMessenger, super.pigeon_instanceManager, }) { - final int pigeonVar_instanceIdentifier = pigeon_instanceManager - .addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = + pigeon_instanceManager.addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiSuperClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5311,9 +5024,8 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [pigeonVar_instanceIdentifier], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([pigeonVar_instanceIdentifier]); () async { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -5336,9 +5048,8 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { }); late final _PigeonInternalProxyApiBaseCodec - _pigeonVar_codecProxyApiSuperClass = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager, - ); + _pigeonVar_codecProxyApiSuperClass = + _PigeonInternalProxyApiBaseCodec(pigeon_instanceManager); static void pigeon_setUpMessageHandlers({ bool pigeon_clearHandlers = false, @@ -5348,46 +5059,39 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance, - ); + pigeon_instanceManager ?? PigeonInstanceManager.instance); final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null.'); final List args = (message as List?)!; final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert( - arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null, expected non-null int.', - ); + assert(arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null, expected non-null int.'); try { (pigeon_instanceManager ?? PigeonInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call() ?? - ProxyApiSuperClass.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, - ), - arg_pigeon_instanceIdentifier!, - ); + pigeon_newInstance?.call() ?? + ProxyApiSuperClass.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + ), + arg_pigeon_instanceIdentifier!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -5405,9 +5109,8 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -5469,46 +5172,39 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance, - ); + pigeon_instanceManager ?? PigeonInstanceManager.instance); final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null.'); final List args = (message as List?)!; final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert( - arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null, expected non-null int.', - ); + assert(arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null, expected non-null int.'); try { (pigeon_instanceManager ?? PigeonInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call() ?? - ProxyApiInterface.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, - ), - arg_pigeon_instanceIdentifier!, - ); + pigeon_newInstance?.call() ?? + ProxyApiInterface.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + ), + arg_pigeon_instanceIdentifier!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -5516,36 +5212,29 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null.'); final List args = (message as List?)!; final ProxyApiInterface? arg_pigeon_instance = (args[0] as ProxyApiInterface?); - assert( - arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null, expected non-null ProxyApiInterface.', - ); + assert(arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null, expected non-null ProxyApiInterface.'); try { - (anInterfaceMethod ?? arg_pigeon_instance!.anInterfaceMethod)?.call( - arg_pigeon_instance!, - ); + (anInterfaceMethod ?? arg_pigeon_instance!.anInterfaceMethod) + ?.call(arg_pigeon_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -5581,8 +5270,8 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { super.pigeon_binaryMessenger, super.pigeon_instanceManager, }) { - final int pigeonVar_instanceIdentifier = pigeon_instanceManager - .addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = + pigeon_instanceManager.addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecClassWithApiRequirement; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5593,9 +5282,8 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [pigeonVar_instanceIdentifier], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([pigeonVar_instanceIdentifier]); () async { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -5618,9 +5306,8 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { }); late final _PigeonInternalProxyApiBaseCodec - _pigeonVar_codecClassWithApiRequirement = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager, - ); + _pigeonVar_codecClassWithApiRequirement = + _PigeonInternalProxyApiBaseCodec(pigeon_instanceManager); static void pigeon_setUpMessageHandlers({ bool pigeon_clearHandlers = false, @@ -5630,46 +5317,39 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance, - ); + pigeon_instanceManager ?? PigeonInstanceManager.instance); final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance was null.'); final List args = (message as List?)!; final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert( - arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance was null, expected non-null int.', - ); + assert(arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance was null, expected non-null int.'); try { (pigeon_instanceManager ?? PigeonInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call() ?? - ClassWithApiRequirement.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, - ), - arg_pigeon_instanceIdentifier!, - ); + pigeon_newInstance?.call() ?? + ClassWithApiRequirement.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + ), + arg_pigeon_instanceIdentifier!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -5687,9 +5367,8 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [this], - ); + final Future pigeonVar_sendFuture = + pigeonVar_channel.send([this]); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -5707,3 +5386,4 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { ); } } + diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart index 58954be94d9c..65dbab12067d 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/equality_test.dart @@ -163,11 +163,13 @@ void main() { final v1 = AllNullableTypes(aNullableDouble: 0.0); final v2 = AllNullableTypes(aNullableDouble: -0.0); expect(v1, v2); + expect(v1.hashCode, v2.hashCode); }); test('signed zero map key equality', () { final v1 = AllNullableTypes(map: {0.0: 'a'}); final v2 = AllNullableTypes(map: {-0.0: 'a'}); expect(v1, v2); + expect(v1.hashCode, v2.hashCode); }); test( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart new file mode 100644 index 000000000000..63d409cc043a --- /dev/null +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart @@ -0,0 +1,162 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// Autogenerated from Pigeon (v26.2.0), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import, no_leading_underscores_for_local_identifiers, omit_obvious_local_variable_types +// ignore_for_file: avoid_relative_lib_imports +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:shared_test_plugin_code/message.gen.dart'; + + +class _PigeonCodec extends StandardMessageCodec { + const _PigeonCodec(); + @override + void writeValue(WriteBuffer buffer, Object? value) { + if (value is int) { + buffer.putUint8(4); + buffer.putInt64(value); + } else if (value is MessageRequestState) { + buffer.putUint8(129); + writeValue(buffer, value.index); + } else if (value is MessageSearchRequest) { + buffer.putUint8(130); + writeValue(buffer, value.encode()); + } else if (value is MessageSearchReply) { + buffer.putUint8(131); + writeValue(buffer, value.encode()); + } else if (value is MessageNested) { + buffer.putUint8(132); + writeValue(buffer, value.encode()); + } else { + super.writeValue(buffer, value); + } + } + + @override + Object? readValueOfType(int type, ReadBuffer buffer) { + switch (type) { + case 129: + final value = readValue(buffer) as int?; + return value == null ? null : MessageRequestState.values[value]; + case 130: + return MessageSearchRequest.decode(readValue(buffer)!); + case 131: + return MessageSearchReply.decode(readValue(buffer)!); + case 132: + return MessageNested.decode(readValue(buffer)!); + default: + return super.readValueOfType(type, buffer); + } + } +} + +/// This comment is to test api documentation comments. +/// +/// This comment also tests multiple line comments. +abstract class TestHostApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// This comment is to test documentation comments. + /// + /// This comment also tests multiple line comments. + void initialize(); + + /// This comment is to test method documentation comments. + MessageSearchReply search(MessageSearchRequest request); + + static void setUp(TestHostApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.initialize(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null.'); + final List args = (message as List?)!; + final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); + assert(arg_request != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null, expected non-null MessageSearchRequest.'); + try { + final MessageSearchReply output = api.search(arg_request!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} + +/// This comment is to test api documentation comments. +abstract class TestNestedApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// This comment is to test method documentation comments. + /// + /// This comment also tests multiple line comments. + MessageSearchReply search(MessageNested nested); + + static void setUp(TestNestedApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null.'); + final List args = (message as List?)!; + final MessageNested? arg_nested = (args[0] as MessageNested?); + assert(arg_nested != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null, expected non-null MessageNested.'); + try { + final MessageSearchReply output = api.search(arg_nested!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart index c60370dc5b97..4b7d6a970740 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart @@ -14,6 +14,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:shared_test_plugin_code/src/generated/message.gen.dart'; + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -21,16 +22,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MessageRequestState) { + } else if (value is MessageRequestState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageNested) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -60,8 +61,7 @@ class _PigeonCodec extends StandardMessageCodec { /// /// This comment also tests multiple line comments. abstract class TestHostApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); /// This comment is to test documentation comments. @@ -72,83 +72,50 @@ abstract class TestHostApi { /// This comment is to test method documentation comments. MessageSearchReply search(MessageSearchRequest request); - static void setUp( - TestHostApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(TestHostApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.initialize(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.initialize(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null.', - ); - final List args = (message as List?)!; - final MessageSearchRequest? arg_request = - (args[0] as MessageSearchRequest?); - assert( - arg_request != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null, expected non-null MessageSearchRequest.', - ); - try { - final MessageSearchReply output = api.search(arg_request!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null.'); + final List args = (message as List?)!; + final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); + assert(arg_request != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null, expected non-null MessageSearchRequest.'); + try { + final MessageSearchReply output = api.search(arg_request!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); } } } @@ -156,8 +123,7 @@ abstract class TestHostApi { /// This comment is to test api documentation comments. abstract class TestNestedApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); /// This comment is to test method documentation comments. @@ -165,52 +131,31 @@ abstract class TestNestedApi { /// This comment also tests multiple line comments. MessageSearchReply search(MessageNested nested); - static void setUp( - TestNestedApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(TestNestedApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null.', - ); - final List args = (message as List?)!; - final MessageNested? arg_nested = (args[0] as MessageNested?); - assert( - arg_nested != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null, expected non-null MessageNested.', - ); - try { - final MessageSearchReply output = api.search(arg_nested!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null.'); + final List args = (message as List?)!; + final MessageNested? arg_nested = (args[0] as MessageNested?); + assert(arg_nested != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null, expected non-null MessageNested.'); + try { + final MessageSearchReply output = api.search(arg_nested!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); } } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index a2b0c90d0673..6974d11f43d5 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -11,17 +11,16 @@ package com.example.test_plugin import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger +import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec +import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object CoreTestsPigeonUtils { fun createConnectionError(channelName: String): FlutterError { - return FlutterError( - "channel-error", "Unable to establish connection on channel: '$channelName'.", "") - } + return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } fun wrapResult(result: Any?): List { return listOf(result) @@ -29,15 +28,19 @@ private object CoreTestsPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is FlutterError) { - listOf(exception.code, exception.message, exception.details) + listOf( + exception.code, + exception.message, + exception.details + ) } else { listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception)) + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + ) } } - fun deepEquals(a: Any?, b: Any?): Boolean { if (a === b) { return true @@ -52,20 +55,37 @@ private object CoreTestsPigeonUtils { return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is FloatArray && b is FloatArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is Array<*> && b is Array<*>) { return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } + return a.size == b.size && a.all { + (b as Map).contains(it.key) && + deepEquals(it.value, b[it.key]) + } + } + if (a is Double && b is Double) { + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + if (a is Float && b is Float) { + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) } return a == b } @@ -76,8 +96,20 @@ private object CoreTestsPigeonUtils { is ByteArray -> value.contentHashCode() is IntArray -> value.contentHashCode() is LongArray -> value.contentHashCode() - is DoubleArray -> value.contentHashCode() - is FloatArray -> value.contentHashCode() + is DoubleArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is FloatArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } is Array<*> -> value.contentDeepHashCode() is List<*> -> { var result = 1 @@ -93,22 +125,31 @@ private object CoreTestsPigeonUtils { } result } + is Double -> { + val d = if (value == 0.0) 0.0 else value + val bits = java.lang.Double.doubleToLongBits(d) + (bits xor (bits ushr 32)).toInt() + } + is Float -> { + val f = if (value == 0.0f) 0.0f else value + java.lang.Float.floatToIntBits(f) + } else -> value.hashCode() } } + } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. - * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError( - val code: String, - override val message: String? = null, - val details: Any? = null +class FlutterError ( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() enum class AnEnum(val raw: Int) { @@ -136,20 +177,21 @@ enum class AnotherEnum(val raw: Int) { } /** Generated class from Pigeon that represents data sent in messages. */ -data class UnusedClass(val aField: Any? = null) { +data class UnusedClass ( + val aField: Any? = null +) + { companion object { fun fromList(pigeonVar_list: List): UnusedClass { val aField = pigeonVar_list[0] return UnusedClass(aField) } } - fun toList(): List { return listOf( - aField, + aField, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -173,36 +215,37 @@ data class UnusedClass(val aField: Any? = null) { * * Generated class from Pigeon that represents data sent in messages. */ -data class AllTypes( - val aBool: Boolean, - val anInt: Long, - val anInt64: Long, - val aDouble: Double, - val aByteArray: ByteArray, - val a4ByteArray: IntArray, - val a8ByteArray: LongArray, - val aFloatArray: DoubleArray, - val anEnum: AnEnum, - val anotherEnum: AnotherEnum, - val aString: String, - val anObject: Any, - val list: List, - val stringList: List, - val intList: List, - val doubleList: List, - val boolList: List, - val enumList: List, - val objectList: List, - val listList: List>, - val mapList: List>, - val map: Map, - val stringMap: Map, - val intMap: Map, - val enumMap: Map, - val objectMap: Map, - val listMap: Map>, - val mapMap: Map> -) { +data class AllTypes ( + val aBool: Boolean, + val anInt: Long, + val anInt64: Long, + val aDouble: Double, + val aByteArray: ByteArray, + val a4ByteArray: IntArray, + val a8ByteArray: LongArray, + val aFloatArray: DoubleArray, + val anEnum: AnEnum, + val anotherEnum: AnotherEnum, + val aString: String, + val anObject: Any, + val list: List, + val stringList: List, + val intList: List, + val doubleList: List, + val boolList: List, + val enumList: List, + val objectList: List, + val listList: List>, + val mapList: List>, + val map: Map, + val stringMap: Map, + val intMap: Map, + val enumMap: Map, + val objectMap: Map, + val listMap: Map>, + val mapMap: Map> +) + { companion object { fun fromList(pigeonVar_list: List): AllTypes { val aBool = pigeonVar_list[0] as Boolean @@ -233,71 +276,41 @@ data class AllTypes( val objectMap = pigeonVar_list[25] as Map val listMap = pigeonVar_list[26] as Map> val mapMap = pigeonVar_list[27] as Map> - return AllTypes( - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap) + return AllTypes(aBool, anInt, anInt64, aDouble, aByteArray, a4ByteArray, a8ByteArray, aFloatArray, anEnum, anotherEnum, aString, anObject, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap) } } - fun toList(): List { return listOf( - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -306,34 +319,7 @@ data class AllTypes( return true } val other = other as AllTypes - return CoreTestsPigeonUtils.deepEquals(this.aBool, other.aBool) && - CoreTestsPigeonUtils.deepEquals(this.anInt, other.anInt) && - CoreTestsPigeonUtils.deepEquals(this.anInt64, other.anInt64) && - CoreTestsPigeonUtils.deepEquals(this.aDouble, other.aDouble) && - CoreTestsPigeonUtils.deepEquals(this.aByteArray, other.aByteArray) && - CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, other.a4ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, other.a8ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aFloatArray, other.aFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.anEnum, other.anEnum) && - CoreTestsPigeonUtils.deepEquals(this.anotherEnum, other.anotherEnum) && - CoreTestsPigeonUtils.deepEquals(this.aString, other.aString) && - CoreTestsPigeonUtils.deepEquals(this.anObject, other.anObject) && - CoreTestsPigeonUtils.deepEquals(this.list, other.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && - CoreTestsPigeonUtils.deepEquals(this.map, other.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) + return CoreTestsPigeonUtils.deepEquals(this.aBool, other.aBool) && CoreTestsPigeonUtils.deepEquals(this.anInt, other.anInt) && CoreTestsPigeonUtils.deepEquals(this.anInt64, other.anInt64) && CoreTestsPigeonUtils.deepEquals(this.aDouble, other.aDouble) && CoreTestsPigeonUtils.deepEquals(this.aByteArray, other.aByteArray) && CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, other.a4ByteArray) && CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, other.a8ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aFloatArray, other.aFloatArray) && CoreTestsPigeonUtils.deepEquals(this.anEnum, other.anEnum) && CoreTestsPigeonUtils.deepEquals(this.anotherEnum, other.anotherEnum) && CoreTestsPigeonUtils.deepEquals(this.aString, other.aString) && CoreTestsPigeonUtils.deepEquals(this.anObject, other.anObject) && CoreTestsPigeonUtils.deepEquals(this.list, other.list) && CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && CoreTestsPigeonUtils.deepEquals(this.map, other.map) && CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) } override fun hashCode(): Int { @@ -375,39 +361,40 @@ data class AllTypes( * * Generated class from Pigeon that represents data sent in messages. */ -data class AllNullableTypes( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val aNullableEnum: AnEnum? = null, - val anotherNullableEnum: AnotherEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val allNullableTypes: AllNullableTypes? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val enumList: List? = null, - val objectList: List? = null, - val listList: List?>? = null, - val mapList: List?>? = null, - val recursiveClassList: List? = null, - val map: Map? = null, - val stringMap: Map? = null, - val intMap: Map? = null, - val enumMap: Map? = null, - val objectMap: Map? = null, - val listMap: Map?>? = null, - val mapMap: Map?>? = null, - val recursiveClassMap: Map? = null -) { +data class AllNullableTypes ( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val aNullableEnum: AnEnum? = null, + val anotherNullableEnum: AnotherEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val allNullableTypes: AllNullableTypes? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val enumList: List? = null, + val objectList: List? = null, + val listList: List?>? = null, + val mapList: List?>? = null, + val recursiveClassList: List? = null, + val map: Map? = null, + val stringMap: Map? = null, + val intMap: Map? = null, + val enumMap: Map? = null, + val objectMap: Map? = null, + val listMap: Map?>? = null, + val mapMap: Map?>? = null, + val recursiveClassMap: Map? = null +) + { companion object { fun fromList(pigeonVar_list: List): AllNullableTypes { val aNullableBool = pigeonVar_list[0] as Boolean? @@ -441,77 +428,44 @@ data class AllNullableTypes( val listMap = pigeonVar_list[28] as Map?>? val mapMap = pigeonVar_list[29] as Map?>? val recursiveClassMap = pigeonVar_list[30] as Map? - return AllNullableTypes( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap) + return AllNullableTypes(aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, recursiveClassList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap, recursiveClassMap) } } - fun toList(): List { return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap, + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -520,37 +474,7 @@ data class AllNullableTypes( return true } val other = other as AllNullableTypes - return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && - CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && - CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && - CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && - CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && - CoreTestsPigeonUtils.deepEquals(this.list, other.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && - CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && - CoreTestsPigeonUtils.deepEquals(this.map, other.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && - CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && CoreTestsPigeonUtils.deepEquals(this.list, other.list) && CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && CoreTestsPigeonUtils.deepEquals(this.map, other.map) && CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) } override fun hashCode(): Int { @@ -591,41 +515,43 @@ data class AllNullableTypes( } /** - * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, as - * the primary [AllNullableTypes] class is being used to test Swift classes. + * The primary purpose for this class is to ensure coverage of Swift structs + * with nullable items, as the primary [AllNullableTypes] class is being used to + * test Swift classes. * * Generated class from Pigeon that represents data sent in messages. */ -data class AllNullableTypesWithoutRecursion( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val aNullableEnum: AnEnum? = null, - val anotherNullableEnum: AnotherEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val enumList: List? = null, - val objectList: List? = null, - val listList: List?>? = null, - val mapList: List?>? = null, - val map: Map? = null, - val stringMap: Map? = null, - val intMap: Map? = null, - val enumMap: Map? = null, - val objectMap: Map? = null, - val listMap: Map?>? = null, - val mapMap: Map?>? = null -) { +data class AllNullableTypesWithoutRecursion ( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val aNullableEnum: AnEnum? = null, + val anotherNullableEnum: AnotherEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val enumList: List? = null, + val objectList: List? = null, + val listList: List?>? = null, + val mapList: List?>? = null, + val map: Map? = null, + val stringMap: Map? = null, + val intMap: Map? = null, + val enumMap: Map? = null, + val objectMap: Map? = null, + val listMap: Map?>? = null, + val mapMap: Map?>? = null +) + { companion object { fun fromList(pigeonVar_list: List): AllNullableTypesWithoutRecursion { val aNullableBool = pigeonVar_list[0] as Boolean? @@ -656,71 +582,41 @@ data class AllNullableTypesWithoutRecursion( val objectMap = pigeonVar_list[25] as Map? val listMap = pigeonVar_list[26] as Map?>? val mapMap = pigeonVar_list[27] as Map?>? - return AllNullableTypesWithoutRecursion( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap) + return AllNullableTypesWithoutRecursion(aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap) } } - fun toList(): List { return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -729,34 +625,7 @@ data class AllNullableTypesWithoutRecursion( return true } val other = other as AllNullableTypesWithoutRecursion - return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && - CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && - CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && - CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && - CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && - CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && - CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && - CoreTestsPigeonUtils.deepEquals(this.list, other.list) && - CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && - CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && - CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && - CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && - CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && - CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && - CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && - CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && - CoreTestsPigeonUtils.deepEquals(this.map, other.map) && - CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && - CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && - CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && - CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && - CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && - CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && CoreTestsPigeonUtils.deepEquals(this.list, other.list) && CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && CoreTestsPigeonUtils.deepEquals(this.map, other.map) && CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) } override fun hashCode(): Int { @@ -796,21 +665,22 @@ data class AllNullableTypesWithoutRecursion( /** * A class for testing nested class handling. * - * This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is - * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require - * both (ie. testing null classes). + * This is needed to test nested nullable and non-nullable classes, + * `AllNullableTypes` is non-nullable here as it is easier to instantiate + * than `AllTypes` when testing doesn't require both (ie. testing null classes). * * Generated class from Pigeon that represents data sent in messages. */ -data class AllClassesWrapper( - val allNullableTypes: AllNullableTypes, - val allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = null, - val allTypes: AllTypes? = null, - val classList: List, - val nullableClassList: List? = null, - val classMap: Map, - val nullableClassMap: Map? = null -) { +data class AllClassesWrapper ( + val allNullableTypes: AllNullableTypes, + val allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = null, + val allTypes: AllTypes? = null, + val classList: List, + val nullableClassList: List? = null, + val classMap: Map, + val nullableClassMap: Map? = null +) + { companion object { fun fromList(pigeonVar_list: List): AllClassesWrapper { val allNullableTypes = pigeonVar_list[0] as AllNullableTypes @@ -820,29 +690,20 @@ data class AllClassesWrapper( val nullableClassList = pigeonVar_list[4] as List? val classMap = pigeonVar_list[5] as Map val nullableClassMap = pigeonVar_list[6] as Map? - return AllClassesWrapper( - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap) + return AllClassesWrapper(allNullableTypes, allNullableTypesWithoutRecursion, allTypes, classList, nullableClassList, classMap, nullableClassMap) } } - fun toList(): List { return listOf( - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap, + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + classList, + nullableClassList, + classMap, + nullableClassMap, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -851,14 +712,7 @@ data class AllClassesWrapper( return true } val other = other as AllClassesWrapper - return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && - CoreTestsPigeonUtils.deepEquals( - this.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && - CoreTestsPigeonUtils.deepEquals(this.allTypes, other.allTypes) && - CoreTestsPigeonUtils.deepEquals(this.classList, other.classList) && - CoreTestsPigeonUtils.deepEquals(this.nullableClassList, other.nullableClassList) && - CoreTestsPigeonUtils.deepEquals(this.classMap, other.classMap) && - CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, other.nullableClassMap) + return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && CoreTestsPigeonUtils.deepEquals(this.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && CoreTestsPigeonUtils.deepEquals(this.allTypes, other.allTypes) && CoreTestsPigeonUtils.deepEquals(this.classList, other.classList) && CoreTestsPigeonUtils.deepEquals(this.nullableClassList, other.nullableClassList) && CoreTestsPigeonUtils.deepEquals(this.classMap, other.classMap) && CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, other.nullableClassMap) } override fun hashCode(): Int { @@ -879,20 +733,21 @@ data class AllClassesWrapper( * * Generated class from Pigeon that represents data sent in messages. */ -data class TestMessage(val testList: List? = null) { +data class TestMessage ( + val testList: List? = null +) + { companion object { fun fromList(pigeonVar_list: List): TestMessage { val testList = pigeonVar_list[0] as List? return TestMessage(testList) } } - fun toList(): List { return listOf( - testList, + testList, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -910,24 +765,33 @@ data class TestMessage(val testList: List? = null) { return result } } - private open class CoreTestsPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { AnEnum.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AnEnum.ofRaw(it.toInt()) + } } 130.toByte() -> { - return (readValue(buffer) as Long?)?.let { AnotherEnum.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AnotherEnum.ofRaw(it.toInt()) + } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { UnusedClass.fromList(it) } + return (readValue(buffer) as? List)?.let { + UnusedClass.fromList(it) + } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { AllTypes.fromList(it) } + return (readValue(buffer) as? List)?.let { + AllTypes.fromList(it) + } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { AllNullableTypes.fromList(it) } + return (readValue(buffer) as? List)?.let { + AllNullableTypes.fromList(it) + } } 134.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -935,16 +799,19 @@ private open class CoreTestsPigeonCodec : StandardMessageCodec() { } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { AllClassesWrapper.fromList(it) } + return (readValue(buffer) as? List)?.let { + AllClassesWrapper.fromList(it) + } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { TestMessage.fromList(it) } + return (readValue(buffer) as? List)?.let { + TestMessage.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is AnEnum -> { stream.write(129) @@ -983,14 +850,18 @@ private open class CoreTestsPigeonCodec : StandardMessageCodec() { } } + /** - * The core interface that each host language plugin must implement in platform_test integration - * tests. + * The core interface that each host language plugin must implement in + * platform_test integration tests. * * Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface HostIntegrationCoreApi { - /** A no-op function taking no arguments and returning no value, to sanity test basic calling. */ + /** + * A no-op function taking no arguments and returning no value, to sanity + * test basic calling. + */ fun noop() /** Returns the passed object, to test serialization and deserialization. */ fun echoAllTypes(everything: AllTypes): AllTypes @@ -1052,32 +923,28 @@ interface HostIntegrationCoreApi { fun echoOptionalDefaultDouble(aDouble: Double): Double /** Returns passed in int. */ fun echoRequiredInt(anInt: Long): Long + /** Returns the result of platform-side equality check. */ + fun areAllNullableTypesEqual(a: AllNullableTypes, b: AllNullableTypes): Boolean + /** Returns the platform-side hash code for the given object. */ + fun getAllNullableTypesHash(value: AllNullableTypes): Long /** Returns the passed object, to test serialization and deserialization. */ fun echoAllNullableTypes(everything: AllNullableTypes?): AllNullableTypes? /** Returns the passed object, to test serialization and deserialization. */ - fun echoAllNullableTypesWithoutRecursion( - everything: AllNullableTypesWithoutRecursion? - ): AllNullableTypesWithoutRecursion? + fun echoAllNullableTypesWithoutRecursion(everything: AllNullableTypesWithoutRecursion?): AllNullableTypesWithoutRecursion? /** - * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. + * Returns the inner `aString` value from the wrapped object, to test + * sending of nested objects. */ fun extractNestedNullableString(wrapper: AllClassesWrapper): String? /** - * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. + * Returns the inner `aString` value from the wrapped object, to test + * sending of nested objects. */ fun createNestedNullableString(nullableString: String?): AllClassesWrapper /** Returns passed in arguments of multiple types. */ - fun sendMultipleNullableTypes( - aNullableBool: Boolean?, - aNullableInt: Long?, - aNullableString: String? - ): AllNullableTypes + fun sendMultipleNullableTypes(aNullableBool: Boolean?, aNullableInt: Long?, aNullableString: String?): AllNullableTypes /** Returns passed in arguments of multiple types. */ - fun sendMultipleNullableTypesWithoutRecursion( - aNullableBool: Boolean?, - aNullableInt: Long?, - aNullableString: String? - ): AllNullableTypesWithoutRecursion + fun sendMultipleNullableTypesWithoutRecursion(aNullableBool: Boolean?, aNullableInt: Long?, aNullableString: String?): AllNullableTypesWithoutRecursion /** Returns passed in int. */ fun echoNullableInt(aNullableInt: Long?): Long? /** Returns passed in double. */ @@ -1117,20 +984,16 @@ interface HostIntegrationCoreApi { /** Returns the passed map, to test serialization and deserialization. */ fun echoNullableNonNullEnumMap(enumMap: Map?): Map? /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullClassMap( - classMap: Map? - ): Map? - + fun echoNullableNonNullClassMap(classMap: Map?): Map? fun echoNullableEnum(anEnum: AnEnum?): AnEnum? - fun echoAnotherNullableEnum(anotherEnum: AnotherEnum?): AnotherEnum? /** Returns passed in int. */ fun echoOptionalNullableInt(aNullableInt: Long?): Long? /** Returns the passed in string. */ fun echoNamedNullableString(aNullableString: String?): String? /** - * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous - * calling. + * A no-op function taking no arguments and returning no value, to sanity + * test basic asynchronous calling. */ fun noopAsync(callback: (Result) -> Unit) /** Returns passed in int asynchronously. */ @@ -1150,29 +1013,17 @@ interface HostIntegrationCoreApi { /** Returns the passed list, to test asynchronous serialization and deserialization. */ fun echoAsyncEnumList(enumList: List, callback: (Result>) -> Unit) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - fun echoAsyncClassList( - classList: List, - callback: (Result>) -> Unit - ) + fun echoAsyncClassList(classList: List, callback: (Result>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ fun echoAsyncMap(map: Map, callback: (Result>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncStringMap( - stringMap: Map, - callback: (Result>) -> Unit - ) + fun echoAsyncStringMap(stringMap: Map, callback: (Result>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ fun echoAsyncIntMap(intMap: Map, callback: (Result>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncEnumMap( - enumMap: Map, - callback: (Result>) -> Unit - ) + fun echoAsyncEnumMap(enumMap: Map, callback: (Result>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncClassMap( - classMap: Map, - callback: (Result>) -> Unit - ) + fun echoAsyncClassMap(classMap: Map, callback: (Result>) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ fun echoAsyncEnum(anEnum: AnEnum, callback: (Result) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ @@ -1186,15 +1037,9 @@ interface HostIntegrationCoreApi { /** Returns the passed object, to test async serialization and deserialization. */ fun echoAsyncAllTypes(everything: AllTypes, callback: (Result) -> Unit) /** Returns the passed object, to test serialization and deserialization. */ - fun echoAsyncNullableAllNullableTypes( - everything: AllNullableTypes?, - callback: (Result) -> Unit - ) + fun echoAsyncNullableAllNullableTypes(everything: AllNullableTypes?, callback: (Result) -> Unit) /** Returns the passed object, to test serialization and deserialization. */ - fun echoAsyncNullableAllNullableTypesWithoutRecursion( - everything: AllNullableTypesWithoutRecursion?, - callback: (Result) -> Unit - ) + fun echoAsyncNullableAllNullableTypesWithoutRecursion(everything: AllNullableTypesWithoutRecursion?, callback: (Result) -> Unit) /** Returns passed in int asynchronously. */ fun echoAsyncNullableInt(anInt: Long?, callback: (Result) -> Unit) /** Returns passed in double asynchronously. */ @@ -1210,279 +1055,105 @@ interface HostIntegrationCoreApi { /** Returns the passed list, to test asynchronous serialization and deserialization. */ fun echoAsyncNullableList(list: List?, callback: (Result?>) -> Unit) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableEnumList( - enumList: List?, - callback: (Result?>) -> Unit - ) + fun echoAsyncNullableEnumList(enumList: List?, callback: (Result?>) -> Unit) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableClassList( - classList: List?, - callback: (Result?>) -> Unit - ) + fun echoAsyncNullableClassList(classList: List?, callback: (Result?>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ fun echoAsyncNullableMap(map: Map?, callback: (Result?>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableStringMap( - stringMap: Map?, - callback: (Result?>) -> Unit - ) + fun echoAsyncNullableStringMap(stringMap: Map?, callback: (Result?>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableIntMap( - intMap: Map?, - callback: (Result?>) -> Unit - ) + fun echoAsyncNullableIntMap(intMap: Map?, callback: (Result?>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableEnumMap( - enumMap: Map?, - callback: (Result?>) -> Unit - ) + fun echoAsyncNullableEnumMap(enumMap: Map?, callback: (Result?>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableClassMap( - classMap: Map?, - callback: (Result?>) -> Unit - ) + fun echoAsyncNullableClassMap(classMap: Map?, callback: (Result?>) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ fun echoAsyncNullableEnum(anEnum: AnEnum?, callback: (Result) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - fun echoAnotherAsyncNullableEnum( - anotherEnum: AnotherEnum?, - callback: (Result) -> Unit - ) + fun echoAnotherAsyncNullableEnum(anotherEnum: AnotherEnum?, callback: (Result) -> Unit) /** - * Returns true if the handler is run on a main thread, which should be true since there is no - * TaskQueue annotation. + * Returns true if the handler is run on a main thread, which should be + * true since there is no TaskQueue annotation. */ fun defaultIsMainThread(): Boolean /** - * Returns true if the handler is run on a non-main thread, which should be true for any platform - * with TaskQueue support. + * Returns true if the handler is run on a non-main thread, which should be + * true for any platform with TaskQueue support. */ fun taskQueueIsBackgroundThread(): Boolean - fun callFlutterNoop(callback: (Result) -> Unit) - fun callFlutterThrowError(callback: (Result) -> Unit) - fun callFlutterThrowErrorFromVoid(callback: (Result) -> Unit) - fun callFlutterEchoAllTypes(everything: AllTypes, callback: (Result) -> Unit) - - fun callFlutterEchoAllNullableTypes( - everything: AllNullableTypes?, - callback: (Result) -> Unit - ) - - fun callFlutterSendMultipleNullableTypes( - aNullableBool: Boolean?, - aNullableInt: Long?, - aNullableString: String?, - callback: (Result) -> Unit - ) - - fun callFlutterEchoAllNullableTypesWithoutRecursion( - everything: AllNullableTypesWithoutRecursion?, - callback: (Result) -> Unit - ) - - fun callFlutterSendMultipleNullableTypesWithoutRecursion( - aNullableBool: Boolean?, - aNullableInt: Long?, - aNullableString: String?, - callback: (Result) -> Unit - ) - + fun callFlutterEchoAllNullableTypes(everything: AllNullableTypes?, callback: (Result) -> Unit) + fun callFlutterSendMultipleNullableTypes(aNullableBool: Boolean?, aNullableInt: Long?, aNullableString: String?, callback: (Result) -> Unit) + fun callFlutterEchoAllNullableTypesWithoutRecursion(everything: AllNullableTypesWithoutRecursion?, callback: (Result) -> Unit) + fun callFlutterSendMultipleNullableTypesWithoutRecursion(aNullableBool: Boolean?, aNullableInt: Long?, aNullableString: String?, callback: (Result) -> Unit) fun callFlutterEchoBool(aBool: Boolean, callback: (Result) -> Unit) - fun callFlutterEchoInt(anInt: Long, callback: (Result) -> Unit) - fun callFlutterEchoDouble(aDouble: Double, callback: (Result) -> Unit) - fun callFlutterEchoString(aString: String, callback: (Result) -> Unit) - fun callFlutterEchoUint8List(list: ByteArray, callback: (Result) -> Unit) - fun callFlutterEchoList(list: List, callback: (Result>) -> Unit) - fun callFlutterEchoEnumList(enumList: List, callback: (Result>) -> Unit) - - fun callFlutterEchoClassList( - classList: List, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoNonNullEnumList( - enumList: List, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoNonNullClassList( - classList: List, - callback: (Result>) -> Unit - ) - + fun callFlutterEchoClassList(classList: List, callback: (Result>) -> Unit) + fun callFlutterEchoNonNullEnumList(enumList: List, callback: (Result>) -> Unit) + fun callFlutterEchoNonNullClassList(classList: List, callback: (Result>) -> Unit) fun callFlutterEchoMap(map: Map, callback: (Result>) -> Unit) - - fun callFlutterEchoStringMap( - stringMap: Map, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoIntMap( - intMap: Map, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoEnumMap( - enumMap: Map, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoClassMap( - classMap: Map, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoNonNullStringMap( - stringMap: Map, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoNonNullIntMap( - intMap: Map, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoNonNullEnumMap( - enumMap: Map, - callback: (Result>) -> Unit - ) - - fun callFlutterEchoNonNullClassMap( - classMap: Map, - callback: (Result>) -> Unit - ) - + fun callFlutterEchoStringMap(stringMap: Map, callback: (Result>) -> Unit) + fun callFlutterEchoIntMap(intMap: Map, callback: (Result>) -> Unit) + fun callFlutterEchoEnumMap(enumMap: Map, callback: (Result>) -> Unit) + fun callFlutterEchoClassMap(classMap: Map, callback: (Result>) -> Unit) + fun callFlutterEchoNonNullStringMap(stringMap: Map, callback: (Result>) -> Unit) + fun callFlutterEchoNonNullIntMap(intMap: Map, callback: (Result>) -> Unit) + fun callFlutterEchoNonNullEnumMap(enumMap: Map, callback: (Result>) -> Unit) + fun callFlutterEchoNonNullClassMap(classMap: Map, callback: (Result>) -> Unit) fun callFlutterEchoEnum(anEnum: AnEnum, callback: (Result) -> Unit) - fun callFlutterEchoAnotherEnum(anotherEnum: AnotherEnum, callback: (Result) -> Unit) - fun callFlutterEchoNullableBool(aBool: Boolean?, callback: (Result) -> Unit) - fun callFlutterEchoNullableInt(anInt: Long?, callback: (Result) -> Unit) - fun callFlutterEchoNullableDouble(aDouble: Double?, callback: (Result) -> Unit) - fun callFlutterEchoNullableString(aString: String?, callback: (Result) -> Unit) - fun callFlutterEchoNullableUint8List(list: ByteArray?, callback: (Result) -> Unit) - fun callFlutterEchoNullableList(list: List?, callback: (Result?>) -> Unit) - - fun callFlutterEchoNullableEnumList( - enumList: List?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableClassList( - classList: List?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableNonNullEnumList( - enumList: List?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableNonNullClassList( - classList: List?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableMap( - map: Map?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableStringMap( - stringMap: Map?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableIntMap( - intMap: Map?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableEnumMap( - enumMap: Map?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableClassMap( - classMap: Map?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableNonNullStringMap( - stringMap: Map?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableNonNullIntMap( - intMap: Map?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableNonNullEnumMap( - enumMap: Map?, - callback: (Result?>) -> Unit - ) - - fun callFlutterEchoNullableNonNullClassMap( - classMap: Map?, - callback: (Result?>) -> Unit - ) - + fun callFlutterEchoNullableEnumList(enumList: List?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableClassList(classList: List?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableNonNullEnumList(enumList: List?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableNonNullClassList(classList: List?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableMap(map: Map?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableStringMap(stringMap: Map?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableIntMap(intMap: Map?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableEnumMap(enumMap: Map?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableClassMap(classMap: Map?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableNonNullStringMap(stringMap: Map?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableNonNullIntMap(intMap: Map?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableNonNullEnumMap(enumMap: Map?, callback: (Result?>) -> Unit) + fun callFlutterEchoNullableNonNullClassMap(classMap: Map?, callback: (Result?>) -> Unit) fun callFlutterEchoNullableEnum(anEnum: AnEnum?, callback: (Result) -> Unit) - - fun callFlutterEchoAnotherNullableEnum( - anotherEnum: AnotherEnum?, - callback: (Result) -> Unit - ) - + fun callFlutterEchoAnotherNullableEnum(anotherEnum: AnotherEnum?, callback: (Result) -> Unit) fun callFlutterSmallApiEchoString(aString: String, callback: (Result) -> Unit) companion object { /** The codec used by HostIntegrationCoreApi. */ - val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } - /** - * Sets up an instance of `HostIntegrationCoreApi` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + CoreTestsPigeonCodec() + } + /** Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: HostIntegrationCoreApi?, - messageChannelSuffix: String = "" - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: HostIntegrationCoreApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" val taskQueue = binaryMessenger.makeBackgroundTaskQueue() run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.noop() - listOf(null) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.noop() + listOf(null) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1490,21 +1161,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllTypes - val wrapped: List = - try { - listOf(api.echoAllTypes(everythingArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoAllTypes(everythingArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1512,19 +1178,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.throwError()) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.throwError()) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1532,20 +1193,15 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.throwErrorFromVoid() - listOf(null) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.throwErrorFromVoid() + listOf(null) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1553,19 +1209,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.throwFlutterError()) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.throwFlutterError()) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1573,21 +1224,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anIntArg = args[0] as Long - val wrapped: List = - try { - listOf(api.echoInt(anIntArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoInt(anIntArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1595,21 +1241,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aDoubleArg = args[0] as Double - val wrapped: List = - try { - listOf(api.echoDouble(aDoubleArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoDouble(aDoubleArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1617,21 +1258,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aBoolArg = args[0] as Boolean - val wrapped: List = - try { - listOf(api.echoBool(aBoolArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoBool(aBoolArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1639,21 +1275,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aStringArg = args[0] as String - val wrapped: List = - try { - listOf(api.echoString(aStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoString(aStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1661,21 +1292,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aUint8ListArg = args[0] as ByteArray - val wrapped: List = - try { - listOf(api.echoUint8List(aUint8ListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoUint8List(aUint8ListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1683,21 +1309,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anObjectArg = args[0] as Any - val wrapped: List = - try { - listOf(api.echoObject(anObjectArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoObject(anObjectArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1705,21 +1326,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val listArg = args[0] as List - val wrapped: List = - try { - listOf(api.echoList(listArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoList(listArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1727,21 +1343,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List - val wrapped: List = - try { - listOf(api.echoEnumList(enumListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoEnumList(enumListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1749,21 +1360,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List - val wrapped: List = - try { - listOf(api.echoClassList(classListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoClassList(classListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1771,21 +1377,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List - val wrapped: List = - try { - listOf(api.echoNonNullEnumList(enumListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNonNullEnumList(enumListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1793,21 +1394,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List - val wrapped: List = - try { - listOf(api.echoNonNullClassList(classListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNonNullClassList(classListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1815,21 +1411,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoMap(mapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoMap(mapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1837,21 +1428,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoStringMap(stringMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoStringMap(stringMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1859,21 +1445,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoIntMap(intMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoIntMap(intMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1881,21 +1462,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoEnumMap(enumMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoEnumMap(enumMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1903,21 +1479,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoClassMap(classMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoClassMap(classMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1925,21 +1496,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoNonNullStringMap(stringMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNonNullStringMap(stringMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1947,21 +1513,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoNonNullIntMap(intMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNonNullIntMap(intMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1969,21 +1530,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoNonNullEnumMap(enumMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNonNullEnumMap(enumMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1991,21 +1547,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map - val wrapped: List = - try { - listOf(api.echoNonNullClassMap(classMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNonNullClassMap(classMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2013,21 +1564,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val wrapperArg = args[0] as AllClassesWrapper - val wrapped: List = - try { - listOf(api.echoClassWrapper(wrapperArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoClassWrapper(wrapperArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2035,21 +1581,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anEnumArg = args[0] as AnEnum - val wrapped: List = - try { - listOf(api.echoEnum(anEnumArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoEnum(anEnumArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2057,21 +1598,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anotherEnumArg = args[0] as AnotherEnum - val wrapped: List = - try { - listOf(api.echoAnotherEnum(anotherEnumArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoAnotherEnum(anotherEnumArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2079,21 +1615,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aStringArg = args[0] as String - val wrapped: List = - try { - listOf(api.echoNamedDefaultString(aStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNamedDefaultString(aStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2101,21 +1632,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aDoubleArg = args[0] as Double - val wrapped: List = - try { - listOf(api.echoOptionalDefaultDouble(aDoubleArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoOptionalDefaultDouble(aDoubleArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2123,21 +1649,34 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anIntArg = args[0] as Long - val wrapped: List = - try { - listOf(api.echoRequiredInt(anIntArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoRequiredInt(anIntArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val aArg = args[0] as AllNullableTypes + val bArg = args[1] as AllNullableTypes + val wrapped: List = try { + listOf(api.areAllNullableTypesEqual(aArg, bArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2145,21 +1684,33 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val valueArg = args[0] as AllNullableTypes + val wrapped: List = try { + listOf(api.getAllNullableTypesHash(valueArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypes? - val wrapped: List = - try { - listOf(api.echoAllNullableTypes(everythingArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoAllNullableTypes(everythingArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2167,21 +1718,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypesWithoutRecursion? - val wrapped: List = - try { - listOf(api.echoAllNullableTypesWithoutRecursion(everythingArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoAllNullableTypesWithoutRecursion(everythingArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2189,21 +1735,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val wrapperArg = args[0] as AllClassesWrapper - val wrapped: List = - try { - listOf(api.extractNestedNullableString(wrapperArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.extractNestedNullableString(wrapperArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2211,21 +1752,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val nullableStringArg = args[0] as String? - val wrapped: List = - try { - listOf(api.createNestedNullableString(nullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.createNestedNullableString(nullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2233,25 +1769,18 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? val aNullableIntArg = args[1] as Long? val aNullableStringArg = args[2] as String? - val wrapped: List = - try { - listOf( - api.sendMultipleNullableTypes( - aNullableBoolArg, aNullableIntArg, aNullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.sendMultipleNullableTypes(aNullableBoolArg, aNullableIntArg, aNullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2259,25 +1788,18 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? val aNullableIntArg = args[1] as Long? val aNullableStringArg = args[2] as String? - val wrapped: List = - try { - listOf( - api.sendMultipleNullableTypesWithoutRecursion( - aNullableBoolArg, aNullableIntArg, aNullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.sendMultipleNullableTypesWithoutRecursion(aNullableBoolArg, aNullableIntArg, aNullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2285,21 +1807,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableIntArg = args[0] as Long? - val wrapped: List = - try { - listOf(api.echoNullableInt(aNullableIntArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableInt(aNullableIntArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2307,21 +1824,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableDoubleArg = args[0] as Double? - val wrapped: List = - try { - listOf(api.echoNullableDouble(aNullableDoubleArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableDouble(aNullableDoubleArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2329,21 +1841,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? - val wrapped: List = - try { - listOf(api.echoNullableBool(aNullableBoolArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableBool(aNullableBoolArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2351,21 +1858,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableStringArg = args[0] as String? - val wrapped: List = - try { - listOf(api.echoNullableString(aNullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableString(aNullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2373,21 +1875,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableUint8ListArg = args[0] as ByteArray? - val wrapped: List = - try { - listOf(api.echoNullableUint8List(aNullableUint8ListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableUint8List(aNullableUint8ListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2395,21 +1892,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableObjectArg = args[0] - val wrapped: List = - try { - listOf(api.echoNullableObject(aNullableObjectArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableObject(aNullableObjectArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2417,21 +1909,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableListArg = args[0] as List? - val wrapped: List = - try { - listOf(api.echoNullableList(aNullableListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableList(aNullableListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2439,21 +1926,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List? - val wrapped: List = - try { - listOf(api.echoNullableEnumList(enumListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableEnumList(enumListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2461,21 +1943,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - val wrapped: List = - try { - listOf(api.echoNullableClassList(classListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableClassList(classListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2483,21 +1960,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List? - val wrapped: List = - try { - listOf(api.echoNullableNonNullEnumList(enumListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableNonNullEnumList(enumListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2505,21 +1977,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - val wrapped: List = - try { - listOf(api.echoNullableNonNullClassList(classListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableNonNullClassList(classListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2527,21 +1994,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableMap(mapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableMap(mapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2549,21 +2011,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableStringMap(stringMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableStringMap(stringMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2571,21 +2028,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableIntMap(intMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableIntMap(intMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2593,21 +2045,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableEnumMap(enumMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableEnumMap(enumMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2615,21 +2062,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableClassMap(classMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableClassMap(classMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2637,21 +2079,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableNonNullStringMap(stringMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableNonNullStringMap(stringMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2659,21 +2096,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableNonNullIntMap(intMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableNonNullIntMap(intMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2681,21 +2113,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableNonNullEnumMap(enumMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableNonNullEnumMap(enumMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2703,21 +2130,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - val wrapped: List = - try { - listOf(api.echoNullableNonNullClassMap(classMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableNonNullClassMap(classMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2725,21 +2147,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anEnumArg = args[0] as AnEnum? - val wrapped: List = - try { - listOf(api.echoNullableEnum(anEnumArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableEnum(anEnumArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2747,21 +2164,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anotherEnumArg = args[0] as AnotherEnum? - val wrapped: List = - try { - listOf(api.echoAnotherNullableEnum(anotherEnumArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoAnotherNullableEnum(anotherEnumArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2769,21 +2181,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableIntArg = args[0] as Long? - val wrapped: List = - try { - listOf(api.echoOptionalNullableInt(aNullableIntArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoOptionalNullableInt(aNullableIntArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2791,21 +2198,16 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableStringArg = args[0] as String? - val wrapped: List = - try { - listOf(api.echoNamedNullableString(aNullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNamedNullableString(aNullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2813,14 +2215,10 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.noopAsync { result: Result -> + api.noopAsync{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2834,11 +2232,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2858,11 +2252,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2882,11 +2272,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2906,11 +2292,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2930,11 +2312,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2954,11 +2332,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2978,11 +2352,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3002,11 +2372,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3026,11 +2392,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3050,11 +2412,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3074,11 +2432,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3098,11 +2452,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3122,11 +2472,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3146,11 +2492,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3170,11 +2512,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3194,11 +2532,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3218,14 +2552,10 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.throwAsyncError { result: Result -> + api.throwAsyncError{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3240,14 +2570,10 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.throwAsyncErrorFromVoid { result: Result -> + api.throwAsyncErrorFromVoid{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3261,14 +2587,10 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.throwAsyncFlutterError { result: Result -> + api.throwAsyncFlutterError{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3283,11 +2605,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3307,17 +2625,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypes? - api.echoAsyncNullableAllNullableTypes(everythingArg) { result: Result - -> + api.echoAsyncNullableAllNullableTypes(everythingArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3332,17 +2645,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypesWithoutRecursion? - api.echoAsyncNullableAllNullableTypesWithoutRecursion(everythingArg) { - result: Result -> + api.echoAsyncNullableAllNullableTypesWithoutRecursion(everythingArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3357,11 +2665,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3381,11 +2685,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3405,11 +2705,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3429,11 +2725,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3453,11 +2745,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3477,11 +2765,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3501,11 +2785,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3525,11 +2805,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3549,17 +2825,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - api.echoAsyncNullableClassList(classListArg) { result: Result?> - -> + api.echoAsyncNullableClassList(classListArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3574,11 +2845,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3598,11 +2865,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3622,11 +2885,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3646,11 +2905,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3670,17 +2925,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - api.echoAsyncNullableClassMap(classMapArg) { - result: Result?> -> + api.echoAsyncNullableClassMap(classMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3695,11 +2945,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3719,11 +2965,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3743,19 +2985,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.defaultIsMainThread()) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.defaultIsMainThread()) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3763,20 +3000,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread$separatedMessageChannelSuffix", - codec, - taskQueue) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread$separatedMessageChannelSuffix", codec, taskQueue) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.taskQueueIsBackgroundThread()) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.taskQueueIsBackgroundThread()) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3784,14 +3015,10 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.callFlutterNoop { result: Result -> + api.callFlutterNoop{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3805,14 +3032,10 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.callFlutterThrowError { result: Result -> + api.callFlutterThrowError{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3827,14 +3050,10 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.callFlutterThrowErrorFromVoid { result: Result -> + api.callFlutterThrowErrorFromVoid{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3848,11 +3067,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3872,17 +3087,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypes? - api.callFlutterEchoAllNullableTypes(everythingArg) { result: Result - -> + api.callFlutterEchoAllNullableTypes(everythingArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3897,45 +3107,34 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? val aNullableIntArg = args[1] as Long? val aNullableStringArg = args[2] as String? - api.callFlutterSendMultipleNullableTypes( - aNullableBoolArg, aNullableIntArg, aNullableStringArg) { - result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(CoreTestsPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(CoreTestsPigeonUtils.wrapResult(data)) - } - } + api.callFlutterSendMultipleNullableTypes(aNullableBoolArg, aNullableIntArg, aNullableStringArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(CoreTestsPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(CoreTestsPigeonUtils.wrapResult(data)) + } + } } } else { channel.setMessageHandler(null) } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypesWithoutRecursion? - api.callFlutterEchoAllNullableTypesWithoutRecursion(everythingArg) { - result: Result -> + api.callFlutterEchoAllNullableTypesWithoutRecursion(everythingArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3950,39 +3149,29 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? val aNullableIntArg = args[1] as Long? val aNullableStringArg = args[2] as String? - api.callFlutterSendMultipleNullableTypesWithoutRecursion( - aNullableBoolArg, aNullableIntArg, aNullableStringArg) { - result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(CoreTestsPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(CoreTestsPigeonUtils.wrapResult(data)) - } - } + api.callFlutterSendMultipleNullableTypesWithoutRecursion(aNullableBoolArg, aNullableIntArg, aNullableStringArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(CoreTestsPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(CoreTestsPigeonUtils.wrapResult(data)) + } + } } } else { channel.setMessageHandler(null) } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4002,11 +3191,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4026,11 +3211,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4050,11 +3231,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4074,11 +3251,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4098,11 +3271,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4122,11 +3291,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4146,11 +3311,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4170,11 +3331,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4194,17 +3351,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List - api.callFlutterEchoNonNullClassList(classListArg) { - result: Result> -> + api.callFlutterEchoNonNullClassList(classListArg) { result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4219,11 +3371,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4243,11 +3391,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4267,11 +3411,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4291,11 +3431,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4315,17 +3451,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map - api.callFlutterEchoClassMap(classMapArg) { result: Result> - -> + api.callFlutterEchoClassMap(classMapArg) { result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4340,17 +3471,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map - api.callFlutterEchoNonNullStringMap(stringMapArg) { result: Result> - -> + api.callFlutterEchoNonNullStringMap(stringMapArg) { result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4365,11 +3491,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4389,11 +3511,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4413,17 +3531,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map - api.callFlutterEchoNonNullClassMap(classMapArg) { - result: Result> -> + api.callFlutterEchoNonNullClassMap(classMapArg) { result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4438,11 +3551,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4462,11 +3571,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4486,11 +3591,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4510,11 +3611,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4534,11 +3631,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4558,11 +3651,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4582,11 +3671,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4606,11 +3691,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4630,11 +3711,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4654,17 +3731,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - api.callFlutterEchoNullableClassList(classListArg) { - result: Result?> -> + api.callFlutterEchoNullableClassList(classListArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4679,17 +3751,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List? - api.callFlutterEchoNullableNonNullEnumList(enumListArg) { result: Result?> - -> + api.callFlutterEchoNullableNonNullEnumList(enumListArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4704,17 +3771,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - api.callFlutterEchoNullableNonNullClassList(classListArg) { - result: Result?> -> + api.callFlutterEchoNullableNonNullClassList(classListArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4729,11 +3791,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4753,17 +3811,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map? - api.callFlutterEchoNullableStringMap(stringMapArg) { - result: Result?> -> + api.callFlutterEchoNullableStringMap(stringMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4778,11 +3831,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4802,17 +3851,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map? - api.callFlutterEchoNullableEnumMap(enumMapArg) { result: Result?> - -> + api.callFlutterEchoNullableEnumMap(enumMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4827,17 +3871,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - api.callFlutterEchoNullableClassMap(classMapArg) { - result: Result?> -> + api.callFlutterEchoNullableClassMap(classMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4852,17 +3891,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map? - api.callFlutterEchoNullableNonNullStringMap(stringMapArg) { - result: Result?> -> + api.callFlutterEchoNullableNonNullStringMap(stringMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4877,17 +3911,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map? - api.callFlutterEchoNullableNonNullIntMap(intMapArg) { result: Result?> - -> + api.callFlutterEchoNullableNonNullIntMap(intMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4902,17 +3931,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map? - api.callFlutterEchoNullableNonNullEnumMap(enumMapArg) { - result: Result?> -> + api.callFlutterEchoNullableNonNullEnumMap(enumMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4927,17 +3951,12 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - api.callFlutterEchoNullableNonNullClassMap(classMapArg) { - result: Result?> -> + api.callFlutterEchoNullableNonNullClassMap(classMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -4952,11 +3971,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4976,11 +3991,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5000,11 +4011,7 @@ interface HostIntegrationCoreApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5027,25 +4034,26 @@ interface HostIntegrationCoreApi { } } /** - * The core interface that the Dart platform_test code implements for host integration tests to call - * into. + * The core interface that the Dart platform_test code implements for host + * integration tests to call into. * * Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class FlutterIntegrationCoreApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "" -) { +class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by FlutterIntegrationCoreApi. */ - val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } + val codec: MessageCodec by lazy { + CoreTestsPigeonCodec() + } } - /** A no-op function taking no arguments and returning no value, to sanity test basic calling. */ - fun noop(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$separatedMessageChannelSuffix" + /** + * A no-op function taking no arguments and returning no value, to sanity + * test basic calling. + */ + fun noop(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -5056,15 +4064,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Responds with an error from an async function returning a value. */ - fun throwError(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$separatedMessageChannelSuffix" + fun throwError(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -5076,15 +4083,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Responds with an error from an async void function. */ - fun throwErrorFromVoid(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$separatedMessageChannelSuffix" + fun throwErrorFromVoid(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -5095,45 +4101,35 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed object, to test serialization and deserialization. */ - fun echoAllTypes(everythingArg: AllTypes, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$separatedMessageChannelSuffix" + fun echoAllTypes(everythingArg: AllTypes, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(everythingArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as AllTypes callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed object, to test serialization and deserialization. */ - fun echoAllNullableTypes( - everythingArg: AllNullableTypes?, - callback: (Result) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$separatedMessageChannelSuffix" + fun echoAllNullableTypes(everythingArg: AllNullableTypes?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(everythingArg)) { if (it is List<*>) { @@ -5145,7 +4141,7 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** @@ -5153,46 +4149,31 @@ class FlutterIntegrationCoreApi( * * Tests multiple-arity FlutterApi handling. */ - fun sendMultipleNullableTypes( - aNullableBoolArg: Boolean?, - aNullableIntArg: Long?, - aNullableStringArg: String?, - callback: (Result) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$separatedMessageChannelSuffix" + fun sendMultipleNullableTypes(aNullableBoolArg: Boolean?, aNullableIntArg: Long?, aNullableStringArg: String?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aNullableBoolArg, aNullableIntArg, aNullableStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as AllNullableTypes callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed object, to test serialization and deserialization. */ - fun echoAllNullableTypesWithoutRecursion( - everythingArg: AllNullableTypesWithoutRecursion?, - callback: (Result) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix" + fun echoAllNullableTypesWithoutRecursion(everythingArg: AllNullableTypesWithoutRecursion?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(everythingArg)) { if (it is List<*>) { @@ -5204,7 +4185,7 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** @@ -5212,634 +4193,472 @@ class FlutterIntegrationCoreApi( * * Tests multiple-arity FlutterApi handling. */ - fun sendMultipleNullableTypesWithoutRecursion( - aNullableBoolArg: Boolean?, - aNullableIntArg: Long?, - aNullableStringArg: String?, - callback: (Result) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix" + fun sendMultipleNullableTypesWithoutRecursion(aNullableBoolArg: Boolean?, aNullableIntArg: Long?, aNullableStringArg: String?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aNullableBoolArg, aNullableIntArg, aNullableStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as AllNullableTypesWithoutRecursion callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed boolean, to test serialization and deserialization. */ - fun echoBool(aBoolArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$separatedMessageChannelSuffix" + fun echoBool(aBoolArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aBoolArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Boolean callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed int, to test serialization and deserialization. */ - fun echoInt(anIntArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$separatedMessageChannelSuffix" + fun echoInt(anIntArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anIntArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Long callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed double, to test serialization and deserialization. */ - fun echoDouble(aDoubleArg: Double, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$separatedMessageChannelSuffix" + fun echoDouble(aDoubleArg: Double, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aDoubleArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Double callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed string, to test serialization and deserialization. */ - fun echoString(aStringArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$separatedMessageChannelSuffix" + fun echoString(aStringArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed byte list, to test serialization and deserialization. */ - fun echoUint8List(listArg: ByteArray, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$separatedMessageChannelSuffix" + fun echoUint8List(listArg: ByteArray, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(listArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as ByteArray callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoList(listArg: List, callback: (Result>) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$separatedMessageChannelSuffix" + fun echoList(listArg: List, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(listArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoEnumList(enumListArg: List, callback: (Result>) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$separatedMessageChannelSuffix" + fun echoEnumList(enumListArg: List, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumListArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoClassList( - classListArg: List, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$separatedMessageChannelSuffix" + fun echoClassList(classListArg: List, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classListArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNonNullEnumList(enumListArg: List, callback: (Result>) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$separatedMessageChannelSuffix" + fun echoNonNullEnumList(enumListArg: List, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumListArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNonNullClassList( - classListArg: List, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$separatedMessageChannelSuffix" + fun echoNonNullClassList(classListArg: List, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classListArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoMap(mapArg: Map, callback: (Result>) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$separatedMessageChannelSuffix" + fun echoMap(mapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(mapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoStringMap( - stringMapArg: Map, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$separatedMessageChannelSuffix" + fun echoStringMap(stringMapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(stringMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoIntMap(intMapArg: Map, callback: (Result>) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$separatedMessageChannelSuffix" + fun echoIntMap(intMapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(intMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoEnumMap( - enumMapArg: Map, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$separatedMessageChannelSuffix" + fun echoEnumMap(enumMapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoClassMap( - classMapArg: Map, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$separatedMessageChannelSuffix" + fun echoClassMap(classMapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNonNullStringMap( - stringMapArg: Map, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$separatedMessageChannelSuffix" + fun echoNonNullStringMap(stringMapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(stringMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNonNullIntMap(intMapArg: Map, callback: (Result>) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$separatedMessageChannelSuffix" + fun echoNonNullIntMap(intMapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(intMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNonNullEnumMap( - enumMapArg: Map, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$separatedMessageChannelSuffix" + fun echoNonNullEnumMap(enumMapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNonNullClassMap( - classMapArg: Map, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$separatedMessageChannelSuffix" + fun echoNonNullClassMap(classMapArg: Map, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun echoEnum(anEnumArg: AnEnum, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$separatedMessageChannelSuffix" + fun echoEnum(anEnumArg: AnEnum, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anEnumArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as AnEnum callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun echoAnotherEnum(anotherEnumArg: AnotherEnum, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix" + fun echoAnotherEnum(anotherEnumArg: AnotherEnum, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anotherEnumArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as AnotherEnum callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed boolean, to test serialization and deserialization. */ - fun echoNullableBool(aBoolArg: Boolean?, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$separatedMessageChannelSuffix" + fun echoNullableBool(aBoolArg: Boolean?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aBoolArg)) { if (it is List<*>) { @@ -5851,15 +4670,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed int, to test serialization and deserialization. */ - fun echoNullableInt(anIntArg: Long?, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$separatedMessageChannelSuffix" + fun echoNullableInt(anIntArg: Long?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anIntArg)) { if (it is List<*>) { @@ -5871,15 +4689,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed double, to test serialization and deserialization. */ - fun echoNullableDouble(aDoubleArg: Double?, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$separatedMessageChannelSuffix" + fun echoNullableDouble(aDoubleArg: Double?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aDoubleArg)) { if (it is List<*>) { @@ -5891,15 +4708,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed string, to test serialization and deserialization. */ - fun echoNullableString(aStringArg: String?, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$separatedMessageChannelSuffix" + fun echoNullableString(aStringArg: String?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { @@ -5911,15 +4727,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed byte list, to test serialization and deserialization. */ - fun echoNullableUint8List(listArg: ByteArray?, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$separatedMessageChannelSuffix" + fun echoNullableUint8List(listArg: ByteArray?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(listArg)) { if (it is List<*>) { @@ -5931,15 +4746,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableList(listArg: List?, callback: (Result?>) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$separatedMessageChannelSuffix" + fun echoNullableList(listArg: List?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(listArg)) { if (it is List<*>) { @@ -5951,18 +4765,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableEnumList( - enumListArg: List?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$separatedMessageChannelSuffix" + fun echoNullableEnumList(enumListArg: List?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumListArg)) { if (it is List<*>) { @@ -5974,18 +4784,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableClassList( - classListArg: List?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$separatedMessageChannelSuffix" + fun echoNullableClassList(classListArg: List?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classListArg)) { if (it is List<*>) { @@ -5997,18 +4803,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableNonNullEnumList( - enumListArg: List?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$separatedMessageChannelSuffix" + fun echoNullableNonNullEnumList(enumListArg: List?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumListArg)) { if (it is List<*>) { @@ -6020,18 +4822,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableNonNullClassList( - classListArg: List?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$separatedMessageChannelSuffix" + fun echoNullableNonNullClassList(classListArg: List?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classListArg)) { if (it is List<*>) { @@ -6043,15 +4841,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableMap(mapArg: Map?, callback: (Result?>) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$separatedMessageChannelSuffix" + fun echoNullableMap(mapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(mapArg)) { if (it is List<*>) { @@ -6063,18 +4860,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableStringMap( - stringMapArg: Map?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$separatedMessageChannelSuffix" + fun echoNullableStringMap(stringMapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(stringMapArg)) { if (it is List<*>) { @@ -6086,18 +4879,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableIntMap( - intMapArg: Map?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$separatedMessageChannelSuffix" + fun echoNullableIntMap(intMapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(intMapArg)) { if (it is List<*>) { @@ -6109,18 +4898,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableEnumMap( - enumMapArg: Map?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$separatedMessageChannelSuffix" + fun echoNullableEnumMap(enumMapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumMapArg)) { if (it is List<*>) { @@ -6132,18 +4917,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableClassMap( - classMapArg: Map?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$separatedMessageChannelSuffix" + fun echoNullableClassMap(classMapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classMapArg)) { if (it is List<*>) { @@ -6155,18 +4936,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullStringMap( - stringMapArg: Map?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$separatedMessageChannelSuffix" + fun echoNullableNonNullStringMap(stringMapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(stringMapArg)) { if (it is List<*>) { @@ -6178,18 +4955,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullIntMap( - intMapArg: Map?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$separatedMessageChannelSuffix" + fun echoNullableNonNullIntMap(intMapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(intMapArg)) { if (it is List<*>) { @@ -6201,18 +4974,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullEnumMap( - enumMapArg: Map?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$separatedMessageChannelSuffix" + fun echoNullableNonNullEnumMap(enumMapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumMapArg)) { if (it is List<*>) { @@ -6224,18 +4993,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullClassMap( - classMapArg: Map?, - callback: (Result?>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$separatedMessageChannelSuffix" + fun echoNullableNonNullClassMap(classMapArg: Map?, callback: (Result?>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classMapArg)) { if (it is List<*>) { @@ -6247,15 +5012,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun echoNullableEnum(anEnumArg: AnEnum?, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$separatedMessageChannelSuffix" + fun echoNullableEnum(anEnumArg: AnEnum?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anEnumArg)) { if (it is List<*>) { @@ -6267,18 +5031,14 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun echoAnotherNullableEnum( - anotherEnumArg: AnotherEnum?, - callback: (Result) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix" + fun echoAnotherNullableEnum(anotherEnumArg: AnotherEnum?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anotherEnumArg)) { if (it is List<*>) { @@ -6290,18 +5050,17 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** - * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous - * calling. + * A no-op function taking no arguments and returning no value, to sanity + * test basic asynchronous calling. */ - fun noopAsync(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$separatedMessageChannelSuffix" + fun noopAsync(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6312,34 +5071,28 @@ class FlutterIntegrationCoreApi( } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed in generic Object asynchronously. */ - fun echoAsyncString(aStringArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$separatedMessageChannelSuffix" + fun echoAsyncString(aStringArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } @@ -6353,31 +5106,23 @@ interface HostTrivialApi { companion object { /** The codec used by HostTrivialApi. */ - val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } + val codec: MessageCodec by lazy { + CoreTestsPigeonCodec() + } /** Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: HostTrivialApi?, - messageChannelSuffix: String = "" - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$separatedMessageChannelSuffix", - codec) + fun setUp(binaryMessenger: BinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.noop() - listOf(null) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.noop() + listOf(null) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6394,27 +5139,19 @@ interface HostTrivialApi { */ interface HostSmallApi { fun echo(aString: String, callback: (Result) -> Unit) - fun voidVoid(callback: (Result) -> Unit) companion object { /** The codec used by HostSmallApi. */ - val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } + val codec: MessageCodec by lazy { + CoreTestsPigeonCodec() + } /** Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: HostSmallApi?, - messageChannelSuffix: String = "" - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6434,14 +5171,10 @@ interface HostSmallApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$separatedMessageChannelSuffix", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.voidVoid { result: Result -> + api.voidVoid{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -6462,66 +5195,51 @@ interface HostSmallApi { * * Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class FlutterSmallApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "" -) { +class FlutterSmallApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by FlutterSmallApi. */ - val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } + val codec: MessageCodec by lazy { + CoreTestsPigeonCodec() + } } - - fun echoWrappedList(msgArg: TestMessage, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$separatedMessageChannelSuffix" + fun echoWrappedList(msgArg: TestMessage, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as TestMessage callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun echoString(aStringArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$separatedMessageChannelSuffix" + fun echoString(aStringArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt index 3126aa07aa0f..8a4e7fa97b96 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt @@ -8,13 +8,15 @@ package com.example.test_plugin +import android.util.Log +import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger import io.flutter.plugin.common.EventChannel -import io.flutter.plugin.common.StandardMessageCodec +import io.flutter.plugin.common.MessageCodec import io.flutter.plugin.common.StandardMethodCodec +import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object EventChannelTestsPigeonUtils { fun deepEquals(a: Any?, b: Any?): Boolean { if (a === b) { @@ -30,20 +32,37 @@ private object EventChannelTestsPigeonUtils { return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is FloatArray && b is FloatArray) { - return a.contentEquals(b) + if (a.size != b.size) return false + for (i in a.indices) { + if (!deepEquals(a[i], b[i])) return false + } + return true } if (a is Array<*> && b is Array<*>) { return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } + return a.size == b.size && a.all { + (b as Map).contains(it.key) && + deepEquals(it.value, b[it.key]) + } + } + if (a is Double && b is Double) { + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + if (a is Float && b is Float) { + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) } return a == b } @@ -54,8 +73,20 @@ private object EventChannelTestsPigeonUtils { is ByteArray -> value.contentHashCode() is IntArray -> value.contentHashCode() is LongArray -> value.contentHashCode() - is DoubleArray -> value.contentHashCode() - is FloatArray -> value.contentHashCode() + is DoubleArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } + is FloatArray -> { + var result = 1 + for (item in value) { + result = 31 * result + deepHash(item) + } + result + } is Array<*> -> value.contentDeepHashCode() is List<*> -> { var result = 1 @@ -71,22 +102,31 @@ private object EventChannelTestsPigeonUtils { } result } + is Double -> { + val d = if (value == 0.0) 0.0 else value + val bits = java.lang.Double.doubleToLongBits(d) + (bits xor (bits ushr 32)).toInt() + } + is Float -> { + val f = if (value == 0.0f) 0.0f else value + java.lang.Float.floatToIntBits(f) + } else -> value.hashCode() } } + } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. - * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class EventChannelTestsError( - val code: String, - override val message: String? = null, - val details: Any? = null +class EventChannelTestsError ( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() enum class EventEnum(val raw: Int) { @@ -118,39 +158,40 @@ enum class AnotherEventEnum(val raw: Int) { * * Generated class from Pigeon that represents data sent in messages. */ -data class EventAllNullableTypes( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val aNullableEnum: EventEnum? = null, - val anotherNullableEnum: AnotherEventEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val allNullableTypes: EventAllNullableTypes? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val enumList: List? = null, - val objectList: List? = null, - val listList: List?>? = null, - val mapList: List?>? = null, - val recursiveClassList: List? = null, - val map: Map? = null, - val stringMap: Map? = null, - val intMap: Map? = null, - val enumMap: Map? = null, - val objectMap: Map? = null, - val listMap: Map?>? = null, - val mapMap: Map?>? = null, - val recursiveClassMap: Map? = null -) { +data class EventAllNullableTypes ( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val aNullableEnum: EventEnum? = null, + val anotherNullableEnum: AnotherEventEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val allNullableTypes: EventAllNullableTypes? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val enumList: List? = null, + val objectList: List? = null, + val listList: List?>? = null, + val mapList: List?>? = null, + val recursiveClassList: List? = null, + val map: Map? = null, + val stringMap: Map? = null, + val intMap: Map? = null, + val enumMap: Map? = null, + val objectMap: Map? = null, + val listMap: Map?>? = null, + val mapMap: Map?>? = null, + val recursiveClassMap: Map? = null +) + { companion object { fun fromList(pigeonVar_list: List): EventAllNullableTypes { val aNullableBool = pigeonVar_list[0] as Boolean? @@ -184,77 +225,44 @@ data class EventAllNullableTypes( val listMap = pigeonVar_list[28] as Map?>? val mapMap = pigeonVar_list[29] as Map?>? val recursiveClassMap = pigeonVar_list[30] as Map? - return EventAllNullableTypes( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap) + return EventAllNullableTypes(aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, recursiveClassList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap, recursiveClassMap) } } - fun toList(): List { return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap, + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -263,43 +271,7 @@ data class EventAllNullableTypes( return true } val other = other as EventAllNullableTypes - return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && - EventChannelTestsPigeonUtils.deepEquals( - this.aNullableByteArray, other.aNullableByteArray) && - EventChannelTestsPigeonUtils.deepEquals( - this.aNullable4ByteArray, other.aNullable4ByteArray) && - EventChannelTestsPigeonUtils.deepEquals( - this.aNullable8ByteArray, other.aNullable8ByteArray) && - EventChannelTestsPigeonUtils.deepEquals( - this.aNullableFloatArray, other.aNullableFloatArray) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && - EventChannelTestsPigeonUtils.deepEquals( - this.anotherNullableEnum, other.anotherNullableEnum) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && - EventChannelTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && - EventChannelTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && - EventChannelTestsPigeonUtils.deepEquals(this.list, other.list) && - EventChannelTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && - EventChannelTestsPigeonUtils.deepEquals(this.intList, other.intList) && - EventChannelTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && - EventChannelTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && - EventChannelTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && - EventChannelTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && - EventChannelTestsPigeonUtils.deepEquals(this.listList, other.listList) && - EventChannelTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && - EventChannelTestsPigeonUtils.deepEquals( - this.recursiveClassList, other.recursiveClassList) && - EventChannelTestsPigeonUtils.deepEquals(this.map, other.map) && - EventChannelTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && - EventChannelTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && - EventChannelTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && - EventChannelTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && - EventChannelTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && - EventChannelTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && - EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) + return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && EventChannelTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && EventChannelTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && EventChannelTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && EventChannelTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && EventChannelTestsPigeonUtils.deepEquals(this.list, other.list) && EventChannelTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && EventChannelTestsPigeonUtils.deepEquals(this.intList, other.intList) && EventChannelTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && EventChannelTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && EventChannelTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && EventChannelTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && EventChannelTestsPigeonUtils.deepEquals(this.listList, other.listList) && EventChannelTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && EventChannelTestsPigeonUtils.deepEquals(this.map, other.map) && EventChannelTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && EventChannelTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && EventChannelTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && EventChannelTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && EventChannelTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && EventChannelTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) } override fun hashCode(): Int { @@ -340,25 +312,26 @@ data class EventAllNullableTypes( } /** - * Generated class from Pigeon that represents data sent in messages. This class should not be - * extended by any user class outside of the generated file. + * Generated class from Pigeon that represents data sent in messages. + * This class should not be extended by any user class outside of the generated file. */ -sealed class PlatformEvent +sealed class PlatformEvent /** Generated class from Pigeon that represents data sent in messages. */ -data class IntEvent(val value: Long) : PlatformEvent() { +data class IntEvent ( + val value: Long +) : PlatformEvent() + { companion object { fun fromList(pigeonVar_list: List): IntEvent { val value = pigeonVar_list[0] as Long return IntEvent(value) } } - fun toList(): List { return listOf( - value, + value, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -378,20 +351,21 @@ data class IntEvent(val value: Long) : PlatformEvent() { } /** Generated class from Pigeon that represents data sent in messages. */ -data class StringEvent(val value: String) : PlatformEvent() { +data class StringEvent ( + val value: String +) : PlatformEvent() + { companion object { fun fromList(pigeonVar_list: List): StringEvent { val value = pigeonVar_list[0] as String return StringEvent(value) } } - fun toList(): List { return listOf( - value, + value, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -411,20 +385,21 @@ data class StringEvent(val value: String) : PlatformEvent() { } /** Generated class from Pigeon that represents data sent in messages. */ -data class BoolEvent(val value: Boolean) : PlatformEvent() { +data class BoolEvent ( + val value: Boolean +) : PlatformEvent() + { companion object { fun fromList(pigeonVar_list: List): BoolEvent { val value = pigeonVar_list[0] as Boolean return BoolEvent(value) } } - fun toList(): List { return listOf( - value, + value, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -444,20 +419,21 @@ data class BoolEvent(val value: Boolean) : PlatformEvent() { } /** Generated class from Pigeon that represents data sent in messages. */ -data class DoubleEvent(val value: Double) : PlatformEvent() { +data class DoubleEvent ( + val value: Double +) : PlatformEvent() + { companion object { fun fromList(pigeonVar_list: List): DoubleEvent { val value = pigeonVar_list[0] as Double return DoubleEvent(value) } } - fun toList(): List { return listOf( - value, + value, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -477,20 +453,21 @@ data class DoubleEvent(val value: Double) : PlatformEvent() { } /** Generated class from Pigeon that represents data sent in messages. */ -data class ObjectsEvent(val value: Any) : PlatformEvent() { +data class ObjectsEvent ( + val value: Any +) : PlatformEvent() + { companion object { fun fromList(pigeonVar_list: List): ObjectsEvent { val value = pigeonVar_list[0] as Any return ObjectsEvent(value) } } - fun toList(): List { return listOf( - value, + value, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -510,20 +487,21 @@ data class ObjectsEvent(val value: Any) : PlatformEvent() { } /** Generated class from Pigeon that represents data sent in messages. */ -data class EnumEvent(val value: EventEnum) : PlatformEvent() { +data class EnumEvent ( + val value: EventEnum +) : PlatformEvent() + { companion object { fun fromList(pigeonVar_list: List): EnumEvent { val value = pigeonVar_list[0] as EventEnum return EnumEvent(value) } } - fun toList(): List { return listOf( - value, + value, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -543,20 +521,21 @@ data class EnumEvent(val value: EventEnum) : PlatformEvent() { } /** Generated class from Pigeon that represents data sent in messages. */ -data class ClassEvent(val value: EventAllNullableTypes) : PlatformEvent() { +data class ClassEvent ( + val value: EventAllNullableTypes +) : PlatformEvent() + { companion object { fun fromList(pigeonVar_list: List): ClassEvent { val value = pigeonVar_list[0] as EventAllNullableTypes return ClassEvent(value) } } - fun toList(): List { return listOf( - value, + value, ) } - override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -574,45 +553,63 @@ data class ClassEvent(val value: EventAllNullableTypes) : PlatformEvent() { return result } } - private open class EventChannelTestsPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { EventEnum.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + EventEnum.ofRaw(it.toInt()) + } } 130.toByte() -> { - return (readValue(buffer) as Long?)?.let { AnotherEventEnum.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AnotherEventEnum.ofRaw(it.toInt()) + } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { EventAllNullableTypes.fromList(it) } + return (readValue(buffer) as? List)?.let { + EventAllNullableTypes.fromList(it) + } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { IntEvent.fromList(it) } + return (readValue(buffer) as? List)?.let { + IntEvent.fromList(it) + } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { StringEvent.fromList(it) } + return (readValue(buffer) as? List)?.let { + StringEvent.fromList(it) + } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { BoolEvent.fromList(it) } + return (readValue(buffer) as? List)?.let { + BoolEvent.fromList(it) + } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { DoubleEvent.fromList(it) } + return (readValue(buffer) as? List)?.let { + DoubleEvent.fromList(it) + } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { ObjectsEvent.fromList(it) } + return (readValue(buffer) as? List)?.let { + ObjectsEvent.fromList(it) + } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { EnumEvent.fromList(it) } + return (readValue(buffer) as? List)?.let { + EnumEvent.fromList(it) + } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { ClassEvent.fromList(it) } + return (readValue(buffer) as? List)?.let { + ClassEvent.fromList(it) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is EventEnum -> { stream.write(129) @@ -661,6 +658,7 @@ private open class EventChannelTestsPigeonCodec : StandardMessageCodec() { val EventChannelTestsPigeonMethodCodec = StandardMethodCodec(EventChannelTestsPigeonCodec()) + private class EventChannelTestsPigeonStreamHandler( val wrapper: EventChannelTestsPigeonEventChannelWrapper ) : EventChannel.StreamHandler { @@ -696,74 +694,55 @@ class PigeonEventSink(private val sink: EventChannel.EventSink) { sink.endOfStream() } } - + abstract class StreamIntsStreamHandler : EventChannelTestsPigeonEventChannelWrapper { companion object { - fun register( - messenger: BinaryMessenger, - streamHandler: StreamIntsStreamHandler, - instanceName: String = "" - ) { - var channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts" + fun register(messenger: BinaryMessenger, streamHandler: StreamIntsStreamHandler, instanceName: String = "") { + var channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts" if (instanceName.isNotEmpty()) { channelName += ".$instanceName" } val internalStreamHandler = EventChannelTestsPigeonStreamHandler(streamHandler) - EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec) - .setStreamHandler(internalStreamHandler) + EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec).setStreamHandler(internalStreamHandler) } } - // Implement methods from EventChannelTestsPigeonEventChannelWrapper - override fun onListen(p0: Any?, sink: PigeonEventSink) {} +// Implement methods from EventChannelTestsPigeonEventChannelWrapper +override fun onListen(p0: Any?, sink: PigeonEventSink) {} - override fun onCancel(p0: Any?) {} +override fun onCancel(p0: Any?) {} } - -abstract class StreamEventsStreamHandler : - EventChannelTestsPigeonEventChannelWrapper { + +abstract class StreamEventsStreamHandler : EventChannelTestsPigeonEventChannelWrapper { companion object { - fun register( - messenger: BinaryMessenger, - streamHandler: StreamEventsStreamHandler, - instanceName: String = "" - ) { - var channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents" + fun register(messenger: BinaryMessenger, streamHandler: StreamEventsStreamHandler, instanceName: String = "") { + var channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents" if (instanceName.isNotEmpty()) { channelName += ".$instanceName" } val internalStreamHandler = EventChannelTestsPigeonStreamHandler(streamHandler) - EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec) - .setStreamHandler(internalStreamHandler) + EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec).setStreamHandler(internalStreamHandler) } } - // Implement methods from EventChannelTestsPigeonEventChannelWrapper - override fun onListen(p0: Any?, sink: PigeonEventSink) {} +// Implement methods from EventChannelTestsPigeonEventChannelWrapper +override fun onListen(p0: Any?, sink: PigeonEventSink) {} - override fun onCancel(p0: Any?) {} +override fun onCancel(p0: Any?) {} } - -abstract class StreamConsistentNumbersStreamHandler : - EventChannelTestsPigeonEventChannelWrapper { + +abstract class StreamConsistentNumbersStreamHandler : EventChannelTestsPigeonEventChannelWrapper { companion object { - fun register( - messenger: BinaryMessenger, - streamHandler: StreamConsistentNumbersStreamHandler, - instanceName: String = "" - ) { - var channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers" + fun register(messenger: BinaryMessenger, streamHandler: StreamConsistentNumbersStreamHandler, instanceName: String = "") { + var channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers" if (instanceName.isNotEmpty()) { channelName += ".$instanceName" } val internalStreamHandler = EventChannelTestsPigeonStreamHandler(streamHandler) - EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec) - .setStreamHandler(internalStreamHandler) + EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec).setStreamHandler(internalStreamHandler) } } - // Implement methods from EventChannelTestsPigeonEventChannelWrapper - override fun onListen(p0: Any?, sink: PigeonEventSink) {} +// Implement methods from EventChannelTestsPigeonEventChannelWrapper +override fun onListen(p0: Any?, sink: PigeonEventSink) {} - override fun onCancel(p0: Any?) {} +override fun onCancel(p0: Any?) {} } + diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/ProxyApiTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/ProxyApiTests.gen.kt index ab979311a10c..d399942bbc61 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/ProxyApiTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/ProxyApiTests.gen.kt @@ -11,17 +11,16 @@ package com.example.test_plugin import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger +import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec +import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object ProxyApiTestsPigeonUtils { fun createConnectionError(channelName: String): ProxyApiTestsError { - return ProxyApiTestsError( - "channel-error", "Unable to establish connection on channel: '$channelName'.", "") - } + return ProxyApiTestsError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } fun wrapResult(result: Any?): List { return listOf(result) @@ -29,48 +28,50 @@ private object ProxyApiTestsPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is ProxyApiTestsError) { - listOf(exception.code, exception.message, exception.details) + listOf( + exception.code, + exception.message, + exception.details + ) } else { listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception)) + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + ) } } } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. - * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class ProxyApiTestsError( - val code: String, - override val message: String? = null, - val details: Any? = null +class ProxyApiTestsError ( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() /** * Maintains instances used to communicate with the corresponding objects in Dart. * - * Objects stored in this container are represented by an object in Dart that is also stored in an - * InstanceManager with the same identifier. + * Objects stored in this container are represented by an object in Dart that is also stored in + * an InstanceManager with the same identifier. * * When an instance is added with an identifier, either can be used to retrieve the other. * - * Added instances are added as a weak reference and a strong reference. When the strong reference - * is removed with [remove] and the weak reference is deallocated, the - * `finalizationListener.onFinalize` is called with the instance's identifier. However, if the - * strong reference is removed and then the identifier is retrieved with the intention to pass the - * identifier to Dart (e.g. calling [getIdentifierForStrongReference]), the strong reference to the - * instance is recreated. The strong reference will then need to be removed manually again. + * Added instances are added as a weak reference and a strong reference. When the strong + * reference is removed with [remove] and the weak reference is deallocated, the + * `finalizationListener.onFinalize` is called with the instance's identifier. However, if the strong + * reference is removed and then the identifier is retrieved with the intention to pass the identifier + * to Dart (e.g. calling [getIdentifierForStrongReference]), the strong reference to the instance + * is recreated. The strong reference will then need to be removed manually again. */ @Suppress("UNCHECKED_CAST", "MemberVisibilityCanBePrivate") -class ProxyApiTestsPigeonInstanceManager( - private val finalizationListener: PigeonFinalizationListener -) { - /** Interface for listening when a weak reference of an instance is removed from the manager. */ +class ProxyApiTestsPigeonInstanceManager(private val finalizationListener: PigeonFinalizationListener) { + /** Interface for listening when a weak reference of an instance is removed from the manager. */ interface PigeonFinalizationListener { fun onFinalize(identifier: Long) } @@ -139,20 +140,19 @@ class ProxyApiTestsPigeonInstanceManager( private const val tag = "PigeonInstanceManager" /** - * Instantiate a new manager with a listener for garbage collected weak references. + * Instantiate a new manager with a listener for garbage collected weak + * references. * * When the manager is no longer needed, [stopFinalizationListener] must be called. */ - fun create( - finalizationListener: PigeonFinalizationListener - ): ProxyApiTestsPigeonInstanceManager { + fun create(finalizationListener: PigeonFinalizationListener): ProxyApiTestsPigeonInstanceManager { return ProxyApiTestsPigeonInstanceManager(finalizationListener) } } /** - * Removes `identifier` and return its associated strongly referenced instance, if present, from - * the manager. + * Removes `identifier` and return its associated strongly referenced instance, if present, + * from the manager. */ fun remove(identifier: Long): T? { logWarningIfFinalizationListenerHasStopped() @@ -162,13 +162,15 @@ class ProxyApiTestsPigeonInstanceManager( /** * Retrieves the identifier paired with an instance, if present, otherwise `null`. * + * * If the manager contains a strong reference to `instance`, it will return the identifier * associated with `instance`. If the manager contains only a weak reference to `instance`, a new * strong reference to `instance` will be added and will need to be removed again with [remove]. * + * * If this method returns a nonnull identifier, this method also expects the Dart - * `ProxyApiTestsPigeonInstanceManager` to have, or recreate, a weak reference to the Dart - * instance the identifier is associated with. + * `ProxyApiTestsPigeonInstanceManager` to have, or recreate, a weak reference to the Dart instance the + * identifier is associated with. */ fun getIdentifierForStrongReference(instance: Any?): Long? { logWarningIfFinalizationListenerHasStopped() @@ -185,9 +187,9 @@ class ProxyApiTestsPigeonInstanceManager( /** * Adds a new instance that was instantiated from Dart. * - * The same instance can be added multiple times, but each identifier must be unique. This allows - * two objects that are equivalent (e.g. the `equals` method returns true and their hashcodes are - * equal) to both be added. + * The same instance can be added multiple times, but each identifier must be unique. This + * allows two objects that are equivalent (e.g. the `equals` method returns true and their + * hashcodes are equal) to both be added. * * [identifier] must be >= 0 and unique. */ @@ -199,15 +201,13 @@ class ProxyApiTestsPigeonInstanceManager( /** * Adds a new unique instance that was instantiated from the host platform. * - * If the manager contains [instance], this returns the corresponding identifier. If the manager - * does not contain [instance], this adds the instance and returns a unique identifier for that - * [instance]. + * If the manager contains [instance], this returns the corresponding identifier. If the + * manager does not contain [instance], this adds the instance and returns a unique + * identifier for that [instance]. */ fun addHostCreatedInstance(instance: Any): Long { logWarningIfFinalizationListenerHasStopped() - require(!containsInstance(instance)) { - "Instance of ${instance.javaClass} has already been added." - } + require(!containsInstance(instance)) { "Instance of ${instance.javaClass} has already been added." } val identifier = nextIdentifier++ addInstance(instance, identifier) return identifier @@ -291,43 +291,39 @@ class ProxyApiTestsPigeonInstanceManager( private fun logWarningIfFinalizationListenerHasStopped() { if (hasFinalizationListenerStopped()) { Log.w( - tag, - "The manager was used after calls to the PigeonFinalizationListener has been stopped.") + tag, + "The manager was used after calls to the PigeonFinalizationListener has been stopped." + ) } } } + /** Generated API for managing the Dart and native `InstanceManager`s. */ private class ProxyApiTestsPigeonInstanceManagerApi(val binaryMessenger: BinaryMessenger) { companion object { /** The codec used by ProxyApiTestsPigeonInstanceManagerApi. */ - val codec: MessageCodec by lazy { ProxyApiTestsPigeonCodec() } + val codec: MessageCodec by lazy { + ProxyApiTestsPigeonCodec() + } /** * Sets up an instance of `ProxyApiTestsPigeonInstanceManagerApi` to handle messages from the * `binaryMessenger`. */ - fun setUpMessageHandlers( - binaryMessenger: BinaryMessenger, - instanceManager: ProxyApiTestsPigeonInstanceManager? - ) { + fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager?) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", codec) if (instanceManager != null) { channel.setMessageHandler { message, reply -> val args = message as List val identifierArg = args[0] as Long - val wrapped: List = - try { - instanceManager.remove(identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + instanceManager.remove(identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -335,20 +331,15 @@ private class ProxyApiTestsPigeonInstanceManagerApi(val binaryMessenger: BinaryM } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", codec) if (instanceManager != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - instanceManager.clear() - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + instanceManager.clear() + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -358,28 +349,26 @@ private class ProxyApiTestsPigeonInstanceManagerApi(val binaryMessenger: BinaryM } } - fun removeStrongReference(identifierArg: Long, callback: (Result) -> Unit) { - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" + fun removeStrongReference(identifierArg: Long, callback: (Result) -> Unit) +{ + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(identifierArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } /** - * Provides implementations for each ProxyApi implementation and provides access to resources needed - * by any implementation. + * Provides implementations for each ProxyApi implementation and provides access to resources + * needed by any implementation. */ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryMessenger) { /** Whether APIs should ignore calling to Dart. */ @@ -396,19 +385,20 @@ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryM init { val api = ProxyApiTestsPigeonInstanceManagerApi(binaryMessenger) - instanceManager = - ProxyApiTestsPigeonInstanceManager.create( - object : ProxyApiTestsPigeonInstanceManager.PigeonFinalizationListener { - override fun onFinalize(identifier: Long) { - api.removeStrongReference(identifier) { - if (it.isFailure) { - Log.e( - "PigeonProxyApiRegistrar", - "Failed to remove Dart strong reference with identifier: $identifier") - } - } - } - }) + instanceManager = ProxyApiTestsPigeonInstanceManager.create( + object : ProxyApiTestsPigeonInstanceManager.PigeonFinalizationListener { + override fun onFinalize(identifier: Long) { + api.removeStrongReference(identifier) { + if (it.isFailure) { + Log.e( + "PigeonProxyApiRegistrar", + "Failed to remove Dart strong reference with identifier: $identifier" + ) + } + } + } + } + ) } /** * An implementation of [PigeonApiProxyApiTestClass] used to add a new Dart instance of @@ -426,7 +416,8 @@ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryM * An implementation of [PigeonApiProxyApiInterface] used to add a new Dart instance of * `ProxyApiInterface` to the Dart `InstanceManager`. */ - open fun getPigeonApiProxyApiInterface(): PigeonApiProxyApiInterface { + open fun getPigeonApiProxyApiInterface(): PigeonApiProxyApiInterface + { return PigeonApiProxyApiInterface(this) } @@ -438,14 +429,10 @@ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryM fun setUp() { ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger, instanceManager) - PigeonApiProxyApiTestClass.setUpMessageHandlers( - binaryMessenger, getPigeonApiProxyApiTestClass()) - PigeonApiProxyApiSuperClass.setUpMessageHandlers( - binaryMessenger, getPigeonApiProxyApiSuperClass()) - PigeonApiClassWithApiRequirement.setUpMessageHandlers( - binaryMessenger, getPigeonApiClassWithApiRequirement()) + PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger, getPigeonApiProxyApiTestClass()) + PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger, getPigeonApiProxyApiSuperClass()) + PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger, getPigeonApiClassWithApiRequirement()) } - fun tearDown() { ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger, null) PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger, null) @@ -453,17 +440,17 @@ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryM PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger, null) } } - -private class ProxyApiTestsPigeonProxyApiBaseCodec( - val registrar: ProxyApiTestsPigeonProxyApiRegistrar -) : ProxyApiTestsPigeonCodec() { +private class ProxyApiTestsPigeonProxyApiBaseCodec(val registrar: ProxyApiTestsPigeonProxyApiRegistrar) : ProxyApiTestsPigeonCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { val identifier: Long = readValue(buffer) as Long val instance: Any? = registrar.instanceManager.getInstance(identifier) if (instance == null) { - Log.e("PigeonProxyApiBaseCodec", "Failed to find instance with identifier: $identifier") + Log.e( + "PigeonProxyApiBaseCodec", + "Failed to find instance with identifier: $identifier" + ) } return instance } @@ -472,28 +459,16 @@ private class ProxyApiTestsPigeonProxyApiBaseCodec( } override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { - if (value is Boolean || - value is ByteArray || - value is Double || - value is DoubleArray || - value is FloatArray || - value is Int || - value is IntArray || - value is List<*> || - value is Long || - value is LongArray || - value is Map<*, *> || - value is String || - value is ProxyApiTestEnum || - value == null) { + if (value is Boolean || value is ByteArray || value is Double || value is DoubleArray || value is FloatArray || value is Int || value is IntArray || value is List<*> || value is Long || value is LongArray || value is Map<*, *> || value is String || value is ProxyApiTestEnum || value == null) { super.writeValue(stream, value) return } fun logNewInstanceFailure(apiName: String, value: Any, exception: Throwable?) { Log.w( - "PigeonProxyApiBaseCodec", - "Failed to create new Dart proxy instance of $apiName: $value. $exception") + "PigeonProxyApiBaseCodec", + "Failed to create new Dart proxy instance of $apiName: $value. $exception" + ) } if (value is ProxyApiTestClass) { @@ -502,19 +477,22 @@ private class ProxyApiTestsPigeonProxyApiBaseCodec( logNewInstanceFailure("ProxyApiTestClass", value, it.exceptionOrNull()) } } - } else if (value is com.example.test_plugin.ProxyApiSuperClass) { + } + else if (value is com.example.test_plugin.ProxyApiSuperClass) { registrar.getPigeonApiProxyApiSuperClass().pigeon_newInstance(value) { if (it.isFailure) { logNewInstanceFailure("ProxyApiSuperClass", value, it.exceptionOrNull()) } } - } else if (value is ProxyApiInterface) { + } + else if (value is ProxyApiInterface) { registrar.getPigeonApiProxyApiInterface().pigeon_newInstance(value) { if (it.isFailure) { logNewInstanceFailure("ProxyApiInterface", value, it.exceptionOrNull()) } } - } else if (android.os.Build.VERSION.SDK_INT >= 25 && value is ClassWithApiRequirement) { + } + else if (android.os.Build.VERSION.SDK_INT >= 25 && value is ClassWithApiRequirement) { registrar.getPigeonApiClassWithApiRequirement().pigeon_newInstance(value) { if (it.isFailure) { logNewInstanceFailure("ClassWithApiRequirement", value, it.exceptionOrNull()) @@ -527,9 +505,7 @@ private class ProxyApiTestsPigeonProxyApiBaseCodec( stream.write(128) writeValue(stream, registrar.instanceManager.getIdentifierForStrongReference(value)) } - else -> - throw IllegalArgumentException( - "Unsupported value: '$value' of type '${value.javaClass.name}'") + else -> throw IllegalArgumentException("Unsupported value: '$value' of type '${value.javaClass.name}'") } } } @@ -545,18 +521,18 @@ enum class ProxyApiTestEnum(val raw: Int) { } } } - private open class ProxyApiTestsPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { ProxyApiTestEnum.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + ProxyApiTestEnum.ofRaw(it.toInt()) + } } else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is ProxyApiTestEnum -> { stream.write(129) @@ -568,80 +544,23 @@ private open class ProxyApiTestsPigeonCodec : StandardMessageCodec() { } /** - * The core ProxyApi test class that each supported host language must implement in platform_tests - * integration tests. + * The core ProxyApi test class that each supported host language must + * implement in platform_tests integration tests. */ @Suppress("UNCHECKED_CAST") -abstract class PigeonApiProxyApiTestClass( - open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar -) { - abstract fun pigeon_defaultConstructor( - aBool: Boolean, - anInt: Long, - aDouble: Double, - aString: String, - aUint8List: ByteArray, - aList: List, - aMap: Map, - anEnum: ProxyApiTestEnum, - aProxyApi: com.example.test_plugin.ProxyApiSuperClass, - aNullableBool: Boolean?, - aNullableInt: Long?, - aNullableDouble: Double?, - aNullableString: String?, - aNullableUint8List: ByteArray?, - aNullableList: List?, - aNullableMap: Map?, - aNullableEnum: ProxyApiTestEnum?, - aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass?, - boolParam: Boolean, - intParam: Long, - doubleParam: Double, - stringParam: String, - aUint8ListParam: ByteArray, - listParam: List, - mapParam: Map, - enumParam: ProxyApiTestEnum, - proxyApiParam: com.example.test_plugin.ProxyApiSuperClass, - nullableBoolParam: Boolean?, - nullableIntParam: Long?, - nullableDoubleParam: Double?, - nullableStringParam: String?, - nullableUint8ListParam: ByteArray?, - nullableListParam: List?, - nullableMapParam: Map?, - nullableEnumParam: ProxyApiTestEnum?, - nullableProxyApiParam: com.example.test_plugin.ProxyApiSuperClass? - ): ProxyApiTestClass - - abstract fun namedConstructor( - aBool: Boolean, - anInt: Long, - aDouble: Double, - aString: String, - aUint8List: ByteArray, - aList: List, - aMap: Map, - anEnum: ProxyApiTestEnum, - aProxyApi: com.example.test_plugin.ProxyApiSuperClass, - aNullableBool: Boolean?, - aNullableInt: Long?, - aNullableDouble: Double?, - aNullableString: String?, - aNullableUint8List: ByteArray?, - aNullableList: List?, - aNullableMap: Map?, - aNullableEnum: ProxyApiTestEnum?, - aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass? - ): ProxyApiTestClass - - abstract fun attachedField( - pigeon_instance: ProxyApiTestClass - ): com.example.test_plugin.ProxyApiSuperClass +abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar) { + abstract fun pigeon_defaultConstructor(aBool: Boolean, anInt: Long, aDouble: Double, aString: String, aUint8List: ByteArray, aList: List, aMap: Map, anEnum: ProxyApiTestEnum, aProxyApi: com.example.test_plugin.ProxyApiSuperClass, aNullableBool: Boolean?, aNullableInt: Long?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: ByteArray?, aNullableList: List?, aNullableMap: Map?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass?, boolParam: Boolean, intParam: Long, doubleParam: Double, stringParam: String, aUint8ListParam: ByteArray, listParam: List, mapParam: Map, enumParam: ProxyApiTestEnum, proxyApiParam: com.example.test_plugin.ProxyApiSuperClass, nullableBoolParam: Boolean?, nullableIntParam: Long?, nullableDoubleParam: Double?, nullableStringParam: String?, nullableUint8ListParam: ByteArray?, nullableListParam: List?, nullableMapParam: Map?, nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: com.example.test_plugin.ProxyApiSuperClass?): ProxyApiTestClass + + abstract fun namedConstructor(aBool: Boolean, anInt: Long, aDouble: Double, aString: String, aUint8List: ByteArray, aList: List, aMap: Map, anEnum: ProxyApiTestEnum, aProxyApi: com.example.test_plugin.ProxyApiSuperClass, aNullableBool: Boolean?, aNullableInt: Long?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: ByteArray?, aNullableList: List?, aNullableMap: Map?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass?): ProxyApiTestClass + + abstract fun attachedField(pigeon_instance: ProxyApiTestClass): com.example.test_plugin.ProxyApiSuperClass abstract fun staticAttachedField(): com.example.test_plugin.ProxyApiSuperClass - /** A no-op function taking no arguments and returning no value, to sanity test basic calling. */ + /** + * A no-op function taking no arguments and returning no value, to sanity + * test basic calling. + */ abstract fun noop(pigeon_instance: ProxyApiTestClass) /** Returns an error, to test error handling. */ @@ -674,235 +593,124 @@ abstract class PigeonApiProxyApiTestClass( /** Returns the passed list, to test serialization and deserialization. */ abstract fun echoList(pigeon_instance: ProxyApiTestClass, aList: List): List - /** Returns the passed list with ProxyApis, to test serialization and deserialization. */ - abstract fun echoProxyApiList( - pigeon_instance: ProxyApiTestClass, - aList: List - ): List + /** + * Returns the passed list with ProxyApis, to test serialization and + * deserialization. + */ + abstract fun echoProxyApiList(pigeon_instance: ProxyApiTestClass, aList: List): List /** Returns the passed map, to test serialization and deserialization. */ - abstract fun echoMap( - pigeon_instance: ProxyApiTestClass, - aMap: Map - ): Map + abstract fun echoMap(pigeon_instance: ProxyApiTestClass, aMap: Map): Map - /** Returns the passed map with ProxyApis, to test serialization and deserialization. */ - abstract fun echoProxyApiMap( - pigeon_instance: ProxyApiTestClass, - aMap: Map - ): Map + /** + * Returns the passed map with ProxyApis, to test serialization and + * deserialization. + */ + abstract fun echoProxyApiMap(pigeon_instance: ProxyApiTestClass, aMap: Map): Map /** Returns the passed enum to test serialization and deserialization. */ - abstract fun echoEnum( - pigeon_instance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum - ): ProxyApiTestEnum + abstract fun echoEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum): ProxyApiTestEnum /** Returns the passed ProxyApi to test serialization and deserialization. */ - abstract fun echoProxyApi( - pigeon_instance: ProxyApiTestClass, - aProxyApi: com.example.test_plugin.ProxyApiSuperClass - ): com.example.test_plugin.ProxyApiSuperClass + abstract fun echoProxyApi(pigeon_instance: ProxyApiTestClass, aProxyApi: com.example.test_plugin.ProxyApiSuperClass): com.example.test_plugin.ProxyApiSuperClass /** Returns passed in int. */ abstract fun echoNullableInt(pigeon_instance: ProxyApiTestClass, aNullableInt: Long?): Long? /** Returns passed in double. */ - abstract fun echoNullableDouble( - pigeon_instance: ProxyApiTestClass, - aNullableDouble: Double? - ): Double? + abstract fun echoNullableDouble(pigeon_instance: ProxyApiTestClass, aNullableDouble: Double?): Double? /** Returns the passed in boolean. */ - abstract fun echoNullableBool( - pigeon_instance: ProxyApiTestClass, - aNullableBool: Boolean? - ): Boolean? + abstract fun echoNullableBool(pigeon_instance: ProxyApiTestClass, aNullableBool: Boolean?): Boolean? /** Returns the passed in string. */ - abstract fun echoNullableString( - pigeon_instance: ProxyApiTestClass, - aNullableString: String? - ): String? + abstract fun echoNullableString(pigeon_instance: ProxyApiTestClass, aNullableString: String?): String? /** Returns the passed in Uint8List. */ - abstract fun echoNullableUint8List( - pigeon_instance: ProxyApiTestClass, - aNullableUint8List: ByteArray? - ): ByteArray? + abstract fun echoNullableUint8List(pigeon_instance: ProxyApiTestClass, aNullableUint8List: ByteArray?): ByteArray? /** Returns the passed in generic Object. */ abstract fun echoNullableObject(pigeon_instance: ProxyApiTestClass, aNullableObject: Any?): Any? /** Returns the passed list, to test serialization and deserialization. */ - abstract fun echoNullableList( - pigeon_instance: ProxyApiTestClass, - aNullableList: List? - ): List? + abstract fun echoNullableList(pigeon_instance: ProxyApiTestClass, aNullableList: List?): List? /** Returns the passed map, to test serialization and deserialization. */ - abstract fun echoNullableMap( - pigeon_instance: ProxyApiTestClass, - aNullableMap: Map? - ): Map? + abstract fun echoNullableMap(pigeon_instance: ProxyApiTestClass, aNullableMap: Map?): Map? - abstract fun echoNullableEnum( - pigeon_instance: ProxyApiTestClass, - aNullableEnum: ProxyApiTestEnum? - ): ProxyApiTestEnum? + abstract fun echoNullableEnum(pigeon_instance: ProxyApiTestClass, aNullableEnum: ProxyApiTestEnum?): ProxyApiTestEnum? /** Returns the passed ProxyApi to test serialization and deserialization. */ - abstract fun echoNullableProxyApi( - pigeon_instance: ProxyApiTestClass, - aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass? - ): com.example.test_plugin.ProxyApiSuperClass? + abstract fun echoNullableProxyApi(pigeon_instance: ProxyApiTestClass, aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass?): com.example.test_plugin.ProxyApiSuperClass? /** - * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous - * calling. + * A no-op function taking no arguments and returning no value, to sanity + * test basic asynchronous calling. */ abstract fun noopAsync(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) /** Returns passed in int asynchronously. */ - abstract fun echoAsyncInt( - pigeon_instance: ProxyApiTestClass, - anInt: Long, - callback: (Result) -> Unit - ) + abstract fun echoAsyncInt(pigeon_instance: ProxyApiTestClass, anInt: Long, callback: (Result) -> Unit) /** Returns passed in double asynchronously. */ - abstract fun echoAsyncDouble( - pigeon_instance: ProxyApiTestClass, - aDouble: Double, - callback: (Result) -> Unit - ) + abstract fun echoAsyncDouble(pigeon_instance: ProxyApiTestClass, aDouble: Double, callback: (Result) -> Unit) /** Returns the passed in boolean asynchronously. */ - abstract fun echoAsyncBool( - pigeon_instance: ProxyApiTestClass, - aBool: Boolean, - callback: (Result) -> Unit - ) + abstract fun echoAsyncBool(pigeon_instance: ProxyApiTestClass, aBool: Boolean, callback: (Result) -> Unit) /** Returns the passed string asynchronously. */ - abstract fun echoAsyncString( - pigeon_instance: ProxyApiTestClass, - aString: String, - callback: (Result) -> Unit - ) + abstract fun echoAsyncString(pigeon_instance: ProxyApiTestClass, aString: String, callback: (Result) -> Unit) /** Returns the passed in Uint8List asynchronously. */ - abstract fun echoAsyncUint8List( - pigeon_instance: ProxyApiTestClass, - aUint8List: ByteArray, - callback: (Result) -> Unit - ) + abstract fun echoAsyncUint8List(pigeon_instance: ProxyApiTestClass, aUint8List: ByteArray, callback: (Result) -> Unit) /** Returns the passed in generic Object asynchronously. */ - abstract fun echoAsyncObject( - pigeon_instance: ProxyApiTestClass, - anObject: Any, - callback: (Result) -> Unit - ) + abstract fun echoAsyncObject(pigeon_instance: ProxyApiTestClass, anObject: Any, callback: (Result) -> Unit) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncList( - pigeon_instance: ProxyApiTestClass, - aList: List, - callback: (Result>) -> Unit - ) + abstract fun echoAsyncList(pigeon_instance: ProxyApiTestClass, aList: List, callback: (Result>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncMap( - pigeon_instance: ProxyApiTestClass, - aMap: Map, - callback: (Result>) -> Unit - ) + abstract fun echoAsyncMap(pigeon_instance: ProxyApiTestClass, aMap: Map, callback: (Result>) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncEnum( - pigeon_instance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum, - callback: (Result) -> Unit - ) + abstract fun echoAsyncEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, callback: (Result) -> Unit) /** Responds with an error from an async function returning a value. */ abstract fun throwAsyncError(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) /** Responds with an error from an async void function. */ - abstract fun throwAsyncErrorFromVoid( - pigeon_instance: ProxyApiTestClass, - callback: (Result) -> Unit - ) + abstract fun throwAsyncErrorFromVoid(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) /** Responds with a Flutter error from an async function returning a value. */ - abstract fun throwAsyncFlutterError( - pigeon_instance: ProxyApiTestClass, - callback: (Result) -> Unit - ) + abstract fun throwAsyncFlutterError(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) /** Returns passed in int asynchronously. */ - abstract fun echoAsyncNullableInt( - pigeon_instance: ProxyApiTestClass, - anInt: Long?, - callback: (Result) -> Unit - ) + abstract fun echoAsyncNullableInt(pigeon_instance: ProxyApiTestClass, anInt: Long?, callback: (Result) -> Unit) /** Returns passed in double asynchronously. */ - abstract fun echoAsyncNullableDouble( - pigeon_instance: ProxyApiTestClass, - aDouble: Double?, - callback: (Result) -> Unit - ) + abstract fun echoAsyncNullableDouble(pigeon_instance: ProxyApiTestClass, aDouble: Double?, callback: (Result) -> Unit) /** Returns the passed in boolean asynchronously. */ - abstract fun echoAsyncNullableBool( - pigeon_instance: ProxyApiTestClass, - aBool: Boolean?, - callback: (Result) -> Unit - ) + abstract fun echoAsyncNullableBool(pigeon_instance: ProxyApiTestClass, aBool: Boolean?, callback: (Result) -> Unit) /** Returns the passed string asynchronously. */ - abstract fun echoAsyncNullableString( - pigeon_instance: ProxyApiTestClass, - aString: String?, - callback: (Result) -> Unit - ) + abstract fun echoAsyncNullableString(pigeon_instance: ProxyApiTestClass, aString: String?, callback: (Result) -> Unit) /** Returns the passed in Uint8List asynchronously. */ - abstract fun echoAsyncNullableUint8List( - pigeon_instance: ProxyApiTestClass, - aUint8List: ByteArray?, - callback: (Result) -> Unit - ) + abstract fun echoAsyncNullableUint8List(pigeon_instance: ProxyApiTestClass, aUint8List: ByteArray?, callback: (Result) -> Unit) /** Returns the passed in generic Object asynchronously. */ - abstract fun echoAsyncNullableObject( - pigeon_instance: ProxyApiTestClass, - anObject: Any?, - callback: (Result) -> Unit - ) + abstract fun echoAsyncNullableObject(pigeon_instance: ProxyApiTestClass, anObject: Any?, callback: (Result) -> Unit) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncNullableList( - pigeon_instance: ProxyApiTestClass, - aList: List?, - callback: (Result?>) -> Unit - ) + abstract fun echoAsyncNullableList(pigeon_instance: ProxyApiTestClass, aList: List?, callback: (Result?>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncNullableMap( - pigeon_instance: ProxyApiTestClass, - aMap: Map?, - callback: (Result?>) -> Unit - ) + abstract fun echoAsyncNullableMap(pigeon_instance: ProxyApiTestClass, aMap: Map?, callback: (Result?>) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncNullableEnum( - pigeon_instance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum?, - callback: (Result) -> Unit - ) + abstract fun echoAsyncNullableEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, callback: (Result) -> Unit) abstract fun staticNoop() @@ -912,157 +720,60 @@ abstract class PigeonApiProxyApiTestClass( abstract fun callFlutterNoop(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) - abstract fun callFlutterThrowError( - pigeon_instance: ProxyApiTestClass, - callback: (Result) -> Unit - ) - - abstract fun callFlutterThrowErrorFromVoid( - pigeon_instance: ProxyApiTestClass, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoBool( - pigeon_instance: ProxyApiTestClass, - aBool: Boolean, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoInt( - pigeon_instance: ProxyApiTestClass, - anInt: Long, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoDouble( - pigeon_instance: ProxyApiTestClass, - aDouble: Double, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoString( - pigeon_instance: ProxyApiTestClass, - aString: String, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoUint8List( - pigeon_instance: ProxyApiTestClass, - aUint8List: ByteArray, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoList( - pigeon_instance: ProxyApiTestClass, - aList: List, - callback: (Result>) -> Unit - ) - - abstract fun callFlutterEchoProxyApiList( - pigeon_instance: ProxyApiTestClass, - aList: List, - callback: (Result>) -> Unit - ) - - abstract fun callFlutterEchoMap( - pigeon_instance: ProxyApiTestClass, - aMap: Map, - callback: (Result>) -> Unit - ) - - abstract fun callFlutterEchoProxyApiMap( - pigeon_instance: ProxyApiTestClass, - aMap: Map, - callback: (Result>) -> Unit - ) - - abstract fun callFlutterEchoEnum( - pigeon_instance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoProxyApi( - pigeon_instance: ProxyApiTestClass, - aProxyApi: com.example.test_plugin.ProxyApiSuperClass, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoNullableBool( - pigeon_instance: ProxyApiTestClass, - aBool: Boolean?, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoNullableInt( - pigeon_instance: ProxyApiTestClass, - anInt: Long?, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoNullableDouble( - pigeon_instance: ProxyApiTestClass, - aDouble: Double?, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoNullableString( - pigeon_instance: ProxyApiTestClass, - aString: String?, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoNullableUint8List( - pigeon_instance: ProxyApiTestClass, - aUint8List: ByteArray?, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoNullableList( - pigeon_instance: ProxyApiTestClass, - aList: List?, - callback: (Result?>) -> Unit - ) - - abstract fun callFlutterEchoNullableMap( - pigeon_instance: ProxyApiTestClass, - aMap: Map?, - callback: (Result?>) -> Unit - ) - - abstract fun callFlutterEchoNullableEnum( - pigeon_instance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum?, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoNullableProxyApi( - pigeon_instance: ProxyApiTestClass, - aProxyApi: com.example.test_plugin.ProxyApiSuperClass?, - callback: (Result) -> Unit - ) - - abstract fun callFlutterNoopAsync( - pigeon_instance: ProxyApiTestClass, - callback: (Result) -> Unit - ) - - abstract fun callFlutterEchoAsyncString( - pigeon_instance: ProxyApiTestClass, - aString: String, - callback: (Result) -> Unit - ) + abstract fun callFlutterThrowError(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) + + abstract fun callFlutterThrowErrorFromVoid(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) + + abstract fun callFlutterEchoBool(pigeon_instance: ProxyApiTestClass, aBool: Boolean, callback: (Result) -> Unit) + + abstract fun callFlutterEchoInt(pigeon_instance: ProxyApiTestClass, anInt: Long, callback: (Result) -> Unit) + + abstract fun callFlutterEchoDouble(pigeon_instance: ProxyApiTestClass, aDouble: Double, callback: (Result) -> Unit) + + abstract fun callFlutterEchoString(pigeon_instance: ProxyApiTestClass, aString: String, callback: (Result) -> Unit) + + abstract fun callFlutterEchoUint8List(pigeon_instance: ProxyApiTestClass, aUint8List: ByteArray, callback: (Result) -> Unit) + + abstract fun callFlutterEchoList(pigeon_instance: ProxyApiTestClass, aList: List, callback: (Result>) -> Unit) + + abstract fun callFlutterEchoProxyApiList(pigeon_instance: ProxyApiTestClass, aList: List, callback: (Result>) -> Unit) + + abstract fun callFlutterEchoMap(pigeon_instance: ProxyApiTestClass, aMap: Map, callback: (Result>) -> Unit) + + abstract fun callFlutterEchoProxyApiMap(pigeon_instance: ProxyApiTestClass, aMap: Map, callback: (Result>) -> Unit) + + abstract fun callFlutterEchoEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, callback: (Result) -> Unit) + + abstract fun callFlutterEchoProxyApi(pigeon_instance: ProxyApiTestClass, aProxyApi: com.example.test_plugin.ProxyApiSuperClass, callback: (Result) -> Unit) + + abstract fun callFlutterEchoNullableBool(pigeon_instance: ProxyApiTestClass, aBool: Boolean?, callback: (Result) -> Unit) + + abstract fun callFlutterEchoNullableInt(pigeon_instance: ProxyApiTestClass, anInt: Long?, callback: (Result) -> Unit) + + abstract fun callFlutterEchoNullableDouble(pigeon_instance: ProxyApiTestClass, aDouble: Double?, callback: (Result) -> Unit) + + abstract fun callFlutterEchoNullableString(pigeon_instance: ProxyApiTestClass, aString: String?, callback: (Result) -> Unit) + + abstract fun callFlutterEchoNullableUint8List(pigeon_instance: ProxyApiTestClass, aUint8List: ByteArray?, callback: (Result) -> Unit) + + abstract fun callFlutterEchoNullableList(pigeon_instance: ProxyApiTestClass, aList: List?, callback: (Result?>) -> Unit) + + abstract fun callFlutterEchoNullableMap(pigeon_instance: ProxyApiTestClass, aMap: Map?, callback: (Result?>) -> Unit) + + abstract fun callFlutterEchoNullableEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, callback: (Result) -> Unit) + + abstract fun callFlutterEchoNullableProxyApi(pigeon_instance: ProxyApiTestClass, aProxyApi: com.example.test_plugin.ProxyApiSuperClass?, callback: (Result) -> Unit) + + abstract fun callFlutterNoopAsync(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) + + abstract fun callFlutterEchoAsyncString(pigeon_instance: ProxyApiTestClass, aString: String, callback: (Result) -> Unit) companion object { @Suppress("LocalVariableName") fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, api: PigeonApiProxyApiTestClass?) { val codec = api?.pigeonRegistrar?.codec ?: ProxyApiTestsPigeonCodec() run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1103,51 +814,12 @@ abstract class PigeonApiProxyApiTestClass( val nullableMapParamArg = args[34] as Map? val nullableEnumParamArg = args[35] as ProxyApiTestEnum? val nullableProxyApiParamArg = args[36] as com.example.test_plugin.ProxyApiSuperClass? - val wrapped: List = - try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - api.pigeon_defaultConstructor( - aBoolArg, - anIntArg, - aDoubleArg, - aStringArg, - aUint8ListArg, - aListArg, - aMapArg, - anEnumArg, - aProxyApiArg, - aNullableBoolArg, - aNullableIntArg, - aNullableDoubleArg, - aNullableStringArg, - aNullableUint8ListArg, - aNullableListArg, - aNullableMapArg, - aNullableEnumArg, - aNullableProxyApiArg, - boolParamArg, - intParamArg, - doubleParamArg, - stringParamArg, - aUint8ListParamArg, - listParamArg, - mapParamArg, - enumParamArg, - proxyApiParamArg, - nullableBoolParamArg, - nullableIntParamArg, - nullableDoubleParamArg, - nullableStringParamArg, - nullableUint8ListParamArg, - nullableListParamArg, - nullableMapParamArg, - nullableEnumParamArg, - nullableProxyApiParamArg), - pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.pigeon_defaultConstructor(aBoolArg,anIntArg,aDoubleArg,aStringArg,aUint8ListArg,aListArg,aMapArg,anEnumArg,aProxyApiArg,aNullableBoolArg,aNullableIntArg,aNullableDoubleArg,aNullableStringArg,aNullableUint8ListArg,aNullableListArg,aNullableMapArg,aNullableEnumArg,aNullableProxyApiArg,boolParamArg,intParamArg,doubleParamArg,stringParamArg,aUint8ListParamArg,listParamArg,mapParamArg,enumParamArg,proxyApiParamArg,nullableBoolParamArg,nullableIntParamArg,nullableDoubleParamArg,nullableStringParamArg,nullableUint8ListParamArg,nullableListParamArg,nullableMapParamArg,nullableEnumParamArg,nullableProxyApiParamArg), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1155,11 +827,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1182,33 +850,12 @@ abstract class PigeonApiProxyApiTestClass( val aNullableMapArg = args[16] as Map? val aNullableEnumArg = args[17] as ProxyApiTestEnum? val aNullableProxyApiArg = args[18] as com.example.test_plugin.ProxyApiSuperClass? - val wrapped: List = - try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - api.namedConstructor( - aBoolArg, - anIntArg, - aDoubleArg, - aStringArg, - aUint8ListArg, - aListArg, - aMapArg, - anEnumArg, - aProxyApiArg, - aNullableBoolArg, - aNullableIntArg, - aNullableDoubleArg, - aNullableStringArg, - aNullableUint8ListArg, - aNullableListArg, - aNullableMapArg, - aNullableEnumArg, - aNullableProxyApiArg), - pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.namedConstructor(aBoolArg,anIntArg,aDoubleArg,aStringArg,aUint8ListArg,aListArg,aMapArg,anEnumArg,aProxyApiArg,aNullableBoolArg,aNullableIntArg,aNullableDoubleArg,aNullableStringArg,aNullableUint8ListArg,aNullableListArg,aNullableMapArg,aNullableEnumArg,aNullableProxyApiArg), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1216,24 +863,18 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val pigeon_identifierArg = args[1] as Long - val wrapped: List = - try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - api.attachedField(pigeon_instanceArg), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.attachedField(pigeon_instanceArg), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1241,23 +882,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_identifierArg = args[0] as Long - val wrapped: List = - try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - api.staticAttachedField(), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.staticAttachedField(), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1265,22 +900,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass - val wrapped: List = - try { - api.noop(pigeon_instanceArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.noop(pigeon_instanceArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1288,21 +918,16 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass - val wrapped: List = - try { - listOf(api.throwError(pigeon_instanceArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.throwError(pigeon_instanceArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1310,22 +935,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass - val wrapped: List = - try { - api.throwErrorFromVoid(pigeon_instanceArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.throwErrorFromVoid(pigeon_instanceArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1333,21 +953,16 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass - val wrapped: List = - try { - listOf(api.throwFlutterError(pigeon_instanceArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.throwFlutterError(pigeon_instanceArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1355,22 +970,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anIntArg = args[1] as Long - val wrapped: List = - try { - listOf(api.echoInt(pigeon_instanceArg, anIntArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoInt(pigeon_instanceArg, anIntArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1378,22 +988,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aDoubleArg = args[1] as Double - val wrapped: List = - try { - listOf(api.echoDouble(pigeon_instanceArg, aDoubleArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoDouble(pigeon_instanceArg, aDoubleArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1401,22 +1006,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aBoolArg = args[1] as Boolean - val wrapped: List = - try { - listOf(api.echoBool(pigeon_instanceArg, aBoolArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoBool(pigeon_instanceArg, aBoolArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1424,22 +1024,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aStringArg = args[1] as String - val wrapped: List = - try { - listOf(api.echoString(pigeon_instanceArg, aStringArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoString(pigeon_instanceArg, aStringArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1447,22 +1042,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aUint8ListArg = args[1] as ByteArray - val wrapped: List = - try { - listOf(api.echoUint8List(pigeon_instanceArg, aUint8ListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoUint8List(pigeon_instanceArg, aUint8ListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1470,22 +1060,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anObjectArg = args[1] as Any - val wrapped: List = - try { - listOf(api.echoObject(pigeon_instanceArg, anObjectArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoObject(pigeon_instanceArg, anObjectArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1493,22 +1078,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aListArg = args[1] as List - val wrapped: List = - try { - listOf(api.echoList(pigeon_instanceArg, aListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoList(pigeon_instanceArg, aListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1516,22 +1096,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aListArg = args[1] as List - val wrapped: List = - try { - listOf(api.echoProxyApiList(pigeon_instanceArg, aListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoProxyApiList(pigeon_instanceArg, aListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1539,22 +1114,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map - val wrapped: List = - try { - listOf(api.echoMap(pigeon_instanceArg, aMapArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoMap(pigeon_instanceArg, aMapArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1562,22 +1132,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map - val wrapped: List = - try { - listOf(api.echoProxyApiMap(pigeon_instanceArg, aMapArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoProxyApiMap(pigeon_instanceArg, aMapArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1585,22 +1150,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anEnumArg = args[1] as ProxyApiTestEnum - val wrapped: List = - try { - listOf(api.echoEnum(pigeon_instanceArg, anEnumArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoEnum(pigeon_instanceArg, anEnumArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1608,22 +1168,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aProxyApiArg = args[1] as com.example.test_plugin.ProxyApiSuperClass - val wrapped: List = - try { - listOf(api.echoProxyApi(pigeon_instanceArg, aProxyApiArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoProxyApi(pigeon_instanceArg, aProxyApiArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1631,22 +1186,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableIntArg = args[1] as Long? - val wrapped: List = - try { - listOf(api.echoNullableInt(pigeon_instanceArg, aNullableIntArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableInt(pigeon_instanceArg, aNullableIntArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1654,22 +1204,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableDoubleArg = args[1] as Double? - val wrapped: List = - try { - listOf(api.echoNullableDouble(pigeon_instanceArg, aNullableDoubleArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableDouble(pigeon_instanceArg, aNullableDoubleArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1677,22 +1222,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableBoolArg = args[1] as Boolean? - val wrapped: List = - try { - listOf(api.echoNullableBool(pigeon_instanceArg, aNullableBoolArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableBool(pigeon_instanceArg, aNullableBoolArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1700,22 +1240,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableStringArg = args[1] as String? - val wrapped: List = - try { - listOf(api.echoNullableString(pigeon_instanceArg, aNullableStringArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableString(pigeon_instanceArg, aNullableStringArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1723,22 +1258,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableUint8ListArg = args[1] as ByteArray? - val wrapped: List = - try { - listOf(api.echoNullableUint8List(pigeon_instanceArg, aNullableUint8ListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableUint8List(pigeon_instanceArg, aNullableUint8ListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1746,22 +1276,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableObjectArg = args[1] - val wrapped: List = - try { - listOf(api.echoNullableObject(pigeon_instanceArg, aNullableObjectArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableObject(pigeon_instanceArg, aNullableObjectArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1769,22 +1294,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableListArg = args[1] as List? - val wrapped: List = - try { - listOf(api.echoNullableList(pigeon_instanceArg, aNullableListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableList(pigeon_instanceArg, aNullableListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1792,22 +1312,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableMapArg = args[1] as Map? - val wrapped: List = - try { - listOf(api.echoNullableMap(pigeon_instanceArg, aNullableMapArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableMap(pigeon_instanceArg, aNullableMapArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1815,22 +1330,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableEnumArg = args[1] as ProxyApiTestEnum? - val wrapped: List = - try { - listOf(api.echoNullableEnum(pigeon_instanceArg, aNullableEnumArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableEnum(pigeon_instanceArg, aNullableEnumArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1838,22 +1348,17 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableProxyApiArg = args[1] as com.example.test_plugin.ProxyApiSuperClass? - val wrapped: List = - try { - listOf(api.echoNullableProxyApi(pigeon_instanceArg, aNullableProxyApiArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoNullableProxyApi(pigeon_instanceArg, aNullableProxyApiArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1861,11 +1366,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1884,11 +1385,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1909,11 +1406,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1934,11 +1427,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1959,11 +1448,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1984,11 +1469,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2009,11 +1490,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2034,11 +1511,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2059,11 +1532,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2084,11 +1553,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2109,11 +1574,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2133,11 +1594,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2156,11 +1613,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2180,11 +1633,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2205,11 +1654,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2230,11 +1675,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2255,11 +1696,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2280,18 +1717,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aUint8ListArg = args[1] as ByteArray? - api.echoAsyncNullableUint8List(pigeon_instanceArg, aUint8ListArg) { - result: Result -> + api.echoAsyncNullableUint8List(pigeon_instanceArg, aUint8ListArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2306,11 +1738,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2331,11 +1759,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2356,18 +1780,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map? - api.echoAsyncNullableMap(pigeon_instanceArg, aMapArg) { - result: Result?> -> + api.echoAsyncNullableMap(pigeon_instanceArg, aMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2382,18 +1801,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anEnumArg = args[1] as ProxyApiTestEnum? - api.echoAsyncNullableEnum(pigeon_instanceArg, anEnumArg) { - result: Result -> + api.echoAsyncNullableEnum(pigeon_instanceArg, anEnumArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2408,20 +1822,15 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.staticNoop() - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.staticNoop() + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2429,21 +1838,16 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aStringArg = args[0] as String - val wrapped: List = - try { - listOf(api.echoStaticString(aStringArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.echoStaticString(aStringArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2451,14 +1855,10 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.staticAsyncNoop { result: Result -> + api.staticAsyncNoop{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2472,11 +1872,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2495,11 +1891,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2519,11 +1911,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2542,11 +1930,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2567,11 +1951,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2592,11 +1972,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2617,11 +1993,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2642,18 +2014,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aUint8ListArg = args[1] as ByteArray - api.callFlutterEchoUint8List(pigeon_instanceArg, aUint8ListArg) { - result: Result -> + api.callFlutterEchoUint8List(pigeon_instanceArg, aUint8ListArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2668,11 +2035,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2693,18 +2056,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aListArg = args[1] as List - api.callFlutterEchoProxyApiList(pigeon_instanceArg, aListArg) { - result: Result> -> + api.callFlutterEchoProxyApiList(pigeon_instanceArg, aListArg) { result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2719,18 +2077,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map - api.callFlutterEchoMap(pigeon_instanceArg, aMapArg) { result: Result> - -> + api.callFlutterEchoMap(pigeon_instanceArg, aMapArg) { result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2745,18 +2098,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map - api.callFlutterEchoProxyApiMap(pigeon_instanceArg, aMapArg) { - result: Result> -> + api.callFlutterEchoProxyApiMap(pigeon_instanceArg, aMapArg) { result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2771,18 +2119,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anEnumArg = args[1] as ProxyApiTestEnum - api.callFlutterEchoEnum(pigeon_instanceArg, anEnumArg) { - result: Result -> + api.callFlutterEchoEnum(pigeon_instanceArg, anEnumArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2797,18 +2140,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aProxyApiArg = args[1] as com.example.test_plugin.ProxyApiSuperClass - api.callFlutterEchoProxyApi(pigeon_instanceArg, aProxyApiArg) { - result: Result -> + api.callFlutterEchoProxyApi(pigeon_instanceArg, aProxyApiArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2823,18 +2161,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aBoolArg = args[1] as Boolean? - api.callFlutterEchoNullableBool(pigeon_instanceArg, aBoolArg) { result: Result - -> + api.callFlutterEchoNullableBool(pigeon_instanceArg, aBoolArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2849,11 +2182,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2874,18 +2203,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aDoubleArg = args[1] as Double? - api.callFlutterEchoNullableDouble(pigeon_instanceArg, aDoubleArg) { - result: Result -> + api.callFlutterEchoNullableDouble(pigeon_instanceArg, aDoubleArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2900,18 +2224,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aStringArg = args[1] as String? - api.callFlutterEchoNullableString(pigeon_instanceArg, aStringArg) { - result: Result -> + api.callFlutterEchoNullableString(pigeon_instanceArg, aStringArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2926,18 +2245,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aUint8ListArg = args[1] as ByteArray? - api.callFlutterEchoNullableUint8List(pigeon_instanceArg, aUint8ListArg) { - result: Result -> + api.callFlutterEchoNullableUint8List(pigeon_instanceArg, aUint8ListArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2952,18 +2266,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aListArg = args[1] as List? - api.callFlutterEchoNullableList(pigeon_instanceArg, aListArg) { - result: Result?> -> + api.callFlutterEchoNullableList(pigeon_instanceArg, aListArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2978,18 +2287,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map? - api.callFlutterEchoNullableMap(pigeon_instanceArg, aMapArg) { - result: Result?> -> + api.callFlutterEchoNullableMap(pigeon_instanceArg, aMapArg) { result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -3004,18 +2308,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anEnumArg = args[1] as ProxyApiTestEnum? - api.callFlutterEchoNullableEnum(pigeon_instanceArg, anEnumArg) { - result: Result -> + api.callFlutterEchoNullableEnum(pigeon_instanceArg, anEnumArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -3030,18 +2329,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aProxyApiArg = args[1] as com.example.test_plugin.ProxyApiSuperClass? - api.callFlutterEchoNullableProxyApi(pigeon_instanceArg, aProxyApiArg) { - result: Result -> + api.callFlutterEchoNullableProxyApi(pigeon_instanceArg, aProxyApiArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -3056,11 +2350,7 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3079,18 +2369,13 @@ abstract class PigeonApiProxyApiTestClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aStringArg = args[1] as String - api.callFlutterEchoAsyncString(pigeon_instanceArg, aStringArg) { result: Result - -> + api.callFlutterEchoAsyncString(pigeon_instanceArg, aStringArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -3109,37 +2394,36 @@ abstract class PigeonApiProxyApiTestClass( @Suppress("LocalVariableName", "FunctionName") /** Creates a Dart instance of ProxyApiTestClass and attaches it to [pigeon_instanceArg]. */ - fun pigeon_newInstance(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) { + fun pigeon_newInstance(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) - } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback(Result.success(Unit)) - } else { + } else { callback( Result.failure( - ProxyApiTestsError( - "new-instance-error", - "Attempting to create a new Dart instance of ProxyApiTestClass, but the class has a nonnull callback method.", - ""))) + ProxyApiTestsError("new-instance-error", "Attempting to create a new Dart instance of ProxyApiTestClass, but the class has a nonnull callback method.", ""))) } } - /** A no-op function taking no arguments and returning no value, to sanity test basic calling. */ - fun flutterNoop(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) { + /** + * A no-op function taking no arguments and returning no value, to sanity + * test basic calling. + */ + fun flutterNoop(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterNoop` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterNoop` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger @@ -3149,160 +2433,125 @@ abstract class PigeonApiProxyApiTestClass( channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Responds with an error from an async function returning a value. */ - fun flutterThrowError(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) { + fun flutterThrowError(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterThrowError` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterThrowError` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Responds with an error from an async void function. */ - fun flutterThrowErrorFromVoid( - pigeon_instanceArg: ProxyApiTestClass, - callback: (Result) -> Unit - ) { + fun flutterThrowErrorFromVoid(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterThrowErrorFromVoid` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterThrowErrorFromVoid` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed boolean, to test serialization and deserialization. */ - fun flutterEchoBool( - pigeon_instanceArg: ProxyApiTestClass, - aBoolArg: Boolean, - callback: (Result) -> Unit - ) { + fun flutterEchoBool(pigeon_instanceArg: ProxyApiTestClass, aBoolArg: Boolean, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoBool` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoBool` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aBoolArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Boolean callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed int, to test serialization and deserialization. */ - fun flutterEchoInt( - pigeon_instanceArg: ProxyApiTestClass, - anIntArg: Long, - callback: (Result) -> Unit - ) { + fun flutterEchoInt(pigeon_instanceArg: ProxyApiTestClass, anIntArg: Long, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoInt` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoInt` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger @@ -3312,284 +2561,204 @@ abstract class PigeonApiProxyApiTestClass( channel.send(listOf(pigeon_instanceArg, anIntArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Long callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed double, to test serialization and deserialization. */ - fun flutterEchoDouble( - pigeon_instanceArg: ProxyApiTestClass, - aDoubleArg: Double, - callback: (Result) -> Unit - ) { + fun flutterEchoDouble(pigeon_instanceArg: ProxyApiTestClass, aDoubleArg: Double, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoDouble` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoDouble` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aDoubleArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Double callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed string, to test serialization and deserialization. */ - fun flutterEchoString( - pigeon_instanceArg: ProxyApiTestClass, - aStringArg: String, - callback: (Result) -> Unit - ) { + fun flutterEchoString(pigeon_instanceArg: ProxyApiTestClass, aStringArg: String, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoString` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoString` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aStringArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed byte list, to test serialization and deserialization. */ - fun flutterEchoUint8List( - pigeon_instanceArg: ProxyApiTestClass, - aListArg: ByteArray, - callback: (Result) -> Unit - ) { + fun flutterEchoUint8List(pigeon_instanceArg: ProxyApiTestClass, aListArg: ByteArray, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoUint8List` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoUint8List` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as ByteArray callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun flutterEchoList( - pigeon_instanceArg: ProxyApiTestClass, - aListArg: List, - callback: (Result>) -> Unit - ) { + fun flutterEchoList(pigeon_instanceArg: ProxyApiTestClass, aListArg: List, callback: (Result>) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoList` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoList` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Returns the passed list with ProxyApis, to test serialization and deserialization. */ - fun flutterEchoProxyApiList( - pigeon_instanceArg: ProxyApiTestClass, - aListArg: List, - callback: (Result>) -> Unit - ) { + /** + * Returns the passed list with ProxyApis, to test serialization and + * deserialization. + */ + fun flutterEchoProxyApiList(pigeon_instanceArg: ProxyApiTestClass, aListArg: List, callback: (Result>) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoProxyApiList` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoProxyApiList` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun flutterEchoMap( - pigeon_instanceArg: ProxyApiTestClass, - aMapArg: Map, - callback: (Result>) -> Unit - ) { + fun flutterEchoMap(pigeon_instanceArg: ProxyApiTestClass, aMapArg: Map, callback: (Result>) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoMap` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoMap` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger @@ -3599,643 +2768,498 @@ abstract class PigeonApiProxyApiTestClass( channel.send(listOf(pigeon_instanceArg, aMapArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Returns the passed map with ProxyApis, to test serialization and deserialization. */ - fun flutterEchoProxyApiMap( - pigeon_instanceArg: ProxyApiTestClass, - aMapArg: Map, - callback: (Result>) -> Unit - ) { + /** + * Returns the passed map with ProxyApis, to test serialization and + * deserialization. + */ + fun flutterEchoProxyApiMap(pigeon_instanceArg: ProxyApiTestClass, aMapArg: Map, callback: (Result>) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoProxyApiMap` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoProxyApiMap` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aMapArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun flutterEchoEnum( - pigeon_instanceArg: ProxyApiTestClass, - anEnumArg: ProxyApiTestEnum, - callback: (Result) -> Unit - ) { + fun flutterEchoEnum(pigeon_instanceArg: ProxyApiTestClass, anEnumArg: ProxyApiTestEnum, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoEnum` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoEnum` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, anEnumArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as ProxyApiTestEnum callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed ProxyApi to test serialization and deserialization. */ - fun flutterEchoProxyApi( - pigeon_instanceArg: ProxyApiTestClass, - aProxyApiArg: com.example.test_plugin.ProxyApiSuperClass, - callback: (Result) -> Unit - ) { + fun flutterEchoProxyApi(pigeon_instanceArg: ProxyApiTestClass, aProxyApiArg: com.example.test_plugin.ProxyApiSuperClass, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoProxyApi` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoProxyApi` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aProxyApiArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as com.example.test_plugin.ProxyApiSuperClass callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed boolean, to test serialization and deserialization. */ - fun flutterEchoNullableBool( - pigeon_instanceArg: ProxyApiTestClass, - aBoolArg: Boolean?, - callback: (Result) -> Unit - ) { + fun flutterEchoNullableBool(pigeon_instanceArg: ProxyApiTestClass, aBoolArg: Boolean?, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableBool` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableBool` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aBoolArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as Boolean? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed int, to test serialization and deserialization. */ - fun flutterEchoNullableInt( - pigeon_instanceArg: ProxyApiTestClass, - anIntArg: Long?, - callback: (Result) -> Unit - ) { + fun flutterEchoNullableInt(pigeon_instanceArg: ProxyApiTestClass, anIntArg: Long?, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableInt` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableInt` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, anIntArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as Long? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed double, to test serialization and deserialization. */ - fun flutterEchoNullableDouble( - pigeon_instanceArg: ProxyApiTestClass, - aDoubleArg: Double?, - callback: (Result) -> Unit - ) { + fun flutterEchoNullableDouble(pigeon_instanceArg: ProxyApiTestClass, aDoubleArg: Double?, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableDouble` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableDouble` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aDoubleArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as Double? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed string, to test serialization and deserialization. */ - fun flutterEchoNullableString( - pigeon_instanceArg: ProxyApiTestClass, - aStringArg: String?, - callback: (Result) -> Unit - ) { + fun flutterEchoNullableString(pigeon_instanceArg: ProxyApiTestClass, aStringArg: String?, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableString` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableString` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aStringArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as String? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed byte list, to test serialization and deserialization. */ - fun flutterEchoNullableUint8List( - pigeon_instanceArg: ProxyApiTestClass, - aListArg: ByteArray?, - callback: (Result) -> Unit - ) { + fun flutterEchoNullableUint8List(pigeon_instanceArg: ProxyApiTestClass, aListArg: ByteArray?, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableUint8List` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableUint8List` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as ByteArray? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun flutterEchoNullableList( - pigeon_instanceArg: ProxyApiTestClass, - aListArg: List?, - callback: (Result?>) -> Unit - ) { + fun flutterEchoNullableList(pigeon_instanceArg: ProxyApiTestClass, aListArg: List?, callback: (Result?>) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableList` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableList` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as List? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun flutterEchoNullableMap( - pigeon_instanceArg: ProxyApiTestClass, - aMapArg: Map?, - callback: (Result?>) -> Unit - ) { + fun flutterEchoNullableMap(pigeon_instanceArg: ProxyApiTestClass, aMapArg: Map?, callback: (Result?>) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableMap` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableMap` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aMapArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as Map? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun flutterEchoNullableEnum( - pigeon_instanceArg: ProxyApiTestClass, - anEnumArg: ProxyApiTestEnum?, - callback: (Result) -> Unit - ) { + fun flutterEchoNullableEnum(pigeon_instanceArg: ProxyApiTestClass, anEnumArg: ProxyApiTestEnum?, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableEnum` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableEnum` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, anEnumArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as ProxyApiTestEnum? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed ProxyApi to test serialization and deserialization. */ - fun flutterEchoNullableProxyApi( - pigeon_instanceArg: ProxyApiTestClass, - aProxyApiArg: com.example.test_plugin.ProxyApiSuperClass?, - callback: (Result) -> Unit - ) { + fun flutterEchoNullableProxyApi(pigeon_instanceArg: ProxyApiTestClass, aProxyApiArg: com.example.test_plugin.ProxyApiSuperClass?, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoNullableProxyApi` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableProxyApi` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aProxyApiArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as com.example.test_plugin.ProxyApiSuperClass? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** - * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous - * calling. + * A no-op function taking no arguments and returning no value, to sanity + * test basic asynchronous calling. */ - fun flutterNoopAsync(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) { + fun flutterNoopAsync(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterNoopAsync` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterNoopAsync` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed in generic Object asynchronously. */ - fun flutterEchoAsyncString( - pigeon_instanceArg: ProxyApiTestClass, - aStringArg: String, - callback: (Result) -> Unit - ) { + fun flutterEchoAsyncString(pigeon_instanceArg: ProxyApiTestClass, aStringArg: String, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiTestClass.flutterEchoAsyncString` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoAsyncString` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aStringArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback( - Result.failure( - ProxyApiTestsError( - "null-error", - "Flutter api returned null value for non-null return value.", - ""))) + callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } @Suppress("FunctionName") /** An implementation of [PigeonApiProxyApiSuperClass] used to access callback methods */ - fun pigeon_getPigeonApiProxyApiSuperClass(): PigeonApiProxyApiSuperClass { + fun pigeon_getPigeonApiProxyApiSuperClass(): PigeonApiProxyApiSuperClass + { return pigeonRegistrar.getPigeonApiProxyApiSuperClass() } @Suppress("FunctionName") /** An implementation of [PigeonApiProxyApiInterface] used to access callback methods */ - fun pigeon_getPigeonApiProxyApiInterface(): PigeonApiProxyApiInterface { + fun pigeon_getPigeonApiProxyApiInterface(): PigeonApiProxyApiInterface + { return pigeonRegistrar.getPigeonApiProxyApiInterface() } + } /** ProxyApi to serve as a super class to the core ProxyApi class. */ @Suppress("UNCHECKED_CAST") -abstract class PigeonApiProxyApiSuperClass( - open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar -) { +abstract class PigeonApiProxyApiSuperClass(open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar) { abstract fun pigeon_defaultConstructor(): com.example.test_plugin.ProxyApiSuperClass abstract fun aSuperMethod(pigeon_instance: com.example.test_plugin.ProxyApiSuperClass) @@ -4245,23 +3269,17 @@ abstract class PigeonApiProxyApiSuperClass( fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, api: PigeonApiProxyApiSuperClass?) { val codec = api?.pigeonRegistrar?.codec ?: ProxyApiTestsPigeonCodec() run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_identifierArg = args[0] as Long - val wrapped: List = - try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - api.pigeon_defaultConstructor(), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.pigeon_defaultConstructor(), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4269,22 +3287,17 @@ abstract class PigeonApiProxyApiSuperClass( } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as com.example.test_plugin.ProxyApiSuperClass - val wrapped: List = - try { - api.aSuperMethod(pigeon_instanceArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.aSuperMethod(pigeon_instanceArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4296,118 +3309,101 @@ abstract class PigeonApiProxyApiSuperClass( @Suppress("LocalVariableName", "FunctionName") /** Creates a Dart instance of ProxyApiSuperClass and attaches it to [pigeon_instanceArg]. */ - fun pigeon_newInstance( - pigeon_instanceArg: com.example.test_plugin.ProxyApiSuperClass, - callback: (Result) -> Unit - ) { + fun pigeon_newInstance(pigeon_instanceArg: com.example.test_plugin.ProxyApiSuperClass, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) - } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback(Result.success(Unit)) - } else { - val pigeon_identifierArg = - pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) + } else { + val pigeon_identifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_identifierArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } + } /** ProxyApi to serve as an interface to the core ProxyApi class. */ @Suppress("UNCHECKED_CAST") -open class PigeonApiProxyApiInterface( - open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar -) { +open class PigeonApiProxyApiInterface(open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar) { @Suppress("LocalVariableName", "FunctionName") /** Creates a Dart instance of ProxyApiInterface and attaches it to [pigeon_instanceArg]. */ - fun pigeon_newInstance(pigeon_instanceArg: ProxyApiInterface, callback: (Result) -> Unit) { + fun pigeon_newInstance(pigeon_instanceArg: ProxyApiInterface, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) - } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback(Result.success(Unit)) - } else { - val pigeon_identifierArg = - pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) + } else { + val pigeon_identifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_identifierArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } - fun anInterfaceMethod(pigeon_instanceArg: ProxyApiInterface, callback: (Result) -> Unit) { + fun anInterfaceMethod(pigeon_instanceArg: ProxyApiInterface, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError( - "missing-instance-error", - "Callback to `ProxyApiInterface.anInterfaceMethod` failed because native instance was not in the instance manager.", - ""))) + ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiInterface.anInterfaceMethod` failed because native instance was not in the instance manager.", ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } -} +} @Suppress("UNCHECKED_CAST") -abstract class PigeonApiClassWithApiRequirement( - open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar -) { +abstract class PigeonApiClassWithApiRequirement(open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar) { @androidx.annotation.RequiresApi(api = 25) abstract fun pigeon_defaultConstructor(): ClassWithApiRequirement @@ -4416,48 +3412,38 @@ abstract class PigeonApiClassWithApiRequirement( companion object { @Suppress("LocalVariableName") - fun setUpMessageHandlers( - binaryMessenger: BinaryMessenger, - api: PigeonApiClassWithApiRequirement? - ) { + fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, api: PigeonApiClassWithApiRequirement?) { val codec = api?.pigeonRegistrar?.codec ?: ProxyApiTestsPigeonCodec() if (android.os.Build.VERSION.SDK_INT >= 25) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_identifierArg = args[0] as Long - val wrapped: List = - try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - api.pigeon_defaultConstructor(), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.pigeon_defaultConstructor(), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { channel.setMessageHandler(null) } } - } else { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", - codec) + } else { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", + codec + ) if (api != null) { channel.setMessageHandler { _, reply -> - reply.reply( - ProxyApiTestsPigeonUtils.wrapError( - UnsupportedOperationException( - "Call references class `ClassWithApiRequirement`, which requires api version 25."))) + reply.reply(ProxyApiTestsPigeonUtils.wrapError(UnsupportedOperationException( + "Call references class `ClassWithApiRequirement`, which requires api version 25." + ))) } } else { channel.setMessageHandler(null) @@ -4465,40 +3451,34 @@ abstract class PigeonApiClassWithApiRequirement( } if (android.os.Build.VERSION.SDK_INT >= 25) { run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", - codec) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ClassWithApiRequirement - val wrapped: List = - try { - api.aMethod(pigeon_instanceArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.aMethod(pigeon_instanceArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { channel.setMessageHandler(null) } } - } else { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", - codec) + } else { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", + codec + ) if (api != null) { channel.setMessageHandler { _, reply -> - reply.reply( - ProxyApiTestsPigeonUtils.wrapError( - UnsupportedOperationException( - "Call references class `ClassWithApiRequirement`, which requires api version 25."))) + reply.reply(ProxyApiTestsPigeonUtils.wrapError(UnsupportedOperationException( + "Call references class `ClassWithApiRequirement`, which requires api version 25." + ))) } } else { channel.setMessageHandler(null) @@ -4510,37 +3490,32 @@ abstract class PigeonApiClassWithApiRequirement( @Suppress("LocalVariableName", "FunctionName") /** Creates a Dart instance of ClassWithApiRequirement and attaches it to [pigeon_instanceArg]. */ @androidx.annotation.RequiresApi(api = 25) - fun pigeon_newInstance( - pigeon_instanceArg: ClassWithApiRequirement, - callback: (Result) -> Unit - ) { + fun pigeon_newInstance(pigeon_instanceArg: ClassWithApiRequirement, callback: (Result) -> Unit) +{ if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) - } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback(Result.success(Unit)) - } else { - val pigeon_identifierArg = - pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) + } else { + val pigeon_identifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" + val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_identifierArg)) { if (it is List<*>) { if (it.size > 1) { - callback( - Result.failure( - ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } + } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt index e032596170cc..64eb60c9b0c7 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt @@ -53,6 +53,14 @@ class TestPlugin : FlutterPlugin, HostIntegrationCoreApi { return everything } + override fun areAllNullableTypesEqual(a: AllNullableTypes, b: AllNullableTypes): Boolean { + return a == b + } + + override fun getAllNullableTypesHash(value: AllNullableTypes): Long { + return value.hashCode().toLong() + } + override fun echoAllNullableTypesWithoutRecursion( everything: AllNullableTypesWithoutRecursion? ): AllNullableTypesWithoutRecursion? { diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt b/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt index 687c8c4c1cb8..6946fa864d03 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt @@ -256,10 +256,17 @@ internal class AllDatatypesTest { fun `zero equality`() { val a = AllNullableTypes(aNullableDouble = 0.0) val b = AllNullableTypes(aNullableDouble = -0.0) - // In Kotlin/Java, boxed 0.0 and -0.0 are NOT equal. - // This is consistent with their different hash codes. - assertNotEquals(a, b) - assertNotEquals(a.hashCode(), b.hashCode()) + // In many platforms, 0.0 and -0.0 are treated as equal. + assertEquals(a, b) + assertEquals(a.hashCode(), b.hashCode()) + } + + @Test + fun `zero map key equality`() { + val a = AllNullableTypes(map = mapOf(0.0 to "a")) + val b = AllNullableTypes(map = mapOf(-0.0 to "a")) + assertEquals(a, b) + assertEquals(a.hashCode(), b.hashCode()) } @Test diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index 8c5b467592b0..17a9b0b14c46 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -60,9 +60,7 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") + return PigeonError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -136,7 +134,7 @@ func deepHashCoreTests(value: Any?, hasher: inout Hasher) { if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { if doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) + hasher.combine(0x7FF8000000000000) } else { hasher.combine(doubleValue) } @@ -168,6 +166,7 @@ func deepHashCoreTests(value: Any?, hasher: inout Hasher) { } } + enum AnEnum: Int { case one = 0 case two = 1 @@ -184,6 +183,7 @@ enum AnotherEnum: Int { struct UnusedClass: Hashable { var aField: Any? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> UnusedClass? { let aField: Any? = pigeonVar_list[0] @@ -243,6 +243,7 @@ struct AllTypes: Hashable { var listMap: [Int64: [Any?]] var mapMap: [Int64: [AnyHashable?: Any?]] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllTypes? { let aBool = pigeonVar_list[0] as! Bool @@ -341,31 +342,7 @@ struct AllTypes: Hashable { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - return deepEqualsCoreTests(lhs.aBool, rhs.aBool) && deepEqualsCoreTests(lhs.anInt, rhs.anInt) - && deepEqualsCoreTests(lhs.anInt64, rhs.anInt64) - && deepEqualsCoreTests(lhs.aDouble, rhs.aDouble) - && deepEqualsCoreTests(lhs.aByteArray, rhs.aByteArray) - && deepEqualsCoreTests(lhs.a4ByteArray, rhs.a4ByteArray) - && deepEqualsCoreTests(lhs.a8ByteArray, rhs.a8ByteArray) - && deepEqualsCoreTests(lhs.aFloatArray, rhs.aFloatArray) - && deepEqualsCoreTests(lhs.anEnum, rhs.anEnum) - && deepEqualsCoreTests(lhs.anotherEnum, rhs.anotherEnum) - && deepEqualsCoreTests(lhs.aString, rhs.aString) - && deepEqualsCoreTests(lhs.anObject, rhs.anObject) && deepEqualsCoreTests(lhs.list, rhs.list) - && deepEqualsCoreTests(lhs.stringList, rhs.stringList) - && deepEqualsCoreTests(lhs.intList, rhs.intList) - && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) - && deepEqualsCoreTests(lhs.boolList, rhs.boolList) - && deepEqualsCoreTests(lhs.enumList, rhs.enumList) - && deepEqualsCoreTests(lhs.objectList, rhs.objectList) - && deepEqualsCoreTests(lhs.listList, rhs.listList) - && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) - && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) - && deepEqualsCoreTests(lhs.intMap, rhs.intMap) - && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) - && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) - && deepEqualsCoreTests(lhs.listMap, rhs.listMap) - && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + return deepEqualsCoreTests(lhs.aBool, rhs.aBool) && deepEqualsCoreTests(lhs.anInt, rhs.anInt) && deepEqualsCoreTests(lhs.anInt64, rhs.anInt64) && deepEqualsCoreTests(lhs.aDouble, rhs.aDouble) && deepEqualsCoreTests(lhs.aByteArray, rhs.aByteArray) && deepEqualsCoreTests(lhs.a4ByteArray, rhs.a4ByteArray) && deepEqualsCoreTests(lhs.a8ByteArray, rhs.a8ByteArray) && deepEqualsCoreTests(lhs.aFloatArray, rhs.aFloatArray) && deepEqualsCoreTests(lhs.anEnum, rhs.anEnum) && deepEqualsCoreTests(lhs.anotherEnum, rhs.anotherEnum) && deepEqualsCoreTests(lhs.aString, rhs.aString) && deepEqualsCoreTests(lhs.anObject, rhs.anObject) && deepEqualsCoreTests(lhs.list, rhs.list) && deepEqualsCoreTests(lhs.stringList, rhs.stringList) && deepEqualsCoreTests(lhs.intList, rhs.intList) && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) && deepEqualsCoreTests(lhs.boolList, rhs.boolList) && deepEqualsCoreTests(lhs.enumList, rhs.enumList) && deepEqualsCoreTests(lhs.objectList, rhs.objectList) && deepEqualsCoreTests(lhs.listList, rhs.listList) && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) && deepEqualsCoreTests(lhs.intMap, rhs.intMap) && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) && deepEqualsCoreTests(lhs.listMap, rhs.listMap) && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) } func hash(into hasher: inout Hasher) { @@ -502,6 +479,7 @@ class AllNullableTypes: Hashable { var mapMap: [Int64?: [AnyHashable?: Any?]?]? var recursiveClassMap: [Int64?: AllNullableTypes?]? + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypes? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -609,39 +587,10 @@ class AllNullableTypes: Hashable { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - if lhs === rhs { + if (lhs === rhs) { return true } - return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) - && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) - && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) - && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) - && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) - && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) - && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) - && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) - && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) - && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) - && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) - && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) - && deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) - && deepEqualsCoreTests(lhs.list, rhs.list) - && deepEqualsCoreTests(lhs.stringList, rhs.stringList) - && deepEqualsCoreTests(lhs.intList, rhs.intList) - && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) - && deepEqualsCoreTests(lhs.boolList, rhs.boolList) - && deepEqualsCoreTests(lhs.enumList, rhs.enumList) - && deepEqualsCoreTests(lhs.objectList, rhs.objectList) - && deepEqualsCoreTests(lhs.listList, rhs.listList) - && deepEqualsCoreTests(lhs.mapList, rhs.mapList) - && deepEqualsCoreTests(lhs.recursiveClassList, rhs.recursiveClassList) - && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) - && deepEqualsCoreTests(lhs.intMap, rhs.intMap) - && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) - && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) - && deepEqualsCoreTests(lhs.listMap, rhs.listMap) - && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) - && deepEqualsCoreTests(lhs.recursiveClassMap, rhs.recursiveClassMap) + return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) && deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) && deepEqualsCoreTests(lhs.list, rhs.list) && deepEqualsCoreTests(lhs.stringList, rhs.stringList) && deepEqualsCoreTests(lhs.intList, rhs.intList) && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) && deepEqualsCoreTests(lhs.boolList, rhs.boolList) && deepEqualsCoreTests(lhs.enumList, rhs.enumList) && deepEqualsCoreTests(lhs.objectList, rhs.objectList) && deepEqualsCoreTests(lhs.listList, rhs.listList) && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.recursiveClassList, rhs.recursiveClassList) && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) && deepEqualsCoreTests(lhs.intMap, rhs.intMap) && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) && deepEqualsCoreTests(lhs.listMap, rhs.listMap) && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) && deepEqualsCoreTests(lhs.recursiveClassMap, rhs.recursiveClassMap) } func hash(into hasher: inout Hasher) { @@ -715,6 +664,7 @@ struct AllNullableTypesWithoutRecursion: Hashable { var listMap: [Int64?: [Any?]?]? = nil var mapMap: [Int64?: [AnyHashable?: Any?]?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypesWithoutRecursion? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -809,39 +759,11 @@ struct AllNullableTypesWithoutRecursion: Hashable { mapMap, ] } - static func == (lhs: AllNullableTypesWithoutRecursion, rhs: AllNullableTypesWithoutRecursion) - -> Bool - { + static func == (lhs: AllNullableTypesWithoutRecursion, rhs: AllNullableTypesWithoutRecursion) -> Bool { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) - && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) - && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) - && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) - && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) - && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) - && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) - && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) - && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) - && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) - && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) - && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) - && deepEqualsCoreTests(lhs.list, rhs.list) - && deepEqualsCoreTests(lhs.stringList, rhs.stringList) - && deepEqualsCoreTests(lhs.intList, rhs.intList) - && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) - && deepEqualsCoreTests(lhs.boolList, rhs.boolList) - && deepEqualsCoreTests(lhs.enumList, rhs.enumList) - && deepEqualsCoreTests(lhs.objectList, rhs.objectList) - && deepEqualsCoreTests(lhs.listList, rhs.listList) - && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) - && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) - && deepEqualsCoreTests(lhs.intMap, rhs.intMap) - && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) - && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) - && deepEqualsCoreTests(lhs.listMap, rhs.listMap) - && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) && deepEqualsCoreTests(lhs.list, rhs.list) && deepEqualsCoreTests(lhs.stringList, rhs.stringList) && deepEqualsCoreTests(lhs.intList, rhs.intList) && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) && deepEqualsCoreTests(lhs.boolList, rhs.boolList) && deepEqualsCoreTests(lhs.enumList, rhs.enumList) && deepEqualsCoreTests(lhs.objectList, rhs.objectList) && deepEqualsCoreTests(lhs.listList, rhs.listList) && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) && deepEqualsCoreTests(lhs.intMap, rhs.intMap) && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) && deepEqualsCoreTests(lhs.listMap, rhs.listMap) && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) } func hash(into hasher: inout Hasher) { @@ -893,17 +815,16 @@ struct AllClassesWrapper: Hashable { var classMap: [Int64?: AllTypes?] var nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllClassesWrapper? { let allNullableTypes = pigeonVar_list[0] as! AllNullableTypes - let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( - pigeonVar_list[1]) + let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue(pigeonVar_list[1]) let allTypes: AllTypes? = nilOrValue(pigeonVar_list[2]) let classList = pigeonVar_list[3] as! [AllTypes?] let nullableClassList: [AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[4]) let classMap = pigeonVar_list[5] as! [Int64?: AllTypes?] - let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue( - pigeonVar_list[6]) + let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[6]) return AllClassesWrapper( allNullableTypes: allNullableTypes, @@ -930,14 +851,7 @@ struct AllClassesWrapper: Hashable { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - return deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) - && deepEqualsCoreTests( - lhs.allNullableTypesWithoutRecursion, rhs.allNullableTypesWithoutRecursion) - && deepEqualsCoreTests(lhs.allTypes, rhs.allTypes) - && deepEqualsCoreTests(lhs.classList, rhs.classList) - && deepEqualsCoreTests(lhs.nullableClassList, rhs.nullableClassList) - && deepEqualsCoreTests(lhs.classMap, rhs.classMap) - && deepEqualsCoreTests(lhs.nullableClassMap, rhs.nullableClassMap) + return deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) && deepEqualsCoreTests(lhs.allNullableTypesWithoutRecursion, rhs.allNullableTypesWithoutRecursion) && deepEqualsCoreTests(lhs.allTypes, rhs.allTypes) && deepEqualsCoreTests(lhs.classList, rhs.classList) && deepEqualsCoreTests(lhs.nullableClassList, rhs.nullableClassList) && deepEqualsCoreTests(lhs.classMap, rhs.classMap) && deepEqualsCoreTests(lhs.nullableClassMap, rhs.nullableClassMap) } func hash(into hasher: inout Hasher) { @@ -958,6 +872,7 @@ struct AllClassesWrapper: Hashable { struct TestMessage: Hashable { var testList: [Any?]? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TestMessage? { let testList: [Any?]? = nilOrValue(pigeonVar_list[0]) @@ -1063,6 +978,7 @@ class CoreTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = CoreTestsPigeonCodec(readerWriter: CoreTestsPigeonCodecReaderWriter()) } + /// The core interface that each host language plugin must implement in /// platform_test integration tests. /// @@ -1131,11 +1047,14 @@ protocol HostIntegrationCoreApi { func echoOptionalDefault(_ aDouble: Double) throws -> Double /// Returns passed in int. func echoRequired(_ anInt: Int64) throws -> Int64 + /// Returns the result of platform-side equality check. + func areAllNullableTypesEqual(a: AllNullableTypes, b: AllNullableTypes) throws -> Bool + /// Returns the platform-side hash code for the given object. + func getAllNullableTypesHash(value: AllNullableTypes) throws -> Int64 /// Returns the passed object, to test serialization and deserialization. func echo(_ everything: AllNullableTypes?) throws -> AllNullableTypes? /// Returns the passed object, to test serialization and deserialization. - func echo(_ everything: AllNullableTypesWithoutRecursion?) throws - -> AllNullableTypesWithoutRecursion? + func echo(_ everything: AllNullableTypesWithoutRecursion?) throws -> AllNullableTypesWithoutRecursion? /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. func extractNestedNullableString(from wrapper: AllClassesWrapper) throws -> String? @@ -1143,13 +1062,9 @@ protocol HostIntegrationCoreApi { /// sending of nested objects. func createNestedObject(with nullableString: String?) throws -> AllClassesWrapper /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypes( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? - ) throws -> AllNullableTypes + func sendMultipleNullableTypes(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?) throws -> AllNullableTypes /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? - ) throws -> AllNullableTypesWithoutRecursion + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?) throws -> AllNullableTypesWithoutRecursion /// Returns passed in int. func echo(_ aNullableInt: Int64?) throws -> Int64? /// Returns passed in double. @@ -1189,8 +1104,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed map, to test serialization and deserialization. func echoNullableNonNull(enumMap: [AnEnum: AnEnum]?) throws -> [AnEnum: AnEnum]? /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: - AllNullableTypes]? + func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: AllNullableTypes]? func echoNullable(_ anEnum: AnEnum?) throws -> AnEnum? func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? /// Returns passed in int. @@ -1209,9 +1123,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed string asynchronously. func echoAsync(_ aString: String, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsync( - _ aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echoAsync(_ aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. func echoAsync(_ anObject: Any, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. @@ -1219,32 +1131,21 @@ protocol HostIntegrationCoreApi { /// Returns the passed list, to test asynchronous serialization and deserialization. func echoAsync(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsync( - classList: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func echoAsync(classList: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void - ) + func echoAsync(_ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void - ) + func echoAsync(stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func echoAsync(intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func echoAsync(enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync( - classMap: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func echoAsync(classMap: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsync(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsync( - _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func echoAsync(_ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. func throwAsyncError(completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. @@ -1254,13 +1155,9 @@ protocol HostIntegrationCoreApi { /// Returns the passed object, to test async serialization and deserialization. func echoAsync(_ everything: AllTypes, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoAsync( - _ everything: AllNullableTypes?, - completion: @escaping (Result) -> Void) + func echoAsync(_ everything: AllNullableTypes?, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoAsync( - _ everything: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) + func echoAsync(_ everything: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. func echoAsyncNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. @@ -1270,44 +1167,29 @@ protocol HostIntegrationCoreApi { /// Returns the passed string asynchronously. func echoAsyncNullable(_ aString: String?, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullable( - _ aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoAsyncNullable(_ aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. func echoAsyncNullable(_ anObject: Any?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func echoAsyncNullable(enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - classList: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func echoAsyncNullable(classList: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - _ map: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func echoAsyncNullable(_ map: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - stringMap: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func echoAsyncNullable(stringMap: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func echoAsyncNullable(intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void - ) + func echoAsyncNullable(enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - classMap: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func echoAsyncNullable(classMap: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullable( - _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func echoAsyncNullable(_ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. func defaultIsMainThread() throws -> Bool @@ -1317,124 +1199,61 @@ protocol HostIntegrationCoreApi { func callFlutterNoop(completion: @escaping (Result) -> Void) func callFlutterThrowError(completion: @escaping (Result) -> Void) func callFlutterThrowErrorFromVoid(completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllTypes, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllNullableTypes?, - completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypes( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, - completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ everything: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypesWithoutRecursion( - aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, - completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllTypes, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllNullableTypes?, completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypes(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ everything: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypesWithoutRecursion(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aBool: Bool, completion: @escaping (Result) -> Void) func callFlutterEcho(_ anInt: Int64, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aDouble: Double, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aString: String, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ list: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func callFlutterEcho(_ list: FlutterStandardTypedData, completion: @escaping (Result) -> Void) func callFlutterEcho(_ list: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEcho( - enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) - func callFlutterEcho( - classList: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull( - enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) - func callFlutterEchoNonNull( - classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void - ) - func callFlutterEcho( - _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void - ) - func callFlutterEcho( - stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void - ) - func callFlutterEcho( - intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) - func callFlutterEcho( - enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) - func callFlutterEcho( - classMap: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull( - stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) - func callFlutterEchoNonNull( - intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) - func callFlutterEchoNonNull( - enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) - func callFlutterEchoNonNull( - classMap: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) + func callFlutterEcho(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) + func callFlutterEcho(classList: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull(enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) + func callFlutterEchoNonNull(classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void) + func callFlutterEcho(_ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void) + func callFlutterEcho(stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void) + func callFlutterEcho(intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func callFlutterEcho(enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func callFlutterEcho(classMap: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull(stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) + func callFlutterEchoNonNull(intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) + func callFlutterEchoNonNull(enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) + func callFlutterEchoNonNull(classMap: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) - func callFlutterEcho( - _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func callFlutterEcho(_ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ anInt: Int64?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ aDouble: Double?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ aString: String?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ list: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullable( - enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) - func callFlutterEchoNullable( - classList: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - classList: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable( - _ map: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) - func callFlutterEchoNullable( - stringMap: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, Error>) -> Void) - func callFlutterEchoNullable( - intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) - func callFlutterEchoNullable( - enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void - ) - func callFlutterEchoNullable( - classMap: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull( - classMap: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable( - _ anEnum: AnEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable( - _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) - func callFlutterSmallApiEcho( - _ aString: String, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ aDouble: Double?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ aString: String?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ list: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullable(enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func callFlutterEchoNullable(classList: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(classList: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable(_ map: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func callFlutterEchoNullable(stringMap: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func callFlutterEchoNullable(intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func callFlutterEchoNullable(enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void) + func callFlutterEchoNullable(classMap: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull(classMap: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable(_ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func callFlutterSmallApiEcho(_ aString: String, completion: @escaping (Result) -> Void) } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class HostIntegrationCoreApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" #if os(iOS) let taskQueue = binaryMessenger.makeBackgroundTaskQueue?() @@ -1443,10 +1262,7 @@ class HostIntegrationCoreApiSetup { #endif /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - let noopChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { _, reply in do { @@ -1460,10 +1276,7 @@ class HostIntegrationCoreApiSetup { noopChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1479,10 +1292,7 @@ class HostIntegrationCoreApiSetup { echoAllTypesChannel.setMessageHandler(nil) } /// Returns an error, to test error handling. - let throwErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorChannel.setMessageHandler { _, reply in do { @@ -1496,10 +1306,7 @@ class HostIntegrationCoreApiSetup { throwErrorChannel.setMessageHandler(nil) } /// Returns an error from a void function, to test error handling. - let throwErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorFromVoidChannel.setMessageHandler { _, reply in do { @@ -1513,10 +1320,7 @@ class HostIntegrationCoreApiSetup { throwErrorFromVoidChannel.setMessageHandler(nil) } /// Returns a Flutter error, to test error handling. - let throwFlutterErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwFlutterErrorChannel.setMessageHandler { _, reply in do { @@ -1530,10 +1334,7 @@ class HostIntegrationCoreApiSetup { throwFlutterErrorChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1549,10 +1350,7 @@ class HostIntegrationCoreApiSetup { echoIntChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1568,10 +1366,7 @@ class HostIntegrationCoreApiSetup { echoDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean. - let echoBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1587,10 +1382,7 @@ class HostIntegrationCoreApiSetup { echoBoolChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1606,10 +1398,7 @@ class HostIntegrationCoreApiSetup { echoStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List. - let echoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1625,10 +1414,7 @@ class HostIntegrationCoreApiSetup { echoUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object. - let echoObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1644,10 +1430,7 @@ class HostIntegrationCoreApiSetup { echoObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1663,10 +1446,7 @@ class HostIntegrationCoreApiSetup { echoListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1682,10 +1462,7 @@ class HostIntegrationCoreApiSetup { echoEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1701,10 +1478,7 @@ class HostIntegrationCoreApiSetup { echoClassListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1720,10 +1494,7 @@ class HostIntegrationCoreApiSetup { echoNonNullEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1739,10 +1510,7 @@ class HostIntegrationCoreApiSetup { echoNonNullClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1758,10 +1526,7 @@ class HostIntegrationCoreApiSetup { echoMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1777,10 +1542,7 @@ class HostIntegrationCoreApiSetup { echoStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1796,10 +1558,7 @@ class HostIntegrationCoreApiSetup { echoIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1815,10 +1574,7 @@ class HostIntegrationCoreApiSetup { echoEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1834,10 +1590,7 @@ class HostIntegrationCoreApiSetup { echoClassMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1853,10 +1606,7 @@ class HostIntegrationCoreApiSetup { echoNonNullStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1872,10 +1622,7 @@ class HostIntegrationCoreApiSetup { echoNonNullIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1891,10 +1638,7 @@ class HostIntegrationCoreApiSetup { echoNonNullEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1910,10 +1654,7 @@ class HostIntegrationCoreApiSetup { echoNonNullClassMapChannel.setMessageHandler(nil) } /// Returns the passed class to test nested class serialization and deserialization. - let echoClassWrapperChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoClassWrapperChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassWrapperChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1929,10 +1670,7 @@ class HostIntegrationCoreApiSetup { echoClassWrapperChannel.setMessageHandler(nil) } /// Returns the passed enum to test serialization and deserialization. - let echoEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1948,10 +1686,7 @@ class HostIntegrationCoreApiSetup { echoEnumChannel.setMessageHandler(nil) } /// Returns the passed enum to test serialization and deserialization. - let echoAnotherEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1967,10 +1702,7 @@ class HostIntegrationCoreApiSetup { echoAnotherEnumChannel.setMessageHandler(nil) } /// Returns the default string. - let echoNamedDefaultStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNamedDefaultStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNamedDefaultStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1986,10 +1718,7 @@ class HostIntegrationCoreApiSetup { echoNamedDefaultStringChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoOptionalDefaultDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2005,10 +1734,7 @@ class HostIntegrationCoreApiSetup { echoOptionalDefaultDoubleChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoRequiredIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoRequiredIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoRequiredIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2023,11 +1749,41 @@ class HostIntegrationCoreApiSetup { } else { echoRequiredIntChannel.setMessageHandler(nil) } + /// Returns the result of platform-side equality check. + let areAllNullableTypesEqualChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + areAllNullableTypesEqualChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let aArg = args[0] as! AllNullableTypes + let bArg = args[1] as! AllNullableTypes + do { + let result = try api.areAllNullableTypesEqual(a: aArg, b: bArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + areAllNullableTypesEqualChannel.setMessageHandler(nil) + } + /// Returns the platform-side hash code for the given object. + let getAllNullableTypesHashChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + getAllNullableTypesHashChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let valueArg = args[0] as! AllNullableTypes + do { + let result = try api.getAllNullableTypesHash(value: valueArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + getAllNullableTypesHashChannel.setMessageHandler(nil) + } /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2043,10 +1799,7 @@ class HostIntegrationCoreApiSetup { echoAllNullableTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2063,10 +1816,7 @@ class HostIntegrationCoreApiSetup { } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - let extractNestedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let extractNestedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { extractNestedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2083,10 +1833,7 @@ class HostIntegrationCoreApiSetup { } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - let createNestedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createNestedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNestedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2102,10 +1849,7 @@ class HostIntegrationCoreApiSetup { createNestedNullableStringChannel.setMessageHandler(nil) } /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendMultipleNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2113,8 +1857,7 @@ class HostIntegrationCoreApiSetup { let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) do { - let result = try api.sendMultipleNullableTypes( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + let result = try api.sendMultipleNullableTypes(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -2124,10 +1867,7 @@ class HostIntegrationCoreApiSetup { sendMultipleNullableTypesChannel.setMessageHandler(nil) } /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2135,8 +1875,7 @@ class HostIntegrationCoreApiSetup { let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) do { - let result = try api.sendMultipleNullableTypesWithoutRecursion( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + let result = try api.sendMultipleNullableTypesWithoutRecursion(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -2146,10 +1885,7 @@ class HostIntegrationCoreApiSetup { sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2165,10 +1901,7 @@ class HostIntegrationCoreApiSetup { echoNullableIntChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2184,10 +1917,7 @@ class HostIntegrationCoreApiSetup { echoNullableDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean. - let echoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2203,10 +1933,7 @@ class HostIntegrationCoreApiSetup { echoNullableBoolChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2222,10 +1949,7 @@ class HostIntegrationCoreApiSetup { echoNullableStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List. - let echoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2241,10 +1965,7 @@ class HostIntegrationCoreApiSetup { echoNullableUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object. - let echoNullableObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2260,10 +1981,7 @@ class HostIntegrationCoreApiSetup { echoNullableObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2279,10 +1997,7 @@ class HostIntegrationCoreApiSetup { echoNullableListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2298,10 +2013,7 @@ class HostIntegrationCoreApiSetup { echoNullableEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2317,10 +2029,7 @@ class HostIntegrationCoreApiSetup { echoNullableClassListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2336,10 +2045,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2355,10 +2061,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2374,10 +2077,7 @@ class HostIntegrationCoreApiSetup { echoNullableMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2393,10 +2093,7 @@ class HostIntegrationCoreApiSetup { echoNullableStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2412,10 +2109,7 @@ class HostIntegrationCoreApiSetup { echoNullableIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2431,10 +2125,7 @@ class HostIntegrationCoreApiSetup { echoNullableEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2450,10 +2141,7 @@ class HostIntegrationCoreApiSetup { echoNullableClassMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2469,10 +2157,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2488,10 +2173,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2507,10 +2189,7 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2525,10 +2204,7 @@ class HostIntegrationCoreApiSetup { } else { echoNullableNonNullClassMapChannel.setMessageHandler(nil) } - let echoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2543,10 +2219,7 @@ class HostIntegrationCoreApiSetup { } else { echoNullableEnumChannel.setMessageHandler(nil) } - let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2562,10 +2235,7 @@ class HostIntegrationCoreApiSetup { echoAnotherNullableEnumChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoOptionalNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoOptionalNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoOptionalNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2581,10 +2251,7 @@ class HostIntegrationCoreApiSetup { echoOptionalNullableIntChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoNamedNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoNamedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNamedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2601,10 +2268,7 @@ class HostIntegrationCoreApiSetup { } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - let noopAsyncChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopAsyncChannel.setMessageHandler { _, reply in api.noopAsync { result in @@ -2620,10 +2284,7 @@ class HostIntegrationCoreApiSetup { noopAsyncChannel.setMessageHandler(nil) } /// Returns passed in int asynchronously. - let echoAsyncIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2641,10 +2302,7 @@ class HostIntegrationCoreApiSetup { echoAsyncIntChannel.setMessageHandler(nil) } /// Returns passed in double asynchronously. - let echoAsyncDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2662,10 +2320,7 @@ class HostIntegrationCoreApiSetup { echoAsyncDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean asynchronously. - let echoAsyncBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2683,10 +2338,7 @@ class HostIntegrationCoreApiSetup { echoAsyncBoolChannel.setMessageHandler(nil) } /// Returns the passed string asynchronously. - let echoAsyncStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2704,10 +2356,7 @@ class HostIntegrationCoreApiSetup { echoAsyncStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List asynchronously. - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2725,10 +2374,7 @@ class HostIntegrationCoreApiSetup { echoAsyncUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object asynchronously. - let echoAsyncObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2746,10 +2392,7 @@ class HostIntegrationCoreApiSetup { echoAsyncObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2767,10 +2410,7 @@ class HostIntegrationCoreApiSetup { echoAsyncListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2788,10 +2428,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2809,10 +2446,7 @@ class HostIntegrationCoreApiSetup { echoAsyncClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2830,10 +2464,7 @@ class HostIntegrationCoreApiSetup { echoAsyncMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2851,10 +2482,7 @@ class HostIntegrationCoreApiSetup { echoAsyncStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2872,10 +2500,7 @@ class HostIntegrationCoreApiSetup { echoAsyncIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2893,10 +2518,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2914,10 +2536,7 @@ class HostIntegrationCoreApiSetup { echoAsyncClassMapChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2935,10 +2554,7 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2956,10 +2572,7 @@ class HostIntegrationCoreApiSetup { echoAnotherAsyncEnumChannel.setMessageHandler(nil) } /// Responds with an error from an async function returning a value. - let throwAsyncErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorChannel.setMessageHandler { _, reply in api.throwAsyncError { result in @@ -2975,10 +2588,7 @@ class HostIntegrationCoreApiSetup { throwAsyncErrorChannel.setMessageHandler(nil) } /// Responds with an error from an async void function. - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorFromVoidChannel.setMessageHandler { _, reply in api.throwAsyncErrorFromVoid { result in @@ -2994,10 +2604,7 @@ class HostIntegrationCoreApiSetup { throwAsyncErrorFromVoidChannel.setMessageHandler(nil) } /// Responds with a Flutter error from an async function returning a value. - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncFlutterErrorChannel.setMessageHandler { _, reply in api.throwAsyncFlutterError { result in @@ -3013,10 +2620,7 @@ class HostIntegrationCoreApiSetup { throwAsyncFlutterErrorChannel.setMessageHandler(nil) } /// Returns the passed object, to test async serialization and deserialization. - let echoAsyncAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3034,10 +2638,7 @@ class HostIntegrationCoreApiSetup { echoAsyncAllTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3055,10 +2656,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableAllNullableTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3076,10 +2674,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } /// Returns passed in int asynchronously. - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3097,10 +2692,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableIntChannel.setMessageHandler(nil) } /// Returns passed in double asynchronously. - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3118,10 +2710,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean asynchronously. - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3139,10 +2728,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableBoolChannel.setMessageHandler(nil) } /// Returns the passed string asynchronously. - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3160,10 +2746,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List asynchronously. - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3181,10 +2764,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object asynchronously. - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3202,10 +2782,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3223,10 +2800,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3244,10 +2818,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3265,10 +2836,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3286,10 +2854,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3307,10 +2872,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3328,10 +2890,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3349,10 +2908,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3370,10 +2926,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableClassMapChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3391,10 +2944,7 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3413,10 +2963,7 @@ class HostIntegrationCoreApiSetup { } /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. - let defaultIsMainThreadChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let defaultIsMainThreadChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { defaultIsMainThreadChannel.setMessageHandler { _, reply in do { @@ -3431,16 +2978,9 @@ class HostIntegrationCoreApiSetup { } /// Returns true if the handler is run on a non-main thread, which should be /// true for any platform with TaskQueue support. - let taskQueueIsBackgroundThreadChannel = - taskQueue == nil - ? FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) - : FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec, taskQueue: taskQueue) + let taskQueueIsBackgroundThreadChannel = taskQueue == nil + ? FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + : FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec, taskQueue: taskQueue) if let api = api { taskQueueIsBackgroundThreadChannel.setMessageHandler { _, reply in do { @@ -3453,10 +2993,7 @@ class HostIntegrationCoreApiSetup { } else { taskQueueIsBackgroundThreadChannel.setMessageHandler(nil) } - let callFlutterNoopChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopChannel.setMessageHandler { _, reply in api.callFlutterNoop { result in @@ -3471,10 +3008,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterNoopChannel.setMessageHandler(nil) } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorChannel.setMessageHandler { _, reply in api.callFlutterThrowError { result in @@ -3489,10 +3023,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterThrowErrorChannel.setMessageHandler(nil) } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorFromVoidChannel.setMessageHandler { _, reply in api.callFlutterThrowErrorFromVoid { result in @@ -3507,10 +3038,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) } - let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3527,10 +3055,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllTypesChannel.setMessageHandler(nil) } - let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3547,19 +3072,14 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllNullableTypesChannel.setMessageHandler(nil) } - let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterSendMultipleNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let aNullableBoolArg: Bool? = nilOrValue(args[0]) let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypes( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg - ) { result in + api.callFlutterSendMultipleNullableTypes(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -3571,10 +3091,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterSendMultipleNullableTypesChannel.setMessageHandler(nil) } - let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3591,20 +3108,14 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } - let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { - callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { - message, reply in + callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let aNullableBoolArg: Bool? = nilOrValue(args[0]) let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypesWithoutRecursion( - aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg - ) { result in + api.callFlutterSendMultipleNullableTypesWithoutRecursion(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -3616,10 +3127,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3636,10 +3144,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoBoolChannel.setMessageHandler(nil) } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3656,10 +3161,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoIntChannel.setMessageHandler(nil) } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3676,10 +3178,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3696,10 +3195,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoStringChannel.setMessageHandler(nil) } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3716,10 +3212,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3736,10 +3229,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoListChannel.setMessageHandler(nil) } - let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3756,10 +3246,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3776,10 +3263,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3796,10 +3280,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3816,10 +3297,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullClassListChannel.setMessageHandler(nil) } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3836,10 +3314,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoMapChannel.setMessageHandler(nil) } - let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3856,10 +3331,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3876,10 +3348,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3896,10 +3365,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3916,10 +3382,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3936,10 +3399,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3956,10 +3416,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3976,10 +3433,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3996,10 +3450,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4016,10 +3467,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } - let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAnotherEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4036,10 +3484,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAnotherEnumChannel.setMessageHandler(nil) } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4056,10 +3501,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableBoolChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4076,10 +3518,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableIntChannel.setMessageHandler(nil) } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4096,10 +3535,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4116,10 +3552,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableStringChannel.setMessageHandler(nil) } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4136,10 +3569,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4156,10 +3586,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4176,10 +3603,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4196,10 +3620,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4216,10 +3637,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4236,10 +3654,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4256,10 +3671,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4276,10 +3688,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4296,10 +3705,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4316,10 +3722,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4336,10 +3739,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4356,10 +3756,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4376,10 +3773,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4396,10 +3790,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4416,10 +3807,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4436,10 +3824,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } - let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAnotherNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4456,10 +3841,7 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAnotherNullableEnumChannel.setMessageHandler(nil) } - let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterSmallApiEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4491,30 +3873,19 @@ protocol FlutterIntegrationCoreApiProtocol { /// Responds with an error from an async void function. func throwErrorFromVoid(completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echo( - _ everythingArg: AllTypes, completion: @escaping (Result) -> Void) + func echo(_ everythingArg: AllTypes, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypes?, - completion: @escaping (Result) -> Void) + func echoNullable(_ everythingArg: AllNullableTypes?, completion: @escaping (Result) -> Void) /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void) + func sendMultipleNullableTypes(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void) + func echoNullable(_ everythingArg: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void) + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. @@ -4524,141 +3895,81 @@ protocol FlutterIntegrationCoreApiProtocol { /// Returns the passed string, to test serialization and deserialization. func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func echo( - _ listArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echo(_ listArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echo( - enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) + func echo(enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echo( - classList classListArg: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) + func echo(classList classListArg: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) + func echoNonNull(enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - classList classListArg: [AllNullableTypes], - completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) + func echoNonNull(classList classListArg: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - _ mapArg: [AnyHashable?: Any?], - completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) + func echo(_ mapArg: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - stringMap stringMapArg: [String?: String?], - completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) + func echo(stringMap stringMapArg: [String?: String?], completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - intMap intMapArg: [Int64?: Int64?], - completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) + func echo(intMap intMapArg: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - enumMap enumMapArg: [AnEnum?: AnEnum?], - completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) + func echo(enumMap enumMapArg: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo( - classMap classMapArg: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) + func echo(classMap classMapArg: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - stringMap stringMapArg: [String: String], - completion: @escaping (Result<[String: String], PigeonError>) -> Void) + func echoNonNull(stringMap stringMapArg: [String: String], completion: @escaping (Result<[String: String], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - intMap intMapArg: [Int64: Int64], - completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) + func echoNonNull(intMap intMapArg: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - enumMap enumMapArg: [AnEnum: AnEnum], - completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) + func echoNonNull(enumMap enumMapArg: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - classMap classMapArg: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) + func echoNonNull(classMap classMapArg: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echo( - _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) + func echo(_ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func echoNullable( - _ aDoubleArg: Double?, completion: @escaping (Result) -> Void) + func echoNullable(_ aDoubleArg: Double?, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func echoNullable( - _ aStringArg: String?, completion: @escaping (Result) -> Void) + func echoNullable(_ aStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable( - _ listArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoNullable(_ listArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) + func echoNullable(_ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - enumList enumListArg: [AnEnum?]?, - completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) + func echoNullable(enumList enumListArg: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - classList classListArg: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) + func echoNullable(classList classListArg: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) + func echoNullableNonNull(enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - classList classListArg: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) + func echoNullableNonNull(classList classListArg: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - _ mapArg: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) + func echoNullable(_ mapArg: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - stringMap stringMapArg: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) + func echoNullable(stringMap stringMapArg: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - intMap intMapArg: [Int64?: Int64?]?, - completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) + func echoNullable(intMap intMapArg: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - enumMap enumMapArg: [AnEnum?: AnEnum?]?, - completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) + func echoNullable(enumMap enumMapArg: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - classMap classMapArg: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) + func echoNullable(classMap classMapArg: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - stringMap stringMapArg: [String: String]?, - completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) + func echoNullableNonNull(stringMap stringMapArg: [String: String]?, completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - intMap intMapArg: [Int64: Int64]?, - completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) + func echoNullableNonNull(intMap intMapArg: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - enumMap enumMapArg: [AnEnum: AnEnum]?, - completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) + func echoNullableNonNull(enumMap enumMapArg: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - classMap classMapArg: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) + func echoNullableNonNull(classMap classMapArg: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) + func echoNullable(_ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anotherEnumArg: AnotherEnum?, - completion: @escaping (Result) -> Void) + func echoNullable(_ anotherEnumArg: AnotherEnum?, completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) @@ -4678,10 +3989,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. func noop(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4699,10 +4008,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Responds with an error from an async function returning a value. func throwError(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4721,10 +4028,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Responds with an error from an async void function. func throwErrorFromVoid(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4741,13 +4046,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echo( - _ everythingArg: AllTypes, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ everythingArg: AllTypes, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4759,11 +4060,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllTypes completion(.success(result)) @@ -4771,14 +4068,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypes?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ everythingArg: AllNullableTypes?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4798,17 +4090,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { - response in + func sendMultipleNullableTypes(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -4819,11 +4104,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllNullableTypes completion(.success(result)) @@ -4831,14 +4112,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echoNullable( - _ everythingArg: AllNullableTypesWithoutRecursion?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ everythingArg: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4858,17 +4134,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion( - aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, - aString aNullableStringArg: String?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { - response in + func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -4879,11 +4148,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllNullableTypesWithoutRecursion completion(.success(result)) @@ -4892,10 +4157,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed boolean, to test serialization and deserialization. func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4907,11 +4170,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Bool completion(.success(result)) @@ -4920,10 +4179,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed int, to test serialization and deserialization. func echo(_ anIntArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4935,11 +4192,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Int64 completion(.success(result)) @@ -4948,10 +4201,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed double, to test serialization and deserialization. func echo(_ aDoubleArg: Double, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4963,11 +4214,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Double completion(.success(result)) @@ -4976,10 +4223,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed string, to test serialization and deserialization. func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4991,11 +4236,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -5003,14 +4244,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed byte list, to test serialization and deserialization. - func echo( - _ listArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ listArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5022,11 +4258,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! FlutterStandardTypedData completion(.success(result)) @@ -5035,10 +4267,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed list, to test serialization and deserialization. func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5050,11 +4280,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Any?] completion(.success(result)) @@ -5062,13 +4288,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echo( - enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5080,11 +4302,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnEnum?] completion(.success(result)) @@ -5092,14 +4310,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echo( - classList classListArg: [AllNullableTypes?], - completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(classList classListArg: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5111,11 +4324,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AllNullableTypes?] completion(.success(result)) @@ -5123,13 +4332,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5141,11 +4346,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnEnum] completion(.success(result)) @@ -5153,14 +4354,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNonNull( - classList classListArg: [AllNullableTypes], - completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(classList classListArg: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5172,11 +4368,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AllNullableTypes] completion(.success(result)) @@ -5184,14 +4376,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - _ mapArg: [AnyHashable?: Any?], - completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ mapArg: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([mapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5203,11 +4390,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnyHashable?: Any?] completion(.success(result)) @@ -5215,14 +4398,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - stringMap stringMapArg: [String?: String?], - completion: @escaping (Result<[String?: String?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(stringMap stringMapArg: [String?: String?], completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5234,11 +4412,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: String?] completion(.success(result)) @@ -5246,14 +4420,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - intMap intMapArg: [Int64?: Int64?], - completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(intMap intMapArg: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5265,11 +4434,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64?: Int64?] completion(.success(result)) @@ -5277,14 +4442,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - enumMap enumMapArg: [AnEnum?: AnEnum?], - completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(enumMap enumMapArg: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5296,11 +4456,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as? [AnEnum?: AnEnum?] completion(.success(result!)) @@ -5308,14 +4464,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo( - classMap classMapArg: [Int64?: AllNullableTypes?], - completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(classMap classMapArg: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5327,11 +4478,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64?: AllNullableTypes?] completion(.success(result)) @@ -5339,14 +4486,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - stringMap stringMapArg: [String: String], - completion: @escaping (Result<[String: String], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(stringMap stringMapArg: [String: String], completion: @escaping (Result<[String: String], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5358,11 +4500,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String: String] completion(.success(result)) @@ -5370,14 +4508,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - intMap intMapArg: [Int64: Int64], - completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(intMap intMapArg: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5389,11 +4522,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64: Int64] completion(.success(result)) @@ -5401,14 +4530,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - enumMap enumMapArg: [AnEnum: AnEnum], - completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(enumMap enumMapArg: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5420,11 +4544,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as? [AnEnum: AnEnum] completion(.success(result!)) @@ -5432,14 +4552,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull( - classMap classMapArg: [Int64: AllNullableTypes], - completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull(classMap classMapArg: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5451,11 +4566,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64: AllNullableTypes] completion(.success(result)) @@ -5464,10 +4575,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5479,11 +4588,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AnEnum completion(.success(result)) @@ -5491,13 +4596,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echo( - _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anotherEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5509,11 +4610,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AnotherEnum completion(.success(result)) @@ -5522,10 +4619,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5543,12 +4638,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed int, to test serialization and deserialization. - func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5566,13 +4658,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed double, to test serialization and deserialization. - func echoNullable( - _ aDoubleArg: Double?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ aDoubleArg: Double?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5590,13 +4678,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed string, to test serialization and deserialization. - func echoNullable( - _ aStringArg: String?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ aStringArg: String?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5614,14 +4698,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable( - _ listArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ listArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5639,13 +4718,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5663,14 +4738,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - enumList enumListArg: [AnEnum?]?, - completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(enumList enumListArg: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5688,14 +4758,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable( - classList classListArg: [AllNullableTypes?]?, - completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(classList classListArg: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5713,13 +4778,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5737,14 +4798,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull( - classList classListArg: [AllNullableTypes]?, - completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(classList classListArg: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5762,14 +4818,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - _ mapArg: [AnyHashable?: Any?]?, - completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ mapArg: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([mapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5787,14 +4838,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - stringMap stringMapArg: [String?: String?]?, - completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(stringMap stringMapArg: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5812,14 +4858,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - intMap intMapArg: [Int64?: Int64?]?, - completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(intMap intMapArg: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5837,14 +4878,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - enumMap enumMapArg: [AnEnum?: AnEnum?]?, - completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(enumMap enumMapArg: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5862,14 +4898,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable( - classMap classMapArg: [Int64?: AllNullableTypes?]?, - completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(classMap classMapArg: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5887,14 +4918,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - stringMap stringMapArg: [String: String]?, - completion: @escaping (Result<[String: String]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(stringMap stringMapArg: [String: String]?, completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5912,14 +4938,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - intMap intMapArg: [Int64: Int64]?, - completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(intMap intMapArg: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5937,14 +4958,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - enumMap enumMapArg: [AnEnum: AnEnum]?, - completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(enumMap enumMapArg: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5962,14 +4978,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull( - classMap classMapArg: [Int64: AllNullableTypes]?, - completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull(classMap classMapArg: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5987,13 +4998,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6011,14 +5018,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echoNullable( - _ anotherEnumArg: AnotherEnum?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anotherEnumArg: AnotherEnum?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anotherEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6038,10 +5040,8 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6058,12 +5058,9 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed in generic Object asynchronously. - func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6075,11 +5072,7 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -6098,13 +5091,9 @@ protocol HostTrivialApi { class HostTrivialApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let noopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { _, reply in do { @@ -6131,13 +5120,9 @@ protocol HostSmallApi { class HostSmallApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let echoChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let echoChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6154,9 +5139,7 @@ class HostSmallApiSetup { } else { echoChannel.setMessageHandler(nil) } - let voidVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let voidVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { voidVoidChannel.setMessageHandler { _, reply in api.voidVoid { result in @@ -6190,12 +5173,9 @@ class FlutterSmallApi: FlutterSmallApiProtocol { var codec: CoreTestsPigeonCodec { return CoreTestsPigeonCodec.shared } - func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([msgArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6207,23 +5187,16 @@ class FlutterSmallApi: FlutterSmallApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! TestMessage completion(.success(result)) } } } - func echo(string aStringArg: String, completion: @escaping (Result) -> Void) - { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(string aStringArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6235,11 +5208,7 @@ class FlutterSmallApi: FlutterSmallApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - PigeonError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift index 919c2551c26e..12799c21cdae 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift @@ -82,9 +82,7 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } let rhsKey = rhsDictionary[rhsIndex].key let rhsValue = rhsDictionary[rhsIndex].value - if !deepEqualsEventChannelTests(key, rhsKey) - || !deepEqualsEventChannelTests(lhsValue, rhsValue) - { + if !deepEqualsEventChannelTests(key, rhsKey) || !deepEqualsEventChannelTests(lhsValue, rhsValue) { return false } } @@ -106,7 +104,7 @@ func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { if doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) + hasher.combine(0x7FF8000000000000) } else { hasher.combine(doubleValue) } @@ -138,6 +136,7 @@ func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { } } + enum EventEnum: Int { case one = 0 case two = 1 @@ -251,6 +250,7 @@ class EventAllNullableTypes: Hashable { var mapMap: [Int64?: [AnyHashable?: Any?]?]? var recursiveClassMap: [Int64?: EventAllNullableTypes?]? + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> EventAllNullableTypes? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -358,40 +358,10 @@ class EventAllNullableTypes: Hashable { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - if lhs === rhs { + if (lhs === rhs) { return true } - return deepEqualsEventChannelTests(lhs.aNullableBool, rhs.aNullableBool) - && deepEqualsEventChannelTests(lhs.aNullableInt, rhs.aNullableInt) - && deepEqualsEventChannelTests(lhs.aNullableInt64, rhs.aNullableInt64) - && deepEqualsEventChannelTests(lhs.aNullableDouble, rhs.aNullableDouble) - && deepEqualsEventChannelTests(lhs.aNullableByteArray, rhs.aNullableByteArray) - && deepEqualsEventChannelTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) - && deepEqualsEventChannelTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) - && deepEqualsEventChannelTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) - && deepEqualsEventChannelTests(lhs.aNullableEnum, rhs.aNullableEnum) - && deepEqualsEventChannelTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) - && deepEqualsEventChannelTests(lhs.aNullableString, rhs.aNullableString) - && deepEqualsEventChannelTests(lhs.aNullableObject, rhs.aNullableObject) - && deepEqualsEventChannelTests(lhs.allNullableTypes, rhs.allNullableTypes) - && deepEqualsEventChannelTests(lhs.list, rhs.list) - && deepEqualsEventChannelTests(lhs.stringList, rhs.stringList) - && deepEqualsEventChannelTests(lhs.intList, rhs.intList) - && deepEqualsEventChannelTests(lhs.doubleList, rhs.doubleList) - && deepEqualsEventChannelTests(lhs.boolList, rhs.boolList) - && deepEqualsEventChannelTests(lhs.enumList, rhs.enumList) - && deepEqualsEventChannelTests(lhs.objectList, rhs.objectList) - && deepEqualsEventChannelTests(lhs.listList, rhs.listList) - && deepEqualsEventChannelTests(lhs.mapList, rhs.mapList) - && deepEqualsEventChannelTests(lhs.recursiveClassList, rhs.recursiveClassList) - && deepEqualsEventChannelTests(lhs.map, rhs.map) - && deepEqualsEventChannelTests(lhs.stringMap, rhs.stringMap) - && deepEqualsEventChannelTests(lhs.intMap, rhs.intMap) - && deepEqualsEventChannelTests(lhs.enumMap, rhs.enumMap) - && deepEqualsEventChannelTests(lhs.objectMap, rhs.objectMap) - && deepEqualsEventChannelTests(lhs.listMap, rhs.listMap) - && deepEqualsEventChannelTests(lhs.mapMap, rhs.mapMap) - && deepEqualsEventChannelTests(lhs.recursiveClassMap, rhs.recursiveClassMap) + return deepEqualsEventChannelTests(lhs.aNullableBool, rhs.aNullableBool) && deepEqualsEventChannelTests(lhs.aNullableInt, rhs.aNullableInt) && deepEqualsEventChannelTests(lhs.aNullableInt64, rhs.aNullableInt64) && deepEqualsEventChannelTests(lhs.aNullableDouble, rhs.aNullableDouble) && deepEqualsEventChannelTests(lhs.aNullableByteArray, rhs.aNullableByteArray) && deepEqualsEventChannelTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) && deepEqualsEventChannelTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) && deepEqualsEventChannelTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) && deepEqualsEventChannelTests(lhs.aNullableEnum, rhs.aNullableEnum) && deepEqualsEventChannelTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) && deepEqualsEventChannelTests(lhs.aNullableString, rhs.aNullableString) && deepEqualsEventChannelTests(lhs.aNullableObject, rhs.aNullableObject) && deepEqualsEventChannelTests(lhs.allNullableTypes, rhs.allNullableTypes) && deepEqualsEventChannelTests(lhs.list, rhs.list) && deepEqualsEventChannelTests(lhs.stringList, rhs.stringList) && deepEqualsEventChannelTests(lhs.intList, rhs.intList) && deepEqualsEventChannelTests(lhs.doubleList, rhs.doubleList) && deepEqualsEventChannelTests(lhs.boolList, rhs.boolList) && deepEqualsEventChannelTests(lhs.enumList, rhs.enumList) && deepEqualsEventChannelTests(lhs.objectList, rhs.objectList) && deepEqualsEventChannelTests(lhs.listList, rhs.listList) && deepEqualsEventChannelTests(lhs.mapList, rhs.mapList) && deepEqualsEventChannelTests(lhs.recursiveClassList, rhs.recursiveClassList) && deepEqualsEventChannelTests(lhs.map, rhs.map) && deepEqualsEventChannelTests(lhs.stringMap, rhs.stringMap) && deepEqualsEventChannelTests(lhs.intMap, rhs.intMap) && deepEqualsEventChannelTests(lhs.enumMap, rhs.enumMap) && deepEqualsEventChannelTests(lhs.objectMap, rhs.objectMap) && deepEqualsEventChannelTests(lhs.listMap, rhs.listMap) && deepEqualsEventChannelTests(lhs.mapMap, rhs.mapMap) && deepEqualsEventChannelTests(lhs.recursiveClassMap, rhs.recursiveClassMap) } func hash(into hasher: inout Hasher) { @@ -440,6 +410,7 @@ protocol PlatformEvent { struct IntEvent: PlatformEvent { var value: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IntEvent? { let value = pigeonVar_list[0] as! Int64 @@ -470,6 +441,7 @@ struct IntEvent: PlatformEvent { struct StringEvent: PlatformEvent { var value: String + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StringEvent? { let value = pigeonVar_list[0] as! String @@ -500,6 +472,7 @@ struct StringEvent: PlatformEvent { struct BoolEvent: PlatformEvent { var value: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> BoolEvent? { let value = pigeonVar_list[0] as! Bool @@ -530,6 +503,7 @@ struct BoolEvent: PlatformEvent { struct DoubleEvent: PlatformEvent { var value: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DoubleEvent? { let value = pigeonVar_list[0] as! Double @@ -560,6 +534,7 @@ struct DoubleEvent: PlatformEvent { struct ObjectsEvent: PlatformEvent { var value: Any + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ObjectsEvent? { let value = pigeonVar_list[0]! @@ -590,6 +565,7 @@ struct ObjectsEvent: PlatformEvent { struct EnumEvent: PlatformEvent { var value: EventEnum + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> EnumEvent? { let value = pigeonVar_list[0] as! EventEnum @@ -620,6 +596,7 @@ struct EnumEvent: PlatformEvent { struct ClassEvent: PlatformEvent { var value: EventAllNullableTypes + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ClassEvent? { let value = pigeonVar_list[0] as! EventAllNullableTypes @@ -732,12 +709,11 @@ private class EventChannelTestsPigeonCodecReaderWriter: FlutterStandardReaderWri } class EventChannelTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { - static let shared = EventChannelTestsPigeonCodec( - readerWriter: EventChannelTestsPigeonCodecReaderWriter()) + static let shared = EventChannelTestsPigeonCodec(readerWriter: EventChannelTestsPigeonCodecReaderWriter()) } -var eventChannelTestsPigeonMethodCodec = FlutterStandardMethodCodec( - readerWriter: EventChannelTestsPigeonCodecReaderWriter()) +var eventChannelTestsPigeonMethodCodec = FlutterStandardMethodCodec(readerWriter: EventChannelTestsPigeonCodecReaderWriter()); + private class PigeonStreamHandler: NSObject, FlutterStreamHandler { private let wrapper: PigeonEventChannelWrapper @@ -789,53 +765,44 @@ class PigeonEventSink { } class StreamIntsStreamHandler: PigeonEventChannelWrapper { - static func register( - with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamIntsStreamHandler - ) { + static func register(with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamIntsStreamHandler) { var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel( - name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } - + class StreamEventsStreamHandler: PigeonEventChannelWrapper { - static func register( - with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamEventsStreamHandler - ) { + static func register(with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamEventsStreamHandler) { var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel( - name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } - + class StreamConsistentNumbersStreamHandler: PigeonEventChannelWrapper { - static func register( - with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamConsistentNumbersStreamHandler - ) { - var channelName = - "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers" + static func register(with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamConsistentNumbersStreamHandler) { + var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel( - name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } + diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift index 5eb4b81803ad..c7389071e1dd 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift @@ -60,9 +60,7 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> ProxyApiTestsError { - return ProxyApiTestsError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") + return ProxyApiTestsError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -80,6 +78,7 @@ protocol ProxyApiTestsPigeonInternalFinalizerDelegate: AnyObject { func onDeinit(identifier: Int64) } + // Attaches to an object to receive a callback when the object is deallocated. internal final class ProxyApiTestsPigeonInternalFinalizer { internal static let associatedObjectKey = malloc(1)! @@ -95,17 +94,14 @@ internal final class ProxyApiTestsPigeonInternalFinalizer { } internal static func attach( - to instance: AnyObject, identifier: Int64, - delegate: ProxyApiTestsPigeonInternalFinalizerDelegate + to instance: AnyObject, identifier: Int64, delegate: ProxyApiTestsPigeonInternalFinalizerDelegate ) { let finalizer = ProxyApiTestsPigeonInternalFinalizer(identifier: identifier, delegate: delegate) objc_setAssociatedObject(instance, associatedObjectKey, finalizer, .OBJC_ASSOCIATION_RETAIN) } static func detach(from instance: AnyObject) { - let finalizer = - objc_getAssociatedObject(instance, associatedObjectKey) - as? ProxyApiTestsPigeonInternalFinalizer + let finalizer = objc_getAssociatedObject(instance, associatedObjectKey) as? ProxyApiTestsPigeonInternalFinalizer if let finalizer = finalizer { finalizer.delegate = nil objc_setAssociatedObject(instance, associatedObjectKey, nil, .OBJC_ASSOCIATION_ASSIGN) @@ -117,6 +113,7 @@ internal final class ProxyApiTestsPigeonInternalFinalizer { } } + /// Maintains instances used to communicate with the corresponding objects in Dart. /// /// Objects stored in this container are represented by an object in Dart that is also stored in @@ -220,8 +217,7 @@ final class ProxyApiTestsPigeonInstanceManager { identifiers.setObject(NSNumber(value: identifier), forKey: instance) weakInstances.setObject(instance, forKey: NSNumber(value: identifier)) strongInstances.setObject(instance, forKey: NSNumber(value: identifier)) - ProxyApiTestsPigeonInternalFinalizer.attach( - to: instance, identifier: identifier, delegate: finalizerDelegate) + ProxyApiTestsPigeonInternalFinalizer.attach(to: instance, identifier: identifier, delegate: finalizerDelegate) } /// Retrieves the identifier paired with an instance. @@ -302,6 +298,7 @@ final class ProxyApiTestsPigeonInstanceManager { } } + private class ProxyApiTestsPigeonInstanceManagerApi { /// The codec used for serializing messages. var codec: FlutterStandardMessageCodec { ProxyApiTestsPigeonCodec.shared } @@ -314,14 +311,9 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } /// Sets up an instance of `ProxyApiTestsPigeonInstanceManagerApi` to handle messages through the `binaryMessenger`. - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager?) { let codec = ProxyApiTestsPigeonCodec.shared - let removeStrongReferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", - binaryMessenger: binaryMessenger, codec: codec) + let removeStrongReferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", binaryMessenger: binaryMessenger, codec: codec) if let instanceManager = instanceManager { removeStrongReferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -336,9 +328,7 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } else { removeStrongReferenceChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", binaryMessenger: binaryMessenger, codec: codec) if let instanceManager = instanceManager { clearChannel.setMessageHandler { _, reply in do { @@ -354,14 +344,9 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } /// Sends a message to the Dart `InstanceManager` to remove the strong reference of the instance associated with `identifier`. - func removeStrongReference( - identifier identifierArg: Int64, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func removeStrongReference(identifier identifierArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([identifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -381,28 +366,21 @@ private class ProxyApiTestsPigeonInstanceManagerApi { protocol ProxyApiTestsPigeonProxyApiDelegate { /// An implementation of [PigeonApiProxyApiTestClass] used to add a new Dart instance of /// `ProxyApiTestClass` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiTestClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiTestClass + func pigeonApiProxyApiTestClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiTestClass /// An implementation of [PigeonApiProxyApiSuperClass] used to add a new Dart instance of /// `ProxyApiSuperClass` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiSuperClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiSuperClass + func pigeonApiProxyApiSuperClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiSuperClass /// An implementation of [PigeonApiProxyApiInterface] used to add a new Dart instance of /// `ProxyApiInterface` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiInterface + func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiInterface /// An implementation of [PigeonApiClassWithApiRequirement] used to add a new Dart instance of /// `ClassWithApiRequirement` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiClassWithApiRequirement(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiClassWithApiRequirement + func pigeonApiClassWithApiRequirement(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiClassWithApiRequirement } extension ProxyApiTestsPigeonProxyApiDelegate { - func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) - -> PigeonApiProxyApiInterface - { - return PigeonApiProxyApiInterface( - pigeonRegistrar: registrar, delegate: PigeonApiDelegateProxyApiInterface()) + func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiInterface { + return PigeonApiProxyApiInterface(pigeonRegistrar: registrar, delegate: PigeonApiDelegateProxyApiInterface()) } } @@ -444,22 +422,16 @@ open class ProxyApiTestsPigeonProxyApiRegistrar { } func setUp() { - ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers( - binaryMessenger: binaryMessenger, instanceManager: instanceManager) - PigeonApiProxyApiTestClass.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiTestClass(self)) - PigeonApiProxyApiSuperClass.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiSuperClass(self)) - PigeonApiClassWithApiRequirement.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiClassWithApiRequirement(self)) + ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger: binaryMessenger, instanceManager: instanceManager) + PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiTestClass(self)) + PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiSuperClass(self)) + PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiClassWithApiRequirement(self)) } func tearDown() { - ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers( - binaryMessenger: binaryMessenger, instanceManager: nil) + ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger: binaryMessenger, instanceManager: nil) PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) - PigeonApiClassWithApiRequirement.setUpMessageHandlers( - binaryMessenger: binaryMessenger, api: nil) + PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) } } private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStandardReaderWriter { @@ -498,61 +470,57 @@ private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStand } override func writeValue(_ value: Any) { - if value is [Any] || value is Bool || value is Data || value is [AnyHashable: Any] - || value is Double || value is FlutterStandardTypedData || value is Int64 || value is String - || value is ProxyApiTestEnum - { + if value is [Any] || value is Bool || value is Data || value is [AnyHashable: Any] || value is Double || value is FlutterStandardTypedData || value is Int64 || value is String || value is ProxyApiTestEnum { super.writeValue(value) return } + if let instance = value as? ProxyApiTestClass { pigeonRegistrar.apiDelegate.pigeonApiProxyApiTestClass(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if let instance = value as? ProxyApiSuperClass { pigeonRegistrar.apiDelegate.pigeonApiProxyApiSuperClass(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if let instance = value as? ProxyApiInterface { pigeonRegistrar.apiDelegate.pigeonApiProxyApiInterface(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } + if #available(iOS 15.0.0, macOS 10.0.0, *), let instance = value as? ClassWithApiRequirement { - pigeonRegistrar.apiDelegate.pigeonApiClassWithApiRequirement(pigeonRegistrar) - .pigeonNewInstance( - pigeonInstance: instance - ) { _ in } + pigeonRegistrar.apiDelegate.pigeonApiClassWithApiRequirement(pigeonRegistrar).pigeonNewInstance( + pigeonInstance: instance + ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference( - forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) return } - if let instance = value as AnyObject?, - pigeonRegistrar.instanceManager.containsInstance(instance) + + if let instance = value as AnyObject?, pigeonRegistrar.instanceManager.containsInstance(instance) { super.writeByte(128) super.writeValue( @@ -570,13 +538,11 @@ private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStand } override func reader(with data: Data) -> FlutterStandardReader { - return ProxyApiTestsPigeonInternalProxyApiCodecReader( - data: data, pigeonRegistrar: pigeonRegistrar) + return ProxyApiTestsPigeonInternalProxyApiCodecReader(data: data, pigeonRegistrar: pigeonRegistrar) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return ProxyApiTestsPigeonInternalProxyApiCodecWriter( - data: data, pigeonRegistrar: pigeonRegistrar) + return ProxyApiTestsPigeonInternalProxyApiCodecWriter(data: data, pigeonRegistrar: pigeonRegistrar) } } @@ -627,433 +593,197 @@ class ProxyApiTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable } protocol PigeonApiDelegateProxyApiTestClass { - func pigeonDefaultConstructor( - pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, - aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], - anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, - aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, - aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, - aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, - aNullableProxyApi: ProxyApiSuperClass?, boolParam: Bool, intParam: Int64, doubleParam: Double, - stringParam: String, aUint8ListParam: FlutterStandardTypedData, listParam: [Any?], - mapParam: [String?: Any?], enumParam: ProxyApiTestEnum, proxyApiParam: ProxyApiSuperClass, - nullableBoolParam: Bool?, nullableIntParam: Int64?, nullableDoubleParam: Double?, - nullableStringParam: String?, nullableUint8ListParam: FlutterStandardTypedData?, - nullableListParam: [Any?]?, nullableMapParam: [String?: Any?]?, - nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: ProxyApiSuperClass? - ) throws -> ProxyApiTestClass - func namedConstructor( - pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, - aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], - anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, - aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, - aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, - aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, - aNullableProxyApi: ProxyApiSuperClass? - ) throws -> ProxyApiTestClass - func attachedField(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> ProxyApiSuperClass + func pigeonDefaultConstructor(pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: ProxyApiSuperClass?, boolParam: Bool, intParam: Int64, doubleParam: Double, stringParam: String, aUint8ListParam: FlutterStandardTypedData, listParam: [Any?], mapParam: [String?: Any?], enumParam: ProxyApiTestEnum, proxyApiParam: ProxyApiSuperClass, nullableBoolParam: Bool?, nullableIntParam: Int64?, nullableDoubleParam: Double?, nullableStringParam: String?, nullableUint8ListParam: FlutterStandardTypedData?, nullableListParam: [Any?]?, nullableMapParam: [String?: Any?]?, nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: ProxyApiSuperClass?) throws -> ProxyApiTestClass + func namedConstructor(pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: ProxyApiSuperClass?) throws -> ProxyApiTestClass + func attachedField(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiSuperClass func staticAttachedField(pigeonApi: PigeonApiProxyApiTestClass) throws -> ProxyApiSuperClass /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. func noop(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws /// Returns an error, to test error handling. - func throwError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws - -> Any? + func throwError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Any? /// Returns an error from a void function, to test error handling. - func throwErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws + func throwErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws /// Returns a Flutter error, to test error handling. - func throwFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) - throws -> Any? + func throwFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Any? /// Returns passed in int. - func echoInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64 - ) throws -> Int64 + func echoInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64) throws -> Int64 /// Returns passed in double. - func echoDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double - ) throws -> Double + func echoDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double) throws -> Double /// Returns the passed in boolean. - func echoBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool - ) throws -> Bool + func echoBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool) throws -> Bool /// Returns the passed in string. - func echoString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String - ) throws -> String + func echoString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String) throws -> String /// Returns the passed in Uint8List. - func echoUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData - ) throws -> FlutterStandardTypedData + func echoUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData) throws -> FlutterStandardTypedData /// Returns the passed in generic Object. - func echoObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any - ) throws -> Any + func echoObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any) throws -> Any /// Returns the passed list, to test serialization and deserialization. - func echoList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?] - ) throws -> [Any?] + func echoList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]) throws -> [Any?] /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func echoProxyApiList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aList: [ProxyApiTestClass] - ) throws -> [ProxyApiTestClass] + func echoProxyApiList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [ProxyApiTestClass]) throws -> [ProxyApiTestClass] /// Returns the passed map, to test serialization and deserialization. - func echoMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?] - ) throws -> [String?: Any?] + func echoMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]) throws -> [String?: Any?] /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func echoProxyApiMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String: ProxyApiTestClass] - ) throws -> [String: ProxyApiTestClass] + func echoProxyApiMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String: ProxyApiTestClass]) throws -> [String: ProxyApiTestClass] /// Returns the passed enum to test serialization and deserialization. - func echoEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum - ) throws -> ProxyApiTestEnum + func echoEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum) throws -> ProxyApiTestEnum /// Returns the passed ProxyApi to test serialization and deserialization. - func echoProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass - ) throws -> ProxyApiSuperClass + func echoProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass) throws -> ProxyApiSuperClass /// Returns passed in int. - func echoNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableInt: Int64? - ) throws -> Int64? + func echoNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableInt: Int64?) throws -> Int64? /// Returns passed in double. - func echoNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableDouble: Double? - ) throws -> Double? + func echoNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableDouble: Double?) throws -> Double? /// Returns the passed in boolean. - func echoNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableBool: Bool? - ) throws -> Bool? + func echoNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableBool: Bool?) throws -> Bool? /// Returns the passed in string. - func echoNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableString: String? - ) throws -> String? + func echoNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableString: String?) throws -> String? /// Returns the passed in Uint8List. - func echoNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableUint8List: FlutterStandardTypedData? - ) throws -> FlutterStandardTypedData? + func echoNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableUint8List: FlutterStandardTypedData?) throws -> FlutterStandardTypedData? /// Returns the passed in generic Object. - func echoNullableObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableObject: Any? - ) throws -> Any? + func echoNullableObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableObject: Any?) throws -> Any? /// Returns the passed list, to test serialization and deserialization. - func echoNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableList: [Any?]? - ) throws -> [Any?]? + func echoNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableList: [Any?]?) throws -> [Any?]? /// Returns the passed map, to test serialization and deserialization. - func echoNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableMap: [String?: Any?]? - ) throws -> [String?: Any?]? - func echoNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableEnum: ProxyApiTestEnum? - ) throws -> ProxyApiTestEnum? + func echoNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableMap: [String?: Any?]?) throws -> [String?: Any?]? + func echoNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableEnum: ProxyApiTestEnum?) throws -> ProxyApiTestEnum? /// Returns the passed ProxyApi to test serialization and deserialization. - func echoNullableProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aNullableProxyApi: ProxyApiSuperClass? - ) throws -> ProxyApiSuperClass? + func echoNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableProxyApi: ProxyApiSuperClass?) throws -> ProxyApiSuperClass? /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func noopAsync( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func noopAsync(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. - func echoAsyncInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, - completion: @escaping (Result) -> Void) + func echoAsyncInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. - func echoAsyncDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, - completion: @escaping (Result) -> Void) + func echoAsyncDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, completion: @escaping (Result) -> Void) /// Returns the passed in boolean asynchronously. - func echoAsyncBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, - completion: @escaping (Result) -> Void) + func echoAsyncBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, completion: @escaping (Result) -> Void) /// Returns the passed string asynchronously. - func echoAsyncString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) + func echoAsyncString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func echoAsyncUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func echoAsyncObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any, - completion: @escaping (Result) -> Void) + func echoAsyncObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], - completion: @escaping (Result<[Any?], Error>) -> Void) + func echoAsyncList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], - completion: @escaping (Result<[String?: Any?], Error>) -> Void) + func echoAsyncMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func echoAsyncEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. - func throwAsyncError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. - func throwAsyncErrorFromVoid( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with a Flutter error from an async function returning a value. - func throwAsyncFlutterError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func throwAsyncFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. - func echoAsyncNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. - func echoAsyncNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, completion: @escaping (Result) -> Void) /// Returns the passed in boolean asynchronously. - func echoAsyncNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed string asynchronously. - func echoAsyncNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func echoAsyncNullableObject( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any?, - completion: @escaping (Result) -> Void) + func echoAsyncNullableObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, - completion: @escaping (Result<[Any?]?, Error>) -> Void) + func echoAsyncNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) + func echoAsyncNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func echoAsyncNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) func staticNoop(pigeonApi: PigeonApiProxyApiTestClass) throws func echoStaticString(pigeonApi: PigeonApiProxyApiTestClass, aString: String) throws -> String - func staticAsyncNoop( - pigeonApi: PigeonApiProxyApiTestClass, completion: @escaping (Result) -> Void) - func callFlutterNoop( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterThrowError( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterThrowErrorFromVoid( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterEchoBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, - completion: @escaping (Result) -> Void) - func callFlutterEchoInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, - completion: @escaping (Result) -> Void) - func callFlutterEchoDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, - completion: @escaping (Result) -> Void) - func callFlutterEchoString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) - func callFlutterEchoUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) - func callFlutterEchoList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], - completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEchoProxyApiList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aList: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], Error>) -> Void - ) - func callFlutterEchoMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], - completion: @escaping (Result<[String?: Any?], Error>) -> Void) - func callFlutterEchoProxyApiMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], Error>) -> Void) - func callFlutterEchoEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) - func callFlutterEchoProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass, completion: @escaping (Result) -> Void - ) - func callFlutterEchoNullableBool( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableInt( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableDouble( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableUint8List( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aUint8List: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) - func callFlutterEchoNullableList( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, - completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullableMap( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) - func callFlutterEchoNullableEnum( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableProxyApi( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - aProxyApi: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void) - func callFlutterNoopAsync( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void) - func callFlutterEchoAsyncString( - pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, - completion: @escaping (Result) -> Void) + func staticAsyncNoop(pigeonApi: PigeonApiProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterNoop(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterThrowError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterThrowErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterEchoBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, completion: @escaping (Result) -> Void) + func callFlutterEchoInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, completion: @escaping (Result) -> Void) + func callFlutterEchoDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, completion: @escaping (Result) -> Void) + func callFlutterEchoString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) + func callFlutterEchoUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) + func callFlutterEchoList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) + func callFlutterEchoProxyApiList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], Error>) -> Void) + func callFlutterEchoMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) + func callFlutterEchoProxyApiMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], Error>) -> Void) + func callFlutterEchoEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func callFlutterEchoProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) + func callFlutterEchoNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) + func callFlutterNoopAsync(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterEchoAsyncString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) } protocol PigeonApiProtocolProxyApiTestClass { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - func flutterNoop( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterNoop(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. - func flutterThrowError( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterThrowError(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. - func flutterThrowErrorFromVoid( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterThrowErrorFromVoid(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, - completion: @escaping (Result) -> Void) + func flutterEchoBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. - func flutterEchoInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, - completion: @escaping (Result) -> Void) + func flutterEchoInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func flutterEchoDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, - completion: @escaping (Result) -> Void) + func flutterEchoDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func flutterEchoString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void) + func flutterEchoString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void) + func flutterEchoUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func flutterEchoList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], - completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) + func flutterEchoList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], - completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) + func flutterEchoProxyApiList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func flutterEchoMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], - completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) + func flutterEchoMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aMap aMapArg: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) + func flutterEchoProxyApiMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func flutterEchoEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, - completion: @escaping (Result) -> Void) + func flutterEchoEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, completion: @escaping (Result) -> Void) /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, - completion: @escaping (Result) -> Void) + func flutterEchoProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoNullableBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. - func flutterEchoNullableInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func flutterEchoNullableDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func flutterEchoNullableString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoNullableUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func flutterEchoNullableList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, - completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) + func flutterEchoNullableList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func flutterEchoNullableMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, - completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) + func flutterEchoNullableMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func flutterEchoNullableEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoNullableProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aProxyApi aProxyApiArg: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void) + func flutterEchoNullableProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func flutterNoopAsync( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void) + func flutterNoopAsync(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func flutterEchoAsyncString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void) + func flutterEchoAsyncString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) } -final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { +final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiTestClass ///An implementation of [ProxyApiSuperClass] used to access callback methods @@ -1066,26 +796,17 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { return pigeonRegistrar.apiDelegate.pigeonApiProxyApiInterface(pigeonRegistrar) } - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiTestClass - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiTestClass) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiTestClass? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiTestClass?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1128,25 +849,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let nullableProxyApiParamArg: ProxyApiSuperClass? = nilOrValue(args[36]) do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor( - pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, - aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, - anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, - aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, - aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, - aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, - aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg, - boolParam: boolParamArg, intParam: intParamArg, doubleParam: doubleParamArg, - stringParam: stringParamArg, aUint8ListParam: aUint8ListParamArg, - listParam: listParamArg, mapParam: mapParamArg, enumParam: enumParamArg, - proxyApiParam: proxyApiParamArg, nullableBoolParam: nullableBoolParamArg, - nullableIntParam: nullableIntParamArg, nullableDoubleParam: nullableDoubleParamArg, - nullableStringParam: nullableStringParamArg, - nullableUint8ListParam: nullableUint8ListParamArg, - nullableListParam: nullableListParamArg, nullableMapParam: nullableMapParamArg, - nullableEnumParam: nullableEnumParamArg, - nullableProxyApiParam: nullableProxyApiParamArg), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg, boolParam: boolParamArg, intParam: intParamArg, doubleParam: doubleParamArg, stringParam: stringParamArg, aUint8ListParam: aUint8ListParamArg, listParam: listParamArg, mapParam: mapParamArg, enumParam: enumParamArg, proxyApiParam: proxyApiParamArg, nullableBoolParam: nullableBoolParamArg, nullableIntParam: nullableIntParamArg, nullableDoubleParam: nullableDoubleParamArg, nullableStringParam: nullableStringParamArg, nullableUint8ListParam: nullableUint8ListParamArg, nullableListParam: nullableListParamArg, nullableMapParam: nullableMapParamArg, nullableEnumParam: nullableEnumParamArg, nullableProxyApiParam: nullableProxyApiParamArg), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1155,9 +859,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - let namedConstructorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let namedConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { namedConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1182,15 +884,8 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let aNullableProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[18]) do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.namedConstructor( - pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, - aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, - anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, - aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, - aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, - aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, - aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.namedConstructor(pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1199,18 +894,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { namedConstructorChannel.setMessageHandler(nil) } - let attachedFieldChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", - binaryMessenger: binaryMessenger, codec: codec) + let attachedFieldChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", binaryMessenger: binaryMessenger, codec: codec) if let api = api { attachedFieldChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let pigeonIdentifierArg = args[1] as! Int64 do { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.attachedField(pigeonApi: api, pigeonInstance: pigeonInstanceArg), - withIdentifier: pigeonIdentifierArg) + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(try api.pigeonDelegate.attachedField(pigeonApi: api, pigeonInstance: pigeonInstanceArg), withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1219,17 +910,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { attachedFieldChannel.setMessageHandler(nil) } - let staticAttachedFieldChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", - binaryMessenger: binaryMessenger, codec: codec) + let staticAttachedFieldChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticAttachedFieldChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.staticAttachedField(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) + api.pigeonRegistrar.instanceManager.addDartCreatedInstance(try api.pigeonDelegate.staticAttachedField(pigeonApi: api), withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1238,9 +925,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticAttachedFieldChannel.setMessageHandler(nil) } - let noopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", - binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1255,16 +940,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { noopChannel.setMessageHandler(nil) } - let throwErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - let result = try api.pigeonDelegate.throwError( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + let result = try api.pigeonDelegate.throwError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1273,16 +955,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwErrorChannel.setMessageHandler(nil) } - let throwErrorFromVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let throwErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - try api.pigeonDelegate.throwErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + try api.pigeonDelegate.throwErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -1291,16 +970,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwErrorFromVoidChannel.setMessageHandler(nil) } - let throwFlutterErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", - binaryMessenger: binaryMessenger, codec: codec) + let throwFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwFlutterErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - let result = try api.pigeonDelegate.throwFlutterError( - pigeonApi: api, pigeonInstance: pigeonInstanceArg) + let result = try api.pigeonDelegate.throwFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1309,17 +985,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwFlutterErrorChannel.setMessageHandler(nil) } - let echoIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 do { - let result = try api.pigeonDelegate.echoInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) + let result = try api.pigeonDelegate.echoInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1328,17 +1001,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoIntChannel.setMessageHandler(nil) } - let echoDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double do { - let result = try api.pigeonDelegate.echoDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) + let result = try api.pigeonDelegate.echoDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1347,17 +1017,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoDoubleChannel.setMessageHandler(nil) } - let echoBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool do { - let result = try api.pigeonDelegate.echoBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) + let result = try api.pigeonDelegate.echoBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1366,17 +1033,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoBoolChannel.setMessageHandler(nil) } - let echoStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", - binaryMessenger: binaryMessenger, codec: codec) + let echoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String do { - let result = try api.pigeonDelegate.echoString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) + let result = try api.pigeonDelegate.echoString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1385,17 +1049,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoStringChannel.setMessageHandler(nil) } - let echoUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData do { - let result = try api.pigeonDelegate.echoUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) + let result = try api.pigeonDelegate.echoUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1404,17 +1065,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoUint8ListChannel.setMessageHandler(nil) } - let echoObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg = args[1]! do { - let result = try api.pigeonDelegate.echoObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) + let result = try api.pigeonDelegate.echoObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1423,17 +1081,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoObjectChannel.setMessageHandler(nil) } - let echoListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", - binaryMessenger: binaryMessenger, codec: codec) + let echoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] do { - let result = try api.pigeonDelegate.echoList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) + let result = try api.pigeonDelegate.echoList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1442,17 +1097,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoListChannel.setMessageHandler(nil) } - let echoProxyApiListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [ProxyApiTestClass] do { - let result = try api.pigeonDelegate.echoProxyApiList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) + let result = try api.pigeonDelegate.echoProxyApiList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1461,17 +1113,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiListChannel.setMessageHandler(nil) } - let echoMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] do { - let result = try api.pigeonDelegate.echoMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) + let result = try api.pigeonDelegate.echoMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1480,17 +1129,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoMapChannel.setMessageHandler(nil) } - let echoProxyApiMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String: ProxyApiTestClass] do { - let result = try api.pigeonDelegate.echoProxyApiMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) + let result = try api.pigeonDelegate.echoProxyApiMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1499,17 +1145,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiMapChannel.setMessageHandler(nil) } - let echoEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum do { - let result = try api.pigeonDelegate.echoEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) + let result = try api.pigeonDelegate.echoEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1518,17 +1161,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoEnumChannel.setMessageHandler(nil) } - let echoProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg = args[1] as! ProxyApiSuperClass do { - let result = try api.pigeonDelegate.echoProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) + let result = try api.pigeonDelegate.echoProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1537,17 +1177,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoProxyApiChannel.setMessageHandler(nil) } - let echoNullableIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableIntArg: Int64? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableInt: aNullableIntArg) + let result = try api.pigeonDelegate.echoNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableInt: aNullableIntArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1556,17 +1193,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableIntChannel.setMessageHandler(nil) } - let echoNullableDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableDoubleArg: Double? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableDouble: aNullableDoubleArg) + let result = try api.pigeonDelegate.echoNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableDouble: aNullableDoubleArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1575,17 +1209,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableDoubleChannel.setMessageHandler(nil) } - let echoNullableBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableBoolArg: Bool? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableBool: aNullableBoolArg) + let result = try api.pigeonDelegate.echoNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableBool: aNullableBoolArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1594,17 +1225,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableBoolChannel.setMessageHandler(nil) } - let echoNullableStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableStringArg: String? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableString: aNullableStringArg) + let result = try api.pigeonDelegate.echoNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1613,18 +1241,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableStringChannel.setMessageHandler(nil) } - let echoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, - aNullableUint8List: aNullableUint8ListArg) + let result = try api.pigeonDelegate.echoNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableUint8List: aNullableUint8ListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1633,17 +1257,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableUint8ListChannel.setMessageHandler(nil) } - let echoNullableObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableObjectArg: Any? = args[1] do { - let result = try api.pigeonDelegate.echoNullableObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableObject: aNullableObjectArg) + let result = try api.pigeonDelegate.echoNullableObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableObject: aNullableObjectArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1652,17 +1273,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableObjectChannel.setMessageHandler(nil) } - let echoNullableListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableListArg: [Any?]? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableList: aNullableListArg) + let result = try api.pigeonDelegate.echoNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableList: aNullableListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1671,17 +1289,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableListChannel.setMessageHandler(nil) } - let echoNullableMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableMapArg: [String?: Any?]? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableMap: aNullableMapArg) + let result = try api.pigeonDelegate.echoNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableMap: aNullableMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1690,17 +1305,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableMapChannel.setMessageHandler(nil) } - let echoNullableEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableEnum: aNullableEnumArg) + let result = try api.pigeonDelegate.echoNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableEnum: aNullableEnumArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1709,18 +1321,14 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableEnumChannel.setMessageHandler(nil) } - let echoNullableProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let echoNullableProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, - aNullableProxyApi: aNullableProxyApiArg) + let result = try api.pigeonDelegate.echoNullableProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableProxyApi: aNullableProxyApiArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1729,9 +1337,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoNullableProxyApiChannel.setMessageHandler(nil) } - let noopAsyncChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", - binaryMessenger: binaryMessenger, codec: codec) + let noopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopAsyncChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1748,17 +1354,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { noopAsyncChannel.setMessageHandler(nil) } - let echoAsyncIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 - api.pigeonDelegate.echoAsyncInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.echoAsyncInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1770,17 +1372,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncIntChannel.setMessageHandler(nil) } - let echoAsyncDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double - api.pigeonDelegate.echoAsyncDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.echoAsyncDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1792,17 +1390,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncDoubleChannel.setMessageHandler(nil) } - let echoAsyncBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool - api.pigeonDelegate.echoAsyncBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.echoAsyncBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1814,17 +1408,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncBoolChannel.setMessageHandler(nil) } - let echoAsyncStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.echoAsyncString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.echoAsyncString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1836,17 +1426,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncStringChannel.setMessageHandler(nil) } - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData - api.pigeonDelegate.echoAsyncUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.echoAsyncUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1858,17 +1444,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncUint8ListChannel.setMessageHandler(nil) } - let echoAsyncObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg = args[1]! - api.pigeonDelegate.echoAsyncObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg - ) { result in + api.pigeonDelegate.echoAsyncObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1880,17 +1462,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncObjectChannel.setMessageHandler(nil) } - let echoAsyncListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] - api.pigeonDelegate.echoAsyncList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.echoAsyncList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1902,17 +1480,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncListChannel.setMessageHandler(nil) } - let echoAsyncMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] - api.pigeonDelegate.echoAsyncMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.echoAsyncMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1924,17 +1498,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncMapChannel.setMessageHandler(nil) } - let echoAsyncEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum - api.pigeonDelegate.echoAsyncEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.echoAsyncEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1946,15 +1516,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncEnumChannel.setMessageHandler(nil) } - let throwAsyncErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.throwAsyncError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1966,16 +1533,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncErrorChannel.setMessageHandler(nil) } - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg - ) { result in + api.pigeonDelegate.throwAsyncErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -1987,15 +1550,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncErrorFromVoidChannel.setMessageHandler(nil) } - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", - binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncFlutterErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) - { result in + api.pigeonDelegate.throwAsyncFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2007,17 +1567,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { throwAsyncFlutterErrorChannel.setMessageHandler(nil) } - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg: Int64? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.echoAsyncNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2029,17 +1585,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableIntChannel.setMessageHandler(nil) } - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg: Double? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.echoAsyncNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2051,17 +1603,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableDoubleChannel.setMessageHandler(nil) } - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg: Bool? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.echoAsyncNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2073,17 +1621,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableBoolChannel.setMessageHandler(nil) } - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg: String? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.echoAsyncNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2095,18 +1639,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableStringChannel.setMessageHandler(nil) } - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.echoAsyncNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2118,17 +1657,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableUint8ListChannel.setMessageHandler(nil) } - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg: Any? = args[1] - api.pigeonDelegate.echoAsyncNullableObject( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg - ) { result in + api.pigeonDelegate.echoAsyncNullableObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2140,17 +1675,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableObjectChannel.setMessageHandler(nil) } - let echoAsyncNullableListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg: [Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.echoAsyncNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2162,17 +1693,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableListChannel.setMessageHandler(nil) } - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg: [String?: Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.echoAsyncNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2184,17 +1711,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableMapChannel.setMessageHandler(nil) } - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.echoAsyncNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2206,9 +1729,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoAsyncNullableEnumChannel.setMessageHandler(nil) } - let staticNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", - binaryMessenger: binaryMessenger, codec: codec) + let staticNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticNoopChannel.setMessageHandler { _, reply in do { @@ -2221,9 +1742,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticNoopChannel.setMessageHandler(nil) } - let echoStaticStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", - binaryMessenger: binaryMessenger, codec: codec) + let echoStaticStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStaticStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2238,9 +1757,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { echoStaticStringChannel.setMessageHandler(nil) } - let staticAsyncNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", - binaryMessenger: binaryMessenger, codec: codec) + let staticAsyncNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticAsyncNoopChannel.setMessageHandler { _, reply in api.pigeonDelegate.staticAsyncNoop(pigeonApi: api) { result in @@ -2255,15 +1772,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { staticAsyncNoopChannel.setMessageHandler(nil) } - let callFlutterNoopChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterNoop(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.callFlutterNoop(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2275,15 +1789,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterNoopChannel.setMessageHandler(nil) } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterThrowError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) - { result in + api.pigeonDelegate.callFlutterThrowError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2295,17 +1806,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterThrowErrorChannel.setMessageHandler(nil) } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterThrowErrorFromVoid( - pigeonApi: api, pigeonInstance: pigeonInstanceArg - ) { result in + api.pigeonDelegate.callFlutterThrowErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2317,17 +1823,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool - api.pigeonDelegate.callFlutterEchoBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.callFlutterEchoBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2339,17 +1841,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoBoolChannel.setMessageHandler(nil) } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 - api.pigeonDelegate.callFlutterEchoInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.callFlutterEchoInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2361,17 +1859,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoIntChannel.setMessageHandler(nil) } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double - api.pigeonDelegate.callFlutterEchoDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.callFlutterEchoDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2383,17 +1877,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.callFlutterEchoString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2405,18 +1895,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoStringChannel.setMessageHandler(nil) } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData - api.pigeonDelegate.callFlutterEchoUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.callFlutterEchoUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2428,17 +1913,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoListChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] - api.pigeonDelegate.callFlutterEchoList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2450,18 +1931,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoListChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [ProxyApiTestClass?] - api.pigeonDelegate.callFlutterEchoProxyApiList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApiList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2473,17 +1949,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiListChannel.setMessageHandler(nil) } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] - api.pigeonDelegate.callFlutterEchoMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2495,18 +1967,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoMapChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: ProxyApiTestClass?] - api.pigeonDelegate.callFlutterEchoProxyApiMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApiMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2518,17 +1985,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum - api.pigeonDelegate.callFlutterEchoEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.callFlutterEchoEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2540,17 +2003,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg = args[1] as! ProxyApiSuperClass - api.pigeonDelegate.callFlutterEchoProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg - ) { result in + api.pigeonDelegate.callFlutterEchoProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2562,18 +2021,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoProxyApiChannel.setMessageHandler(nil) } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg: Bool? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableBool( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2585,18 +2039,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableBoolChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg: Int64? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableInt( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2608,18 +2057,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableIntChannel.setMessageHandler(nil) } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg: Double? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableDouble( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2631,18 +2075,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg: String? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2654,18 +2093,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableStringChannel.setMessageHandler(nil) } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableUint8List( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2677,18 +2111,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg: [Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableList( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2700,18 +2129,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg: [String?: Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableMap( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2723,18 +2147,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableEnum( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2746,18 +2165,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } - let callFlutterEchoNullableProxyApiChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableProxyApi( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg - ) { result in + api.pigeonDelegate.callFlutterEchoNullableProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2769,15 +2183,12 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterEchoNullableProxyApiChannel.setMessageHandler(nil) } - let callFlutterNoopAsyncChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopAsyncChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterNoopAsync(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { - result in + api.pigeonDelegate.callFlutterNoopAsync(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -2789,18 +2200,13 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } else { callFlutterNoopAsyncChannel.setMessageHandler(nil) } - let callFlutterEchoAsyncStringChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", - binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.callFlutterEchoAsyncString( - pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg - ) { result in + api.pigeonDelegate.callFlutterEchoAsyncString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2815,34 +2221,26 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } ///Creates a Dart instance of ProxyApiTestClass and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( ProxyApiTestsError( code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) - } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { + } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { completion(.success(())) - } else { + } else { completion( .failure( ProxyApiTestsError( code: "new-instance-error", - message: - "Error: Attempting to create a new Dart instance of ProxyApiTestClass, but the class has a nonnull callback method.", - details: ""))) + message: "Error: Attempting to create a new Dart instance of ProxyApiTestClass, but the class has a nonnull callback method.", details: ""))) } } /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - func flutterNoop( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterNoop(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2850,22 +2248,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterNoop` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterNoop` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2883,10 +2277,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Responds with an error from an async function returning a value. - func flutterThrowError( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterThrowError(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2894,22 +2285,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterThrowError` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterThrowError` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2928,10 +2315,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Responds with an error from an async void function. - func flutterThrowErrorFromVoid( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterThrowErrorFromVoid(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2939,22 +2323,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterThrowErrorFromVoid` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterThrowErrorFromVoid` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2972,10 +2352,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, - completion: @escaping (Result) -> Void - ) { + func flutterEchoBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2983,22 +2360,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoBool` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoBool` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3010,11 +2383,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Bool completion(.success(result)) @@ -3023,10 +2392,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed int, to test serialization and deserialization. - func flutterEchoInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, - completion: @escaping (Result) -> Void - ) { + func flutterEchoInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3034,22 +2400,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoInt` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoInt` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3061,11 +2423,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Int64 completion(.success(result)) @@ -3074,10 +2432,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed double, to test serialization and deserialization. - func flutterEchoDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, - completion: @escaping (Result) -> Void - ) { + func flutterEchoDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3085,22 +2440,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoDouble` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoDouble` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3112,11 +2463,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Double completion(.success(result)) @@ -3125,10 +2472,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed string, to test serialization and deserialization. - func flutterEchoString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void - ) { + func flutterEchoString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3136,22 +2480,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoString` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoString` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3163,11 +2503,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -3176,10 +2512,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, - completion: @escaping (Result) -> Void - ) { + func flutterEchoUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3187,22 +2520,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoUint8List` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoUint8List` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3214,11 +2543,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! FlutterStandardTypedData completion(.success(result)) @@ -3227,10 +2552,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed list, to test serialization and deserialization. - func flutterEchoList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], - completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3238,22 +2560,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoList` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoList` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3265,11 +2583,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Any?] completion(.success(result)) @@ -3279,10 +2593,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], - completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoProxyApiList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3290,22 +2601,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoProxyApiList` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoProxyApiList` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3317,11 +2624,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [ProxyApiTestClass?] completion(.success(result)) @@ -3330,10 +2633,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed map, to test serialization and deserialization. - func flutterEchoMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], - completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3341,22 +2641,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoMap` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoMap` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3368,11 +2664,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: Any?] completion(.success(result)) @@ -3382,11 +2674,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aMap aMapArg: [String?: ProxyApiTestClass?], - completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void - ) { + func flutterEchoProxyApiMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3394,22 +2682,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoProxyApiMap` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoProxyApiMap` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3421,11 +2705,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: ProxyApiTestClass?] completion(.success(result)) @@ -3434,10 +2714,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed enum to test serialization and deserialization. - func flutterEchoEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, - completion: @escaping (Result) -> Void - ) { + func flutterEchoEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3445,22 +2722,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoEnum` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoEnum` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3472,11 +2745,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! ProxyApiTestEnum completion(.success(result)) @@ -3485,10 +2754,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, - completion: @escaping (Result) -> Void - ) { + func flutterEchoProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3496,22 +2762,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoProxyApi` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoProxyApi` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3523,11 +2785,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! ProxyApiSuperClass completion(.success(result)) @@ -3536,10 +2794,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoNullableBool( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3547,22 +2802,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableBool` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableBool` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3581,10 +2832,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed int, to test serialization and deserialization. - func flutterEchoNullableInt( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3592,22 +2840,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableInt` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableInt` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3626,10 +2870,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed double, to test serialization and deserialization. - func flutterEchoNullableDouble( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3637,22 +2878,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableDouble` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableDouble` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3671,10 +2908,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed string, to test serialization and deserialization. - func flutterEchoNullableString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3682,22 +2916,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableString` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableString` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3716,10 +2946,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoNullableUint8List( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3727,22 +2954,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableUint8List` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableUint8List` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3761,10 +2984,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed list, to test serialization and deserialization. - func flutterEchoNullableList( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, - completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void - ) { + func flutterEchoNullableList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3772,22 +2992,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableList` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableList` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3806,10 +3022,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed map, to test serialization and deserialization. - func flutterEchoNullableMap( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, - completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void - ) { + func flutterEchoNullableMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3817,22 +3030,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableMap` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableMap` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3851,10 +3060,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed enum to test serialization and deserialization. - func flutterEchoNullableEnum( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3862,22 +3068,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableEnum` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableEnum` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3896,11 +3098,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoNullableProxyApi( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - aProxyApi aProxyApiArg: ProxyApiSuperClass?, - completion: @escaping (Result) -> Void - ) { + func flutterEchoNullableProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3908,22 +3106,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoNullableProxyApi` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoNullableProxyApi` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3943,10 +3137,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func flutterNoopAsync( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, - completion: @escaping (Result) -> Void - ) { + func flutterNoopAsync(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3954,22 +3145,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterNoopAsync` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterNoopAsync` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3987,10 +3174,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } /// Returns the passed in generic Object asynchronously. - func flutterEchoAsyncString( - pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, - completion: @escaping (Result) -> Void - ) { + func flutterEchoAsyncString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3998,22 +3182,18 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiTestClass.flutterEchoAsyncString` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiTestClass.flutterEchoAsyncString` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4025,11 +3205,7 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion( - .failure( - ProxyApiTestsError( - code: "null-error", - message: "Flutter api returned null value for non-null return value.", details: ""))) + completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -4040,44 +3216,34 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { } protocol PigeonApiDelegateProxyApiSuperClass { func pigeonDefaultConstructor(pigeonApi: PigeonApiProxyApiSuperClass) throws -> ProxyApiSuperClass - func aSuperMethod(pigeonApi: PigeonApiProxyApiSuperClass, pigeonInstance: ProxyApiSuperClass) - throws + func aSuperMethod(pigeonApi: PigeonApiProxyApiSuperClass, pigeonInstance: ProxyApiSuperClass) throws } protocol PigeonApiProtocolProxyApiSuperClass { } -final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { +final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiSuperClass - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiSuperClass - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiSuperClass) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiSuperClass? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiSuperClass?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4086,9 +3252,7 @@ final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - let aSuperMethodChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", - binaryMessenger: binaryMessenger, codec: codec) + let aSuperMethodChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", binaryMessenger: binaryMessenger, codec: codec) if let api = api { aSuperMethodChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4106,27 +3270,21 @@ final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { } ///Creates a Dart instance of ProxyApiSuperClass and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiSuperClass, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiSuperClass, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( ProxyApiTestsError( code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) - } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { + } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { completion(.success(())) - } else { - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + } else { + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4148,43 +3306,32 @@ open class PigeonApiDelegateProxyApiInterface { } protocol PigeonApiProtocolProxyApiInterface { - func anInterfaceMethod( - pigeonInstance pigeonInstanceArg: ProxyApiInterface, - completion: @escaping (Result) -> Void) + func anInterfaceMethod(pigeonInstance pigeonInstanceArg: ProxyApiInterface, completion: @escaping (Result) -> Void) } -final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { +final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiInterface - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateProxyApiInterface - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiInterface) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } ///Creates a Dart instance of ProxyApiInterface and attaches it to [pigeonInstance]. - func pigeonNewInstance( - pigeonInstance: ProxyApiInterface, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ProxyApiInterface, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( ProxyApiTestsError( code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) - } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { + } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { completion(.success(())) - } else { - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + } else { + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4201,10 +3348,7 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } } } - func anInterfaceMethod( - pigeonInstance pigeonInstanceArg: ProxyApiInterface, - completion: @escaping (Result) -> Void - ) { + func anInterfaceMethod(pigeonInstance pigeonInstanceArg: ProxyApiInterface, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -4212,22 +3356,18 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: - "Callback to `ProxyApiInterface.anInterfaceMethod` failed because native instance was not in the instance manager.", - details: ""))) + message: "Callback to `ProxyApiInterface.anInterfaceMethod` failed because native instance was not in the instance manager.", details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4247,48 +3387,37 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } protocol PigeonApiDelegateClassWithApiRequirement { @available(iOS 15.0.0, macOS 10.0.0, *) - func pigeonDefaultConstructor(pigeonApi: PigeonApiClassWithApiRequirement) throws - -> ClassWithApiRequirement + func pigeonDefaultConstructor(pigeonApi: PigeonApiClassWithApiRequirement) throws -> ClassWithApiRequirement @available(iOS 15.0.0, macOS 10.0.0, *) - func aMethod(pigeonApi: PigeonApiClassWithApiRequirement, pigeonInstance: ClassWithApiRequirement) - throws + func aMethod(pigeonApi: PigeonApiClassWithApiRequirement, pigeonInstance: ClassWithApiRequirement) throws } protocol PigeonApiProtocolClassWithApiRequirement { } -final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequirement { +final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequirement { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateClassWithApiRequirement - init( - pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, - delegate: PigeonApiDelegateClassWithApiRequirement - ) { + init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateClassWithApiRequirement) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers( - binaryMessenger: FlutterBinaryMessenger, api: PigeonApiClassWithApiRequirement? - ) { + static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiClassWithApiRequirement?) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( - pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() if #available(iOS 15.0.0, macOS 10.0.0, *) { - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", - binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( - try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), - withIdentifier: pigeonIdentifierArg) +try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), +withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4297,30 +3426,23 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - } else { + } else { let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", + name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if api != nil { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in - reply( - wrapError( - FlutterError( - code: "PigeonUnsupportedOperationError", - message: - "Call to pigeonDefaultConstructor requires @available(iOS 15.0.0, macOS 10.0.0, *).", - details: nil - ))) + reply(wrapError(FlutterError(code: "PigeonUnsupportedOperationError", + message: "Call to pigeonDefaultConstructor requires @available(iOS 15.0.0, macOS 10.0.0, *).", + details: nil + ))) } } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } } if #available(iOS 15.0.0, macOS 10.0.0, *) { - let aMethodChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", - binaryMessenger: binaryMessenger, codec: codec) + let aMethodChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", binaryMessenger: binaryMessenger, codec: codec) if let api = api { aMethodChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4335,19 +3457,16 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi } else { aMethodChannel.setMessageHandler(nil) } - } else { + } else { let aMethodChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", binaryMessenger: binaryMessenger, codec: codec) if api != nil { aMethodChannel.setMessageHandler { message, reply in - reply( - wrapError( - FlutterError( - code: "PigeonUnsupportedOperationError", - message: "Call to aMethod requires @available(iOS 15.0.0, macOS 10.0.0, *).", - details: nil - ))) + reply(wrapError(FlutterError(code: "PigeonUnsupportedOperationError", + message: "Call to aMethod requires @available(iOS 15.0.0, macOS 10.0.0, *).", + details: nil + ))) } } else { aMethodChannel.setMessageHandler(nil) @@ -4357,27 +3476,21 @@ final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequi ///Creates a Dart instance of ClassWithApiRequirement and attaches it to [pigeonInstance]. @available(iOS 15.0.0, macOS 10.0.0, *) - func pigeonNewInstance( - pigeonInstance: ClassWithApiRequirement, - completion: @escaping (Result) -> Void - ) { + func pigeonNewInstance(pigeonInstance: ClassWithApiRequirement, completion: @escaping (Result) -> Void) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( ProxyApiTestsError( code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) - } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { + } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { completion(.success(())) - } else { - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( - pigeonInstance as AnyObject) + } else { + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift index fec488571752..e9738b88df64 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift @@ -70,6 +70,16 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { func echo(_ everything: AllNullableTypes?) -> AllNullableTypes? { return everything } + + func areAllNullableTypesEqual(a: AllNullableTypes, b: AllNullableTypes) -> Bool { + return a == b + } + + func getAllNullableTypesHash(value: AllNullableTypes) -> Int64 { + var hasher = Hasher() + value.hash(into: &hasher) + return Int64(bitPattern: UInt64(hasher.finalize())) + } func echo(_ everything: AllNullableTypesWithoutRecursion?) throws -> AllNullableTypesWithoutRecursion? { diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 6b5aecd205f8..7fab74c5c9c6 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -5,17 +5,13 @@ // Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon -#include "core_tests.gen.h" - -#include - #include +#include +#include "core_tests.gen.h" static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { if (std::isnan(v)) return (guint)0x7FF80000; - union { - double d; - uint64_t u; - } u; + if (v == 0.0) v = 0.0; + union { double d; uint64_t u; } u; u.d = v; return (guint)(u.u ^ (u.u >> 32)); } @@ -34,52 +30,46 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { case FL_VALUE_TYPE_INT: return fl_value_get_int(a) == fl_value_get_int(b); case FL_VALUE_TYPE_FLOAT: { - return flpigeon_equals_double(fl_value_get_float(a), - fl_value_get_float(b)); + return flpigeon_equals_double(fl_value_get_float(a), fl_value_get_float(b)); } case FL_VALUE_TYPE_STRING: return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0; case FL_VALUE_TYPE_UINT8_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), - fl_value_get_length(a)) == 0; + memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), fl_value_get_length(a)) == 0; case FL_VALUE_TYPE_INT32_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), - fl_value_get_length(a) * sizeof(int32_t)) == 0; + memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), fl_value_get_length(a) * sizeof(int32_t)) == 0; case FL_VALUE_TYPE_INT64_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), - fl_value_get_length(a) * sizeof(int64_t)) == 0; + memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0; case FL_VALUE_TYPE_FLOAT_LIST: { size_t len = fl_value_get_length(a); if (len != fl_value_get_length(b)) return FALSE; const double* a_data = fl_value_get_float_list(a); const double* b_data = fl_value_get_float_list(b); for (size_t i = 0; i < len; i++) { - if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE; - } + if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE; + } return TRUE; } case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); if (len != fl_value_get_length(b)) return FALSE; for (size_t i = 0; i < len; i++) { - if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), - fl_value_get_list_value(b, i))) - return FALSE; - } + if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), fl_value_get_list_value(b, i))) return FALSE; + } return TRUE; } case FL_VALUE_TYPE_MAP: { size_t len = fl_value_get_length(a); if (len != fl_value_get_length(b)) return FALSE; for (size_t i = 0; i < len; i++) { - FlValue* key = fl_value_get_map_key(a, i); - FlValue* val = fl_value_get_map_value(a, i); - FlValue* b_val = fl_value_lookup(b, key); - if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE; - } + FlValue* key = fl_value_get_map_key(a, i); + FlValue* val = fl_value_get_map_value(a, i); + FlValue* b_val = fl_value_lookup(b, key); + if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE; + } return TRUE; } default: @@ -118,8 +108,7 @@ static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) { guint result = 1; size_t len = fl_value_get_length(value); const int64_t* data = fl_value_get_int64_list(value); - for (size_t i = 0; i < len; i++) - result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); + for (size_t i = 0; i < len; i++) result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); return result; } case FL_VALUE_TYPE_FLOAT_LIST: { @@ -127,26 +116,24 @@ static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) { size_t len = fl_value_get_length(value); const double* data = fl_value_get_float_list(value); for (size_t i = 0; i < len; i++) { - result = result * 31 + flpigeon_hash_double(data[i]); - } + result = result * 31 + flpigeon_hash_double(data[i]); + } return result; } case FL_VALUE_TYPE_LIST: { guint result = 1; size_t len = fl_value_get_length(value); for (size_t i = 0; i < len; i++) { - result = - result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i)); - } + result = result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i)); + } return result; } case FL_VALUE_TYPE_MAP: { guint result = 0; size_t len = fl_value_get_length(value); for (size_t i = 0; i < len; i++) { - result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ - flpigeon_deep_hash(fl_value_get_map_value(value, i))); - } + result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ flpigeon_deep_hash(fl_value_get_map_value(value, i))); + } return result; } default: @@ -161,54 +148,44 @@ struct _CoreTestsPigeonTestUnusedClass { FlValue* a_field; }; -G_DEFINE_TYPE(CoreTestsPigeonTestUnusedClass, - core_tests_pigeon_test_unused_class, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestUnusedClass, core_tests_pigeon_test_unused_class, G_TYPE_OBJECT) static void core_tests_pigeon_test_unused_class_dispose(GObject* object) { - CoreTestsPigeonTestUnusedClass* self = - CORE_TESTS_PIGEON_TEST_UNUSED_CLASS(object); + CoreTestsPigeonTestUnusedClass* self = CORE_TESTS_PIGEON_TEST_UNUSED_CLASS(object); g_clear_pointer(&self->a_field, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_unused_class_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_unused_class_parent_class)->dispose(object); } -static void core_tests_pigeon_test_unused_class_init( - CoreTestsPigeonTestUnusedClass* self) {} +static void core_tests_pigeon_test_unused_class_init(CoreTestsPigeonTestUnusedClass* self) { +} -static void core_tests_pigeon_test_unused_class_class_init( - CoreTestsPigeonTestUnusedClassClass* klass) { +static void core_tests_pigeon_test_unused_class_class_init(CoreTestsPigeonTestUnusedClassClass* klass) { G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_unused_class_dispose; } -CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new( - FlValue* a_field) { - CoreTestsPigeonTestUnusedClass* self = CORE_TESTS_PIGEON_TEST_UNUSED_CLASS( - g_object_new(core_tests_pigeon_test_unused_class_get_type(), nullptr)); +CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new(FlValue* a_field) { + CoreTestsPigeonTestUnusedClass* self = CORE_TESTS_PIGEON_TEST_UNUSED_CLASS(g_object_new(core_tests_pigeon_test_unused_class_get_type(), nullptr)); if (a_field != nullptr) { self->a_field = fl_value_ref(a_field); - } else { + } + else { self->a_field = nullptr; } return self; } -FlValue* core_tests_pigeon_test_unused_class_get_a_field( - CoreTestsPigeonTestUnusedClass* self) { +FlValue* core_tests_pigeon_test_unused_class_get_a_field(CoreTestsPigeonTestUnusedClass* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_UNUSED_CLASS(self), nullptr); return self->a_field; } -static FlValue* core_tests_pigeon_test_unused_class_to_list( - CoreTestsPigeonTestUnusedClass* self) { +static FlValue* core_tests_pigeon_test_unused_class_to_list(CoreTestsPigeonTestUnusedClass* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, self->a_field != nullptr - ? fl_value_ref(self->a_field) - : fl_value_new_null()); + fl_value_append_take(values, self->a_field != nullptr ? fl_value_ref(self->a_field) : fl_value_new_null()); return values; } -static CoreTestsPigeonTestUnusedClass* -core_tests_pigeon_test_unused_class_new_from_list(FlValue* values) { +static CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); FlValue* a_field = nullptr; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { @@ -217,8 +194,7 @@ core_tests_pigeon_test_unused_class_new_from_list(FlValue* values) { return core_tests_pigeon_test_unused_class_new(a_field); } -gboolean core_tests_pigeon_test_unused_class_equals( - CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b) { +gboolean core_tests_pigeon_test_unused_class_equals(CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; if (!flpigeon_deep_equals(a->a_field, b->a_field)) { @@ -227,8 +203,7 @@ gboolean core_tests_pigeon_test_unused_class_equals( return TRUE; } -guint core_tests_pigeon_test_unused_class_hash( - CoreTestsPigeonTestUnusedClass* self) { +guint core_tests_pigeon_test_unused_class_hash(CoreTestsPigeonTestUnusedClass* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_UNUSED_CLASS(self), 0); guint result = 0; result = result * 31 + flpigeon_deep_hash(self->a_field); @@ -272,8 +247,7 @@ struct _CoreTestsPigeonTestAllTypes { FlValue* map_map; }; -G_DEFINE_TYPE(CoreTestsPigeonTestAllTypes, core_tests_pigeon_test_all_types, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestAllTypes, core_tests_pigeon_test_all_types, G_TYPE_OBJECT) static void core_tests_pigeon_test_all_types_dispose(GObject* object) { CoreTestsPigeonTestAllTypes* self = CORE_TESTS_PIGEON_TEST_ALL_TYPES(object); @@ -295,51 +269,29 @@ static void core_tests_pigeon_test_all_types_dispose(GObject* object) { g_clear_pointer(&self->object_map, fl_value_unref); g_clear_pointer(&self->list_map, fl_value_unref); g_clear_pointer(&self->map_map, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_all_types_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_all_types_parent_class)->dispose(object); } -static void core_tests_pigeon_test_all_types_init( - CoreTestsPigeonTestAllTypes* self) {} +static void core_tests_pigeon_test_all_types_init(CoreTestsPigeonTestAllTypes* self) { +} -static void core_tests_pigeon_test_all_types_class_init( - CoreTestsPigeonTestAllTypesClass* klass) { +static void core_tests_pigeon_test_all_types_class_init(CoreTestsPigeonTestAllTypesClass* klass) { G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_all_types_dispose; } -CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( - gboolean a_bool, int64_t an_int, int64_t an_int64, double a_double, - const uint8_t* a_byte_array, size_t a_byte_array_length, - const int32_t* a4_byte_array, size_t a4_byte_array_length, - const int64_t* a8_byte_array, size_t a8_byte_array_length, - const double* a_float_array, size_t a_float_array_length, - CoreTestsPigeonTestAnEnum an_enum, - CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, - FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, - FlValue* double_list, FlValue* bool_list, FlValue* enum_list, - FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, - FlValue* string_map, FlValue* int_map, FlValue* enum_map, - FlValue* object_map, FlValue* list_map, FlValue* map_map) { - CoreTestsPigeonTestAllTypes* self = CORE_TESTS_PIGEON_TEST_ALL_TYPES( - g_object_new(core_tests_pigeon_test_all_types_get_type(), nullptr)); +CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new(gboolean a_bool, int64_t an_int, int64_t an_int64, double a_double, const uint8_t* a_byte_array, size_t a_byte_array_length, const int32_t* a4_byte_array, size_t a4_byte_array_length, const int64_t* a8_byte_array, size_t a8_byte_array_length, const double* a_float_array, size_t a_float_array_length, CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map) { + CoreTestsPigeonTestAllTypes* self = CORE_TESTS_PIGEON_TEST_ALL_TYPES(g_object_new(core_tests_pigeon_test_all_types_get_type(), nullptr)); self->a_bool = a_bool; self->an_int = an_int; self->an_int64 = an_int64; self->a_double = a_double; - self->a_byte_array = static_cast( - memcpy(malloc(a_byte_array_length), a_byte_array, a_byte_array_length)); + self->a_byte_array = static_cast(memcpy(malloc(a_byte_array_length), a_byte_array, a_byte_array_length)); self->a_byte_array_length = a_byte_array_length; - self->a4_byte_array = static_cast( - memcpy(malloc(sizeof(int32_t) * a4_byte_array_length), a4_byte_array, - sizeof(int32_t) * a4_byte_array_length)); + self->a4_byte_array = static_cast(memcpy(malloc(sizeof(int32_t) * a4_byte_array_length), a4_byte_array, sizeof(int32_t) * a4_byte_array_length)); self->a4_byte_array_length = a4_byte_array_length; - self->a8_byte_array = static_cast( - memcpy(malloc(sizeof(int64_t) * a8_byte_array_length), a8_byte_array, - sizeof(int64_t) * a8_byte_array_length)); + self->a8_byte_array = static_cast(memcpy(malloc(sizeof(int64_t) * a8_byte_array_length), a8_byte_array, sizeof(int64_t) * a8_byte_array_length)); self->a8_byte_array_length = a8_byte_array_length; - self->a_float_array = static_cast( - memcpy(malloc(sizeof(double) * a_float_array_length), a_float_array, - sizeof(double) * a_float_array_length)); + self->a_float_array = static_cast(memcpy(malloc(sizeof(double) * a_float_array_length), a_float_array, sizeof(double) * a_float_array_length)); self->a_float_array_length = a_float_array_length; self->an_enum = an_enum; self->another_enum = another_enum; @@ -364,208 +316,162 @@ CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( return self; } -gboolean core_tests_pigeon_test_all_types_get_a_bool( - CoreTestsPigeonTestAllTypes* self) { +gboolean core_tests_pigeon_test_all_types_get_a_bool(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), FALSE); return self->a_bool; } -int64_t core_tests_pigeon_test_all_types_get_an_int( - CoreTestsPigeonTestAllTypes* self) { +int64_t core_tests_pigeon_test_all_types_get_an_int(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), 0); return self->an_int; } -int64_t core_tests_pigeon_test_all_types_get_an_int64( - CoreTestsPigeonTestAllTypes* self) { +int64_t core_tests_pigeon_test_all_types_get_an_int64(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), 0); return self->an_int64; } -double core_tests_pigeon_test_all_types_get_a_double( - CoreTestsPigeonTestAllTypes* self) { +double core_tests_pigeon_test_all_types_get_a_double(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), 0.0); return self->a_double; } -const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array( - CoreTestsPigeonTestAllTypes* self, size_t* length) { +const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array(CoreTestsPigeonTestAllTypes* self, size_t* length) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); *length = self->a_byte_array_length; return self->a_byte_array; } -const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array( - CoreTestsPigeonTestAllTypes* self, size_t* length) { +const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array(CoreTestsPigeonTestAllTypes* self, size_t* length) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); *length = self->a4_byte_array_length; return self->a4_byte_array; } -const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array( - CoreTestsPigeonTestAllTypes* self, size_t* length) { +const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array(CoreTestsPigeonTestAllTypes* self, size_t* length) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); *length = self->a8_byte_array_length; return self->a8_byte_array; } -const double* core_tests_pigeon_test_all_types_get_a_float_array( - CoreTestsPigeonTestAllTypes* self, size_t* length) { +const double* core_tests_pigeon_test_all_types_get_a_float_array(CoreTestsPigeonTestAllTypes* self, size_t* length) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); *length = self->a_float_array_length; return self->a_float_array; } -CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum( - CoreTestsPigeonTestAllTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), - static_cast(0)); +CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum(CoreTestsPigeonTestAllTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), static_cast(0)); return self->an_enum; } -CoreTestsPigeonTestAnotherEnum -core_tests_pigeon_test_all_types_get_another_enum( - CoreTestsPigeonTestAllTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), - static_cast(0)); +CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_all_types_get_another_enum(CoreTestsPigeonTestAllTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), static_cast(0)); return self->another_enum; } -const gchar* core_tests_pigeon_test_all_types_get_a_string( - CoreTestsPigeonTestAllTypes* self) { +const gchar* core_tests_pigeon_test_all_types_get_a_string(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->a_string; } -FlValue* core_tests_pigeon_test_all_types_get_an_object( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_an_object(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->an_object; } -FlValue* core_tests_pigeon_test_all_types_get_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->list; } -FlValue* core_tests_pigeon_test_all_types_get_string_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_string_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->string_list; } -FlValue* core_tests_pigeon_test_all_types_get_int_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_int_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->int_list; } -FlValue* core_tests_pigeon_test_all_types_get_double_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_double_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->double_list; } -FlValue* core_tests_pigeon_test_all_types_get_bool_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_bool_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->bool_list; } -FlValue* core_tests_pigeon_test_all_types_get_enum_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_enum_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->enum_list; } -FlValue* core_tests_pigeon_test_all_types_get_object_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_object_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->object_list; } -FlValue* core_tests_pigeon_test_all_types_get_list_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_list_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->list_list; } -FlValue* core_tests_pigeon_test_all_types_get_map_list( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_map_list(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->map_list; } -FlValue* core_tests_pigeon_test_all_types_get_map( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_map(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->map; } -FlValue* core_tests_pigeon_test_all_types_get_string_map( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_string_map(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->string_map; } -FlValue* core_tests_pigeon_test_all_types_get_int_map( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_int_map(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->int_map; } -FlValue* core_tests_pigeon_test_all_types_get_enum_map( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_enum_map(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->enum_map; } -FlValue* core_tests_pigeon_test_all_types_get_object_map( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_object_map(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->object_map; } -FlValue* core_tests_pigeon_test_all_types_get_list_map( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_list_map(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->list_map; } -FlValue* core_tests_pigeon_test_all_types_get_map_map( - CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_map_map(CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->map_map; } -static FlValue* core_tests_pigeon_test_all_types_to_list( - CoreTestsPigeonTestAllTypes* self) { +static FlValue* core_tests_pigeon_test_all_types_to_list(CoreTestsPigeonTestAllTypes* self) { FlValue* values = fl_value_new_list(); fl_value_append_take(values, fl_value_new_bool(self->a_bool)); fl_value_append_take(values, fl_value_new_int(self->an_int)); fl_value_append_take(values, fl_value_new_int(self->an_int64)); fl_value_append_take(values, fl_value_new_float(self->a_double)); - fl_value_append_take( - values, - fl_value_new_uint8_list(self->a_byte_array, self->a_byte_array_length)); - fl_value_append_take( - values, - fl_value_new_int32_list(self->a4_byte_array, self->a4_byte_array_length)); - fl_value_append_take( - values, - fl_value_new_int64_list(self->a8_byte_array, self->a8_byte_array_length)); - fl_value_append_take( - values, - fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); - fl_value_append_take( - values, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(self->an_enum), - (GDestroyNotify)fl_value_unref)); - fl_value_append_take( - values, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(self->another_enum), - (GDestroyNotify)fl_value_unref)); + fl_value_append_take(values, fl_value_new_uint8_list(self->a_byte_array, self->a_byte_array_length)); + fl_value_append_take(values, fl_value_new_int32_list(self->a4_byte_array, self->a4_byte_array_length)); + fl_value_append_take(values, fl_value_new_int64_list(self->a8_byte_array, self->a8_byte_array_length)); + fl_value_append_take(values, fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); + fl_value_append_take(values, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(self->an_enum), (GDestroyNotify)fl_value_unref)); + fl_value_append_take(values, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(self->another_enum), (GDestroyNotify)fl_value_unref)); fl_value_append_take(values, fl_value_new_string(self->a_string)); fl_value_append_take(values, fl_value_ref(self->an_object)); fl_value_append_take(values, fl_value_ref(self->list)); @@ -587,8 +493,7 @@ static FlValue* core_tests_pigeon_test_all_types_to_list( return values; } -static CoreTestsPigeonTestAllTypes* -core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { +static CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); gboolean a_bool = fl_value_get_bool(value0); FlValue* value1 = fl_value_get_list_value(values, 1); @@ -610,14 +515,9 @@ core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { const double* a_float_array = fl_value_get_float_list(value7); size_t a_float_array_length = fl_value_get_length(value7); FlValue* value8 = fl_value_get_list_value(values, 8); - CoreTestsPigeonTestAnEnum an_enum = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value8))))); + CoreTestsPigeonTestAnEnum an_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value8))))); FlValue* value9 = fl_value_get_list_value(values, 9); - CoreTestsPigeonTestAnotherEnum another_enum = - static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value9))))); + CoreTestsPigeonTestAnotherEnum another_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value9))))); FlValue* value10 = fl_value_get_list_value(values, 10); const gchar* a_string = fl_value_get_string(value10); FlValue* value11 = fl_value_get_list_value(values, 11); @@ -654,17 +554,10 @@ core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { FlValue* list_map = value26; FlValue* value27 = fl_value_get_list_value(values, 27); FlValue* map_map = value27; - return core_tests_pigeon_test_all_types_new( - a_bool, an_int, an_int64, a_double, a_byte_array, a_byte_array_length, - a4_byte_array, a4_byte_array_length, a8_byte_array, a8_byte_array_length, - a_float_array, a_float_array_length, an_enum, another_enum, a_string, - an_object, list, string_list, int_list, double_list, bool_list, enum_list, - object_list, list_list, map_list, map, string_map, int_map, enum_map, - object_map, list_map, map_map); + return core_tests_pigeon_test_all_types_new(a_bool, an_int, an_int64, a_double, a_byte_array, a_byte_array_length, a4_byte_array, a4_byte_array_length, a8_byte_array, a8_byte_array_length, a_float_array, a_float_array_length, an_enum, another_enum, a_string, an_object, list, string_list, int_list, double_list, bool_list, enum_list, object_list, list_list, map_list, map, string_map, int_map, enum_map, object_map, list_map, map_map); } -gboolean core_tests_pigeon_test_all_types_equals( - CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b) { +gboolean core_tests_pigeon_test_all_types_equals(CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; if (a->a_bool != b->a_bool) { @@ -682,33 +575,23 @@ gboolean core_tests_pigeon_test_all_types_equals( if (a->a_byte_array != b->a_byte_array) { if (a->a_byte_array == nullptr || b->a_byte_array == nullptr) return FALSE; if (a->a_byte_array_length != b->a_byte_array_length) return FALSE; - if (memcmp(a->a_byte_array, b->a_byte_array, - a->a_byte_array_length * sizeof(uint8_t)) != 0) - return FALSE; + if (memcmp(a->a_byte_array, b->a_byte_array, a->a_byte_array_length * sizeof(uint8_t)) != 0) return FALSE; } if (a->a4_byte_array != b->a4_byte_array) { - if (a->a4_byte_array == nullptr || b->a4_byte_array == nullptr) - return FALSE; + if (a->a4_byte_array == nullptr || b->a4_byte_array == nullptr) return FALSE; if (a->a4_byte_array_length != b->a4_byte_array_length) return FALSE; - if (memcmp(a->a4_byte_array, b->a4_byte_array, - a->a4_byte_array_length * sizeof(int32_t)) != 0) - return FALSE; + if (memcmp(a->a4_byte_array, b->a4_byte_array, a->a4_byte_array_length * sizeof(int32_t)) != 0) return FALSE; } if (a->a8_byte_array != b->a8_byte_array) { - if (a->a8_byte_array == nullptr || b->a8_byte_array == nullptr) - return FALSE; + if (a->a8_byte_array == nullptr || b->a8_byte_array == nullptr) return FALSE; if (a->a8_byte_array_length != b->a8_byte_array_length) return FALSE; - if (memcmp(a->a8_byte_array, b->a8_byte_array, - a->a8_byte_array_length * sizeof(int64_t)) != 0) - return FALSE; + if (memcmp(a->a8_byte_array, b->a8_byte_array, a->a8_byte_array_length * sizeof(int64_t)) != 0) return FALSE; } if (a->a_float_array != b->a_float_array) { - if (a->a_float_array == nullptr || b->a_float_array == nullptr) - return FALSE; + if (a->a_float_array == nullptr || b->a_float_array == nullptr) return FALSE; if (a->a_float_array_length != b->a_float_array_length) return FALSE; for (size_t i = 0; i < a->a_float_array_length; i++) { - if (!flpigeon_equals_double(a->a_float_array[i], b->a_float_array[i])) - return FALSE; + if (!flpigeon_equals_double(a->a_float_array[i], b->a_float_array[i])) return FALSE; } } if (a->an_enum != b->an_enum) { @@ -819,8 +702,7 @@ guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* self) { } result = result * 31 + (guint)self->an_enum; result = result * 31 + (guint)self->another_enum; - result = result * 31 + - (self->a_string != nullptr ? g_str_hash(self->a_string) : 0); + result = result * 31 + (self->a_string != nullptr ? g_str_hash(self->a_string) : 0); result = result * 31 + flpigeon_deep_hash(self->an_object); result = result * 31 + flpigeon_deep_hash(self->list); result = result * 31 + flpigeon_deep_hash(self->string_list); @@ -881,12 +763,10 @@ struct _CoreTestsPigeonTestAllNullableTypes { FlValue* recursive_class_map; }; -G_DEFINE_TYPE(CoreTestsPigeonTestAllNullableTypes, - core_tests_pigeon_test_all_nullable_types, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestAllNullableTypes, core_tests_pigeon_test_all_nullable_types, G_TYPE_OBJECT) static void core_tests_pigeon_test_all_nullable_types_dispose(GObject* object) { - CoreTestsPigeonTestAllNullableTypes* self = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(object); + CoreTestsPigeonTestAllNullableTypes* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(object); g_clear_pointer(&self->a_nullable_bool, g_free); g_clear_pointer(&self->a_nullable_int, g_free); g_clear_pointer(&self->a_nullable_int64, g_free); @@ -914,574 +794,417 @@ static void core_tests_pigeon_test_all_nullable_types_dispose(GObject* object) { g_clear_pointer(&self->list_map, fl_value_unref); g_clear_pointer(&self->map_map, fl_value_unref); g_clear_pointer(&self->recursive_class_map, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_all_nullable_types_parent_class) - ->dispose(object); -} - -static void core_tests_pigeon_test_all_nullable_types_init( - CoreTestsPigeonTestAllNullableTypes* self) {} - -static void core_tests_pigeon_test_all_nullable_types_class_init( - CoreTestsPigeonTestAllNullableTypesClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_all_nullable_types_dispose; -} - -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_all_nullable_types_new( - gboolean* a_nullable_bool, int64_t* a_nullable_int, - int64_t* a_nullable_int64, double* a_nullable_double, - const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, - const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, - const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, - const double* a_nullable_float_array, size_t a_nullable_float_array_length, - CoreTestsPigeonTestAnEnum* a_nullable_enum, - CoreTestsPigeonTestAnotherEnum* another_nullable_enum, - const gchar* a_nullable_string, FlValue* a_nullable_object, - CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, - FlValue* string_list, FlValue* int_list, FlValue* double_list, - FlValue* bool_list, FlValue* enum_list, FlValue* object_list, - FlValue* list_list, FlValue* map_list, FlValue* recursive_class_list, - FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, - FlValue* object_map, FlValue* list_map, FlValue* map_map, - FlValue* recursive_class_map) { - CoreTestsPigeonTestAllNullableTypes* self = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(g_object_new( - core_tests_pigeon_test_all_nullable_types_get_type(), nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_all_nullable_types_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_all_nullable_types_init(CoreTestsPigeonTestAllNullableTypes* self) { +} + +static void core_tests_pigeon_test_all_nullable_types_class_init(CoreTestsPigeonTestAllNullableTypesClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_all_nullable_types_dispose; +} + +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_new(gboolean* a_nullable_bool, int64_t* a_nullable_int, int64_t* a_nullable_int64, double* a_nullable_double, const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, const double* a_nullable_float_array, size_t a_nullable_float_array_length, CoreTestsPigeonTestAnEnum* a_nullable_enum, CoreTestsPigeonTestAnotherEnum* another_nullable_enum, const gchar* a_nullable_string, FlValue* a_nullable_object, CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* recursive_class_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map, FlValue* recursive_class_map) { + CoreTestsPigeonTestAllNullableTypes* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(g_object_new(core_tests_pigeon_test_all_nullable_types_get_type(), nullptr)); if (a_nullable_bool != nullptr) { self->a_nullable_bool = static_cast(malloc(sizeof(gboolean))); *self->a_nullable_bool = *a_nullable_bool; - } else { + } + else { self->a_nullable_bool = nullptr; } if (a_nullable_int != nullptr) { self->a_nullable_int = static_cast(malloc(sizeof(int64_t))); *self->a_nullable_int = *a_nullable_int; - } else { + } + else { self->a_nullable_int = nullptr; } if (a_nullable_int64 != nullptr) { self->a_nullable_int64 = static_cast(malloc(sizeof(int64_t))); *self->a_nullable_int64 = *a_nullable_int64; - } else { + } + else { self->a_nullable_int64 = nullptr; } if (a_nullable_double != nullptr) { self->a_nullable_double = static_cast(malloc(sizeof(double))); *self->a_nullable_double = *a_nullable_double; - } else { + } + else { self->a_nullable_double = nullptr; } if (a_nullable_byte_array != nullptr) { - self->a_nullable_byte_array = static_cast( - memcpy(malloc(a_nullable_byte_array_length), a_nullable_byte_array, - a_nullable_byte_array_length)); + self->a_nullable_byte_array = static_cast(memcpy(malloc(a_nullable_byte_array_length), a_nullable_byte_array, a_nullable_byte_array_length)); self->a_nullable_byte_array_length = a_nullable_byte_array_length; - } else { + } + else { self->a_nullable_byte_array = nullptr; self->a_nullable_byte_array_length = 0; } if (a_nullable4_byte_array != nullptr) { - self->a_nullable4_byte_array = static_cast( - memcpy(malloc(sizeof(int32_t) * a_nullable4_byte_array_length), - a_nullable4_byte_array, - sizeof(int32_t) * a_nullable4_byte_array_length)); + self->a_nullable4_byte_array = static_cast(memcpy(malloc(sizeof(int32_t) * a_nullable4_byte_array_length), a_nullable4_byte_array, sizeof(int32_t) * a_nullable4_byte_array_length)); self->a_nullable4_byte_array_length = a_nullable4_byte_array_length; - } else { + } + else { self->a_nullable4_byte_array = nullptr; self->a_nullable4_byte_array_length = 0; } if (a_nullable8_byte_array != nullptr) { - self->a_nullable8_byte_array = static_cast( - memcpy(malloc(sizeof(int64_t) * a_nullable8_byte_array_length), - a_nullable8_byte_array, - sizeof(int64_t) * a_nullable8_byte_array_length)); + self->a_nullable8_byte_array = static_cast(memcpy(malloc(sizeof(int64_t) * a_nullable8_byte_array_length), a_nullable8_byte_array, sizeof(int64_t) * a_nullable8_byte_array_length)); self->a_nullable8_byte_array_length = a_nullable8_byte_array_length; - } else { + } + else { self->a_nullable8_byte_array = nullptr; self->a_nullable8_byte_array_length = 0; } if (a_nullable_float_array != nullptr) { - self->a_nullable_float_array = static_cast( - memcpy(malloc(sizeof(double) * a_nullable_float_array_length), - a_nullable_float_array, - sizeof(double) * a_nullable_float_array_length)); + self->a_nullable_float_array = static_cast(memcpy(malloc(sizeof(double) * a_nullable_float_array_length), a_nullable_float_array, sizeof(double) * a_nullable_float_array_length)); self->a_nullable_float_array_length = a_nullable_float_array_length; - } else { + } + else { self->a_nullable_float_array = nullptr; self->a_nullable_float_array_length = 0; } if (a_nullable_enum != nullptr) { - self->a_nullable_enum = static_cast( - malloc(sizeof(CoreTestsPigeonTestAnEnum))); + self->a_nullable_enum = static_cast(malloc(sizeof(CoreTestsPigeonTestAnEnum))); *self->a_nullable_enum = *a_nullable_enum; - } else { + } + else { self->a_nullable_enum = nullptr; } if (another_nullable_enum != nullptr) { - self->another_nullable_enum = static_cast( - malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); + self->another_nullable_enum = static_cast(malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); *self->another_nullable_enum = *another_nullable_enum; - } else { + } + else { self->another_nullable_enum = nullptr; } if (a_nullable_string != nullptr) { self->a_nullable_string = g_strdup(a_nullable_string); - } else { + } + else { self->a_nullable_string = nullptr; } if (a_nullable_object != nullptr) { self->a_nullable_object = fl_value_ref(a_nullable_object); - } else { + } + else { self->a_nullable_object = nullptr; } if (all_nullable_types != nullptr) { - self->all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - g_object_ref(all_nullable_types)); - } else { + self->all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(g_object_ref(all_nullable_types)); + } + else { self->all_nullable_types = nullptr; } if (list != nullptr) { self->list = fl_value_ref(list); - } else { + } + else { self->list = nullptr; } if (string_list != nullptr) { self->string_list = fl_value_ref(string_list); - } else { + } + else { self->string_list = nullptr; } if (int_list != nullptr) { self->int_list = fl_value_ref(int_list); - } else { + } + else { self->int_list = nullptr; } if (double_list != nullptr) { self->double_list = fl_value_ref(double_list); - } else { + } + else { self->double_list = nullptr; } if (bool_list != nullptr) { self->bool_list = fl_value_ref(bool_list); - } else { + } + else { self->bool_list = nullptr; } if (enum_list != nullptr) { self->enum_list = fl_value_ref(enum_list); - } else { + } + else { self->enum_list = nullptr; } if (object_list != nullptr) { self->object_list = fl_value_ref(object_list); - } else { + } + else { self->object_list = nullptr; } if (list_list != nullptr) { self->list_list = fl_value_ref(list_list); - } else { + } + else { self->list_list = nullptr; } if (map_list != nullptr) { self->map_list = fl_value_ref(map_list); - } else { + } + else { self->map_list = nullptr; } if (recursive_class_list != nullptr) { self->recursive_class_list = fl_value_ref(recursive_class_list); - } else { + } + else { self->recursive_class_list = nullptr; } if (map != nullptr) { self->map = fl_value_ref(map); - } else { + } + else { self->map = nullptr; } if (string_map != nullptr) { self->string_map = fl_value_ref(string_map); - } else { + } + else { self->string_map = nullptr; } if (int_map != nullptr) { self->int_map = fl_value_ref(int_map); - } else { + } + else { self->int_map = nullptr; } if (enum_map != nullptr) { self->enum_map = fl_value_ref(enum_map); - } else { + } + else { self->enum_map = nullptr; } if (object_map != nullptr) { self->object_map = fl_value_ref(object_map); - } else { + } + else { self->object_map = nullptr; } if (list_map != nullptr) { self->list_map = fl_value_ref(list_map); - } else { + } + else { self->list_map = nullptr; } if (map_map != nullptr) { self->map_map = fl_value_ref(map_map); - } else { + } + else { self->map_map = nullptr; } if (recursive_class_map != nullptr) { self->recursive_class_map = fl_value_ref(recursive_class_map); - } else { + } + else { self->recursive_class_map = nullptr; } return self; } -gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->a_nullable_bool; } -int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->a_nullable_int; } -int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->a_nullable_int64; } -double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->a_nullable_double; } -const uint8_t* -core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array( - CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +const uint8_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array(CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); *length = self->a_nullable_byte_array_length; return self->a_nullable_byte_array; } -const int32_t* -core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array( - CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +const int32_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array(CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); *length = self->a_nullable4_byte_array_length; return self->a_nullable4_byte_array; } -const int64_t* -core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array( - CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +const int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array(CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); *length = self->a_nullable8_byte_array_length; return self->a_nullable8_byte_array; } -const double* -core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array( - CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +const double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array(CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); *length = self->a_nullable_float_array_length; return self->a_nullable_float_array; } -CoreTestsPigeonTestAnEnum* -core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->a_nullable_enum; } -CoreTestsPigeonTestAnotherEnum* -core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->another_nullable_enum; } -const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->a_nullable_string; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->a_nullable_object; } -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_all_nullable_types_get_all_nullable_types( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_get_all_nullable_types(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->all_nullable_types; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->string_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->int_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->double_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->bool_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->enum_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->object_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->list_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->map_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->recursive_class_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_map( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->string_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->int_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->enum_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->object_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->list_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->map_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map( - CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map(CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); return self->recursive_class_map; } -static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( - CoreTestsPigeonTestAllNullableTypes* self) { +static FlValue* core_tests_pigeon_test_all_nullable_types_to_list(CoreTestsPigeonTestAllNullableTypes* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, self->a_nullable_bool != nullptr - ? fl_value_new_bool(*self->a_nullable_bool) - : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_int != nullptr - ? fl_value_new_int(*self->a_nullable_int) - : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_int64 != nullptr - ? fl_value_new_int(*self->a_nullable_int64) - : fl_value_new_null()); - fl_value_append_take(values, - self->a_nullable_double != nullptr - ? fl_value_new_float(*self->a_nullable_double) - : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable_byte_array != nullptr - ? fl_value_new_uint8_list(self->a_nullable_byte_array, - self->a_nullable_byte_array_length) - : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable4_byte_array != nullptr - ? fl_value_new_int32_list(self->a_nullable4_byte_array, - self->a_nullable4_byte_array_length) - : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable8_byte_array != nullptr - ? fl_value_new_int64_list(self->a_nullable8_byte_array, - self->a_nullable8_byte_array_length) - : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable_float_array != nullptr - ? fl_value_new_float_list(self->a_nullable_float_array, - self->a_nullable_float_array_length) - : fl_value_new_null()); - fl_value_append_take( - values, - self->a_nullable_enum != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(*self->a_nullable_enum), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - fl_value_append_take( - values, - self->another_nullable_enum != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(*self->another_nullable_enum), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - fl_value_append_take(values, - self->a_nullable_string != nullptr - ? fl_value_new_string(self->a_nullable_string) - : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_object != nullptr - ? fl_value_ref(self->a_nullable_object) - : fl_value_new_null()); - fl_value_append_take( - values, self->all_nullable_types != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, - G_OBJECT(self->all_nullable_types)) - : fl_value_new_null()); - fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) - : fl_value_new_null()); - fl_value_append_take(values, self->string_list != nullptr - ? fl_value_ref(self->string_list) - : fl_value_new_null()); - fl_value_append_take(values, self->int_list != nullptr - ? fl_value_ref(self->int_list) - : fl_value_new_null()); - fl_value_append_take(values, self->double_list != nullptr - ? fl_value_ref(self->double_list) - : fl_value_new_null()); - fl_value_append_take(values, self->bool_list != nullptr - ? fl_value_ref(self->bool_list) - : fl_value_new_null()); - fl_value_append_take(values, self->enum_list != nullptr - ? fl_value_ref(self->enum_list) - : fl_value_new_null()); - fl_value_append_take(values, self->object_list != nullptr - ? fl_value_ref(self->object_list) - : fl_value_new_null()); - fl_value_append_take(values, self->list_list != nullptr - ? fl_value_ref(self->list_list) - : fl_value_new_null()); - fl_value_append_take(values, self->map_list != nullptr - ? fl_value_ref(self->map_list) - : fl_value_new_null()); - fl_value_append_take(values, self->recursive_class_list != nullptr - ? fl_value_ref(self->recursive_class_list) - : fl_value_new_null()); - fl_value_append_take(values, self->map != nullptr ? fl_value_ref(self->map) - : fl_value_new_null()); - fl_value_append_take(values, self->string_map != nullptr - ? fl_value_ref(self->string_map) - : fl_value_new_null()); - fl_value_append_take(values, self->int_map != nullptr - ? fl_value_ref(self->int_map) - : fl_value_new_null()); - fl_value_append_take(values, self->enum_map != nullptr - ? fl_value_ref(self->enum_map) - : fl_value_new_null()); - fl_value_append_take(values, self->object_map != nullptr - ? fl_value_ref(self->object_map) - : fl_value_new_null()); - fl_value_append_take(values, self->list_map != nullptr - ? fl_value_ref(self->list_map) - : fl_value_new_null()); - fl_value_append_take(values, self->map_map != nullptr - ? fl_value_ref(self->map_map) - : fl_value_new_null()); - fl_value_append_take(values, self->recursive_class_map != nullptr - ? fl_value_ref(self->recursive_class_map) - : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_bool != nullptr ? fl_value_new_bool(*self->a_nullable_bool) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_int != nullptr ? fl_value_new_int(*self->a_nullable_int) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_int64 != nullptr ? fl_value_new_int(*self->a_nullable_int64) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_double != nullptr ? fl_value_new_float(*self->a_nullable_double) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_byte_array != nullptr ? fl_value_new_uint8_list(self->a_nullable_byte_array, self->a_nullable_byte_array_length) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable4_byte_array != nullptr ? fl_value_new_int32_list(self->a_nullable4_byte_array, self->a_nullable4_byte_array_length) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable8_byte_array != nullptr ? fl_value_new_int64_list(self->a_nullable8_byte_array, self->a_nullable8_byte_array_length) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_float_array != nullptr ? fl_value_new_float_list(self->a_nullable_float_array, self->a_nullable_float_array_length) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + fl_value_append_take(values, self->another_nullable_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*self->another_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_string != nullptr ? fl_value_new_string(self->a_nullable_string) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_object != nullptr ? fl_value_ref(self->a_nullable_object) : fl_value_new_null()); + fl_value_append_take(values, self->all_nullable_types != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(self->all_nullable_types)) : fl_value_new_null()); + fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) : fl_value_new_null()); + fl_value_append_take(values, self->string_list != nullptr ? fl_value_ref(self->string_list) : fl_value_new_null()); + fl_value_append_take(values, self->int_list != nullptr ? fl_value_ref(self->int_list) : fl_value_new_null()); + fl_value_append_take(values, self->double_list != nullptr ? fl_value_ref(self->double_list) : fl_value_new_null()); + fl_value_append_take(values, self->bool_list != nullptr ? fl_value_ref(self->bool_list) : fl_value_new_null()); + fl_value_append_take(values, self->enum_list != nullptr ? fl_value_ref(self->enum_list) : fl_value_new_null()); + fl_value_append_take(values, self->object_list != nullptr ? fl_value_ref(self->object_list) : fl_value_new_null()); + fl_value_append_take(values, self->list_list != nullptr ? fl_value_ref(self->list_list) : fl_value_new_null()); + fl_value_append_take(values, self->map_list != nullptr ? fl_value_ref(self->map_list) : fl_value_new_null()); + fl_value_append_take(values, self->recursive_class_list != nullptr ? fl_value_ref(self->recursive_class_list) : fl_value_new_null()); + fl_value_append_take(values, self->map != nullptr ? fl_value_ref(self->map) : fl_value_new_null()); + fl_value_append_take(values, self->string_map != nullptr ? fl_value_ref(self->string_map) : fl_value_new_null()); + fl_value_append_take(values, self->int_map != nullptr ? fl_value_ref(self->int_map) : fl_value_new_null()); + fl_value_append_take(values, self->enum_map != nullptr ? fl_value_ref(self->enum_map) : fl_value_new_null()); + fl_value_append_take(values, self->object_map != nullptr ? fl_value_ref(self->object_map) : fl_value_new_null()); + fl_value_append_take(values, self->list_map != nullptr ? fl_value_ref(self->list_map) : fl_value_new_null()); + fl_value_append_take(values, self->map_map != nullptr ? fl_value_ref(self->map_map) : fl_value_new_null()); + fl_value_append_take(values, self->recursive_class_map != nullptr ? fl_value_ref(self->recursive_class_map) : fl_value_new_null()); return values; } -static CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { +static CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); gboolean* a_nullable_bool = nullptr; gboolean a_nullable_bool_value; @@ -1542,18 +1265,14 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { CoreTestsPigeonTestAnEnum* a_nullable_enum = nullptr; CoreTestsPigeonTestAnEnum a_nullable_enum_value; if (fl_value_get_type(value8) != FL_VALUE_TYPE_NULL) { - a_nullable_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value8))))); + a_nullable_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value8))))); a_nullable_enum = &a_nullable_enum_value; } FlValue* value9 = fl_value_get_list_value(values, 9); CoreTestsPigeonTestAnotherEnum* another_nullable_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_nullable_enum_value; if (fl_value_get_type(value9) != FL_VALUE_TYPE_NULL) { - another_nullable_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value9))))); + another_nullable_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value9))))); another_nullable_enum = &another_nullable_enum_value; } FlValue* value10 = fl_value_get_list_value(values, 10); @@ -1569,8 +1288,7 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { FlValue* value12 = fl_value_get_list_value(values, 12); CoreTestsPigeonTestAllNullableTypes* all_nullable_types = nullptr; if (fl_value_get_type(value12) != FL_VALUE_TYPE_NULL) { - all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value12)); + all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value12)); } FlValue* value13 = fl_value_get_list_value(values, 13); FlValue* list = nullptr; @@ -1662,104 +1380,53 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { if (fl_value_get_type(value30) != FL_VALUE_TYPE_NULL) { recursive_class_map = value30; } - return core_tests_pigeon_test_all_nullable_types_new( - a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, - a_nullable_byte_array, a_nullable_byte_array_length, - a_nullable4_byte_array, a_nullable4_byte_array_length, - a_nullable8_byte_array, a_nullable8_byte_array_length, - a_nullable_float_array, a_nullable_float_array_length, a_nullable_enum, - another_nullable_enum, a_nullable_string, a_nullable_object, - all_nullable_types, list, string_list, int_list, double_list, bool_list, - enum_list, object_list, list_list, map_list, recursive_class_list, map, - string_map, int_map, enum_map, object_map, list_map, map_map, - recursive_class_map); -} - -gboolean core_tests_pigeon_test_all_nullable_types_equals( - CoreTestsPigeonTestAllNullableTypes* a, - CoreTestsPigeonTestAllNullableTypes* b) { + return core_tests_pigeon_test_all_nullable_types_new(a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, a_nullable_byte_array, a_nullable_byte_array_length, a_nullable4_byte_array, a_nullable4_byte_array_length, a_nullable8_byte_array, a_nullable8_byte_array_length, a_nullable_float_array, a_nullable_float_array_length, a_nullable_enum, another_nullable_enum, a_nullable_string, a_nullable_object, all_nullable_types, list, string_list, int_list, double_list, bool_list, enum_list, object_list, list_list, map_list, recursive_class_list, map, string_map, int_map, enum_map, object_map, list_map, map_map, recursive_class_map); +} + +gboolean core_tests_pigeon_test_all_nullable_types_equals(CoreTestsPigeonTestAllNullableTypes* a, CoreTestsPigeonTestAllNullableTypes* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; - if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) - return FALSE; - if (a->a_nullable_bool != nullptr && - *a->a_nullable_bool != *b->a_nullable_bool) - return FALSE; - if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) - return FALSE; - if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) - return FALSE; - if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) - return FALSE; - if (a->a_nullable_int64 != nullptr && - *a->a_nullable_int64 != *b->a_nullable_int64) - return FALSE; - if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) - return FALSE; - if (a->a_nullable_double != nullptr && - !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) - return FALSE; + if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) return FALSE; + if (a->a_nullable_bool != nullptr && *a->a_nullable_bool != *b->a_nullable_bool) return FALSE; + if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) return FALSE; + if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) return FALSE; + if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) return FALSE; + if (a->a_nullable_int64 != nullptr && *a->a_nullable_int64 != *b->a_nullable_int64) return FALSE; + if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) return FALSE; + if (a->a_nullable_double != nullptr && !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) return FALSE; if (a->a_nullable_byte_array != b->a_nullable_byte_array) { - if (a->a_nullable_byte_array == nullptr || - b->a_nullable_byte_array == nullptr) - return FALSE; - if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) - return FALSE; - if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, - a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) - return FALSE; + if (a->a_nullable_byte_array == nullptr || b->a_nullable_byte_array == nullptr) return FALSE; + if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) return FALSE; + if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) return FALSE; } if (a->a_nullable4_byte_array != b->a_nullable4_byte_array) { - if (a->a_nullable4_byte_array == nullptr || - b->a_nullable4_byte_array == nullptr) - return FALSE; - if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) - return FALSE; - if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, - a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) - return FALSE; + if (a->a_nullable4_byte_array == nullptr || b->a_nullable4_byte_array == nullptr) return FALSE; + if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) return FALSE; + if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) return FALSE; } if (a->a_nullable8_byte_array != b->a_nullable8_byte_array) { - if (a->a_nullable8_byte_array == nullptr || - b->a_nullable8_byte_array == nullptr) - return FALSE; - if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) - return FALSE; - if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, - a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) - return FALSE; + if (a->a_nullable8_byte_array == nullptr || b->a_nullable8_byte_array == nullptr) return FALSE; + if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) return FALSE; + if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) return FALSE; } if (a->a_nullable_float_array != b->a_nullable_float_array) { - if (a->a_nullable_float_array == nullptr || - b->a_nullable_float_array == nullptr) - return FALSE; - if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) - return FALSE; + if (a->a_nullable_float_array == nullptr || b->a_nullable_float_array == nullptr) return FALSE; + if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) return FALSE; for (size_t i = 0; i < a->a_nullable_float_array_length; i++) { - if (!flpigeon_equals_double(a->a_nullable_float_array[i], - b->a_nullable_float_array[i])) - return FALSE; + if (!flpigeon_equals_double(a->a_nullable_float_array[i], b->a_nullable_float_array[i])) return FALSE; } } - if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) - return FALSE; - if (a->a_nullable_enum != nullptr && - *a->a_nullable_enum != *b->a_nullable_enum) - return FALSE; - if ((a->another_nullable_enum == nullptr) != - (b->another_nullable_enum == nullptr)) - return FALSE; - if (a->another_nullable_enum != nullptr && - *a->another_nullable_enum != *b->another_nullable_enum) - return FALSE; + if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) return FALSE; + if (a->a_nullable_enum != nullptr && *a->a_nullable_enum != *b->a_nullable_enum) return FALSE; + if ((a->another_nullable_enum == nullptr) != (b->another_nullable_enum == nullptr)) return FALSE; + if (a->another_nullable_enum != nullptr && *a->another_nullable_enum != *b->another_nullable_enum) return FALSE; if (g_strcmp0(a->a_nullable_string, b->a_nullable_string) != 0) { return FALSE; } if (!flpigeon_deep_equals(a->a_nullable_object, b->a_nullable_object)) { return FALSE; } - if (!core_tests_pigeon_test_all_nullable_types_equals( - a->all_nullable_types, b->all_nullable_types)) { + if (!core_tests_pigeon_test_all_nullable_types_equals(a->all_nullable_types, b->all_nullable_types)) { return FALSE; } if (!flpigeon_deep_equals(a->list, b->list)) { @@ -1819,21 +1486,13 @@ gboolean core_tests_pigeon_test_all_nullable_types_equals( return TRUE; } -guint core_tests_pigeon_test_all_nullable_types_hash( - CoreTestsPigeonTestAllNullableTypes* self) { +guint core_tests_pigeon_test_all_nullable_types_hash(CoreTestsPigeonTestAllNullableTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), 0); guint result = 0; - result = - result * 31 + - (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); - result = result * 31 + - (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); - result = - result * 31 + - (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); - result = result * 31 + (self->a_nullable_double != nullptr - ? flpigeon_hash_double(*self->a_nullable_double) - : 0); + result = result * 31 + (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); + result = result * 31 + (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); + result = result * 31 + (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); + result = result * 31 + (self->a_nullable_double != nullptr ? flpigeon_hash_double(*self->a_nullable_double) : 0); { size_t len = self->a_nullable_byte_array_length; const uint8_t* data = self->a_nullable_byte_array; @@ -1870,18 +1529,11 @@ guint core_tests_pigeon_test_all_nullable_types_hash( } } } - result = - result * 31 + - (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); - result = result * 31 + (self->another_nullable_enum != nullptr - ? (guint)*self->another_nullable_enum - : 0); - result = result * 31 + (self->a_nullable_string != nullptr - ? g_str_hash(self->a_nullable_string) - : 0); + result = result * 31 + (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); + result = result * 31 + (self->another_nullable_enum != nullptr ? (guint)*self->another_nullable_enum : 0); + result = result * 31 + (self->a_nullable_string != nullptr ? g_str_hash(self->a_nullable_string) : 0); result = result * 31 + flpigeon_deep_hash(self->a_nullable_object); - result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash( - self->all_nullable_types); + result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash(self->all_nullable_types); result = result * 31 + flpigeon_deep_hash(self->list); result = result * 31 + flpigeon_deep_hash(self->string_list); result = result * 31 + flpigeon_deep_hash(self->int_list); @@ -1940,14 +1592,10 @@ struct _CoreTestsPigeonTestAllNullableTypesWithoutRecursion { FlValue* map_map; }; -G_DEFINE_TYPE(CoreTestsPigeonTestAllNullableTypesWithoutRecursion, - core_tests_pigeon_test_all_nullable_types_without_recursion, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestAllNullableTypesWithoutRecursion, core_tests_pigeon_test_all_nullable_types_without_recursion, G_TYPE_OBJECT) -static void core_tests_pigeon_test_all_nullable_types_without_recursion_dispose( - GObject* object) { - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(object); +static void core_tests_pigeon_test_all_nullable_types_without_recursion_dispose(GObject* object) { + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(object); g_clear_pointer(&self->a_nullable_bool, g_free); g_clear_pointer(&self->a_nullable_int, g_free); g_clear_pointer(&self->a_nullable_int64, g_free); @@ -1972,575 +1620,381 @@ static void core_tests_pigeon_test_all_nullable_types_without_recursion_dispose( g_clear_pointer(&self->object_map, fl_value_unref); g_clear_pointer(&self->list_map, fl_value_unref); g_clear_pointer(&self->map_map, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_all_nullable_types_without_recursion_parent_class) - ->dispose(object); -} - -static void core_tests_pigeon_test_all_nullable_types_without_recursion_init( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) {} - -static void -core_tests_pigeon_test_all_nullable_types_without_recursion_class_init( - CoreTestsPigeonTestAllNullableTypesWithoutRecursionClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_all_nullable_types_without_recursion_dispose; -} - -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_all_nullable_types_without_recursion_new( - gboolean* a_nullable_bool, int64_t* a_nullable_int, - int64_t* a_nullable_int64, double* a_nullable_double, - const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, - const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, - const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, - const double* a_nullable_float_array, size_t a_nullable_float_array_length, - CoreTestsPigeonTestAnEnum* a_nullable_enum, - CoreTestsPigeonTestAnotherEnum* another_nullable_enum, - const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, - FlValue* string_list, FlValue* int_list, FlValue* double_list, - FlValue* bool_list, FlValue* enum_list, FlValue* object_list, - FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, - FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, - FlValue* map_map) { - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(g_object_new( - core_tests_pigeon_test_all_nullable_types_without_recursion_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_all_nullable_types_without_recursion_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_all_nullable_types_without_recursion_init(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { +} + +static void core_tests_pigeon_test_all_nullable_types_without_recursion_class_init(CoreTestsPigeonTestAllNullableTypesWithoutRecursionClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_all_nullable_types_without_recursion_dispose; +} + +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_nullable_types_without_recursion_new(gboolean* a_nullable_bool, int64_t* a_nullable_int, int64_t* a_nullable_int64, double* a_nullable_double, const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, const double* a_nullable_float_array, size_t a_nullable_float_array_length, CoreTestsPigeonTestAnEnum* a_nullable_enum, CoreTestsPigeonTestAnotherEnum* another_nullable_enum, const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map) { + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(g_object_new(core_tests_pigeon_test_all_nullable_types_without_recursion_get_type(), nullptr)); if (a_nullable_bool != nullptr) { self->a_nullable_bool = static_cast(malloc(sizeof(gboolean))); *self->a_nullable_bool = *a_nullable_bool; - } else { + } + else { self->a_nullable_bool = nullptr; } if (a_nullable_int != nullptr) { self->a_nullable_int = static_cast(malloc(sizeof(int64_t))); *self->a_nullable_int = *a_nullable_int; - } else { + } + else { self->a_nullable_int = nullptr; } if (a_nullable_int64 != nullptr) { self->a_nullable_int64 = static_cast(malloc(sizeof(int64_t))); *self->a_nullable_int64 = *a_nullable_int64; - } else { + } + else { self->a_nullable_int64 = nullptr; } if (a_nullable_double != nullptr) { self->a_nullable_double = static_cast(malloc(sizeof(double))); *self->a_nullable_double = *a_nullable_double; - } else { + } + else { self->a_nullable_double = nullptr; } if (a_nullable_byte_array != nullptr) { - self->a_nullable_byte_array = static_cast( - memcpy(malloc(a_nullable_byte_array_length), a_nullable_byte_array, - a_nullable_byte_array_length)); + self->a_nullable_byte_array = static_cast(memcpy(malloc(a_nullable_byte_array_length), a_nullable_byte_array, a_nullable_byte_array_length)); self->a_nullable_byte_array_length = a_nullable_byte_array_length; - } else { + } + else { self->a_nullable_byte_array = nullptr; self->a_nullable_byte_array_length = 0; } if (a_nullable4_byte_array != nullptr) { - self->a_nullable4_byte_array = static_cast( - memcpy(malloc(sizeof(int32_t) * a_nullable4_byte_array_length), - a_nullable4_byte_array, - sizeof(int32_t) * a_nullable4_byte_array_length)); + self->a_nullable4_byte_array = static_cast(memcpy(malloc(sizeof(int32_t) * a_nullable4_byte_array_length), a_nullable4_byte_array, sizeof(int32_t) * a_nullable4_byte_array_length)); self->a_nullable4_byte_array_length = a_nullable4_byte_array_length; - } else { + } + else { self->a_nullable4_byte_array = nullptr; self->a_nullable4_byte_array_length = 0; } if (a_nullable8_byte_array != nullptr) { - self->a_nullable8_byte_array = static_cast( - memcpy(malloc(sizeof(int64_t) * a_nullable8_byte_array_length), - a_nullable8_byte_array, - sizeof(int64_t) * a_nullable8_byte_array_length)); + self->a_nullable8_byte_array = static_cast(memcpy(malloc(sizeof(int64_t) * a_nullable8_byte_array_length), a_nullable8_byte_array, sizeof(int64_t) * a_nullable8_byte_array_length)); self->a_nullable8_byte_array_length = a_nullable8_byte_array_length; - } else { + } + else { self->a_nullable8_byte_array = nullptr; self->a_nullable8_byte_array_length = 0; } if (a_nullable_float_array != nullptr) { - self->a_nullable_float_array = static_cast( - memcpy(malloc(sizeof(double) * a_nullable_float_array_length), - a_nullable_float_array, - sizeof(double) * a_nullable_float_array_length)); + self->a_nullable_float_array = static_cast(memcpy(malloc(sizeof(double) * a_nullable_float_array_length), a_nullable_float_array, sizeof(double) * a_nullable_float_array_length)); self->a_nullable_float_array_length = a_nullable_float_array_length; - } else { + } + else { self->a_nullable_float_array = nullptr; self->a_nullable_float_array_length = 0; } if (a_nullable_enum != nullptr) { - self->a_nullable_enum = static_cast( - malloc(sizeof(CoreTestsPigeonTestAnEnum))); + self->a_nullable_enum = static_cast(malloc(sizeof(CoreTestsPigeonTestAnEnum))); *self->a_nullable_enum = *a_nullable_enum; - } else { + } + else { self->a_nullable_enum = nullptr; } if (another_nullable_enum != nullptr) { - self->another_nullable_enum = static_cast( - malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); + self->another_nullable_enum = static_cast(malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); *self->another_nullable_enum = *another_nullable_enum; - } else { + } + else { self->another_nullable_enum = nullptr; } if (a_nullable_string != nullptr) { self->a_nullable_string = g_strdup(a_nullable_string); - } else { + } + else { self->a_nullable_string = nullptr; } if (a_nullable_object != nullptr) { self->a_nullable_object = fl_value_ref(a_nullable_object); - } else { + } + else { self->a_nullable_object = nullptr; } if (list != nullptr) { self->list = fl_value_ref(list); - } else { + } + else { self->list = nullptr; } if (string_list != nullptr) { self->string_list = fl_value_ref(string_list); - } else { + } + else { self->string_list = nullptr; } if (int_list != nullptr) { self->int_list = fl_value_ref(int_list); - } else { + } + else { self->int_list = nullptr; } if (double_list != nullptr) { self->double_list = fl_value_ref(double_list); - } else { + } + else { self->double_list = nullptr; } if (bool_list != nullptr) { self->bool_list = fl_value_ref(bool_list); - } else { + } + else { self->bool_list = nullptr; } if (enum_list != nullptr) { self->enum_list = fl_value_ref(enum_list); - } else { + } + else { self->enum_list = nullptr; } if (object_list != nullptr) { self->object_list = fl_value_ref(object_list); - } else { + } + else { self->object_list = nullptr; } if (list_list != nullptr) { self->list_list = fl_value_ref(list_list); - } else { + } + else { self->list_list = nullptr; } if (map_list != nullptr) { self->map_list = fl_value_ref(map_list); - } else { + } + else { self->map_list = nullptr; } if (map != nullptr) { self->map = fl_value_ref(map); - } else { + } + else { self->map = nullptr; } if (string_map != nullptr) { self->string_map = fl_value_ref(string_map); - } else { + } + else { self->string_map = nullptr; } if (int_map != nullptr) { self->int_map = fl_value_ref(int_map); - } else { + } + else { self->int_map = nullptr; } if (enum_map != nullptr) { self->enum_map = fl_value_ref(enum_map); - } else { + } + else { self->enum_map = nullptr; } if (object_map != nullptr) { self->object_map = fl_value_ref(object_map); - } else { + } + else { self->object_map = nullptr; } if (list_map != nullptr) { self->list_map = fl_value_ref(list_map); - } else { + } + else { self->list_map = nullptr; } if (map_map != nullptr) { self->map_map = fl_value_ref(map_map); - } else { + } + else { self->map_map = nullptr; } return self; } -gboolean* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +gboolean* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->a_nullable_bool; } -int64_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->a_nullable_int; } -int64_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->a_nullable_int64; } -double* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->a_nullable_double; } -const uint8_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +const uint8_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); *length = self->a_nullable_byte_array_length; return self->a_nullable_byte_array; } -const int32_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +const int32_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); *length = self->a_nullable4_byte_array_length; return self->a_nullable4_byte_array; } -const int64_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +const int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); *length = self->a_nullable8_byte_array_length; return self->a_nullable8_byte_array; } -const double* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +const double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); *length = self->a_nullable_float_array_length; return self->a_nullable_float_array; } -CoreTestsPigeonTestAnEnum* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->a_nullable_enum; } -CoreTestsPigeonTestAnotherEnum* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->another_nullable_enum; } -const gchar* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +const gchar* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->a_nullable_string; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->a_nullable_object; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->list; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->string_list; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->int_list; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->double_list; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->bool_list; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->enum_list; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->object_list; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->list_list; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->map_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->map; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->string_map; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->int_map; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->enum_map; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->object_map; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->list_map; } -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), - nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); return self->map_map; } -static FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { +static FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_to_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, self->a_nullable_bool != nullptr - ? fl_value_new_bool(*self->a_nullable_bool) - : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_int != nullptr - ? fl_value_new_int(*self->a_nullable_int) - : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_int64 != nullptr - ? fl_value_new_int(*self->a_nullable_int64) - : fl_value_new_null()); - fl_value_append_take(values, - self->a_nullable_double != nullptr - ? fl_value_new_float(*self->a_nullable_double) - : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable_byte_array != nullptr - ? fl_value_new_uint8_list(self->a_nullable_byte_array, - self->a_nullable_byte_array_length) - : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable4_byte_array != nullptr - ? fl_value_new_int32_list(self->a_nullable4_byte_array, - self->a_nullable4_byte_array_length) - : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable8_byte_array != nullptr - ? fl_value_new_int64_list(self->a_nullable8_byte_array, - self->a_nullable8_byte_array_length) - : fl_value_new_null()); - fl_value_append_take( - values, self->a_nullable_float_array != nullptr - ? fl_value_new_float_list(self->a_nullable_float_array, - self->a_nullable_float_array_length) - : fl_value_new_null()); - fl_value_append_take( - values, - self->a_nullable_enum != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(*self->a_nullable_enum), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - fl_value_append_take( - values, - self->another_nullable_enum != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(*self->another_nullable_enum), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - fl_value_append_take(values, - self->a_nullable_string != nullptr - ? fl_value_new_string(self->a_nullable_string) - : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_object != nullptr - ? fl_value_ref(self->a_nullable_object) - : fl_value_new_null()); - fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) - : fl_value_new_null()); - fl_value_append_take(values, self->string_list != nullptr - ? fl_value_ref(self->string_list) - : fl_value_new_null()); - fl_value_append_take(values, self->int_list != nullptr - ? fl_value_ref(self->int_list) - : fl_value_new_null()); - fl_value_append_take(values, self->double_list != nullptr - ? fl_value_ref(self->double_list) - : fl_value_new_null()); - fl_value_append_take(values, self->bool_list != nullptr - ? fl_value_ref(self->bool_list) - : fl_value_new_null()); - fl_value_append_take(values, self->enum_list != nullptr - ? fl_value_ref(self->enum_list) - : fl_value_new_null()); - fl_value_append_take(values, self->object_list != nullptr - ? fl_value_ref(self->object_list) - : fl_value_new_null()); - fl_value_append_take(values, self->list_list != nullptr - ? fl_value_ref(self->list_list) - : fl_value_new_null()); - fl_value_append_take(values, self->map_list != nullptr - ? fl_value_ref(self->map_list) - : fl_value_new_null()); - fl_value_append_take(values, self->map != nullptr ? fl_value_ref(self->map) - : fl_value_new_null()); - fl_value_append_take(values, self->string_map != nullptr - ? fl_value_ref(self->string_map) - : fl_value_new_null()); - fl_value_append_take(values, self->int_map != nullptr - ? fl_value_ref(self->int_map) - : fl_value_new_null()); - fl_value_append_take(values, self->enum_map != nullptr - ? fl_value_ref(self->enum_map) - : fl_value_new_null()); - fl_value_append_take(values, self->object_map != nullptr - ? fl_value_ref(self->object_map) - : fl_value_new_null()); - fl_value_append_take(values, self->list_map != nullptr - ? fl_value_ref(self->list_map) - : fl_value_new_null()); - fl_value_append_take(values, self->map_map != nullptr - ? fl_value_ref(self->map_map) - : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_bool != nullptr ? fl_value_new_bool(*self->a_nullable_bool) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_int != nullptr ? fl_value_new_int(*self->a_nullable_int) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_int64 != nullptr ? fl_value_new_int(*self->a_nullable_int64) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_double != nullptr ? fl_value_new_float(*self->a_nullable_double) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_byte_array != nullptr ? fl_value_new_uint8_list(self->a_nullable_byte_array, self->a_nullable_byte_array_length) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable4_byte_array != nullptr ? fl_value_new_int32_list(self->a_nullable4_byte_array, self->a_nullable4_byte_array_length) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable8_byte_array != nullptr ? fl_value_new_int64_list(self->a_nullable8_byte_array, self->a_nullable8_byte_array_length) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_float_array != nullptr ? fl_value_new_float_list(self->a_nullable_float_array, self->a_nullable_float_array_length) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + fl_value_append_take(values, self->another_nullable_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*self->another_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_string != nullptr ? fl_value_new_string(self->a_nullable_string) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_object != nullptr ? fl_value_ref(self->a_nullable_object) : fl_value_new_null()); + fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) : fl_value_new_null()); + fl_value_append_take(values, self->string_list != nullptr ? fl_value_ref(self->string_list) : fl_value_new_null()); + fl_value_append_take(values, self->int_list != nullptr ? fl_value_ref(self->int_list) : fl_value_new_null()); + fl_value_append_take(values, self->double_list != nullptr ? fl_value_ref(self->double_list) : fl_value_new_null()); + fl_value_append_take(values, self->bool_list != nullptr ? fl_value_ref(self->bool_list) : fl_value_new_null()); + fl_value_append_take(values, self->enum_list != nullptr ? fl_value_ref(self->enum_list) : fl_value_new_null()); + fl_value_append_take(values, self->object_list != nullptr ? fl_value_ref(self->object_list) : fl_value_new_null()); + fl_value_append_take(values, self->list_list != nullptr ? fl_value_ref(self->list_list) : fl_value_new_null()); + fl_value_append_take(values, self->map_list != nullptr ? fl_value_ref(self->map_list) : fl_value_new_null()); + fl_value_append_take(values, self->map != nullptr ? fl_value_ref(self->map) : fl_value_new_null()); + fl_value_append_take(values, self->string_map != nullptr ? fl_value_ref(self->string_map) : fl_value_new_null()); + fl_value_append_take(values, self->int_map != nullptr ? fl_value_ref(self->int_map) : fl_value_new_null()); + fl_value_append_take(values, self->enum_map != nullptr ? fl_value_ref(self->enum_map) : fl_value_new_null()); + fl_value_append_take(values, self->object_map != nullptr ? fl_value_ref(self->object_map) : fl_value_new_null()); + fl_value_append_take(values, self->list_map != nullptr ? fl_value_ref(self->list_map) : fl_value_new_null()); + fl_value_append_take(values, self->map_map != nullptr ? fl_value_ref(self->map_map) : fl_value_new_null()); return values; } -static CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( - FlValue* values) { +static CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); gboolean* a_nullable_bool = nullptr; gboolean a_nullable_bool_value; @@ -2601,18 +2055,14 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( CoreTestsPigeonTestAnEnum* a_nullable_enum = nullptr; CoreTestsPigeonTestAnEnum a_nullable_enum_value; if (fl_value_get_type(value8) != FL_VALUE_TYPE_NULL) { - a_nullable_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value8))))); + a_nullable_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value8))))); a_nullable_enum = &a_nullable_enum_value; } FlValue* value9 = fl_value_get_list_value(values, 9); CoreTestsPigeonTestAnotherEnum* another_nullable_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_nullable_enum_value; if (fl_value_get_type(value9) != FL_VALUE_TYPE_NULL) { - another_nullable_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value9))))); + another_nullable_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value9))))); another_nullable_enum = &another_nullable_enum_value; } FlValue* value10 = fl_value_get_list_value(values, 10); @@ -2705,95 +2155,46 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( if (fl_value_get_type(value27) != FL_VALUE_TYPE_NULL) { map_map = value27; } - return core_tests_pigeon_test_all_nullable_types_without_recursion_new( - a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, - a_nullable_byte_array, a_nullable_byte_array_length, - a_nullable4_byte_array, a_nullable4_byte_array_length, - a_nullable8_byte_array, a_nullable8_byte_array_length, - a_nullable_float_array, a_nullable_float_array_length, a_nullable_enum, - another_nullable_enum, a_nullable_string, a_nullable_object, list, - string_list, int_list, double_list, bool_list, enum_list, object_list, - list_list, map_list, map, string_map, int_map, enum_map, object_map, - list_map, map_map); -} - -gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b) { + return core_tests_pigeon_test_all_nullable_types_without_recursion_new(a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, a_nullable_byte_array, a_nullable_byte_array_length, a_nullable4_byte_array, a_nullable4_byte_array_length, a_nullable8_byte_array, a_nullable8_byte_array_length, a_nullable_float_array, a_nullable_float_array_length, a_nullable_enum, another_nullable_enum, a_nullable_string, a_nullable_object, list, string_list, int_list, double_list, bool_list, enum_list, object_list, list_list, map_list, map, string_map, int_map, enum_map, object_map, list_map, map_map); +} + +gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; - if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) - return FALSE; - if (a->a_nullable_bool != nullptr && - *a->a_nullable_bool != *b->a_nullable_bool) - return FALSE; - if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) - return FALSE; - if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) - return FALSE; - if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) - return FALSE; - if (a->a_nullable_int64 != nullptr && - *a->a_nullable_int64 != *b->a_nullable_int64) - return FALSE; - if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) - return FALSE; - if (a->a_nullable_double != nullptr && - !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) - return FALSE; + if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) return FALSE; + if (a->a_nullable_bool != nullptr && *a->a_nullable_bool != *b->a_nullable_bool) return FALSE; + if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) return FALSE; + if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) return FALSE; + if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) return FALSE; + if (a->a_nullable_int64 != nullptr && *a->a_nullable_int64 != *b->a_nullable_int64) return FALSE; + if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) return FALSE; + if (a->a_nullable_double != nullptr && !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) return FALSE; if (a->a_nullable_byte_array != b->a_nullable_byte_array) { - if (a->a_nullable_byte_array == nullptr || - b->a_nullable_byte_array == nullptr) - return FALSE; - if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) - return FALSE; - if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, - a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) - return FALSE; + if (a->a_nullable_byte_array == nullptr || b->a_nullable_byte_array == nullptr) return FALSE; + if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) return FALSE; + if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) return FALSE; } if (a->a_nullable4_byte_array != b->a_nullable4_byte_array) { - if (a->a_nullable4_byte_array == nullptr || - b->a_nullable4_byte_array == nullptr) - return FALSE; - if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) - return FALSE; - if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, - a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) - return FALSE; + if (a->a_nullable4_byte_array == nullptr || b->a_nullable4_byte_array == nullptr) return FALSE; + if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) return FALSE; + if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) return FALSE; } if (a->a_nullable8_byte_array != b->a_nullable8_byte_array) { - if (a->a_nullable8_byte_array == nullptr || - b->a_nullable8_byte_array == nullptr) - return FALSE; - if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) - return FALSE; - if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, - a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) - return FALSE; + if (a->a_nullable8_byte_array == nullptr || b->a_nullable8_byte_array == nullptr) return FALSE; + if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) return FALSE; + if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) return FALSE; } if (a->a_nullable_float_array != b->a_nullable_float_array) { - if (a->a_nullable_float_array == nullptr || - b->a_nullable_float_array == nullptr) - return FALSE; - if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) - return FALSE; + if (a->a_nullable_float_array == nullptr || b->a_nullable_float_array == nullptr) return FALSE; + if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) return FALSE; for (size_t i = 0; i < a->a_nullable_float_array_length; i++) { - if (!flpigeon_equals_double(a->a_nullable_float_array[i], - b->a_nullable_float_array[i])) - return FALSE; + if (!flpigeon_equals_double(a->a_nullable_float_array[i], b->a_nullable_float_array[i])) return FALSE; } } - if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) - return FALSE; - if (a->a_nullable_enum != nullptr && - *a->a_nullable_enum != *b->a_nullable_enum) - return FALSE; - if ((a->another_nullable_enum == nullptr) != - (b->another_nullable_enum == nullptr)) - return FALSE; - if (a->another_nullable_enum != nullptr && - *a->another_nullable_enum != *b->another_nullable_enum) - return FALSE; + if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) return FALSE; + if (a->a_nullable_enum != nullptr && *a->a_nullable_enum != *b->a_nullable_enum) return FALSE; + if ((a->another_nullable_enum == nullptr) != (b->another_nullable_enum == nullptr)) return FALSE; + if (a->another_nullable_enum != nullptr && *a->another_nullable_enum != *b->another_nullable_enum) return FALSE; if (g_strcmp0(a->a_nullable_string, b->a_nullable_string) != 0) { return FALSE; } @@ -2851,22 +2252,13 @@ gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( return TRUE; } -guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), 0); +guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), 0); guint result = 0; - result = - result * 31 + - (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); - result = result * 31 + - (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); - result = - result * 31 + - (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); - result = result * 31 + (self->a_nullable_double != nullptr - ? flpigeon_hash_double(*self->a_nullable_double) - : 0); + result = result * 31 + (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); + result = result * 31 + (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); + result = result * 31 + (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); + result = result * 31 + (self->a_nullable_double != nullptr ? flpigeon_hash_double(*self->a_nullable_double) : 0); { size_t len = self->a_nullable_byte_array_length; const uint8_t* data = self->a_nullable_byte_array; @@ -2903,15 +2295,9 @@ guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( } } } - result = - result * 31 + - (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); - result = result * 31 + (self->another_nullable_enum != nullptr - ? (guint)*self->another_nullable_enum - : 0); - result = result * 31 + (self->a_nullable_string != nullptr - ? g_str_hash(self->a_nullable_string) - : 0); + result = result * 31 + (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); + result = result * 31 + (self->another_nullable_enum != nullptr ? (guint)*self->another_nullable_enum : 0); + result = result * 31 + (self->a_nullable_string != nullptr ? g_str_hash(self->a_nullable_string) : 0); result = result * 31 + flpigeon_deep_hash(self->a_nullable_object); result = result * 31 + flpigeon_deep_hash(self->list); result = result * 31 + flpigeon_deep_hash(self->string_list); @@ -2936,8 +2322,7 @@ struct _CoreTestsPigeonTestAllClassesWrapper { GObject parent_instance; CoreTestsPigeonTestAllNullableTypes* all_nullable_types; - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* - all_nullable_types_without_recursion; + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* all_nullable_types_without_recursion; CoreTestsPigeonTestAllTypes* all_types; FlValue* class_list; FlValue* nullable_class_list; @@ -2945,13 +2330,10 @@ struct _CoreTestsPigeonTestAllClassesWrapper { FlValue* nullable_class_map; }; -G_DEFINE_TYPE(CoreTestsPigeonTestAllClassesWrapper, - core_tests_pigeon_test_all_classes_wrapper, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestAllClassesWrapper, core_tests_pigeon_test_all_classes_wrapper, G_TYPE_OBJECT) -static void core_tests_pigeon_test_all_classes_wrapper_dispose( - GObject* object) { - CoreTestsPigeonTestAllClassesWrapper* self = - CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(object); +static void core_tests_pigeon_test_all_classes_wrapper_dispose(GObject* object) { + CoreTestsPigeonTestAllClassesWrapper* self = CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(object); g_clear_object(&self->all_nullable_types); g_clear_object(&self->all_nullable_types_without_recursion); g_clear_object(&self->all_types); @@ -2959,161 +2341,107 @@ static void core_tests_pigeon_test_all_classes_wrapper_dispose( g_clear_pointer(&self->nullable_class_list, fl_value_unref); g_clear_pointer(&self->class_map, fl_value_unref); g_clear_pointer(&self->nullable_class_map, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_all_classes_wrapper_parent_class) - ->dispose(object); -} - -static void core_tests_pigeon_test_all_classes_wrapper_init( - CoreTestsPigeonTestAllClassesWrapper* self) {} - -static void core_tests_pigeon_test_all_classes_wrapper_class_init( - CoreTestsPigeonTestAllClassesWrapperClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_all_classes_wrapper_dispose; -} - -CoreTestsPigeonTestAllClassesWrapper* -core_tests_pigeon_test_all_classes_wrapper_new( - CoreTestsPigeonTestAllNullableTypes* all_nullable_types, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* - all_nullable_types_without_recursion, - CoreTestsPigeonTestAllTypes* all_types, FlValue* class_list, - FlValue* nullable_class_list, FlValue* class_map, - FlValue* nullable_class_map) { - CoreTestsPigeonTestAllClassesWrapper* self = - CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(g_object_new( - core_tests_pigeon_test_all_classes_wrapper_get_type(), nullptr)); - self->all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - g_object_ref(all_nullable_types)); + G_OBJECT_CLASS(core_tests_pigeon_test_all_classes_wrapper_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_all_classes_wrapper_init(CoreTestsPigeonTestAllClassesWrapper* self) { +} + +static void core_tests_pigeon_test_all_classes_wrapper_class_init(CoreTestsPigeonTestAllClassesWrapperClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_all_classes_wrapper_dispose; +} + +CoreTestsPigeonTestAllClassesWrapper* core_tests_pigeon_test_all_classes_wrapper_new(CoreTestsPigeonTestAllNullableTypes* all_nullable_types, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* all_nullable_types_without_recursion, CoreTestsPigeonTestAllTypes* all_types, FlValue* class_list, FlValue* nullable_class_list, FlValue* class_map, FlValue* nullable_class_map) { + CoreTestsPigeonTestAllClassesWrapper* self = CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(g_object_new(core_tests_pigeon_test_all_classes_wrapper_get_type(), nullptr)); + self->all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(g_object_ref(all_nullable_types)); if (all_nullable_types_without_recursion != nullptr) { - self->all_nullable_types_without_recursion = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - g_object_ref(all_nullable_types_without_recursion)); - } else { + self->all_nullable_types_without_recursion = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(g_object_ref(all_nullable_types_without_recursion)); + } + else { self->all_nullable_types_without_recursion = nullptr; } if (all_types != nullptr) { self->all_types = CORE_TESTS_PIGEON_TEST_ALL_TYPES(g_object_ref(all_types)); - } else { + } + else { self->all_types = nullptr; } self->class_list = fl_value_ref(class_list); if (nullable_class_list != nullptr) { self->nullable_class_list = fl_value_ref(nullable_class_list); - } else { + } + else { self->nullable_class_list = nullptr; } self->class_map = fl_value_ref(class_map); if (nullable_class_map != nullptr) { self->nullable_class_map = fl_value_ref(nullable_class_map); - } else { + } + else { self->nullable_class_map = nullptr; } return self; } -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types( - CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), - nullptr); +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types(CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); return self->all_nullable_types; } -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion( - CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), - nullptr); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion(CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); return self->all_nullable_types_without_recursion; } -CoreTestsPigeonTestAllTypes* -core_tests_pigeon_test_all_classes_wrapper_get_all_types( - CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), - nullptr); +CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_types(CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); return self->all_types; } -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list( - CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), - nullptr); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list(CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); return self->class_list; } -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list( - CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), - nullptr); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list(CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); return self->nullable_class_list; } -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map( - CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), - nullptr); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map(CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); return self->class_map; } -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map( - CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), - nullptr); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map(CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); return self->nullable_class_map; } -static FlValue* core_tests_pigeon_test_all_classes_wrapper_to_list( - CoreTestsPigeonTestAllClassesWrapper* self) { +static FlValue* core_tests_pigeon_test_all_classes_wrapper_to_list(CoreTestsPigeonTestAllClassesWrapper* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, - fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, - G_OBJECT(self->all_nullable_types))); - fl_value_append_take( - values, - self->all_nullable_types_without_recursion != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, - G_OBJECT(self->all_nullable_types_without_recursion)) - : fl_value_new_null()); - fl_value_append_take( - values, - self->all_types != nullptr - ? fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, - G_OBJECT(self->all_types)) - : fl_value_new_null()); + fl_value_append_take(values, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(self->all_nullable_types))); + fl_value_append_take(values, self->all_nullable_types_without_recursion != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(self->all_nullable_types_without_recursion)) : fl_value_new_null()); + fl_value_append_take(values, self->all_types != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(self->all_types)) : fl_value_new_null()); fl_value_append_take(values, fl_value_ref(self->class_list)); - fl_value_append_take(values, self->nullable_class_list != nullptr - ? fl_value_ref(self->nullable_class_list) - : fl_value_new_null()); + fl_value_append_take(values, self->nullable_class_list != nullptr ? fl_value_ref(self->nullable_class_list) : fl_value_new_null()); fl_value_append_take(values, fl_value_ref(self->class_map)); - fl_value_append_take(values, self->nullable_class_map != nullptr - ? fl_value_ref(self->nullable_class_map) - : fl_value_new_null()); + fl_value_append_take(values, self->nullable_class_map != nullptr ? fl_value_ref(self->nullable_class_map) : fl_value_new_null()); return values; } -static CoreTestsPigeonTestAllClassesWrapper* -core_tests_pigeon_test_all_classes_wrapper_new_from_list(FlValue* values) { +static CoreTestsPigeonTestAllClassesWrapper* core_tests_pigeon_test_all_classes_wrapper_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); - CoreTestsPigeonTestAllNullableTypes* all_nullable_types = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value0)); + CoreTestsPigeonTestAllNullableTypes* all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); FlValue* value1 = fl_value_get_list_value(values, 1); - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* - all_nullable_types_without_recursion = nullptr; + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* all_nullable_types_without_recursion = nullptr; if (fl_value_get_type(value1) != FL_VALUE_TYPE_NULL) { - all_nullable_types_without_recursion = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(value1)); + all_nullable_types_without_recursion = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value1)); } FlValue* value2 = fl_value_get_list_value(values, 2); CoreTestsPigeonTestAllTypes* all_types = nullptr; if (fl_value_get_type(value2) != FL_VALUE_TYPE_NULL) { - all_types = CORE_TESTS_PIGEON_TEST_ALL_TYPES( - fl_value_get_custom_value_object(value2)); + all_types = CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value2)); } FlValue* value3 = fl_value_get_list_value(values, 3); FlValue* class_list = value3; @@ -3129,23 +2457,16 @@ core_tests_pigeon_test_all_classes_wrapper_new_from_list(FlValue* values) { if (fl_value_get_type(value6) != FL_VALUE_TYPE_NULL) { nullable_class_map = value6; } - return core_tests_pigeon_test_all_classes_wrapper_new( - all_nullable_types, all_nullable_types_without_recursion, all_types, - class_list, nullable_class_list, class_map, nullable_class_map); + return core_tests_pigeon_test_all_classes_wrapper_new(all_nullable_types, all_nullable_types_without_recursion, all_types, class_list, nullable_class_list, class_map, nullable_class_map); } -gboolean core_tests_pigeon_test_all_classes_wrapper_equals( - CoreTestsPigeonTestAllClassesWrapper* a, - CoreTestsPigeonTestAllClassesWrapper* b) { +gboolean core_tests_pigeon_test_all_classes_wrapper_equals(CoreTestsPigeonTestAllClassesWrapper* a, CoreTestsPigeonTestAllClassesWrapper* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; - if (!core_tests_pigeon_test_all_nullable_types_equals( - a->all_nullable_types, b->all_nullable_types)) { + if (!core_tests_pigeon_test_all_nullable_types_equals(a->all_nullable_types, b->all_nullable_types)) { return FALSE; } - if (!core_tests_pigeon_test_all_nullable_types_without_recursion_equals( - a->all_nullable_types_without_recursion, - b->all_nullable_types_without_recursion)) { + if (!core_tests_pigeon_test_all_nullable_types_without_recursion_equals(a->all_nullable_types_without_recursion, b->all_nullable_types_without_recursion)) { return FALSE; } if (!core_tests_pigeon_test_all_types_equals(a->all_types, b->all_types)) { @@ -3166,15 +2487,11 @@ gboolean core_tests_pigeon_test_all_classes_wrapper_equals( return TRUE; } -guint core_tests_pigeon_test_all_classes_wrapper_hash( - CoreTestsPigeonTestAllClassesWrapper* self) { +guint core_tests_pigeon_test_all_classes_wrapper_hash(CoreTestsPigeonTestAllClassesWrapper* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), 0); guint result = 0; - result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash( - self->all_nullable_types); - result = result * 31 + - core_tests_pigeon_test_all_nullable_types_without_recursion_hash( - self->all_nullable_types_without_recursion); + result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash(self->all_nullable_types); + result = result * 31 + core_tests_pigeon_test_all_nullable_types_without_recursion_hash(self->all_nullable_types_without_recursion); result = result * 31 + core_tests_pigeon_test_all_types_hash(self->all_types); result = result * 31 + flpigeon_deep_hash(self->class_list); result = result * 31 + flpigeon_deep_hash(self->nullable_class_list); @@ -3189,54 +2506,44 @@ struct _CoreTestsPigeonTestTestMessage { FlValue* test_list; }; -G_DEFINE_TYPE(CoreTestsPigeonTestTestMessage, - core_tests_pigeon_test_test_message, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestTestMessage, core_tests_pigeon_test_test_message, G_TYPE_OBJECT) static void core_tests_pigeon_test_test_message_dispose(GObject* object) { - CoreTestsPigeonTestTestMessage* self = - CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(object); + CoreTestsPigeonTestTestMessage* self = CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(object); g_clear_pointer(&self->test_list, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_test_message_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_test_message_parent_class)->dispose(object); } -static void core_tests_pigeon_test_test_message_init( - CoreTestsPigeonTestTestMessage* self) {} +static void core_tests_pigeon_test_test_message_init(CoreTestsPigeonTestTestMessage* self) { +} -static void core_tests_pigeon_test_test_message_class_init( - CoreTestsPigeonTestTestMessageClass* klass) { +static void core_tests_pigeon_test_test_message_class_init(CoreTestsPigeonTestTestMessageClass* klass) { G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_test_message_dispose; } -CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new( - FlValue* test_list) { - CoreTestsPigeonTestTestMessage* self = CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( - g_object_new(core_tests_pigeon_test_test_message_get_type(), nullptr)); +CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new(FlValue* test_list) { + CoreTestsPigeonTestTestMessage* self = CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(g_object_new(core_tests_pigeon_test_test_message_get_type(), nullptr)); if (test_list != nullptr) { self->test_list = fl_value_ref(test_list); - } else { + } + else { self->test_list = nullptr; } return self; } -FlValue* core_tests_pigeon_test_test_message_get_test_list( - CoreTestsPigeonTestTestMessage* self) { +FlValue* core_tests_pigeon_test_test_message_get_test_list(CoreTestsPigeonTestTestMessage* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_TEST_MESSAGE(self), nullptr); return self->test_list; } -static FlValue* core_tests_pigeon_test_test_message_to_list( - CoreTestsPigeonTestTestMessage* self) { +static FlValue* core_tests_pigeon_test_test_message_to_list(CoreTestsPigeonTestTestMessage* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, self->test_list != nullptr - ? fl_value_ref(self->test_list) - : fl_value_new_null()); + fl_value_append_take(values, self->test_list != nullptr ? fl_value_ref(self->test_list) : fl_value_new_null()); return values; } -static CoreTestsPigeonTestTestMessage* -core_tests_pigeon_test_test_message_new_from_list(FlValue* values) { +static CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); FlValue* test_list = nullptr; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { @@ -3245,8 +2552,7 @@ core_tests_pigeon_test_test_message_new_from_list(FlValue* values) { return core_tests_pigeon_test_test_message_new(test_list); } -gboolean core_tests_pigeon_test_test_message_equals( - CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b) { +gboolean core_tests_pigeon_test_test_message_equals(CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; if (!flpigeon_deep_equals(a->test_list, b->test_list)) { @@ -3255,8 +2561,7 @@ gboolean core_tests_pigeon_test_test_message_equals( return TRUE; } -guint core_tests_pigeon_test_test_message_hash( - CoreTestsPigeonTestTestMessage* self) { +guint core_tests_pigeon_test_test_message_hash(CoreTestsPigeonTestTestMessage* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_TEST_MESSAGE(self), 0); guint result = 0; result = result * 31 + flpigeon_deep_hash(self->test_list); @@ -3265,373 +2570,230 @@ guint core_tests_pigeon_test_test_message_hash( struct _CoreTestsPigeonTestMessageCodec { FlStandardMessageCodec parent_instance; + }; -G_DEFINE_TYPE(CoreTestsPigeonTestMessageCodec, - core_tests_pigeon_test_message_codec, - fl_standard_message_codec_get_type()) +G_DEFINE_TYPE(CoreTestsPigeonTestMessageCodec, core_tests_pigeon_test_message_codec, fl_standard_message_codec_get_type()) const int core_tests_pigeon_test_an_enum_type_id = 129; const int core_tests_pigeon_test_another_enum_type_id = 130; const int core_tests_pigeon_test_unused_class_type_id = 131; const int core_tests_pigeon_test_all_types_type_id = 132; const int core_tests_pigeon_test_all_nullable_types_type_id = 133; -const int core_tests_pigeon_test_all_nullable_types_without_recursion_type_id = - 134; +const int core_tests_pigeon_test_all_nullable_types_without_recursion_type_id = 134; const int core_tests_pigeon_test_all_classes_wrapper_type_id = 135; const int core_tests_pigeon_test_test_message_type_id = 136; -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum(FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { uint8_t type = core_tests_pigeon_test_an_enum_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); return fl_standard_message_codec_write_value(codec, buffer, value, error); } -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum(FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { uint8_t type = core_tests_pigeon_test_another_enum_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); return fl_standard_message_codec_write_value(codec, buffer, value, error); } -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_unused_class( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestUnusedClass* value, GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_unused_class(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestUnusedClass* value, GError** error) { uint8_t type = core_tests_pigeon_test_unused_class_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_unused_class_to_list(value); + g_autoptr(FlValue) values = core_tests_pigeon_test_unused_class_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllTypes* value, GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllTypes* value, GError** error) { uint8_t type = core_tests_pigeon_test_all_types_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); g_autoptr(FlValue) values = core_tests_pigeon_test_all_types_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllNullableTypes* value, GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllNullableTypes* value, GError** error) { uint8_t type = core_tests_pigeon_test_all_nullable_types_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_nullable_types_to_list(value); + g_autoptr(FlValue) values = core_tests_pigeon_test_all_nullable_types_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, - GError** error) { - uint8_t type = - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id; +static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, GError** error) { + uint8_t type = core_tests_pigeon_test_all_nullable_types_without_recursion_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( - value); + g_autoptr(FlValue) values = core_tests_pigeon_test_all_nullable_types_without_recursion_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { uint8_t type = core_tests_pigeon_test_all_classes_wrapper_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_classes_wrapper_to_list(value); + g_autoptr(FlValue) values = core_tests_pigeon_test_all_classes_wrapper_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestTestMessage* value, GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestTestMessage* value, GError** error) { uint8_t type = core_tests_pigeon_test_test_message_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_test_message_to_list(value); + g_autoptr(FlValue) values = core_tests_pigeon_test_test_message_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean core_tests_pigeon_test_message_codec_write_value( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_value(FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { if (fl_value_get_type(value) == FL_VALUE_TYPE_CUSTOM) { switch (fl_value_get_custom_type(value)) { case core_tests_pigeon_test_an_enum_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum(codec, buffer, reinterpret_cast(const_cast(fl_value_get_custom_value(value))), error); case core_tests_pigeon_test_another_enum_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum(codec, buffer, reinterpret_cast(const_cast(fl_value_get_custom_value(value))), error); case core_tests_pigeon_test_unused_class_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_unused_class( - codec, buffer, - CORE_TESTS_PIGEON_TEST_UNUSED_CLASS( - fl_value_get_custom_value_object(value)), - error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_unused_class(codec, buffer, CORE_TESTS_PIGEON_TEST_UNUSED_CLASS(fl_value_get_custom_value_object(value)), error); case core_tests_pigeon_test_all_types_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_TYPES( - fl_value_get_custom_value_object(value)), - error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types(codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value)), error); case core_tests_pigeon_test_all_nullable_types_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value)), - error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types(codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value)), error); case core_tests_pigeon_test_all_nullable_types_without_recursion_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(value)), - error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion(codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value)), error); case core_tests_pigeon_test_all_classes_wrapper_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( - fl_value_get_custom_value_object(value)), - error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper(codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(fl_value_get_custom_value_object(value)), error); case core_tests_pigeon_test_test_message_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( - codec, buffer, - CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( - fl_value_get_custom_value_object(value)), - error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message(codec, buffer, CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(fl_value_get_custom_value_object(value)), error); } } - return FL_STANDARD_MESSAGE_CODEC_CLASS( - core_tests_pigeon_test_message_codec_parent_class) - ->write_value(codec, buffer, value, error); + return FL_STANDARD_MESSAGE_CODEC_CLASS(core_tests_pigeon_test_message_codec_parent_class)->write_value(codec, buffer, value, error); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - core_tests_pigeon_test_an_enum_type_id, - fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); +static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { + return fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_standard_message_codec_read_value(codec, buffer, offset, error), (GDestroyNotify)fl_value_unref); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - core_tests_pigeon_test_another_enum_type_id, - fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); +static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { + return fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_standard_message_codec_read_value(codec, buffer, offset, error), (GDestroyNotify)fl_value_unref); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_unused_class( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - g_autoptr(FlValue) values = - fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_unused_class(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { + g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestUnusedClass) value = - core_tests_pigeon_test_unused_class_new_from_list(values); + g_autoptr(CoreTestsPigeonTestUnusedClass) value = core_tests_pigeon_test_unused_class_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, - "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_unused_class_type_id, - G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_unused_class_type_id, G_OBJECT(value)); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - g_autoptr(FlValue) values = - fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { + g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestAllTypes) value = - core_tests_pigeon_test_all_types_new_from_list(values); + g_autoptr(CoreTestsPigeonTestAllTypes) value = core_tests_pigeon_test_all_types_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, - "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, - G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(value)); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - g_autoptr(FlValue) values = - fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { + g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestAllNullableTypes) value = - core_tests_pigeon_test_all_nullable_types_new_from_list(values); + g_autoptr(CoreTestsPigeonTestAllNullableTypes) value = core_tests_pigeon_test_all_nullable_types_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, - "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(value)); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - g_autoptr(FlValue) values = - fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { + g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestAllNullableTypesWithoutRecursion) value = - core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( - values); + g_autoptr(CoreTestsPigeonTestAllNullableTypesWithoutRecursion) value = core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, - "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, - G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(value)); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - g_autoptr(FlValue) values = - fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { + g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestAllClassesWrapper) value = - core_tests_pigeon_test_all_classes_wrapper_new_from_list(values); + g_autoptr(CoreTestsPigeonTestAllClassesWrapper) value = core_tests_pigeon_test_all_classes_wrapper_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, - "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object( - core_tests_pigeon_test_all_classes_wrapper_type_id, G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_all_classes_wrapper_type_id, G_OBJECT(value)); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - g_autoptr(FlValue) values = - fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { + g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestTestMessage) value = - core_tests_pigeon_test_test_message_new_from_list(values); + g_autoptr(CoreTestsPigeonTestTestMessage) value = core_tests_pigeon_test_test_message_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, - "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_test_message_type_id, - G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_test_message_type_id, G_OBJECT(value)); } -static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, int type, - GError** error) { +static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, int type, GError** error) { switch (type) { case core_tests_pigeon_test_an_enum_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( - codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum(codec, buffer, offset, error); case core_tests_pigeon_test_another_enum_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum( - codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum(codec, buffer, offset, error); case core_tests_pigeon_test_unused_class_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_unused_class( - codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_unused_class(codec, buffer, offset, error); case core_tests_pigeon_test_all_types_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( - codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types(codec, buffer, offset, error); case core_tests_pigeon_test_all_nullable_types_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( - codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types(codec, buffer, offset, error); case core_tests_pigeon_test_all_nullable_types_without_recursion_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( - codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion(codec, buffer, offset, error); case core_tests_pigeon_test_all_classes_wrapper_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( - codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper(codec, buffer, offset, error); case core_tests_pigeon_test_test_message_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( - codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message(codec, buffer, offset, error); default: - return FL_STANDARD_MESSAGE_CODEC_CLASS( - core_tests_pigeon_test_message_codec_parent_class) - ->read_value_of_type(codec, buffer, offset, type, error); + return FL_STANDARD_MESSAGE_CODEC_CLASS(core_tests_pigeon_test_message_codec_parent_class)->read_value_of_type(codec, buffer, offset, type, error); } } -static void core_tests_pigeon_test_message_codec_init( - CoreTestsPigeonTestMessageCodec* self) {} +static void core_tests_pigeon_test_message_codec_init(CoreTestsPigeonTestMessageCodec* self) { +} -static void core_tests_pigeon_test_message_codec_class_init( - CoreTestsPigeonTestMessageCodecClass* klass) { - FL_STANDARD_MESSAGE_CODEC_CLASS(klass)->write_value = - core_tests_pigeon_test_message_codec_write_value; - FL_STANDARD_MESSAGE_CODEC_CLASS(klass)->read_value_of_type = - core_tests_pigeon_test_message_codec_read_value_of_type; +static void core_tests_pigeon_test_message_codec_class_init(CoreTestsPigeonTestMessageCodecClass* klass) { + FL_STANDARD_MESSAGE_CODEC_CLASS(klass)->write_value = core_tests_pigeon_test_message_codec_write_value; + FL_STANDARD_MESSAGE_CODEC_CLASS(klass)->read_value_of_type = core_tests_pigeon_test_message_codec_read_value_of_type; } -static CoreTestsPigeonTestMessageCodec* -core_tests_pigeon_test_message_codec_new() { - CoreTestsPigeonTestMessageCodec* self = CORE_TESTS_PIGEON_TEST_MESSAGE_CODEC( - g_object_new(core_tests_pigeon_test_message_codec_get_type(), nullptr)); +static CoreTestsPigeonTestMessageCodec* core_tests_pigeon_test_message_codec_new() { + CoreTestsPigeonTestMessageCodec* self = CORE_TESTS_PIGEON_TEST_MESSAGE_CODEC(g_object_new(core_tests_pigeon_test_message_codec_get_type(), nullptr)); return self; } @@ -3642,44 +2804,26 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle { FlBasicMessageChannelResponseHandle* response_handle; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle, - core_tests_pigeon_test_host_integration_core_api_response_handle, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle, core_tests_pigeon_test_host_integration_core_api_response_handle, G_TYPE_OBJECT) -static void -core_tests_pigeon_test_host_integration_core_api_response_handle_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE(object); +static void core_tests_pigeon_test_host_integration_core_api_response_handle_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE(object); g_clear_object(&self->channel); g_clear_object(&self->response_handle); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_response_handle_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_response_handle_init( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_response_handle_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandleClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_response_handle_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* -core_tests_pigeon_test_host_integration_core_api_response_handle_new( - FlBasicMessageChannel* channel, - FlBasicMessageChannelResponseHandle* response_handle) { - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_response_handle_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_response_handle_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_response_handle_init(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_response_handle_class_init(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandleClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_response_handle_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* core_tests_pigeon_test_host_integration_core_api_response_handle_new(FlBasicMessageChannel* channel, FlBasicMessageChannelResponseHandle* response_handle) { + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE(g_object_new(core_tests_pigeon_test_host_integration_core_api_response_handle_get_type(), nullptr)); self->channel = FL_BASIC_MESSAGE_CHANNEL(g_object_ref(channel)); - self->response_handle = - FL_BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE(g_object_ref(response_handle)); + self->response_handle = FL_BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE(g_object_ref(response_handle)); return self; } @@ -3689,55 +2833,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, - core_tests_pigeon_test_host_integration_core_api_noop_response, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, core_tests_pigeon_test_host_integration_core_api_noop_response, G_TYPE_OBJECT) -static void -core_tests_pigeon_test_host_integration_core_api_noop_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(object); +static void core_tests_pigeon_test_host_integration_core_api_noop_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_noop_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_noop_response_parent_class)->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_noop_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_noop_response_init(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_noop_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_noop_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_noop_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_noop_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* -core_tests_pigeon_test_host_integration_core_api_noop_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_noop_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_host_integration_core_api_noop_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_noop_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* -core_tests_pigeon_test_host_integration_core_api_noop_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_noop_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_host_integration_core_api_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_noop_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -3747,64 +2870,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse, - core_tests_pigeon_test_host_integration_core_api_echo_all_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new( - CoreTestsPigeonTestAllTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new(CoreTestsPigeonTestAllTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, - G_OBJECT(return_value))); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(return_value))); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -3814,63 +2907,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse, - core_tests_pigeon_test_host_integration_core_api_throw_error_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_throw_error_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_error_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_throw_error_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_throw_error_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_error_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_error_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_throw_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_throw_error_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_throw_error_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_throw_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_error_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_error_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_error_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_error_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -3880,62 +2944,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse, - core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* -core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* -core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -3945,64 +2981,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse, - core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4012,59 +3018,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_int_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_int_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_int_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_int_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_int_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_int_response_new( - int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_int_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_response_new(int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_int_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4074,61 +3055,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_double_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_double_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_double_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_double_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_double_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_double_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_double_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_double_response_new( - double return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_double_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_double_response_new(double return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_float(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_double_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4138,59 +3092,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, - core_tests_pigeon_test_host_integration_core_api_echo_bool_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_bool_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_bool_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_bool_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_bool_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_bool_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_bool_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_bool_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_bool_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_bool_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new( - gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_bool_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new(gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_bool_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4200,61 +3129,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4264,63 +3166,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new( - const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, fl_value_new_uint8_list(return_value, return_value_length)); + fl_value_append_take(self->value, fl_value_new_uint8_list(return_value, return_value_length)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4330,61 +3203,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse, - core_tests_pigeon_test_host_integration_core_api_echo_object_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_object_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_object_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_object_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_object_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_object_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_object_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_object_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_object_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_object_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_object_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_object_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_object_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_object_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_object_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_object_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_object_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_object_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4394,59 +3240,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, core_tests_pigeon_test_host_integration_core_api_echo_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_host_integration_core_api_echo_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4456,61 +3277,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4520,62 +3314,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4585,63 +3351,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4651,63 +3388,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4717,59 +3425,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4779,62 +3462,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4844,61 +3499,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4908,61 +3536,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -4972,61 +3573,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -5036,63 +3610,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -5102,62 +3647,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -5167,63 +3684,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -5233,63 +3721,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -5299,65 +3758,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse, - core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new( - CoreTestsPigeonTestAllClassesWrapper* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new(CoreTestsPigeonTestAllClassesWrapper* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, - fl_value_new_custom_object( - core_tests_pigeon_test_all_classes_wrapper_type_id, - G_OBJECT(return_value))); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_classes_wrapper_type_id, G_OBJECT(return_value))); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -5367,62 +3795,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_enum_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_enum_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_enum_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_enum_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new( - CoreTestsPigeonTestAnEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_enum_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new(CoreTestsPigeonTestAnEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(return_value), - (GDestroyNotify)fl_value_unref)); + fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_enum_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -5432,200 +3832,108 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( - CoreTestsPigeonTestAnotherEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new(CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(return_value), - (GDestroyNotify)fl_value_unref)); + fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new( - double return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new(double return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_float(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -5635,489 +3943,330 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_required_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_required_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new( - int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new(int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse, core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new( - CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, return_value != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, - G_OBJECT(return_value)) - : fl_value_new_null()); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); - return self; + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_parent_class)->dispose(object); } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse { - GObject parent_instance; +static void core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_init(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self) { +} - FlValue* value; -}; +static void core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_dispose; +} -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - object); - g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, - G_OBJECT(return_value)) - : fl_value_new_null()); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new(gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_bool(return_value)); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse, core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_init(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new(int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_string(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new( - CoreTestsPigeonTestAllClassesWrapper* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, - fl_value_new_custom_object( - core_tests_pigeon_test_all_classes_wrapper_type_id, - G_OBJECT(return_value))); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value)) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new( - CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, - fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, - G_OBJECT(return_value))); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value)) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, - G_OBJECT(return_value))); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + return self; +} + +struct _CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE(object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new(CoreTestsPigeonTestAllClassesWrapper* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_classes_wrapper_type_id, G_OBJECT(return_value))); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + return self; +} + +struct _CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value))); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + return self; +} + +struct _CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value))); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6127,64 +4276,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new( - int64_t* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new(int64_t* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_int(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_int(*return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6194,65 +4313,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new( - double* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new(double* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_float(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_float(*return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6262,64 +4350,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new( - gboolean* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new(gboolean* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_bool(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_bool(*return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6329,65 +4387,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_string(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6397,66 +4424,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new( - const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_uint8_list( - return_value, return_value_length) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_uint8_list(return_value, return_value_length) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6466,65 +4461,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6534,64 +4498,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6601,65 +4535,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6669,205 +4572,108 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6877,64 +4683,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -6944,65 +4720,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -7012,65 +4757,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -7080,65 +4794,34 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -7148,343 +4831,182 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -7494,287 +5016,149 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new( - CoreTestsPigeonTestAnEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(*return_value), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new(CoreTestsPigeonTestAnEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new( - CoreTestsPigeonTestAnotherEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(*return_value), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new(CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new( - int64_t* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new(int64_t* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_int(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_int(*return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_string(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse, - core_tests_pigeon_test_host_integration_core_api_noop_async_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_host_integration_core_api_noop_async_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse { GObject parent_instance; @@ -7782,66 +5166,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse, - core_tests_pigeon_test_host_integration_core_api_noop_async_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_noop_async_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_host_integration_core_api_noop_async_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_noop_async_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_noop_async_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_noop_async_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_noop_async_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_noop_async_response_init(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_noop_async_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_noop_async_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_noop_async_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_noop_async_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* -core_tests_pigeon_test_host_integration_core_api_noop_async_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_noop_async_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_host_integration_core_api_noop_async_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_noop_async_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* -core_tests_pigeon_test_host_integration_core_api_noop_async_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new( - core_tests_pigeon_test_host_integration_core_api_noop_async_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_host_integration_core_api_noop_async_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_noop_async_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_int_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse { GObject parent_instance; @@ -7849,69 +5205,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new( - int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new(int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_double_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse { GObject parent_instance; @@ -7919,70 +5244,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new( - double return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new(double return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_float(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse { GObject parent_instance; @@ -7990,70 +5283,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new( - gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new(gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse { GObject parent_instance; @@ -8061,70 +5322,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse { GObject parent_instance; @@ -8132,72 +5361,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new( - const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, fl_value_new_uint8_list(return_value, return_value_length)); + fl_value_append_take(self->value, fl_value_new_uint8_list(return_value, return_value_length)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_object_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_object_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse { GObject parent_instance; @@ -8205,70 +5400,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_object_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_object_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_list_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse { GObject parent_instance; @@ -8276,70 +5439,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse { GObject parent_instance; @@ -8347,70 +5478,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse { GObject parent_instance; @@ -8418,71 +5517,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_map_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse { GObject parent_instance; @@ -8490,69 +5556,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse { GObject parent_instance; @@ -8560,71 +5595,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse { GObject parent_instance; @@ -8632,70 +5634,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse { GObject parent_instance; @@ -8703,70 +5673,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse { GObject parent_instance; @@ -8774,70 +5712,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse { GObject parent_instance; @@ -8845,73 +5751,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new( - CoreTestsPigeonTestAnEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new(CoreTestsPigeonTestAnEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(return_value), - (GDestroyNotify)fl_value_unref)); + fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse { GObject parent_instance; @@ -8919,75 +5790,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new( - CoreTestsPigeonTestAnotherEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(return_value), - (GDestroyNotify)fl_value_unref)); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new(CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, - core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse { GObject parent_instance; @@ -8995,219 +5829,116 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, - core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse, - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse, - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* -core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* -core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse, - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse, - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse { GObject parent_instance; @@ -9215,234 +5946,116 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new( - CoreTestsPigeonTestAllTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new(CoreTestsPigeonTestAllTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, - G_OBJECT(return_value))); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(return_value))); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new( - CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, return_value != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, - G_OBJECT(return_value)) - : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value)) : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, - G_OBJECT(return_value)) - : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value)) : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse { GObject parent_instance; @@ -9450,148 +6063,77 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new( - int64_t* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new(int64_t* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_int(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_int(*return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new( - double* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new(double* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_float(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_float(*return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse { GObject parent_instance; @@ -9599,299 +6141,155 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new( - gboolean* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new(gboolean* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_bool(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_bool(*return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_string(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new( - const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_uint8_list( - return_value, return_value_length) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_uint8_list(return_value, return_value_length) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse { GObject parent_instance; @@ -9899,223 +6297,116 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse { GObject parent_instance; @@ -10123,373 +6414,194 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse { GObject parent_instance; @@ -10497,292 +6609,151 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new( - CoreTestsPigeonTestAnEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(*return_value), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); - return self; + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_parent_class)->dispose(object); } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE, - GObject) +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self) { +} -struct - _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse { - GObject parent_instance; +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_dispose; +} - FlValue* value; -}; +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new(CoreTestsPigeonTestAnEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + return self; +} -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( - object); - g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new( - CoreTestsPigeonTestAnotherEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(*return_value), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse { +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE, GObject) + +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse, - core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* -core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new( - gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new(CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_bool(return_value)); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* -core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -struct - _CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse, core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE(object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_init(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new(gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_bool(return_value)); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + return self; +} + +struct _CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse, - core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse, core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_init(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* -core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new( - gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new(gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* -core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse { GObject parent_instance; @@ -10790,69 +6761,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse { GObject parent_instance; @@ -10860,541 +6800,272 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new( - CoreTestsPigeonTestAllTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new(CoreTestsPigeonTestAllTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, - G_OBJECT(return_value))); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(return_value))); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new( - CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, return_value != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, - G_OBJECT(return_value)) - : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value)) : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new( - CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, - fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, - G_OBJECT(return_value))); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value))); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, - G_OBJECT(return_value)) - : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value)) : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, - G_OBJECT(return_value))); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value))); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse { GObject parent_instance; @@ -11402,71 +7073,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new( - gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new(gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse { GObject parent_instance; @@ -11474,71 +7112,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new( - int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new(int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse { GObject parent_instance; @@ -11546,71 +7151,38 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new( - double return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new(double return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_float(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse { GObject parent_instance; @@ -11618,145 +7190,77 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new( - const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, fl_value_new_uint8_list(return_value, return_value_length)); + fl_value_append_take(self->value, fl_value_new_uint8_list(return_value, return_value_length)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse { GObject parent_instance; @@ -11764,367 +7268,194 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse { GObject parent_instance; @@ -12132,144 +7463,77 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self) { +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self) { } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse { GObject parent_instance; @@ -12277,517 +7541,272 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse { GObject parent_instance; @@ -12795,1837 +7814,931 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse { FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new( - CoreTestsPigeonTestAnEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new(CoreTestsPigeonTestAnEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take( - self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(return_value), - (GDestroyNotify)fl_value_unref)); + fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new( - CoreTestsPigeonTestAnotherEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(return_value), - (GDestroyNotify)fl_value_unref)); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new(CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new( - gboolean* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new(gboolean* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_bool(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_bool(*return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new( - int64_t* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new(int64_t* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_int(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_int(*return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new( - double* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new(double* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_float(*return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_float(*return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_string(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new( - const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_new_uint8_list( - return_value, return_value_length) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_uint8_list(return_value, return_value_length) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new( - FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new(FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr - ? fl_value_ref(return_value) - : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new( - CoreTestsPigeonTestAnEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(*return_value), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new(CoreTestsPigeonTestAnEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* - self) {} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new( - CoreTestsPigeonTestAnotherEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), - nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take( - self->value, - return_value != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(*return_value), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* - self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* self) { +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new(CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE, GObject) -struct - _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* - self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* - self) {} +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self) { +} -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_dispose; +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* -core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -14637,185 +8750,131 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApi { GDestroyNotify user_data_free_func; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApi, - core_tests_pigeon_test_host_integration_core_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApi, core_tests_pigeon_test_host_integration_core_api, G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_integration_core_api_dispose( - GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(object); +static void core_tests_pigeon_test_host_integration_core_api_dispose(GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(object); if (self->user_data != nullptr) { self->user_data_free_func(self->user_data); } self->user_data = nullptr; - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_parent_class)->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_init( - CoreTestsPigeonTestHostIntegrationCoreApi* self) {} +static void core_tests_pigeon_test_host_integration_core_api_init(CoreTestsPigeonTestHostIntegrationCoreApi* self) { +} -static void core_tests_pigeon_test_host_integration_core_api_class_init( - CoreTestsPigeonTestHostIntegrationCoreApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_integration_core_api_dispose; +static void core_tests_pigeon_test_host_integration_core_api_class_init(CoreTestsPigeonTestHostIntegrationCoreApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApi* -core_tests_pigeon_test_host_integration_core_api_new( - const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, - gpointer user_data, GDestroyNotify user_data_free_func) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(g_object_new( - core_tests_pigeon_test_host_integration_core_api_get_type(), - nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApi* core_tests_pigeon_test_host_integration_core_api_new(const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(g_object_new(core_tests_pigeon_test_host_integration_core_api_get_type(), nullptr)); self->vtable = vtable; self->user_data = user_data; self->user_data_free_func = user_data_free_func; return self; } -static void core_tests_pigeon_test_host_integration_core_api_noop_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_noop_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->noop == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse) response = - self->vtable->noop(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse) response = self->vtable->noop(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "noop"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "noop"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "noop", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "noop", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_all_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES( - fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse) - response = self->vtable->echo_all_types(everything, self->user_data); + CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse) response = self->vtable->echo_all_types(everything, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoAllTypes"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAllTypes"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAllTypes", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAllTypes", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_throw_error_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_throw_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->throw_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse) - response = self->vtable->throw_error(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse) response = self->vtable->throw_error(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "throwError"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "throwError"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwError", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwError", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->throw_error_from_void == nullptr) { + if (self->vtable == nullptr || self->vtable->throw_error_from_void == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse) - response = self->vtable->throw_error_from_void(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse) response = self->vtable->throw_error_from_void(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "throwErrorFromVoid"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "throwErrorFromVoid"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwErrorFromVoid", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwErrorFromVoid", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->throw_flutter_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse) - response = self->vtable->throw_flutter_error(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse) response = self->vtable->throw_flutter_error(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "throwFlutterError"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "throwFlutterError"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwFlutterError", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwFlutterError", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_int_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_int == nullptr) { return; @@ -14823,27 +8882,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_int_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); int64_t an_int = fl_value_get_int(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse) response = - self->vtable->echo_int(an_int, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse) response = self->vtable->echo_int(an_int, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoInt"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoInt"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoInt", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoInt", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_double_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_double == nullptr) { return; @@ -14851,27 +8903,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_double_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); double a_double = fl_value_get_float(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse) - response = self->vtable->echo_double(a_double, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse) response = self->vtable->echo_double(a_double, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoDouble"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoDouble"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoDouble", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoDouble", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_bool_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_bool == nullptr) { return; @@ -14879,27 +8924,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_bool_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); gboolean a_bool = fl_value_get_bool(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse) - response = self->vtable->echo_bool(a_bool, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse) response = self->vtable->echo_bool(a_bool, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoBool"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoBool"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoBool", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoBool", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_string == nullptr) { return; @@ -14907,27 +8945,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_string_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse) - response = self->vtable->echo_string(a_string, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse) response = self->vtable->echo_string(a_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoString", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_uint8_list == nullptr) { return; @@ -14936,28 +8967,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* a_uint8_list = fl_value_get_uint8_list(value0); size_t a_uint8_list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse) - response = self->vtable->echo_uint8_list( - a_uint8_list, a_uint8_list_length, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse) response = self->vtable->echo_uint8_list(a_uint8_list, a_uint8_list_length, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoUint8List"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoUint8List"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoUint8List", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoUint8List", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_object_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_object_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_object == nullptr) { return; @@ -14965,27 +8988,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_object_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* an_object = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse) - response = self->vtable->echo_object(an_object, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse) response = self->vtable->echo_object(an_object, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoObject"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoObject"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoObject", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoObject", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_list == nullptr) { return; @@ -14993,27 +9009,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse) - response = self->vtable->echo_list(list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse) response = self->vtable->echo_list(list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_enum_list == nullptr) { return; @@ -15021,27 +9030,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse) - response = self->vtable->echo_enum_list(enum_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse) response = self->vtable->echo_enum_list(enum_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoEnumList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoEnumList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoEnumList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoEnumList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_class_list == nullptr) { return; @@ -15049,91 +9051,62 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse) - response = self->vtable->echo_class_list(class_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse) response = self->vtable->echo_class_list(class_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoClassList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoClassList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoClassList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoClassList", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_non_null_enum_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_non_null_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse) - response = - self->vtable->echo_non_null_enum_list(enum_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse) response = self->vtable->echo_non_null_enum_list(enum_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNonNullEnumList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullEnumList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNonNullEnumList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullEnumList", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_non_null_class_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_non_null_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse) - response = - self->vtable->echo_non_null_class_list(class_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse) response = self->vtable->echo_non_null_class_list(class_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNonNullClassList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullClassList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNonNullClassList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullClassList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_map == nullptr) { return; @@ -15141,27 +9114,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse) response = - self->vtable->echo_map(map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse) response = self->vtable->echo_map(map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_string_map == nullptr) { return; @@ -15169,27 +9135,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse) - response = self->vtable->echo_string_map(string_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse) response = self->vtable->echo_string_map(string_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoStringMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoStringMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoStringMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoStringMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_int_map == nullptr) { return; @@ -15197,27 +9156,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse) - response = self->vtable->echo_int_map(int_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse) response = self->vtable->echo_int_map(int_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoIntMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoIntMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoIntMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoIntMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_enum_map == nullptr) { return; @@ -15225,27 +9177,20 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse) - response = self->vtable->echo_enum_map(enum_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse) response = self->vtable->echo_enum_map(enum_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoEnumMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoEnumMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoEnumMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoEnumMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_class_map == nullptr) { return; @@ -15253,310 +9198,209 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse) - response = self->vtable->echo_class_map(class_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse) response = self->vtable->echo_class_map(class_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoClassMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoClassMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoClassMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoClassMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_non_null_string_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_non_null_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse) - response = - self->vtable->echo_non_null_string_map(string_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse) response = self->vtable->echo_non_null_string_map(string_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNonNullStringMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullStringMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNonNullStringMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullStringMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_non_null_int_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_non_null_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse) - response = self->vtable->echo_non_null_int_map(int_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse) response = self->vtable->echo_non_null_int_map(int_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNonNullIntMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullIntMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNonNullIntMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullIntMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_non_null_enum_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_non_null_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse) - response = - self->vtable->echo_non_null_enum_map(enum_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse) response = self->vtable->echo_non_null_enum_map(enum_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNonNullEnumMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullEnumMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNonNullEnumMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullEnumMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_non_null_class_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_non_null_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse) - response = - self->vtable->echo_non_null_class_map(class_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse) response = self->vtable->echo_non_null_class_map(class_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNonNullClassMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullClassMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNonNullClassMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullClassMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_class_wrapper == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllClassesWrapper* wrapper = - CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( - fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse) - response = self->vtable->echo_class_wrapper(wrapper, self->user_data); + CoreTestsPigeonTestAllClassesWrapper* wrapper = CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse) response = self->vtable->echo_class_wrapper(wrapper, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoClassWrapper"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoClassWrapper"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoClassWrapper", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoClassWrapper", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnEnum an_enum = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse) - response = self->vtable->echo_enum(an_enum, self->user_data); + CoreTestsPigeonTestAnEnum an_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse) response = self->vtable->echo_enum(an_enum, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoEnum"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoEnum"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoEnum", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoEnum", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_another_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnotherEnum another_enum = - static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse) - response = self->vtable->echo_another_enum(another_enum, self->user_data); + CoreTestsPigeonTestAnotherEnum another_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse) response = self->vtable->echo_another_enum(another_enum, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoAnotherEnum"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAnotherEnum"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAnotherEnum", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherEnum", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_named_default_string == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_named_default_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse) - response = - self->vtable->echo_named_default_string(a_string, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse) response = self->vtable->echo_named_default_string(a_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNamedDefaultString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNamedDefaultString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNamedDefaultString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNamedDefaultString", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_optional_default_double == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_optional_default_double == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); double a_double = fl_value_get_float(value0); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse) - response = - self->vtable->echo_optional_default_double(a_double, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse) response = self->vtable->echo_optional_default_double(a_double, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoOptionalDefaultDouble"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoOptionalDefaultDouble"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoOptionalDefaultDouble", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoOptionalDefaultDouble", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_required_int == nullptr) { return; @@ -15564,165 +9408,150 @@ core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); int64_t an_int = fl_value_get_int(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse) - response = self->vtable->echo_required_int(an_int, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse) response = self->vtable->echo_required_int(an_int, self->user_data); + if (response == nullptr) { + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoRequiredInt"); + return; + } + + g_autoptr(GError) error = NULL; + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoRequiredInt", error->message); + } +} + +static void core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->are_all_nullable_types_equal == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAllNullableTypes* a = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); + FlValue* value1 = fl_value_get_list_value(message_, 1); + CoreTestsPigeonTestAllNullableTypes* b = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value1)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse) response = self->vtable->are_all_nullable_types_equal(a, b, self->user_data); + if (response == nullptr) { + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "areAllNullableTypesEqual"); + return; + } + + g_autoptr(GError) error = NULL; + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "areAllNullableTypesEqual", error->message); + } +} + +static void core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->get_all_nullable_types_hash == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAllNullableTypes* value = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse) response = self->vtable->get_all_nullable_types_hash(value, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoRequiredInt"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "getAllNullableTypesHash"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoRequiredInt", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "getAllNullableTypesHash", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_all_nullable_types == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_all_nullable_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypes* everything = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value0)); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse) - response = - self->vtable->echo_all_nullable_types(everything, self->user_data); + CoreTestsPigeonTestAllNullableTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse) response = self->vtable->echo_all_nullable_types(everything, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoAllNullableTypes"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAllNullableTypes"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAllNullableTypes", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAllNullableTypes", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_all_nullable_types_without_recursion == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_all_nullable_types_without_recursion == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(value0)); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse) - response = self->vtable->echo_all_nullable_types_without_recursion( - everything, self->user_data); + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse) response = self->vtable->echo_all_nullable_types_without_recursion(everything, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoAllNullableTypesWithoutRecursion"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAllNullableTypesWithoutRecursion"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAllNullableTypesWithoutRecursion", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAllNullableTypesWithoutRecursion", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->extract_nested_nullable_string == nullptr) { + if (self->vtable == nullptr || self->vtable->extract_nested_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllClassesWrapper* wrapper = - CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( - fl_value_get_custom_value_object(value0)); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse) - response = self->vtable->extract_nested_nullable_string(wrapper, - self->user_data); + CoreTestsPigeonTestAllClassesWrapper* wrapper = CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse) response = self->vtable->extract_nested_nullable_string(wrapper, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "extractNestedNullableString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "extractNestedNullableString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "extractNestedNullableString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "extractNestedNullableString", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->create_nested_nullable_string == nullptr) { + if (self->vtable == nullptr || self->vtable->create_nested_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* nullable_string = fl_value_get_string(value0); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse) - response = self->vtable->create_nested_nullable_string(nullable_string, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse) response = self->vtable->create_nested_nullable_string(nullable_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "createNestedNullableString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "createNestedNullableString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "createNestedNullableString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "createNestedNullableString", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->send_multiple_nullable_types == nullptr) { + if (self->vtable == nullptr || self->vtable->send_multiple_nullable_types == nullptr) { return; } @@ -15742,33 +9571,22 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb } FlValue* value2 = fl_value_get_list_value(message_, 2); const gchar* a_nullable_string = fl_value_get_string(value2); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse) - response = self->vtable->send_multiple_nullable_types( - a_nullable_bool, a_nullable_int, a_nullable_string, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse) response = self->vtable->send_multiple_nullable_types(a_nullable_bool, a_nullable_int, a_nullable_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "sendMultipleNullableTypes"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "sendMultipleNullableTypes"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "sendMultipleNullableTypes", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "sendMultipleNullableTypes", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->send_multiple_nullable_types_without_recursion == nullptr) { + if (self->vtable == nullptr || self->vtable->send_multiple_nullable_types_without_recursion == nullptr) { return; } @@ -15788,30 +9606,20 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_wi } FlValue* value2 = fl_value_get_list_value(message_, 2); const gchar* a_nullable_string = fl_value_get_string(value2); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse) - response = self->vtable->send_multiple_nullable_types_without_recursion( - a_nullable_bool, a_nullable_int, a_nullable_string, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse) response = self->vtable->send_multiple_nullable_types_without_recursion(a_nullable_bool, a_nullable_int, a_nullable_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "sendMultipleNullableTypesWithoutRecursion"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "sendMultipleNullableTypesWithoutRecursion"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "sendMultipleNullableTypesWithoutRecursion", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "sendMultipleNullableTypesWithoutRecursion", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_int == nullptr) { return; @@ -15824,32 +9632,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb( a_nullable_int_value = fl_value_get_int(value0); a_nullable_int = &a_nullable_int_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse) - response = - self->vtable->echo_nullable_int(a_nullable_int, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse) response = self->vtable->echo_nullable_int(a_nullable_int, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableInt"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableInt"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableInt", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableInt", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_double == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_double == nullptr) { return; } @@ -15860,29 +9658,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb( a_nullable_double_value = fl_value_get_float(value0); a_nullable_double = &a_nullable_double_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse) - response = self->vtable->echo_nullable_double(a_nullable_double, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse) response = self->vtable->echo_nullable_double(a_nullable_double, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableDouble"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableDouble"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableDouble", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableDouble", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_bool == nullptr) { return; @@ -15895,124 +9684,84 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb( a_nullable_bool_value = fl_value_get_bool(value0); a_nullable_bool = &a_nullable_bool_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse) - response = - self->vtable->echo_nullable_bool(a_nullable_bool, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse) response = self->vtable->echo_nullable_bool(a_nullable_bool, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableBool"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableBool"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableBool", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableBool", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_string == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_nullable_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse) - response = self->vtable->echo_nullable_string(a_nullable_string, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse) response = self->vtable->echo_nullable_string(a_nullable_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableString", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_uint8_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* a_nullable_uint8_list = fl_value_get_uint8_list(value0); size_t a_nullable_uint8_list_length = fl_value_get_length(value0); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse) - response = self->vtable->echo_nullable_uint8_list( - a_nullable_uint8_list, a_nullable_uint8_list_length, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse) response = self->vtable->echo_nullable_uint8_list(a_nullable_uint8_list, a_nullable_uint8_list_length, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableUint8List"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableUint8List"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableUint8List", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableUint8List", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_object == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_object == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* a_nullable_object = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse) - response = self->vtable->echo_nullable_object(a_nullable_object, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse) response = self->vtable->echo_nullable_object(a_nullable_object, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableObject"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableObject"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableObject", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableObject", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_list == nullptr) { return; @@ -16020,157 +9769,104 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* a_nullable_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse) - response = - self->vtable->echo_nullable_list(a_nullable_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse) response = self->vtable->echo_nullable_list(a_nullable_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableList", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_enum_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse) - response = - self->vtable->echo_nullable_enum_list(enum_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse) response = self->vtable->echo_nullable_enum_list(enum_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableEnumList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableEnumList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableEnumList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableEnumList", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_class_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse) - response = - self->vtable->echo_nullable_class_list(class_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse) response = self->vtable->echo_nullable_class_list(class_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableClassList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableClassList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableClassList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableClassList", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_non_null_enum_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse) - response = self->vtable->echo_nullable_non_null_enum_list( - enum_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse) response = self->vtable->echo_nullable_non_null_enum_list(enum_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableNonNullEnumList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullEnumList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableNonNullEnumList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullEnumList", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_non_null_class_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse) - response = self->vtable->echo_nullable_non_null_class_list( - class_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse) response = self->vtable->echo_nullable_non_null_class_list(class_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableNonNullClassList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullClassList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableNonNullClassList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullClassList", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_map == nullptr) { return; @@ -16178,282 +9874,188 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse) - response = self->vtable->echo_nullable_map(map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse) response = self->vtable->echo_nullable_map(map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_string_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse) - response = - self->vtable->echo_nullable_string_map(string_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse) response = self->vtable->echo_nullable_string_map(string_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableStringMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableStringMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableStringMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableStringMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_int_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse) - response = self->vtable->echo_nullable_int_map(int_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse) response = self->vtable->echo_nullable_int_map(int_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableIntMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableIntMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableIntMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableIntMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_enum_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse) - response = - self->vtable->echo_nullable_enum_map(enum_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse) response = self->vtable->echo_nullable_enum_map(enum_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableEnumMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableEnumMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableEnumMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableEnumMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_class_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse) - response = - self->vtable->echo_nullable_class_map(class_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse) response = self->vtable->echo_nullable_class_map(class_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableClassMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableClassMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableClassMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableClassMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_non_null_string_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse) - response = self->vtable->echo_nullable_non_null_string_map( - string_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse) response = self->vtable->echo_nullable_non_null_string_map(string_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableNonNullStringMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullStringMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableNonNullStringMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullStringMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_non_null_int_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse) - response = self->vtable->echo_nullable_non_null_int_map(int_map, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse) response = self->vtable->echo_nullable_non_null_int_map(int_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableNonNullIntMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullIntMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableNonNullIntMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullIntMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_non_null_enum_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse) - response = self->vtable->echo_nullable_non_null_enum_map(enum_map, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse) response = self->vtable->echo_nullable_non_null_enum_map(enum_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableNonNullEnumMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullEnumMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableNonNullEnumMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullEnumMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_nullable_non_null_class_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse) - response = self->vtable->echo_nullable_non_null_class_map( - class_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse) response = self->vtable->echo_nullable_non_null_class_map(class_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableNonNullClassMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullClassMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableNonNullClassMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullClassMap", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_enum == nullptr) { return; @@ -16463,36 +10065,25 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb( CoreTestsPigeonTestAnEnum* an_enum = nullptr; CoreTestsPigeonTestAnEnum an_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - an_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); + an_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); an_enum = &an_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse) - response = self->vtable->echo_nullable_enum(an_enum, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse) response = self->vtable->echo_nullable_enum(an_enum, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableEnum"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableEnum"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableEnum", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableEnum", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_another_nullable_enum == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_another_nullable_enum == nullptr) { return; } @@ -16500,38 +10091,25 @@ core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb( CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - another_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); + another_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); another_enum = &another_enum_value; } - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse) - response = self->vtable->echo_another_nullable_enum(another_enum, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse) response = self->vtable->echo_another_nullable_enum(another_enum, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoAnotherNullableEnum"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAnotherNullableEnum"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAnotherNullableEnum", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherNullableEnum", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_optional_nullable_int == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_optional_nullable_int == nullptr) { return; } @@ -16542,77 +10120,52 @@ core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb( a_nullable_int_value = fl_value_get_int(value0); a_nullable_int = &a_nullable_int_value; } - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse) - response = self->vtable->echo_optional_nullable_int(a_nullable_int, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse) response = self->vtable->echo_optional_nullable_int(a_nullable_int, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoOptionalNullableInt"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoOptionalNullableInt"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoOptionalNullableInt", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoOptionalNullableInt", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_named_nullable_string == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_named_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_nullable_string = fl_value_get_string(value0); - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse) - response = self->vtable->echo_named_nullable_string(a_nullable_string, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse) response = self->vtable->echo_named_nullable_string(a_nullable_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNamedNullableString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNamedNullableString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNamedNullableString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNamedNullableString", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_noop_async_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_noop_async_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->noop_async == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->noop_async(handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_int == nullptr) { return; @@ -16620,18 +10173,12 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); int64_t an_int = fl_value_get_int(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_int(an_int, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_double == nullptr) { return; @@ -16639,17 +10186,12 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); double a_double = fl_value_get_float(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_double(a_double, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_bool == nullptr) { return; @@ -16657,18 +10199,12 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); gboolean a_bool = fl_value_get_bool(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_bool(a_bool, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_string == nullptr) { return; @@ -16676,40 +10212,26 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_string(a_string, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_uint8_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* a_uint8_list = fl_value_get_uint8_list(value0); size_t a_uint8_list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_async_uint8_list(a_uint8_list, a_uint8_list_length, handle, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_async_uint8_list(a_uint8_list, a_uint8_list_length, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_object == nullptr) { return; @@ -16717,17 +10239,12 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* an_object = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_object(an_object, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_list == nullptr) { return; @@ -16735,57 +10252,38 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_list(list, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_enum_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_enum_list(enum_list, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_class_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_class_list(class_list, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_map == nullptr) { return; @@ -16793,38 +10291,25 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_map(map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_string_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_string_map(string_map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_int_map == nullptr) { return; @@ -16832,18 +10317,12 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_int_map(int_map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_enum_map == nullptr) { return; @@ -16851,205 +10330,125 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_enum_map(enum_map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_class_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_class_map(class_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnEnum an_enum = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + CoreTestsPigeonTestAnEnum an_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_enum(an_enum, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_another_async_enum == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_another_async_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnotherEnum another_enum = - static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + CoreTestsPigeonTestAnotherEnum another_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_another_async_enum(another_enum, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->throw_async_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->throw_async_error(handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->throw_async_error_from_void == nullptr) { + if (self->vtable == nullptr || self->vtable->throw_async_error_from_void == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->throw_async_error_from_void(handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->throw_async_flutter_error == nullptr) { + if (self->vtable == nullptr || self->vtable->throw_async_flutter_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->throw_async_flutter_error(handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_all_types == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_all_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES( - fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_all_types(everything, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_all_nullable_types == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_all_nullable_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypes* everything = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_async_nullable_all_nullable_types(everything, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_all_nullable_types_without_recursion == - nullptr) { + CoreTestsPigeonTestAllNullableTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_async_nullable_all_nullable_types(everything, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->echo_async_nullable_all_nullable_types_without_recursion == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_async_nullable_all_nullable_types_without_recursion( - everything, handle, self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_int == nullptr) { + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_async_nullable_all_nullable_types_without_recursion(everything, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->echo_async_nullable_int == nullptr) { return; } @@ -17060,21 +10459,14 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb( an_int_value = fl_value_get_int(value0); an_int = &an_int_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_int(an_int, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_double == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_double == nullptr) { return; } @@ -17085,21 +10477,14 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb( a_double_value = fl_value_get_float(value0); a_double = &a_double_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_double(a_double, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_bool == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_bool == nullptr) { return; } @@ -17110,247 +10495,158 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb( a_bool_value = fl_value_get_bool(value0); a_bool = &a_bool_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_bool(a_bool, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_string == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_string(a_string, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_uint8_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* a_uint8_list = fl_value_get_uint8_list(value0); size_t a_uint8_list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_async_nullable_uint8_list( - a_uint8_list, a_uint8_list_length, handle, self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_object == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_async_nullable_uint8_list(a_uint8_list, a_uint8_list_length, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->echo_async_nullable_object == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* an_object = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_object(an_object, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_list(list, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_enum_list == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_async_nullable_enum_list(enum_list, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_class_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_async_nullable_enum_list(enum_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->echo_async_nullable_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_async_nullable_class_list(class_list, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_async_nullable_class_list(class_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->echo_async_nullable_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_map(map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_string_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_async_nullable_string_map(string_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_async_nullable_string_map(string_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->echo_async_nullable_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_int_map(int_map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_enum_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_enum_map(enum_map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_class_map == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_async_nullable_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_async_nullable_class_map(class_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->echo_async_nullable_enum == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_async_nullable_class_map(class_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->echo_async_nullable_enum == nullptr) { return; } @@ -17358,26 +10654,17 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb( CoreTestsPigeonTestAnEnum* an_enum = nullptr; CoreTestsPigeonTestAnEnum an_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - an_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); + an_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); an_enum = &an_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->echo_async_nullable_enum(an_enum, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->echo_another_async_nullable_enum == nullptr) { + if (self->vtable == nullptr || self->vtable->echo_another_async_nullable_enum == nullptr) { return; } @@ -17385,183 +10672,114 @@ core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enu CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - another_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); + another_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); another_enum = &another_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->echo_another_async_nullable_enum(another_enum, handle, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->echo_another_async_nullable_enum(another_enum, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->default_is_main_thread == nullptr) { + if (self->vtable == nullptr || self->vtable->default_is_main_thread == nullptr) { return; } - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse) - response = self->vtable->default_is_main_thread(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse) response = self->vtable->default_is_main_thread(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "defaultIsMainThread"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "defaultIsMainThread"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "defaultIsMainThread", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "defaultIsMainThread", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->task_queue_is_background_thread == nullptr) { + if (self->vtable == nullptr || self->vtable->task_queue_is_background_thread == nullptr) { return; } - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse) - response = self->vtable->task_queue_is_background_thread(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse) response = self->vtable->task_queue_is_background_thread(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "taskQueueIsBackgroundThread"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "taskQueueIsBackgroundThread"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "taskQueueIsBackgroundThread", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "taskQueueIsBackgroundThread", error->message); } } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->call_flutter_noop == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_noop(handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_throw_error == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_throw_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_throw_error(handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_throw_error_from_void == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_throw_error_from_void == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_throw_error_from_void(handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_all_types == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_all_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES( - fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_all_types(everything, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_all_nullable_types == nullptr) { + CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_all_types(everything, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_all_nullable_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypes* everything = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_all_nullable_types(everything, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_send_multiple_nullable_types == nullptr) { + CoreTestsPigeonTestAllNullableTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_all_nullable_types(everything, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_send_multiple_nullable_types == nullptr) { return; } @@ -17581,49 +10799,27 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_null } FlValue* value2 = fl_value_get_list_value(message_, 2); const gchar* a_nullable_string = fl_value_get_string(value2); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_send_multiple_nullable_types( - a_nullable_bool, a_nullable_int, a_nullable_string, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_all_nullable_types_without_recursion == - nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_send_multiple_nullable_types(a_nullable_bool, a_nullable_int, a_nullable_string, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_all_nullable_types_without_recursion == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_all_nullable_types_without_recursion( - everything, handle, self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable - ->call_flutter_send_multiple_nullable_types_without_recursion == - nullptr) { + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_all_nullable_types_without_recursion(everything, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_send_multiple_nullable_types_without_recursion == nullptr) { return; } @@ -17643,459 +10839,288 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_null } FlValue* value2 = fl_value_get_list_value(message_, 2); const gchar* a_nullable_string = fl_value_get_string(value2); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_send_multiple_nullable_types_without_recursion( - a_nullable_bool, a_nullable_int, a_nullable_string, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_bool == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_send_multiple_nullable_types_without_recursion(a_nullable_bool, a_nullable_int, a_nullable_string, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_bool == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); gboolean a_bool = fl_value_get_bool(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_bool(a_bool, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_int == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_int == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); int64_t an_int = fl_value_get_int(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_int(an_int, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_double == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_double == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); double a_double = fl_value_get_float(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_double(a_double, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_string == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_string(a_string, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_uint8_list == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* list = fl_value_get_uint8_list(value0); size_t list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_uint8_list(list, list_length, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_uint8_list(list, list_length, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_list(list, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_enum_list == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_enum_list(enum_list, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_class_list == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_class_list(class_list, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_non_null_enum_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_class_list(class_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_non_null_enum_list(enum_list, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_non_null_class_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_non_null_enum_list(enum_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_non_null_class_list(class_list, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_non_null_class_list(class_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_map(map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_string_map == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_string_map(string_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_string_map(string_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_int_map(int_map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_enum_map == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_enum_map(enum_map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_class_map == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_class_map(class_map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_non_null_string_map == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_non_null_string_map(string_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_non_null_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_non_null_string_map(string_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_non_null_int_map(int_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_non_null_enum_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_non_null_int_map(int_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_non_null_enum_map(enum_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_non_null_class_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_non_null_enum_map(enum_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_non_null_class_map(class_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_enum == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_non_null_class_map(class_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnEnum an_enum = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + CoreTestsPigeonTestAnEnum an_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_enum(an_enum, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_another_enum == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_another_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnotherEnum another_enum = - static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_another_enum(another_enum, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_bool == nullptr) { + CoreTestsPigeonTestAnotherEnum another_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_another_enum(another_enum, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_bool == nullptr) { return; } @@ -18106,22 +11131,14 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool a_bool_value = fl_value_get_bool(value0); a_bool = &a_bool_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_bool(a_bool, handle, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_bool(a_bool, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_int == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_int == nullptr) { return; } @@ -18132,21 +11149,14 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_ an_int_value = fl_value_get_int(value0); an_int = &an_int_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_nullable_int(an_int, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_double == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_double == nullptr) { return; } @@ -18157,357 +11167,223 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_doub a_double_value = fl_value_get_float(value0); a_double = &a_double_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_double(a_double, handle, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_double(a_double, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_string == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_string(a_string, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_uint8_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_string(a_string, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* list = fl_value_get_uint8_list(value0); size_t list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_uint8_list(list, list_length, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_uint8_list(list, list_length, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_nullable_list(list, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_enum_list == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_enum_list(enum_list, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_class_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_enum_list(enum_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_class_list(class_list, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_non_null_enum_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_class_list(class_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_enum_list(enum_list, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_non_null_class_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_enum_list(enum_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_class_list( - class_list, handle, self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_class_list(class_list, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); self->vtable->call_flutter_echo_nullable_map(map, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_string_map == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_string_map(string_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_string_map(string_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_int_map(int_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_enum_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_int_map(int_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_enum_map(enum_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_class_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_enum_map(enum_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_class_map(class_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_non_null_string_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_class_map(class_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_string_map( - string_map, handle, self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_non_null_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_string_map(string_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_int_map(int_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_non_null_enum_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_int_map(int_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_enum_map(enum_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_non_null_class_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_enum_map(enum_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_class_map(class_map, handle, - self->user_data); -} - -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_nullable_enum == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_class_map(class_map, handle, self->user_data); +} + +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_enum == nullptr) { return; } @@ -18515,27 +11391,17 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum CoreTestsPigeonTestAnEnum* an_enum = nullptr; CoreTestsPigeonTestAnEnum an_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - an_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); + an_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); an_enum = &an_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_nullable_enum(an_enum, handle, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_nullable_enum(an_enum, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_echo_another_nullable_enum == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_echo_another_nullable_enum == nullptr) { return; } @@ -18543,6558 +11409,2406 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nulla CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - another_enum_value = static_cast( - fl_value_get_int(reinterpret_cast( - const_cast(fl_value_get_custom_value(value0))))); + another_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); another_enum = &another_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_echo_another_nullable_enum(another_enum, handle, - self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_echo_another_nullable_enum(another_enum, handle, self->user_data); } -static void -core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || - self->vtable->call_flutter_small_api_echo_string == nullptr) { + if (self->vtable == nullptr || self->vtable->call_flutter_small_api_echo_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = - core_tests_pigeon_test_host_integration_core_api_response_handle_new( - channel, response_handle); - self->vtable->call_flutter_small_api_echo_string(a_string, handle, - self->user_data); -} - -void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix, - const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, - gpointer user_data, GDestroyNotify user_data_free_func) { - g_autofree gchar* dot_suffix = - suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApi) api_data = - core_tests_pigeon_test_host_integration_core_api_new(vtable, user_data, - user_data_free_func); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* noop_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop%" - "s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new( - messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - noop_channel, core_tests_pigeon_test_host_integration_core_api_noop_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_all_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAllTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_types_channel = - fl_basic_message_channel_new(messenger, echo_all_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_all_types_channel, - core_tests_pigeon_test_host_integration_core_api_echo_all_types_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_error_channel = - fl_basic_message_channel_new(messenger, throw_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - throw_error_channel, - core_tests_pigeon_test_host_integration_core_api_throw_error_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_error_from_void_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwErrorFromVoid%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_error_from_void_channel = - fl_basic_message_channel_new(messenger, - throw_error_from_void_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - throw_error_from_void_channel, - core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_flutter_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwFlutterError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_flutter_error_channel = - fl_basic_message_channel_new(messenger, throw_flutter_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - throw_flutter_error_channel, - core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_int_channel = - fl_basic_message_channel_new(messenger, echo_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_int_channel, - core_tests_pigeon_test_host_integration_core_api_echo_int_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_double_channel = - fl_basic_message_channel_new(messenger, echo_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_double_channel, - core_tests_pigeon_test_host_integration_core_api_echo_double_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_bool_channel = - fl_basic_message_channel_new(messenger, echo_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_bool_channel, - core_tests_pigeon_test_host_integration_core_api_echo_bool_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_string_channel = - fl_basic_message_channel_new(messenger, echo_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_string_channel, - core_tests_pigeon_test_host_integration_core_api_echo_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_uint8_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_uint8_list_channel = - fl_basic_message_channel_new(messenger, echo_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_uint8_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_object_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoObject%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_object_channel = - fl_basic_message_channel_new(messenger, echo_object_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_object_channel, - core_tests_pigeon_test_host_integration_core_api_echo_object_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_list_channel = - fl_basic_message_channel_new(messenger, echo_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_list_channel = - fl_basic_message_channel_new(messenger, echo_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_list_channel = - fl_basic_message_channel_new(messenger, echo_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_enum_list_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_non_null_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_class_list_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_non_null_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_map_channel = - fl_basic_message_channel_new(messenger, echo_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_string_map_channel = - fl_basic_message_channel_new(messenger, echo_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_int_map_channel = - fl_basic_message_channel_new(messenger, echo_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_map_channel = - fl_basic_message_channel_new(messenger, echo_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_map_channel = - fl_basic_message_channel_new(messenger, echo_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_string_map_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_non_null_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_int_map_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_non_null_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_enum_map_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_non_null_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_class_map_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_non_null_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_class_wrapper_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoClassWrapper%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_wrapper_channel = - fl_basic_message_channel_new(messenger, echo_class_wrapper_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_class_wrapper_channel, - core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_channel = - fl_basic_message_channel_new(messenger, echo_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_enum_channel, - core_tests_pigeon_test_host_integration_core_api_echo_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = - fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_another_enum_channel, - core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNamedDefaultString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_named_default_string_channel = - fl_basic_message_channel_new(messenger, - echo_named_default_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_named_default_string_channel, - core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_optional_default_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoOptionalDefaultDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_optional_default_double_channel = - fl_basic_message_channel_new(messenger, - echo_optional_default_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_optional_default_double_channel, - core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_required_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoRequiredInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_required_int_channel = - fl_basic_message_channel_new(messenger, echo_required_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_required_int_channel, - core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAllNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_channel = - fl_basic_message_channel_new(messenger, - echo_all_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_all_nullable_types_channel, - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_all_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAllNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - echo_all_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, echo_all_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_all_nullable_types_without_recursion_channel, - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* extract_nested_nullable_string_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "extractNestedNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) extract_nested_nullable_string_channel = - fl_basic_message_channel_new(messenger, - extract_nested_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - extract_nested_nullable_string_channel, - core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* create_nested_nullable_string_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "createNestedNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) create_nested_nullable_string_channel = - fl_basic_message_channel_new(messenger, - create_nested_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - create_nested_nullable_string_channel, - core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* send_multiple_nullable_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "sendMultipleNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_channel = - fl_basic_message_channel_new(messenger, - send_multiple_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - send_multiple_nullable_types_channel, - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* - send_multiple_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi." - "sendMultipleNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - send_multiple_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, - send_multiple_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - send_multiple_nullable_types_without_recursion_channel, - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_int_channel = - fl_basic_message_channel_new(messenger, echo_nullable_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_int_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_double_channel = - fl_basic_message_channel_new(messenger, echo_nullable_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_double_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_bool_channel = - fl_basic_message_channel_new(messenger, echo_nullable_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_bool_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_string_channel = - fl_basic_message_channel_new(messenger, echo_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_string_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_uint8_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_uint8_list_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_uint8_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_object_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableObject%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_object_channel = - fl_basic_message_channel_new(messenger, echo_nullable_object_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_object_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_list_channel = - fl_basic_message_channel_new(messenger, echo_nullable_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_list_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_class_list_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_list_channel = - fl_basic_message_channel_new( - messenger, echo_nullable_non_null_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_list_channel = - fl_basic_message_channel_new( - messenger, echo_nullable_non_null_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_map_channel = - fl_basic_message_channel_new(messenger, echo_nullable_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_string_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_int_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_class_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_string_map_channel = - fl_basic_message_channel_new( - messenger, echo_nullable_non_null_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_int_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_int_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_non_null_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_enum_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_non_null_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_map_channel = - fl_basic_message_channel_new( - messenger, echo_nullable_non_null_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_channel = - fl_basic_message_channel_new(messenger, echo_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_enum_channel, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = - fl_basic_message_channel_new(messenger, - echo_another_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_another_nullable_enum_channel, - core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoOptionalNullableInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_optional_nullable_int_channel = - fl_basic_message_channel_new(messenger, - echo_optional_nullable_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_optional_nullable_int_channel, - core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_named_nullable_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNamedNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_named_nullable_string_channel = - fl_basic_message_channel_new(messenger, - echo_named_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_named_nullable_string_channel, - core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* noop_async_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "noopAsync%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_async_channel = - fl_basic_message_channel_new(messenger, noop_async_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - noop_async_channel, - core_tests_pigeon_test_host_integration_core_api_noop_async_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_int_channel = - fl_basic_message_channel_new(messenger, echo_async_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_int_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_double_channel = - fl_basic_message_channel_new(messenger, echo_async_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_double_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_bool_channel = - fl_basic_message_channel_new(messenger, echo_async_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_bool_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_string_channel = - fl_basic_message_channel_new(messenger, echo_async_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_string_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_uint8_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_uint8_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_uint8_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_object_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncObject%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_object_channel = - fl_basic_message_channel_new(messenger, echo_async_object_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_object_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_list_channel = - fl_basic_message_channel_new(messenger, echo_async_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_list_channel = - fl_basic_message_channel_new(messenger, echo_async_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_class_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_map_channel = - fl_basic_message_channel_new(messenger, echo_async_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_string_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_int_map_channel = - fl_basic_message_channel_new(messenger, echo_async_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_map_channel = - fl_basic_message_channel_new(messenger, echo_async_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_class_map_channel = - fl_basic_message_channel_new(messenger, echo_async_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_channel = - fl_basic_message_channel_new(messenger, echo_async_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_enum_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherAsyncEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = - fl_basic_message_channel_new(messenger, - echo_another_async_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_another_async_enum_channel, - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_async_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwAsyncError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_error_channel = - fl_basic_message_channel_new(messenger, throw_async_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - throw_async_error_channel, - core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_async_error_from_void_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwAsyncErrorFromVoid%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_error_from_void_channel = - fl_basic_message_channel_new(messenger, - throw_async_error_from_void_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - throw_async_error_from_void_channel, - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_async_flutter_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwAsyncFlutterError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_flutter_error_channel = - fl_basic_message_channel_new(messenger, - throw_async_flutter_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - throw_async_flutter_error_channel, - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_all_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncAllTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_all_types_channel = - fl_basic_message_channel_new(messenger, echo_async_all_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_all_types_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_all_nullable_types_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableAllNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - echo_async_nullable_all_nullable_types_channel = - fl_basic_message_channel_new( - messenger, echo_async_nullable_all_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_all_nullable_types_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* - echo_async_nullable_all_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi." - "echoAsyncNullableAllNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - echo_async_nullable_all_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, - echo_async_nullable_all_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_all_nullable_types_without_recursion_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_int_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_double_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_double_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_bool_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_bool_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_string_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_uint8_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_uint8_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_uint8_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_object_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableObject%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_object_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_object_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_object_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_enum_channel, - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_another_async_nullable_enum_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherAsyncNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = - fl_basic_message_channel_new( - messenger, echo_another_async_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_another_async_nullable_enum_channel, - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* default_is_main_thread_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "defaultIsMainThread%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) default_is_main_thread_channel = - fl_basic_message_channel_new(messenger, - default_is_main_thread_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - default_is_main_thread_channel, - core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* task_queue_is_background_thread_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "taskQueueIsBackgroundThread%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) task_queue_is_background_thread_channel = - fl_basic_message_channel_new(messenger, - task_queue_is_background_thread_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - task_queue_is_background_thread_channel, - core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterNoop%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_noop_channel = - fl_basic_message_channel_new(messenger, call_flutter_noop_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_noop_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_throw_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterThrowError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_channel = - fl_basic_message_channel_new(messenger, - call_flutter_throw_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_throw_error_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_throw_error_from_void_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterThrowErrorFromVoid%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_from_void_channel = - fl_basic_message_channel_new( - messenger, call_flutter_throw_error_from_void_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_throw_error_from_void_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_all_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAllTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_types_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_all_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_all_types_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_all_nullable_types_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAllNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_all_nullable_types_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_all_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_all_nullable_types_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_send_multiple_nullable_types_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterSendMultipleNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_send_multiple_nullable_types_channel = - fl_basic_message_channel_new( - messenger, call_flutter_send_multiple_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_send_multiple_nullable_types_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* - call_flutter_echo_all_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi." - "callFlutterEchoAllNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_all_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_all_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_all_nullable_types_without_recursion_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* - call_flutter_send_multiple_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi." - "callFlutterSendMultipleNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_send_multiple_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_send_multiple_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_send_multiple_nullable_types_without_recursion_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_bool_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_bool_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_int_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_double_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_double_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_string_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_uint8_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_uint8_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_uint8_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_non_null_enum_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_non_null_class_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_non_null_string_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_int_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_int_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_enum_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_non_null_class_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_enum_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_another_enum_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAnotherEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_another_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_another_enum_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_bool_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_bool_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_int_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_int_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_double_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_double_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_double_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_string_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_string_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_uint8_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_uint8_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_uint8_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_enum_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_class_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_enum_list_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_enum_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* - call_flutter_echo_nullable_non_null_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList%" - "s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_class_list_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_class_list_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_string_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_int_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_enum_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_class_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* - call_flutter_echo_nullable_non_null_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap%" - "s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_string_map_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_string_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_int_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_int_map_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_int_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_enum_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_enum_map_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_enum_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_class_map_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_class_map_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_enum_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_enum_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAnotherNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_another_nullable_enum_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_another_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_another_nullable_enum_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_small_api_echo_string_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterSmallApiEchoString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_small_api_echo_string_channel = - fl_basic_message_channel_new( - messenger, call_flutter_small_api_echo_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_small_api_echo_string_channel, - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb, - g_object_ref(api_data), g_object_unref); -} - -void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix) { - g_autofree gchar* dot_suffix = - suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* noop_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop%" - "s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new( - messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* echo_all_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAllTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_types_channel = - fl_basic_message_channel_new(messenger, echo_all_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_all_types_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* throw_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_error_channel = - fl_basic_message_channel_new(messenger, throw_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_error_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* throw_error_from_void_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwErrorFromVoid%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_error_from_void_channel = - fl_basic_message_channel_new(messenger, - throw_error_from_void_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_error_from_void_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* throw_flutter_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwFlutterError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_flutter_error_channel = - fl_basic_message_channel_new(messenger, throw_flutter_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_flutter_error_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_int_channel = - fl_basic_message_channel_new(messenger, echo_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_int_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_double_channel = - fl_basic_message_channel_new(messenger, echo_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_double_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_bool_channel = - fl_basic_message_channel_new(messenger, echo_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_bool_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_string_channel = - fl_basic_message_channel_new(messenger, echo_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_string_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_uint8_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_uint8_list_channel = - fl_basic_message_channel_new(messenger, echo_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_uint8_list_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_object_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoObject%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_object_channel = - fl_basic_message_channel_new(messenger, echo_object_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_object_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_list_channel = - fl_basic_message_channel_new(messenger, echo_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_list_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_list_channel = - fl_basic_message_channel_new(messenger, echo_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_list_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_list_channel = - fl_basic_message_channel_new(messenger, echo_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_list_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_non_null_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_enum_list_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_enum_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_class_list_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_class_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_map_channel = - fl_basic_message_channel_new(messenger, echo_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_map_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_string_map_channel = - fl_basic_message_channel_new(messenger, echo_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_string_map_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_int_map_channel = - fl_basic_message_channel_new(messenger, echo_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_int_map_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_map_channel = - fl_basic_message_channel_new(messenger, echo_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_map_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_map_channel = - fl_basic_message_channel_new(messenger, echo_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_map_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_non_null_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_string_map_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_string_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_int_map_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_int_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_enum_map_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_enum_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_class_map_channel = - fl_basic_message_channel_new(messenger, - echo_non_null_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_class_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_class_wrapper_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoClassWrapper%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_wrapper_channel = - fl_basic_message_channel_new(messenger, echo_class_wrapper_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_wrapper_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_channel = - fl_basic_message_channel_new(messenger, echo_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = - fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_enum_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNamedDefaultString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_named_default_string_channel = - fl_basic_message_channel_new(messenger, - echo_named_default_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_named_default_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_optional_default_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoOptionalDefaultDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_optional_default_double_channel = - fl_basic_message_channel_new(messenger, - echo_optional_default_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_optional_default_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_required_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoRequiredInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_required_int_channel = - fl_basic_message_channel_new(messenger, echo_required_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_required_int_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAllNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_channel = - fl_basic_message_channel_new(messenger, - echo_all_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_all_nullable_types_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_all_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAllNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - echo_all_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, echo_all_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_all_nullable_types_without_recursion_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* extract_nested_nullable_string_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "extractNestedNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) extract_nested_nullable_string_channel = - fl_basic_message_channel_new(messenger, - extract_nested_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - extract_nested_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* create_nested_nullable_string_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "createNestedNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) create_nested_nullable_string_channel = - fl_basic_message_channel_new(messenger, - create_nested_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - create_nested_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* send_multiple_nullable_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "sendMultipleNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_channel = - fl_basic_message_channel_new(messenger, - send_multiple_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - send_multiple_nullable_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* - send_multiple_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi." - "sendMultipleNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - send_multiple_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, - send_multiple_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - send_multiple_nullable_types_without_recursion_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* echo_nullable_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_int_channel = - fl_basic_message_channel_new(messenger, echo_nullable_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_int_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_double_channel = - fl_basic_message_channel_new(messenger, echo_nullable_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_double_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_bool_channel = - fl_basic_message_channel_new(messenger, echo_nullable_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_bool_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_string_channel = - fl_basic_message_channel_new(messenger, echo_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_string_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_uint8_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_uint8_list_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_uint8_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_object_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableObject%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_object_channel = - fl_basic_message_channel_new(messenger, echo_nullable_object_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_object_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_list_channel = - fl_basic_message_channel_new(messenger, echo_nullable_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_list_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_class_list_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_class_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_list_channel = - fl_basic_message_channel_new( - messenger, echo_nullable_non_null_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_list_channel = - fl_basic_message_channel_new( - messenger, echo_nullable_non_null_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_map_channel = - fl_basic_message_channel_new(messenger, echo_nullable_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_string_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_string_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_int_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_int_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_class_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_class_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_string_map_channel = - fl_basic_message_channel_new( - messenger, echo_nullable_non_null_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_int_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_int_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_non_null_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_enum_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_map_channel = - fl_basic_message_channel_new(messenger, - echo_nullable_non_null_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_map_channel = - fl_basic_message_channel_new( - messenger, echo_nullable_non_null_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_nullable_non_null_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_channel = - fl_basic_message_channel_new(messenger, echo_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = - fl_basic_message_channel_new(messenger, - echo_another_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_another_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoOptionalNullableInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_optional_nullable_int_channel = - fl_basic_message_channel_new(messenger, - echo_optional_nullable_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_optional_nullable_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_named_nullable_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNamedNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_named_nullable_string_channel = - fl_basic_message_channel_new(messenger, - echo_named_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_named_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* noop_async_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "noopAsync%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_async_channel = - fl_basic_message_channel_new(messenger, noop_async_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_async_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_async_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_int_channel = - fl_basic_message_channel_new(messenger, echo_async_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_int_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_async_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_double_channel = - fl_basic_message_channel_new(messenger, echo_async_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_double_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_bool_channel = - fl_basic_message_channel_new(messenger, echo_async_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_bool_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_async_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_string_channel = - fl_basic_message_channel_new(messenger, echo_async_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_string_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_uint8_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_uint8_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_uint8_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_object_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncObject%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_object_channel = - fl_basic_message_channel_new(messenger, echo_async_object_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_object_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_list_channel = - fl_basic_message_channel_new(messenger, echo_async_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_list_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_async_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_list_channel = - fl_basic_message_channel_new(messenger, echo_async_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_class_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_class_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_map_channel = - fl_basic_message_channel_new(messenger, echo_async_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_map_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_async_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_string_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_string_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_int_map_channel = - fl_basic_message_channel_new(messenger, echo_async_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_int_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_map_channel = - fl_basic_message_channel_new(messenger, echo_async_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_class_map_channel = - fl_basic_message_channel_new(messenger, echo_async_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_class_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_channel = - fl_basic_message_channel_new(messenger, echo_async_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherAsyncEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = - fl_basic_message_channel_new(messenger, - echo_another_async_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_async_enum_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* throw_async_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwAsyncError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_error_channel = - fl_basic_message_channel_new(messenger, throw_async_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_async_error_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* throw_async_error_from_void_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwAsyncErrorFromVoid%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_error_from_void_channel = - fl_basic_message_channel_new(messenger, - throw_async_error_from_void_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - throw_async_error_from_void_channel, nullptr, nullptr, nullptr); - g_autofree gchar* throw_async_flutter_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwAsyncFlutterError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_flutter_error_channel = - fl_basic_message_channel_new(messenger, - throw_async_flutter_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - throw_async_flutter_error_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_all_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncAllTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_all_types_channel = - fl_basic_message_channel_new(messenger, echo_async_all_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_all_types_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_all_nullable_types_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableAllNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - echo_async_nullable_all_nullable_types_channel = - fl_basic_message_channel_new( - messenger, echo_async_nullable_all_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_all_nullable_types_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* - echo_async_nullable_all_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi." - "echoAsyncNullableAllNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - echo_async_nullable_all_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, - echo_async_nullable_all_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_all_nullable_types_without_recursion_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* echo_async_nullable_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_int_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_double_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_bool_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_bool_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_uint8_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_uint8_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_object_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableObject%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_object_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_object_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_object_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_list_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_map_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_async_nullable_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_channel = - fl_basic_message_channel_new(messenger, - echo_async_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* echo_another_async_nullable_enum_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherAsyncNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = - fl_basic_message_channel_new( - messenger, echo_another_async_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_another_async_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* default_is_main_thread_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "defaultIsMainThread%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) default_is_main_thread_channel = - fl_basic_message_channel_new(messenger, - default_is_main_thread_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(default_is_main_thread_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* task_queue_is_background_thread_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "taskQueueIsBackgroundThread%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) task_queue_is_background_thread_channel = - fl_basic_message_channel_new(messenger, - task_queue_is_background_thread_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - task_queue_is_background_thread_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterNoop%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_noop_channel = - fl_basic_message_channel_new(messenger, call_flutter_noop_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_noop_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_throw_error_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterThrowError%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_channel = - fl_basic_message_channel_new(messenger, - call_flutter_throw_error_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_throw_error_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_throw_error_from_void_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterThrowErrorFromVoid%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_from_void_channel = - fl_basic_message_channel_new( - messenger, call_flutter_throw_error_from_void_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_throw_error_from_void_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_all_types_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAllTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_types_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_all_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_all_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_all_nullable_types_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAllNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_all_nullable_types_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_all_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_all_nullable_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_send_multiple_nullable_types_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterSendMultipleNullableTypes%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_send_multiple_nullable_types_channel = - fl_basic_message_channel_new( - messenger, call_flutter_send_multiple_nullable_types_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_send_multiple_nullable_types_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* - call_flutter_echo_all_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi." - "callFlutterEchoAllNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_all_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_all_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_all_nullable_types_without_recursion_channel, nullptr, - nullptr, nullptr); - g_autofree gchar* - call_flutter_send_multiple_nullable_types_without_recursion_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi." - "callFlutterSendMultipleNullableTypesWithoutRecursion%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_send_multiple_nullable_types_without_recursion_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_send_multiple_nullable_types_without_recursion_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_send_multiple_nullable_types_without_recursion_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_bool_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_bool_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_bool_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_int_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_int_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_double_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_double_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_double_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_string_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_string_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_uint8_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_uint8_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_list_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_enum_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_class_list_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_non_null_enum_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_non_null_class_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_map_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_string_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_int_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_enum_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_class_map_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_non_null_string_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_int_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_int_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_enum_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_non_null_class_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_non_null_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_non_null_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_enum_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_channel, - nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_another_enum_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAnotherEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_another_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_another_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableBool%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_bool_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_bool_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_bool_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_int_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableInt%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_int_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_double_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableDouble%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_double_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_double_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_string_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_uint8_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableUint8List%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_uint8_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_uint8_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_list_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_enum_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableClassList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_class_list_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_enum_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullEnumList%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_enum_list_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_enum_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_enum_list_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* - call_flutter_echo_nullable_non_null_class_list_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList%" - "s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_class_list_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_class_list_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_class_list_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* call_flutter_echo_nullable_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_map_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableStringMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_string_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_int_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_enum_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_class_map_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_nullable_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* - call_flutter_echo_nullable_non_null_string_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap%" - "s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_string_map_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_string_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_string_map_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_int_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullIntMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_int_map_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_int_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_int_map_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_enum_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullEnumMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_enum_map_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_enum_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_enum_map_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_class_map_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullClassMap%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_nullable_non_null_class_map_channel = - fl_basic_message_channel_new( - messenger, - call_flutter_echo_nullable_non_null_class_map_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_non_null_class_map_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* call_flutter_echo_nullable_enum_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_channel = - fl_basic_message_channel_new(messenger, - call_flutter_echo_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAnotherNullableEnum%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) - call_flutter_echo_another_nullable_enum_channel = - fl_basic_message_channel_new( - messenger, call_flutter_echo_another_nullable_enum_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_echo_another_nullable_enum_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* call_flutter_small_api_echo_string_channel_name = - g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterSmallApiEchoString%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_small_api_echo_string_channel = - fl_basic_message_channel_new( - messenger, call_flutter_small_api_echo_string_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - call_flutter_small_api_echo_string_channel, nullptr, nullptr, nullptr); -} - -void core_tests_pigeon_test_host_integration_core_api_respond_noop_async( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse) response = - core_tests_pigeon_test_host_integration_core_api_noop_async_response_new(); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + self->vtable->call_flutter_small_api_echo_string(a_string, handle, self->user_data); +} + +void core_tests_pigeon_test_host_integration_core_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { + g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApi) api_data = core_tests_pigeon_test_host_integration_core_api_new(vtable, user_data, user_data_free_func); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new(messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_channel, core_tests_pigeon_test_host_integration_core_api_noop_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_types_channel = fl_basic_message_channel_new(messenger, echo_all_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_all_types_channel, core_tests_pigeon_test_host_integration_core_api_echo_all_types_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_error_channel = fl_basic_message_channel_new(messenger, throw_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_error_channel, core_tests_pigeon_test_host_integration_core_api_throw_error_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_error_from_void_channel = fl_basic_message_channel_new(messenger, throw_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_error_from_void_channel, core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_flutter_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_flutter_error_channel = fl_basic_message_channel_new(messenger, throw_flutter_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_flutter_error_channel, core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_int_channel = fl_basic_message_channel_new(messenger, echo_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_int_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_double_channel = fl_basic_message_channel_new(messenger, echo_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_double_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_bool_channel = fl_basic_message_channel_new(messenger, echo_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_bool_channel, core_tests_pigeon_test_host_integration_core_api_echo_bool_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_string_channel = fl_basic_message_channel_new(messenger, echo_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_object_channel = fl_basic_message_channel_new(messenger, echo_object_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_object_channel, core_tests_pigeon_test_host_integration_core_api_echo_object_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_list_channel = fl_basic_message_channel_new(messenger, echo_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_list_channel = fl_basic_message_channel_new(messenger, echo_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_list_channel = fl_basic_message_channel_new(messenger, echo_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, echo_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_class_list_channel = fl_basic_message_channel_new(messenger, echo_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_map_channel = fl_basic_message_channel_new(messenger, echo_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_string_map_channel = fl_basic_message_channel_new(messenger, echo_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_int_map_channel = fl_basic_message_channel_new(messenger, echo_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_map_channel = fl_basic_message_channel_new(messenger, echo_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_map_channel = fl_basic_message_channel_new(messenger, echo_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_string_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_int_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_class_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_class_wrapper_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_wrapper_channel = fl_basic_message_channel_new(messenger, echo_class_wrapper_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_wrapper_channel, core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_channel = fl_basic_message_channel_new(messenger, echo_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_named_default_string_channel = fl_basic_message_channel_new(messenger, echo_named_default_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_named_default_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_optional_default_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_optional_default_double_channel = fl_basic_message_channel_new(messenger, echo_optional_default_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_optional_default_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_required_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_required_int_channel = fl_basic_message_channel_new(messenger, echo_required_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_required_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* are_all_nullable_types_equal_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) are_all_nullable_types_equal_channel = fl_basic_message_channel_new(messenger, are_all_nullable_types_equal_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(are_all_nullable_types_equal_channel, core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* get_all_nullable_types_hash_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) get_all_nullable_types_hash_channel = fl_basic_message_channel_new(messenger, get_all_nullable_types_hash_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(get_all_nullable_types_hash_channel, core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_channel = fl_basic_message_channel_new(messenger, echo_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_all_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, echo_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_all_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* extract_nested_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) extract_nested_nullable_string_channel = fl_basic_message_channel_new(messenger, extract_nested_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(extract_nested_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* create_nested_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) create_nested_nullable_string_channel = fl_basic_message_channel_new(messenger, create_nested_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(create_nested_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* send_multiple_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_channel = fl_basic_message_channel_new(messenger, send_multiple_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(send_multiple_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* send_multiple_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, send_multiple_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(send_multiple_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_double_channel = fl_basic_message_channel_new(messenger, echo_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_bool_channel = fl_basic_message_channel_new(messenger, echo_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_bool_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_object_channel = fl_basic_message_channel_new(messenger, echo_nullable_object_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_object_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_class_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_string_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_int_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_class_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_string_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_int_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_another_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_optional_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_optional_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_optional_nullable_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_named_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_named_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_named_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_named_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* noop_async_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_async_channel = fl_basic_message_channel_new(messenger, noop_async_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_async_channel, core_tests_pigeon_test_host_integration_core_api_noop_async_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_int_channel = fl_basic_message_channel_new(messenger, echo_async_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_double_channel = fl_basic_message_channel_new(messenger, echo_async_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_bool_channel = fl_basic_message_channel_new(messenger, echo_async_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_bool_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_string_channel = fl_basic_message_channel_new(messenger, echo_async_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_async_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_object_channel = fl_basic_message_channel_new(messenger, echo_async_object_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_object_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_list_channel = fl_basic_message_channel_new(messenger, echo_async_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_list_channel = fl_basic_message_channel_new(messenger, echo_async_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_class_list_channel = fl_basic_message_channel_new(messenger, echo_async_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_map_channel = fl_basic_message_channel_new(messenger, echo_async_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_string_map_channel = fl_basic_message_channel_new(messenger, echo_async_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_int_map_channel = fl_basic_message_channel_new(messenger, echo_async_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_map_channel = fl_basic_message_channel_new(messenger, echo_async_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_class_map_channel = fl_basic_message_channel_new(messenger, echo_async_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_channel = fl_basic_message_channel_new(messenger, echo_async_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = fl_basic_message_channel_new(messenger, echo_another_async_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_async_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_async_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_error_channel = fl_basic_message_channel_new(messenger, throw_async_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_async_error_channel, core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_async_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_error_from_void_channel = fl_basic_message_channel_new(messenger, throw_async_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_async_error_from_void_channel, core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_async_flutter_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_flutter_error_channel = fl_basic_message_channel_new(messenger, throw_async_flutter_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_async_flutter_error_channel, core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_all_types_channel = fl_basic_message_channel_new(messenger, echo_async_all_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_all_types_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_all_nullable_types_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_all_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_all_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_double_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_bool_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_bool_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_object_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_object_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_object_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_async_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_another_async_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_async_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* default_is_main_thread_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) default_is_main_thread_channel = fl_basic_message_channel_new(messenger, default_is_main_thread_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(default_is_main_thread_channel, core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* task_queue_is_background_thread_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) task_queue_is_background_thread_channel = fl_basic_message_channel_new(messenger, task_queue_is_background_thread_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(task_queue_is_background_thread_channel, core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_noop_channel = fl_basic_message_channel_new(messenger, call_flutter_noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_noop_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_throw_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_channel = fl_basic_message_channel_new(messenger, call_flutter_throw_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_throw_error_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_throw_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_from_void_channel = fl_basic_message_channel_new(messenger, call_flutter_throw_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_throw_error_from_void_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_types_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_all_types_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_nullable_types_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_all_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_send_multiple_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_send_multiple_nullable_types_channel = fl_basic_message_channel_new(messenger, call_flutter_send_multiple_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_send_multiple_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_all_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_send_multiple_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_send_multiple_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, call_flutter_send_multiple_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_send_multiple_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_bool_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_bool_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_int_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_double_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_double_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_string_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_uint8_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_class_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_class_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_string_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_int_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_class_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_string_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_int_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_class_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_another_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_another_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_another_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_bool_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_bool_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_int_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_double_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_double_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_class_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_class_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_string_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_int_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_class_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_string_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_int_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_class_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_nullable_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_another_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_another_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_small_api_echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_small_api_echo_string_channel = fl_basic_message_channel_new(messenger, call_flutter_small_api_echo_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_small_api_echo_string_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb, g_object_ref(api_data), g_object_unref); +} + +void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix) { + g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new(messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_types_channel = fl_basic_message_channel_new(messenger, echo_all_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_all_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* throw_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_error_channel = fl_basic_message_channel_new(messenger, throw_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_error_channel, nullptr, nullptr, nullptr); + g_autofree gchar* throw_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_error_from_void_channel = fl_basic_message_channel_new(messenger, throw_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_error_from_void_channel, nullptr, nullptr, nullptr); + g_autofree gchar* throw_flutter_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_flutter_error_channel = fl_basic_message_channel_new(messenger, throw_flutter_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_flutter_error_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_int_channel = fl_basic_message_channel_new(messenger, echo_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_double_channel = fl_basic_message_channel_new(messenger, echo_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_bool_channel = fl_basic_message_channel_new(messenger, echo_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_bool_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_string_channel = fl_basic_message_channel_new(messenger, echo_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_object_channel = fl_basic_message_channel_new(messenger, echo_object_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_object_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_list_channel = fl_basic_message_channel_new(messenger, echo_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_list_channel = fl_basic_message_channel_new(messenger, echo_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_list_channel = fl_basic_message_channel_new(messenger, echo_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, echo_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_class_list_channel = fl_basic_message_channel_new(messenger, echo_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_map_channel = fl_basic_message_channel_new(messenger, echo_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_string_map_channel = fl_basic_message_channel_new(messenger, echo_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_int_map_channel = fl_basic_message_channel_new(messenger, echo_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_map_channel = fl_basic_message_channel_new(messenger, echo_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_map_channel = fl_basic_message_channel_new(messenger, echo_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_string_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_int_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_class_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_class_wrapper_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_wrapper_channel = fl_basic_message_channel_new(messenger, echo_class_wrapper_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_wrapper_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_channel = fl_basic_message_channel_new(messenger, echo_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_named_default_string_channel = fl_basic_message_channel_new(messenger, echo_named_default_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_named_default_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_optional_default_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_optional_default_double_channel = fl_basic_message_channel_new(messenger, echo_optional_default_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_optional_default_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_required_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_required_int_channel = fl_basic_message_channel_new(messenger, echo_required_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_required_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* are_all_nullable_types_equal_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) are_all_nullable_types_equal_channel = fl_basic_message_channel_new(messenger, are_all_nullable_types_equal_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(are_all_nullable_types_equal_channel, nullptr, nullptr, nullptr); + g_autofree gchar* get_all_nullable_types_hash_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) get_all_nullable_types_hash_channel = fl_basic_message_channel_new(messenger, get_all_nullable_types_hash_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(get_all_nullable_types_hash_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_channel = fl_basic_message_channel_new(messenger, echo_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_all_nullable_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, echo_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_all_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); + g_autofree gchar* extract_nested_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) extract_nested_nullable_string_channel = fl_basic_message_channel_new(messenger, extract_nested_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(extract_nested_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* create_nested_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) create_nested_nullable_string_channel = fl_basic_message_channel_new(messenger, create_nested_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(create_nested_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* send_multiple_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_channel = fl_basic_message_channel_new(messenger, send_multiple_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(send_multiple_nullable_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* send_multiple_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, send_multiple_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(send_multiple_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_double_channel = fl_basic_message_channel_new(messenger, echo_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_bool_channel = fl_basic_message_channel_new(messenger, echo_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_bool_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_object_channel = fl_basic_message_channel_new(messenger, echo_nullable_object_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_object_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_class_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_string_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_int_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_class_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_string_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_int_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_non_null_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_another_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_optional_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_optional_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_optional_nullable_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_named_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_named_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_named_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_named_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* noop_async_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_async_channel = fl_basic_message_channel_new(messenger, noop_async_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_async_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_int_channel = fl_basic_message_channel_new(messenger, echo_async_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_double_channel = fl_basic_message_channel_new(messenger, echo_async_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_bool_channel = fl_basic_message_channel_new(messenger, echo_async_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_bool_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_string_channel = fl_basic_message_channel_new(messenger, echo_async_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_async_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_object_channel = fl_basic_message_channel_new(messenger, echo_async_object_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_object_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_list_channel = fl_basic_message_channel_new(messenger, echo_async_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_list_channel = fl_basic_message_channel_new(messenger, echo_async_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_class_list_channel = fl_basic_message_channel_new(messenger, echo_async_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_map_channel = fl_basic_message_channel_new(messenger, echo_async_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_string_map_channel = fl_basic_message_channel_new(messenger, echo_async_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_int_map_channel = fl_basic_message_channel_new(messenger, echo_async_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_map_channel = fl_basic_message_channel_new(messenger, echo_async_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_class_map_channel = fl_basic_message_channel_new(messenger, echo_async_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_channel = fl_basic_message_channel_new(messenger, echo_async_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = fl_basic_message_channel_new(messenger, echo_another_async_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_async_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* throw_async_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_error_channel = fl_basic_message_channel_new(messenger, throw_async_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_async_error_channel, nullptr, nullptr, nullptr); + g_autofree gchar* throw_async_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_error_from_void_channel = fl_basic_message_channel_new(messenger, throw_async_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_async_error_from_void_channel, nullptr, nullptr, nullptr); + g_autofree gchar* throw_async_flutter_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_flutter_error_channel = fl_basic_message_channel_new(messenger, throw_async_flutter_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_async_flutter_error_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_all_types_channel = fl_basic_message_channel_new(messenger, echo_async_all_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_all_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_all_nullable_types_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_all_nullable_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_all_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_double_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_bool_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_bool_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_object_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_object_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_object_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_async_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_another_async_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_async_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* default_is_main_thread_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) default_is_main_thread_channel = fl_basic_message_channel_new(messenger, default_is_main_thread_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(default_is_main_thread_channel, nullptr, nullptr, nullptr); + g_autofree gchar* task_queue_is_background_thread_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) task_queue_is_background_thread_channel = fl_basic_message_channel_new(messenger, task_queue_is_background_thread_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(task_queue_is_background_thread_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_noop_channel = fl_basic_message_channel_new(messenger, call_flutter_noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_noop_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_throw_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_channel = fl_basic_message_channel_new(messenger, call_flutter_throw_error_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_throw_error_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_throw_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_from_void_channel = fl_basic_message_channel_new(messenger, call_flutter_throw_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_throw_error_from_void_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_types_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_all_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_nullable_types_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_all_nullable_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_send_multiple_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_send_multiple_nullable_types_channel = fl_basic_message_channel_new(messenger, call_flutter_send_multiple_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_send_multiple_nullable_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_all_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_send_multiple_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_send_multiple_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, call_flutter_send_multiple_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_send_multiple_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_bool_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_bool_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_double_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_uint8_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_another_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_another_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_another_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_bool_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_bool_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_double_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_nullable_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_another_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_another_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_small_api_echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_small_api_echo_string_channel = fl_basic_message_channel_new(messenger, call_flutter_small_api_echo_string_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_small_api_echo_string_channel, nullptr, nullptr, nullptr); +} + +void core_tests_pigeon_test_host_integration_core_api_respond_noop_async(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse) response = core_tests_pigeon_test_host_integration_core_api_noop_async_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "noopAsync", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "noopAsync", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse) response = - core_tests_pigeon_test_host_integration_core_api_noop_async_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse) response = core_tests_pigeon_test_host_integration_core_api_noop_async_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "noopAsync", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "noopAsync", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - int64_t return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncInt", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncInt", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncInt", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncInt", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - double return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncDouble", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncDouble", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncDouble", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncDouble", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gboolean return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncBool", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncBool", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncBool", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncBool", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncString", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncString", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncString", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncString", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const uint8_t* return_value, size_t return_value_length) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new( - return_value, return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new(return_value, return_value_length); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncUint8List", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncUint8List", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncUint8List", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncUint8List", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncObject", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncObject", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncObject", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncObject", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncEnumList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnumList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncEnumList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnumList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncClassList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncClassList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncClassList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncClassList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncStringMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncStringMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncStringMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncStringMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncIntMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncIntMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncIntMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncIntMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncEnumMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnumMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncEnumMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnumMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncClassMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncClassMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncClassMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncClassMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnEnum return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncEnum", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnum", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnotherEnum return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAnotherAsyncEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherAsyncEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAnotherAsyncEnum", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherAsyncEnum", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse) response = - core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwAsyncError", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncError", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse) response = - core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwAsyncError", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncError", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse) - response = - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new(); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwAsyncErrorFromVoid", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse) - response = - core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncErrorFromVoid", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwAsyncErrorFromVoid", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse) - response = - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncErrorFromVoid", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwAsyncFlutterError", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse) - response = - core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncFlutterError", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "throwAsyncFlutterError", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncFlutterError", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllTypes* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllTypes* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncAllTypes", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncAllTypes", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse) response = - core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncAllTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypes* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncAllTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableAllNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableAllNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableAllNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableAllNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableAllNullableTypesWithoutRecursion", - error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableAllNullableTypesWithoutRecursion", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableAllNullableTypesWithoutRecursion", - error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - int64_t* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableAllNullableTypesWithoutRecursion", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - double* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gboolean* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const uint8_t* return_value, size_t return_value_length) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new( - return_value, return_value_length); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new(return_value, return_value_length); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableObject", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableObject", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableObject", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableObject", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnEnum* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAsyncNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnotherEnum* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAnotherAsyncNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherAsyncNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoAnotherAsyncNullableEnum", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherAsyncNullableEnum", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse) response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new(); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterNoop", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterNoop", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse) response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterNoop", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterNoop", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterThrowError", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterThrowError", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterThrowError", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterThrowError", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new(); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterThrowErrorFromVoid", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterThrowErrorFromVoid", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterThrowErrorFromVoid", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllTypes* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterThrowErrorFromVoid", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllTypes* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAllTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAllTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypes* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAllNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAllNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypes* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterSendMultipleNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSendMultipleNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterSendMultipleNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSendMultipleNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAllNullableTypesWithoutRecursion", - error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllNullableTypesWithoutRecursion", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAllNullableTypesWithoutRecursion", - error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllNullableTypesWithoutRecursion", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterSendMultipleNullableTypesWithoutRecursion", - error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSendMultipleNullableTypesWithoutRecursion", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterSendMultipleNullableTypesWithoutRecursion", - error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gboolean return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSendMultipleNullableTypesWithoutRecursion", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoBool", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoBool", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - int64_t return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoInt", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoInt", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - double return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const uint8_t* return_value, size_t return_value_length) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new( - return_value, return_value_length); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new(return_value, return_value_length); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullClassList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullClassList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new( - return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNonNullClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnEnum return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnotherEnum return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAnotherEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAnotherEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAnotherEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gboolean* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAnotherEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - int64_t* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - double* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const uint8_t* return_value, size_t return_value_length) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new( - return_value, return_value_length); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new(return_value, return_value_length); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableNonNullClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnEnum* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnotherEnum* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAnotherNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAnotherNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoAnotherNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new( - return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAnotherNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterSmallApiEchoString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse) - response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new_error( - code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSmallApiEchoString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterSmallApiEchoString", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSmallApiEchoString", error->message); } } @@ -25102,43 +13816,29 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApi { GObject parent_instance; FlBinaryMessenger* messenger; - gchar* suffix; + gchar *suffix; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, - core_tests_pigeon_test_flutter_integration_core_api, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, core_tests_pigeon_test_flutter_integration_core_api, G_TYPE_OBJECT) -static void core_tests_pigeon_test_flutter_integration_core_api_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(object); +static void core_tests_pigeon_test_flutter_integration_core_api_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(object); g_clear_object(&self->messenger); g_clear_pointer(&self->suffix, g_free); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_parent_class)->dispose(object); } -static void core_tests_pigeon_test_flutter_integration_core_api_init( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self) {} +static void core_tests_pigeon_test_flutter_integration_core_api_init(CoreTestsPigeonTestFlutterIntegrationCoreApi* self) { +} -static void core_tests_pigeon_test_flutter_integration_core_api_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_dispose; +static void core_tests_pigeon_test_flutter_integration_core_api_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_dispose; } -CoreTestsPigeonTestFlutterIntegrationCoreApi* -core_tests_pigeon_test_flutter_integration_core_api_new( - FlBinaryMessenger* messenger, const gchar* suffix) { - CoreTestsPigeonTestFlutterIntegrationCoreApi* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_get_type(), - nullptr)); +CoreTestsPigeonTestFlutterIntegrationCoreApi* core_tests_pigeon_test_flutter_integration_core_api_new(FlBinaryMessenger* messenger, const gchar* suffix) { + CoreTestsPigeonTestFlutterIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_get_type(), nullptr)); self->messenger = FL_BINARY_MESSENGER(g_object_ref(messenger)); - self->suffix = - suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + self->suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); return self; } @@ -25148,135 +13848,76 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse { FlValue* error; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, - core_tests_pigeon_test_flutter_integration_core_api_noop_response, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_response, G_TYPE_OBJECT) -static void -core_tests_pigeon_test_flutter_integration_core_api_noop_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(object); +static void core_tests_pigeon_test_flutter_integration_core_api_noop_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_noop_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_noop_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_flutter_integration_core_api_noop_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) {} +static void core_tests_pigeon_test_flutter_integration_core_api_noop_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { +} -static void -core_tests_pigeon_test_flutter_integration_core_api_noop_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_noop_response_dispose; +static void core_tests_pigeon_test_flutter_integration_core_api_noop_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_noop_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* -core_tests_pigeon_test_flutter_integration_core_api_noop_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_type(), - nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -static void core_tests_pigeon_test_flutter_integration_core_api_noop_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_noop_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_noop( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_noop(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "noop%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_noop_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_noop_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* -core_tests_pigeon_test_flutter_integration_core_api_noop_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_noop_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_noop_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse { @@ -25286,159 +13927,90 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse, - core_tests_pigeon_test_flutter_integration_core_api_throw_error_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse, core_tests_pigeon_test_flutter_integration_core_api_throw_error_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_throw_error( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_throw_error(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "throwError%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_throw_error_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_throw_error_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse { @@ -25447,146 +14019,76 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse { FlValue* error; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse, - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse, core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -static void -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "throwErrorFromVoid%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse { @@ -25596,881 +14098,462 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllTypes* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( - self)); - return CORE_TESTS_PIGEON_TEST_ALL_TYPES( - fl_value_get_custom_value_object(self->return_value)); +CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(self)); + return CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(self->return_value)); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - CoreTestsPigeonTestAllTypes* everything, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAllTypes* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, - G_OBJECT(everything))); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAllTypes%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(everything))); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( - self)); +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } - return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(self->return_value)); + return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(self->return_value)); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - CoreTestsPigeonTestAllNullableTypes* everything, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAllNullableTypes* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, everything != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_type_id, - G_OBJECT(everything)) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAllNullableTypes%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, everything != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(everything)) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse, - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( - self)); - return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(self->return_value)); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(self)); + return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(self->return_value)); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - gboolean* a_nullable_bool, int64_t* a_nullable_int, - const gchar* a_nullable_string, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_nullable_bool != nullptr - ? fl_value_new_bool(*a_nullable_bool) - : fl_value_new_null()); - fl_value_append_take(args, a_nullable_int != nullptr - ? fl_value_new_int(*a_nullable_int) - : fl_value_new_null()); - fl_value_append_take(args, a_nullable_string != nullptr - ? fl_value_new_string(a_nullable_string) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "sendMultipleNullableTypes%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_nullable_bool != nullptr ? fl_value_new_bool(*a_nullable_bool) : fl_value_new_null()); + fl_value_append_take(args, a_nullable_int != nullptr ? fl_value_new_int(*a_nullable_int) : fl_value_new_null()); + fl_value_append_take(args, a_nullable_string != nullptr ? fl_value_new_string(a_nullable_string) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( - self)); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } - return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(self->return_value)); + return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(self->return_value)); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, - everything != nullptr - ? fl_value_new_custom_object( - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, - G_OBJECT(everything)) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAllNullableTypesWithoutRecursion%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, everything != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(everything)) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( - self)); - return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(self->return_value)); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(self)); + return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(self->return_value)); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - gboolean* a_nullable_bool, int64_t* a_nullable_int, - const gchar* a_nullable_string, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_nullable_bool != nullptr - ? fl_value_new_bool(*a_nullable_bool) - : fl_value_new_null()); - fl_value_append_take(args, a_nullable_int != nullptr - ? fl_value_new_int(*a_nullable_int) - : fl_value_new_null()); - fl_value_append_take(args, a_nullable_string != nullptr - ? fl_value_new_string(a_nullable_string) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "sendMultipleNullableTypesWithoutRecursion%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_nullable_bool != nullptr ? fl_value_new_bool(*a_nullable_bool) : fl_value_new_null()); + fl_value_append_take(args, a_nullable_int != nullptr ? fl_value_new_int(*a_nullable_int) : fl_value_new_null()); + fl_value_append_take(args, a_nullable_string != nullptr ? fl_value_new_string(a_nullable_string) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse { @@ -26480,156 +14563,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( - self), - FALSE); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( - self)); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), FALSE); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(self)); return fl_value_get_bool(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_bool( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean a_bool, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_bool(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean a_bool, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_bool(a_bool)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoBool%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_bool_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse { @@ -26639,156 +14654,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -int64_t -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( - self), - 0); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( - self)); +int64_t core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), 0); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(self)); return fl_value_get_int(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_int( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, int64_t an_int, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_int(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, int64_t an_int, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_int(an_int)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoInt%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_int_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_int_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse { @@ -26798,157 +14745,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -double -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( - self), - 0.0); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( - self)); +double core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), 0.0); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(self)); return fl_value_get_float(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_double( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, double a_double, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_double(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, double a_double, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_float(a_double)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoDouble%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_double_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_double_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse { @@ -26958,157 +14836,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(self)); return fl_value_get_string(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_string( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_string(a_string)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoString%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_string_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_string_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse { @@ -27118,163 +14927,91 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -const uint8_t* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self, - size_t* return_value_length) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( - self)); +const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self, size_t* return_value_length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(self)); if (return_value_length != nullptr) { *return_value_length = fl_value_get_length(self->return_value); } return fl_value_get_uint8_list(self->return_value); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const uint8_t* list, - size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const uint8_t* list, size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_uint8_list(list, list_length)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoUint8List%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse { @@ -27284,156 +15021,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(list)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_list_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse { @@ -27443,159 +15112,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(enum_list)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoEnumList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse { @@ -27605,497 +15203,270 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(class_list)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoClassList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(enum_list)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullEnumList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(class_list)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullClassList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse { @@ -28105,156 +15476,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_map_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse { @@ -28264,159 +15567,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(string_map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoStringMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse { @@ -28426,158 +15658,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(int_map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoIntMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse { @@ -28587,159 +15749,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(enum_map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoEnumMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse { @@ -28749,328 +15840,179 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(class_map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoClassMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(string_map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullStringMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse { @@ -29080,165 +16022,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(int_map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullIntMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse { @@ -29248,334 +16113,179 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(enum_map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullEnumMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(self)); return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(class_map)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullClassMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse { @@ -29585,161 +16295,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAnEnum -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( - self), - static_cast(0)); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( - self)); - return static_cast( - fl_value_get_int(reinterpret_cast(const_cast( - fl_value_get_custom_value(self->return_value))))); +CoreTestsPigeonTestAnEnum core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), static_cast(0)); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(self)); + return static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(self->return_value))))); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - CoreTestsPigeonTestAnEnum an_enum, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAnEnum an_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(an_enum), - (GDestroyNotify)fl_value_unref)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoEnum%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(an_enum), (GDestroyNotify)fl_value_unref)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse { @@ -29749,165 +16386,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose; +static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_type(), - nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAnotherEnum -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( - self), - static_cast(0)); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( - self)); - return static_cast( - fl_value_get_int(reinterpret_cast(const_cast( - fl_value_get_custom_value(self->return_value))))); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), static_cast(0)); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(self)); + return static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(self->return_value))))); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(another_enum), - (GDestroyNotify)fl_value_unref)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAnotherEnum%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(another_enum), (GDestroyNotify)fl_value_unref)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse { @@ -29918,118 +16478,60 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse { gboolean return_value_; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -gboolean* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( - self)); +gboolean* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } @@ -30037,51 +16539,31 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_ return &self->return_value_; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean* a_bool, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean* a_bool, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_bool != nullptr ? fl_value_new_bool(*a_bool) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableBool%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_bool != nullptr ? fl_value_new_bool(*a_bool) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse { @@ -30092,113 +16574,60 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse { int64_t return_value_; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_dispose; +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_type(), - nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -int64_t* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( - self)); +int64_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } @@ -30206,51 +16635,31 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_g return &self->return_value_; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, int64_t* an_int, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, int64_t* an_int, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, an_int != nullptr ? fl_value_new_int(*an_int) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableInt%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, an_int != nullptr ? fl_value_new_int(*an_int) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse { @@ -30261,118 +16670,60 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse { double return_value_; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -double* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( - self)); +double* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } @@ -30380,51 +16731,31 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_respons return &self->return_value_; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, double* a_double, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, double* a_double, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_double != nullptr ? fl_value_new_float(*a_double) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableDouble%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_double != nullptr ? fl_value_new_float(*a_double) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse { @@ -30434,292 +16765,154 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return fl_value_get_string(self->return_value); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_string != nullptr ? fl_value_new_string(a_string) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableString%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_string != nullptr ? fl_value_new_string(a_string) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -const uint8_t* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - self, - size_t* return_value_length) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( - self)); +const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self, size_t* return_value_length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } @@ -30729,52 +16922,31 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_res return fl_value_get_uint8_list(self->return_value); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const uint8_t* list, - size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const uint8_t* list, size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, list != nullptr - ? fl_value_new_uint8_list(list, list_length) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableUint8List%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, list != nullptr ? fl_value_new_uint8_list(list, list_length) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse { @@ -30784,863 +16956,467 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, list != nullptr ? fl_value_ref(list) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, list != nullptr ? fl_value_ref(list) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, enum_list != nullptr ? fl_value_ref(enum_list) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableEnumList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, enum_list != nullptr ? fl_value_ref(enum_list) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, class_list != nullptr ? fl_value_ref(class_list) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableClassList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, class_list != nullptr ? fl_value_ref(class_list) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, enum_list != nullptr ? fl_value_ref(enum_list) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullEnumList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, enum_list != nullptr ? fl_value_ref(enum_list) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, class_list != nullptr ? fl_value_ref(class_list) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullClassList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, class_list != nullptr ? fl_value_ref(class_list) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse { @@ -31650,337 +17426,185 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_dispose; +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_type(), - nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, map != nullptr ? fl_value_ref(map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, map != nullptr ? fl_value_ref(map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, string_map != nullptr ? fl_value_ref(string_map) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableStringMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, string_map != nullptr ? fl_value_ref(string_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse { @@ -31990,1211 +17614,655 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, int_map != nullptr ? fl_value_ref(int_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableIntMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, int_map != nullptr ? fl_value_ref(int_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, enum_map != nullptr ? fl_value_ref(enum_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableEnumMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, enum_map != nullptr ? fl_value_ref(enum_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, class_map != nullptr ? fl_value_ref(class_map) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableClassMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, class_map != nullptr ? fl_value_ref(class_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, string_map != nullptr ? fl_value_ref(string_map) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullStringMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, string_map != nullptr ? fl_value_ref(string_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, int_map != nullptr ? fl_value_ref(int_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullIntMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, int_map != nullptr ? fl_value_ref(int_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, enum_map != nullptr ? fl_value_ref(enum_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullEnumMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, enum_map != nullptr ? fl_value_ref(enum_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, class_map != nullptr ? fl_value_ref(class_map) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullClassMap%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, class_map != nullptr ? fl_value_ref(class_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse { @@ -33205,180 +18273,95 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse { CoreTestsPigeonTestAnEnum return_value_; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAnEnum* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( - self)); +CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } - self->return_value_ = static_cast( - fl_value_get_int(reinterpret_cast(const_cast( - fl_value_get_custom_value(self->return_value))))); + self->return_value_ = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(self->return_value))))); return &self->return_value_; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - CoreTestsPigeonTestAnEnum* an_enum, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAnEnum* an_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, an_enum != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, - fl_value_new_int(*an_enum), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableEnum%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, an_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*an_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_new(response); } -struct - _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse { +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse { GObject parent_instance; FlValue* error; @@ -33386,177 +18369,92 @@ struct CoreTestsPigeonTestAnotherEnum return_value_; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAnotherEnum* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( - self)); +CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } - self->return_value_ = static_cast( - fl_value_get_int(reinterpret_cast(const_cast( - fl_value_get_custom_value(self->return_value))))); + self->return_value_ = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(self->return_value))))); return &self->return_value_; } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, - another_enum != nullptr - ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, - fl_value_new_int(*another_enum), - (GDestroyNotify)fl_value_unref) - : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAnotherNullableEnum%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, another_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*another_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse { @@ -33565,138 +18463,76 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse { FlValue* error; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, - core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_parent_class) - ->dispose(object); -} - -static void -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) {} - -static void -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_type(), - nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_parent_class)->dispose(object); +} + +static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { +} + +static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_noop_async( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_noop_async(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "noopAsync%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_noop_async_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_noop_async_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_new(response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse { @@ -33706,160 +18542,88 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_class_init( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponseClass* - klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_dispose; +static void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - g_object_new( - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(self)); return fl_value_get_string(self->return_value); } -static void -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_string(a_string)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAsyncString%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_cb, - task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_new( - response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_new(response); } struct _CoreTestsPigeonTestHostTrivialApiNoopResponse { @@ -33868,53 +18632,34 @@ struct _CoreTestsPigeonTestHostTrivialApiNoopResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, - core_tests_pigeon_test_host_trivial_api_noop_response, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, core_tests_pigeon_test_host_trivial_api_noop_response, G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_trivial_api_noop_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostTrivialApiNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(object); +static void core_tests_pigeon_test_host_trivial_api_noop_response_dispose(GObject* object) { + CoreTestsPigeonTestHostTrivialApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_trivial_api_noop_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_trivial_api_noop_response_parent_class)->dispose(object); } -static void core_tests_pigeon_test_host_trivial_api_noop_response_init( - CoreTestsPigeonTestHostTrivialApiNoopResponse* self) {} +static void core_tests_pigeon_test_host_trivial_api_noop_response_init(CoreTestsPigeonTestHostTrivialApiNoopResponse* self) { +} -static void core_tests_pigeon_test_host_trivial_api_noop_response_class_init( - CoreTestsPigeonTestHostTrivialApiNoopResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_trivial_api_noop_response_dispose; +static void core_tests_pigeon_test_host_trivial_api_noop_response_class_init(CoreTestsPigeonTestHostTrivialApiNoopResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_trivial_api_noop_response_dispose; } -CoreTestsPigeonTestHostTrivialApiNoopResponse* -core_tests_pigeon_test_host_trivial_api_noop_response_new() { - CoreTestsPigeonTestHostTrivialApiNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(g_object_new( - core_tests_pigeon_test_host_trivial_api_noop_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivial_api_noop_response_new() { + CoreTestsPigeonTestHostTrivialApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_trivial_api_noop_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -CoreTestsPigeonTestHostTrivialApiNoopResponse* -core_tests_pigeon_test_host_trivial_api_noop_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostTrivialApiNoopResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(g_object_new( - core_tests_pigeon_test_host_trivial_api_noop_response_get_type(), - nullptr)); +CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivial_api_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostTrivialApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_trivial_api_noop_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -33926,103 +18671,68 @@ struct _CoreTestsPigeonTestHostTrivialApi { GDestroyNotify user_data_free_func; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostTrivialApi, - core_tests_pigeon_test_host_trivial_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostTrivialApi, core_tests_pigeon_test_host_trivial_api, G_TYPE_OBJECT) static void core_tests_pigeon_test_host_trivial_api_dispose(GObject* object) { - CoreTestsPigeonTestHostTrivialApi* self = - CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(object); + CoreTestsPigeonTestHostTrivialApi* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(object); if (self->user_data != nullptr) { self->user_data_free_func(self->user_data); } self->user_data = nullptr; - G_OBJECT_CLASS(core_tests_pigeon_test_host_trivial_api_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_trivial_api_parent_class)->dispose(object); } -static void core_tests_pigeon_test_host_trivial_api_init( - CoreTestsPigeonTestHostTrivialApi* self) {} +static void core_tests_pigeon_test_host_trivial_api_init(CoreTestsPigeonTestHostTrivialApi* self) { +} -static void core_tests_pigeon_test_host_trivial_api_class_init( - CoreTestsPigeonTestHostTrivialApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_trivial_api_dispose; +static void core_tests_pigeon_test_host_trivial_api_class_init(CoreTestsPigeonTestHostTrivialApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_trivial_api_dispose; } -static CoreTestsPigeonTestHostTrivialApi* -core_tests_pigeon_test_host_trivial_api_new( - const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, - GDestroyNotify user_data_free_func) { - CoreTestsPigeonTestHostTrivialApi* self = - CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(g_object_new( - core_tests_pigeon_test_host_trivial_api_get_type(), nullptr)); +static CoreTestsPigeonTestHostTrivialApi* core_tests_pigeon_test_host_trivial_api_new(const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { + CoreTestsPigeonTestHostTrivialApi* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(g_object_new(core_tests_pigeon_test_host_trivial_api_get_type(), nullptr)); self->vtable = vtable; self->user_data = user_data; self->user_data_free_func = user_data_free_func; return self; } -static void core_tests_pigeon_test_host_trivial_api_noop_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostTrivialApi* self = - CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(user_data); +static void core_tests_pigeon_test_host_trivial_api_noop_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostTrivialApi* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(user_data); if (self->vtable == nullptr || self->vtable->noop == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostTrivialApiNoopResponse) response = - self->vtable->noop(self->user_data); + g_autoptr(CoreTestsPigeonTestHostTrivialApiNoopResponse) response = self->vtable->noop(self->user_data); if (response == nullptr) { g_warning("No response returned to %s.%s", "HostTrivialApi", "noop"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostTrivialApi", "noop", - error->message); - } -} - -void core_tests_pigeon_test_host_trivial_api_set_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix, - const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, - GDestroyNotify user_data_free_func) { - g_autofree gchar* dot_suffix = - suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - g_autoptr(CoreTestsPigeonTestHostTrivialApi) api_data = - core_tests_pigeon_test_host_trivial_api_new(vtable, user_data, - user_data_free_func); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* noop_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new( - messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - noop_channel, core_tests_pigeon_test_host_trivial_api_noop_cb, - g_object_ref(api_data), g_object_unref); -} - -void core_tests_pigeon_test_host_trivial_api_clear_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix) { - g_autofree gchar* dot_suffix = - suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* noop_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new( - messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_channel, nullptr, nullptr, - nullptr); + if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostTrivialApi", "noop", error->message); + } +} + +void core_tests_pigeon_test_host_trivial_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { + g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + g_autoptr(CoreTestsPigeonTestHostTrivialApi) api_data = core_tests_pigeon_test_host_trivial_api_new(vtable, user_data, user_data_free_func); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new(messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_channel, core_tests_pigeon_test_host_trivial_api_noop_cb, g_object_ref(api_data), g_object_unref); +} + +void core_tests_pigeon_test_host_trivial_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix) { + g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new(messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_channel, nullptr, nullptr, nullptr); } struct _CoreTestsPigeonTestHostSmallApiResponseHandle { @@ -34032,48 +18742,30 @@ struct _CoreTestsPigeonTestHostSmallApiResponseHandle { FlBasicMessageChannelResponseHandle* response_handle; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiResponseHandle, - core_tests_pigeon_test_host_small_api_response_handle, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiResponseHandle, core_tests_pigeon_test_host_small_api_response_handle, G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_small_api_response_handle_dispose( - GObject* object) { - CoreTestsPigeonTestHostSmallApiResponseHandle* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_RESPONSE_HANDLE(object); +static void core_tests_pigeon_test_host_small_api_response_handle_dispose(GObject* object) { + CoreTestsPigeonTestHostSmallApiResponseHandle* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_RESPONSE_HANDLE(object); g_clear_object(&self->channel); g_clear_object(&self->response_handle); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_small_api_response_handle_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_response_handle_parent_class)->dispose(object); } -static void core_tests_pigeon_test_host_small_api_response_handle_init( - CoreTestsPigeonTestHostSmallApiResponseHandle* self) {} +static void core_tests_pigeon_test_host_small_api_response_handle_init(CoreTestsPigeonTestHostSmallApiResponseHandle* self) { +} -static void core_tests_pigeon_test_host_small_api_response_handle_class_init( - CoreTestsPigeonTestHostSmallApiResponseHandleClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_small_api_response_handle_dispose; +static void core_tests_pigeon_test_host_small_api_response_handle_class_init(CoreTestsPigeonTestHostSmallApiResponseHandleClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_small_api_response_handle_dispose; } -static CoreTestsPigeonTestHostSmallApiResponseHandle* -core_tests_pigeon_test_host_small_api_response_handle_new( - FlBasicMessageChannel* channel, - FlBasicMessageChannelResponseHandle* response_handle) { - CoreTestsPigeonTestHostSmallApiResponseHandle* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_RESPONSE_HANDLE(g_object_new( - core_tests_pigeon_test_host_small_api_response_handle_get_type(), - nullptr)); +static CoreTestsPigeonTestHostSmallApiResponseHandle* core_tests_pigeon_test_host_small_api_response_handle_new(FlBasicMessageChannel* channel, FlBasicMessageChannelResponseHandle* response_handle) { + CoreTestsPigeonTestHostSmallApiResponseHandle* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_RESPONSE_HANDLE(g_object_new(core_tests_pigeon_test_host_small_api_response_handle_get_type(), nullptr)); self->channel = FL_BASIC_MESSAGE_CHANNEL(g_object_ref(channel)); - self->response_handle = - FL_BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE(g_object_ref(response_handle)); + self->response_handle = FL_BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE(g_object_ref(response_handle)); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiEchoResponse, - core_tests_pigeon_test_host_small_api_echo_response, - CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_ECHO_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiEchoResponse, core_tests_pigeon_test_host_small_api_echo_response, CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_ECHO_RESPONSE, GObject) struct _CoreTestsPigeonTestHostSmallApiEchoResponse { GObject parent_instance; @@ -34081,61 +18773,38 @@ struct _CoreTestsPigeonTestHostSmallApiEchoResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiEchoResponse, - core_tests_pigeon_test_host_small_api_echo_response, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiEchoResponse, core_tests_pigeon_test_host_small_api_echo_response, G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_small_api_echo_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostSmallApiEchoResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(object); +static void core_tests_pigeon_test_host_small_api_echo_response_dispose(GObject* object) { + CoreTestsPigeonTestHostSmallApiEchoResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_small_api_echo_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_echo_response_parent_class)->dispose(object); } -static void core_tests_pigeon_test_host_small_api_echo_response_init( - CoreTestsPigeonTestHostSmallApiEchoResponse* self) {} +static void core_tests_pigeon_test_host_small_api_echo_response_init(CoreTestsPigeonTestHostSmallApiEchoResponse* self) { +} -static void core_tests_pigeon_test_host_small_api_echo_response_class_init( - CoreTestsPigeonTestHostSmallApiEchoResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_small_api_echo_response_dispose; +static void core_tests_pigeon_test_host_small_api_echo_response_class_init(CoreTestsPigeonTestHostSmallApiEchoResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_small_api_echo_response_dispose; } -static CoreTestsPigeonTestHostSmallApiEchoResponse* -core_tests_pigeon_test_host_small_api_echo_response_new( - const gchar* return_value) { - CoreTestsPigeonTestHostSmallApiEchoResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(g_object_new( - core_tests_pigeon_test_host_small_api_echo_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostSmallApiEchoResponse* core_tests_pigeon_test_host_small_api_echo_response_new(const gchar* return_value) { + CoreTestsPigeonTestHostSmallApiEchoResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(g_object_new(core_tests_pigeon_test_host_small_api_echo_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -static CoreTestsPigeonTestHostSmallApiEchoResponse* -core_tests_pigeon_test_host_small_api_echo_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostSmallApiEchoResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(g_object_new( - core_tests_pigeon_test_host_small_api_echo_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostSmallApiEchoResponse* core_tests_pigeon_test_host_small_api_echo_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostSmallApiEchoResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(g_object_new(core_tests_pigeon_test_host_small_api_echo_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiVoidVoidResponse, - core_tests_pigeon_test_host_small_api_void_void_response, - CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_VOID_VOID_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiVoidVoidResponse, core_tests_pigeon_test_host_small_api_void_void_response, CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_VOID_VOID_RESPONSE, GObject) struct _CoreTestsPigeonTestHostSmallApiVoidVoidResponse { GObject parent_instance; @@ -34143,53 +18812,34 @@ struct _CoreTestsPigeonTestHostSmallApiVoidVoidResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiVoidVoidResponse, - core_tests_pigeon_test_host_small_api_void_void_response, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiVoidVoidResponse, core_tests_pigeon_test_host_small_api_void_void_response, G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_small_api_void_void_response_dispose( - GObject* object) { - CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(object); +static void core_tests_pigeon_test_host_small_api_void_void_response_dispose(GObject* object) { + CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_host_small_api_void_void_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_void_void_response_parent_class)->dispose(object); } -static void core_tests_pigeon_test_host_small_api_void_void_response_init( - CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self) {} +static void core_tests_pigeon_test_host_small_api_void_void_response_init(CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self) { +} -static void core_tests_pigeon_test_host_small_api_void_void_response_class_init( - CoreTestsPigeonTestHostSmallApiVoidVoidResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_small_api_void_void_response_dispose; +static void core_tests_pigeon_test_host_small_api_void_void_response_class_init(CoreTestsPigeonTestHostSmallApiVoidVoidResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_small_api_void_void_response_dispose; } -static CoreTestsPigeonTestHostSmallApiVoidVoidResponse* -core_tests_pigeon_test_host_small_api_void_void_response_new() { - CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(g_object_new( - core_tests_pigeon_test_host_small_api_void_void_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostSmallApiVoidVoidResponse* core_tests_pigeon_test_host_small_api_void_void_response_new() { + CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_small_api_void_void_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostSmallApiVoidVoidResponse* -core_tests_pigeon_test_host_small_api_void_void_response_new_error( - const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(g_object_new( - core_tests_pigeon_test_host_small_api_void_void_response_get_type(), - nullptr)); +static CoreTestsPigeonTestHostSmallApiVoidVoidResponse* core_tests_pigeon_test_host_small_api_void_void_response_new_error(const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_small_api_void_void_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, - fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) - : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); return self; } @@ -34201,46 +18851,34 @@ struct _CoreTestsPigeonTestHostSmallApi { GDestroyNotify user_data_free_func; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApi, - core_tests_pigeon_test_host_small_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApi, core_tests_pigeon_test_host_small_api, G_TYPE_OBJECT) static void core_tests_pigeon_test_host_small_api_dispose(GObject* object) { - CoreTestsPigeonTestHostSmallApi* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(object); + CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(object); if (self->user_data != nullptr) { self->user_data_free_func(self->user_data); } self->user_data = nullptr; - G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_parent_class)->dispose(object); } -static void core_tests_pigeon_test_host_small_api_init( - CoreTestsPigeonTestHostSmallApi* self) {} +static void core_tests_pigeon_test_host_small_api_init(CoreTestsPigeonTestHostSmallApi* self) { +} -static void core_tests_pigeon_test_host_small_api_class_init( - CoreTestsPigeonTestHostSmallApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_host_small_api_dispose; +static void core_tests_pigeon_test_host_small_api_class_init(CoreTestsPigeonTestHostSmallApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_small_api_dispose; } -static CoreTestsPigeonTestHostSmallApi* -core_tests_pigeon_test_host_small_api_new( - const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, - GDestroyNotify user_data_free_func) { - CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API( - g_object_new(core_tests_pigeon_test_host_small_api_get_type(), nullptr)); +static CoreTestsPigeonTestHostSmallApi* core_tests_pigeon_test_host_small_api_new(const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { + CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(g_object_new(core_tests_pigeon_test_host_small_api_get_type(), nullptr)); self->vtable = vtable; self->user_data = user_data; self->user_data_free_func = user_data_free_func; return self; } -static void core_tests_pigeon_test_host_small_api_echo_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostSmallApi* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(user_data); +static void core_tests_pigeon_test_host_small_api_echo_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(user_data); if (self->vtable == nullptr || self->vtable->echo == nullptr) { return; @@ -34248,137 +18886,75 @@ static void core_tests_pigeon_test_host_small_api_echo_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostSmallApiResponseHandle) handle = - core_tests_pigeon_test_host_small_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostSmallApiResponseHandle) handle = core_tests_pigeon_test_host_small_api_response_handle_new(channel, response_handle); self->vtable->echo(a_string, handle, self->user_data); } -static void core_tests_pigeon_test_host_small_api_void_void_cb( - FlBasicMessageChannel* channel, FlValue* message_, - FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostSmallApi* self = - CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(user_data); +static void core_tests_pigeon_test_host_small_api_void_void_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(user_data); if (self->vtable == nullptr || self->vtable->void_void == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostSmallApiResponseHandle) handle = - core_tests_pigeon_test_host_small_api_response_handle_new( - channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostSmallApiResponseHandle) handle = core_tests_pigeon_test_host_small_api_response_handle_new(channel, response_handle); self->vtable->void_void(handle, self->user_data); } -void core_tests_pigeon_test_host_small_api_set_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix, - const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, - GDestroyNotify user_data_free_func) { - g_autofree gchar* dot_suffix = - suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - g_autoptr(CoreTestsPigeonTestHostSmallApi) api_data = - core_tests_pigeon_test_host_small_api_new(vtable, user_data, - user_data_free_func); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* echo_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_channel = fl_basic_message_channel_new( - messenger, echo_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - echo_channel, core_tests_pigeon_test_host_small_api_echo_cb, - g_object_ref(api_data), g_object_unref); - g_autofree gchar* void_void_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) void_void_channel = - fl_basic_message_channel_new(messenger, void_void_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler( - void_void_channel, core_tests_pigeon_test_host_small_api_void_void_cb, - g_object_ref(api_data), g_object_unref); -} - -void core_tests_pigeon_test_host_small_api_clear_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix) { - g_autofree gchar* dot_suffix = - suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* echo_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_channel = fl_basic_message_channel_new( - messenger, echo_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_channel, nullptr, nullptr, - nullptr); - g_autofree gchar* void_void_channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid%s", - dot_suffix); - g_autoptr(FlBasicMessageChannel) void_void_channel = - fl_basic_message_channel_new(messenger, void_void_channel_name, - FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(void_void_channel, nullptr, - nullptr, nullptr); -} - -void core_tests_pigeon_test_host_small_api_respond_echo( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, - const gchar* return_value) { - g_autoptr(CoreTestsPigeonTestHostSmallApiEchoResponse) response = - core_tests_pigeon_test_host_small_api_echo_response_new(return_value); +void core_tests_pigeon_test_host_small_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { + g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + g_autoptr(CoreTestsPigeonTestHostSmallApi) api_data = core_tests_pigeon_test_host_small_api_new(vtable, user_data, user_data_free_func); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* echo_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_channel = fl_basic_message_channel_new(messenger, echo_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_channel, core_tests_pigeon_test_host_small_api_echo_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* void_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) void_void_channel = fl_basic_message_channel_new(messenger, void_void_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(void_void_channel, core_tests_pigeon_test_host_small_api_void_void_cb, g_object_ref(api_data), g_object_unref); +} + +void core_tests_pigeon_test_host_small_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix) { + g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* echo_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_channel = fl_basic_message_channel_new(messenger, echo_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_channel, nullptr, nullptr, nullptr); + g_autofree gchar* void_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid%s", dot_suffix); + g_autoptr(FlBasicMessageChannel) void_void_channel = fl_basic_message_channel_new(messenger, void_void_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(void_void_channel, nullptr, nullptr, nullptr); +} + +void core_tests_pigeon_test_host_small_api_respond_echo(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* return_value) { + g_autoptr(CoreTestsPigeonTestHostSmallApiEchoResponse) response = core_tests_pigeon_test_host_small_api_echo_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "echo", - error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "echo", error->message); } } -void core_tests_pigeon_test_host_small_api_respond_error_echo( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostSmallApiEchoResponse) response = - core_tests_pigeon_test_host_small_api_echo_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_small_api_respond_error_echo(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostSmallApiEchoResponse) response = core_tests_pigeon_test_host_small_api_echo_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "echo", - error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "echo", error->message); } } -void core_tests_pigeon_test_host_small_api_respond_void_void( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle) { - g_autoptr(CoreTestsPigeonTestHostSmallApiVoidVoidResponse) response = - core_tests_pigeon_test_host_small_api_void_void_response_new(); +void core_tests_pigeon_test_host_small_api_respond_void_void(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle) { + g_autoptr(CoreTestsPigeonTestHostSmallApiVoidVoidResponse) response = core_tests_pigeon_test_host_small_api_void_void_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", - "voidVoid", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "voidVoid", error->message); } } -void core_tests_pigeon_test_host_small_api_respond_error_void_void( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostSmallApiVoidVoidResponse) response = - core_tests_pigeon_test_host_small_api_void_void_response_new_error( - code, message, details); +void core_tests_pigeon_test_host_small_api_respond_error_void_void(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostSmallApiVoidVoidResponse) response = core_tests_pigeon_test_host_small_api_void_void_response_new_error(code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, - response_handle->response_handle, - response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", - "voidVoid", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "voidVoid", error->message); } } @@ -34386,39 +18962,29 @@ struct _CoreTestsPigeonTestFlutterSmallApi { GObject parent_instance; FlBinaryMessenger* messenger; - gchar* suffix; + gchar *suffix; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApi, - core_tests_pigeon_test_flutter_small_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApi, core_tests_pigeon_test_flutter_small_api, G_TYPE_OBJECT) static void core_tests_pigeon_test_flutter_small_api_dispose(GObject* object) { - CoreTestsPigeonTestFlutterSmallApi* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API(object); + CoreTestsPigeonTestFlutterSmallApi* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API(object); g_clear_object(&self->messenger); g_clear_pointer(&self->suffix, g_free); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_small_api_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_small_api_parent_class)->dispose(object); } -static void core_tests_pigeon_test_flutter_small_api_init( - CoreTestsPigeonTestFlutterSmallApi* self) {} +static void core_tests_pigeon_test_flutter_small_api_init(CoreTestsPigeonTestFlutterSmallApi* self) { +} -static void core_tests_pigeon_test_flutter_small_api_class_init( - CoreTestsPigeonTestFlutterSmallApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_small_api_dispose; +static void core_tests_pigeon_test_flutter_small_api_class_init(CoreTestsPigeonTestFlutterSmallApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_small_api_dispose; } -CoreTestsPigeonTestFlutterSmallApi* -core_tests_pigeon_test_flutter_small_api_new(FlBinaryMessenger* messenger, - const gchar* suffix) { - CoreTestsPigeonTestFlutterSmallApi* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API(g_object_new( - core_tests_pigeon_test_flutter_small_api_get_type(), nullptr)); +CoreTestsPigeonTestFlutterSmallApi* core_tests_pigeon_test_flutter_small_api_new(FlBinaryMessenger* messenger, const gchar* suffix) { + CoreTestsPigeonTestFlutterSmallApi* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API(g_object_new(core_tests_pigeon_test_flutter_small_api_get_type(), nullptr)); self->messenger = FL_BINARY_MESSENGER(g_object_ref(messenger)); - self->suffix = - suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + self->suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); return self; } @@ -34429,158 +18995,88 @@ struct _CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse { FlValue* return_value; }; -G_DEFINE_TYPE( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response, - G_TYPE_OBJECT) - -static void -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( - object); +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response, G_TYPE_OBJECT) + +static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_parent_class)->dispose(object); } -static void -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_init( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) {} +static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_init(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { +} -static void -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_class_init( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_dispose; +static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_class_init(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_dispose; } -static CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(g_object_new( - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_type(), - nullptr)); +static CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( - self), - FALSE); +gboolean core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( - self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestTestMessage* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( - self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( - self)); - return CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( - fl_value_get_custom_value_object(self->return_value)); +CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(self)); + return CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(fl_value_get_custom_value_object(self->return_value)); } -static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list( - CoreTestsPigeonTestFlutterSmallApi* self, - CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list(CoreTestsPigeonTestFlutterSmallApi* self, CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take( - args, fl_value_new_custom_object( - core_tests_pigeon_test_test_message_type_id, G_OBJECT(msg))); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi." - "echoWrappedList%s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, fl_value_new_custom_object(core_tests_pigeon_test_test_message_type_id, G_OBJECT(msg))); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_cb, task); } -CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish( - CoreTestsPigeonTestFlutterSmallApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish(CoreTestsPigeonTestFlutterSmallApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_new( - response); + return core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_new(response); } struct _CoreTestsPigeonTestFlutterSmallApiEchoStringResponse { @@ -34590,144 +19086,86 @@ struct _CoreTestsPigeonTestFlutterSmallApiEchoStringResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, - core_tests_pigeon_test_flutter_small_api_echo_string_response, - G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_flutter_small_api_echo_string_response, G_TYPE_OBJECT) -static void -core_tests_pigeon_test_flutter_small_api_echo_string_response_dispose( - GObject* object) { - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(object); +static void core_tests_pigeon_test_flutter_small_api_echo_string_response_dispose(GObject* object) { + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS( - core_tests_pigeon_test_flutter_small_api_echo_string_response_parent_class) - ->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_small_api_echo_string_response_parent_class)->dispose(object); } -static void core_tests_pigeon_test_flutter_small_api_echo_string_response_init( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) {} +static void core_tests_pigeon_test_flutter_small_api_echo_string_response_init(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { +} -static void -core_tests_pigeon_test_flutter_small_api_echo_string_response_class_init( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = - core_tests_pigeon_test_flutter_small_api_echo_string_response_dispose; +static void core_tests_pigeon_test_flutter_small_api_echo_string_response_class_init(CoreTestsPigeonTestFlutterSmallApiEchoStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_small_api_echo_string_response_dispose; } -static CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* -core_tests_pigeon_test_flutter_small_api_echo_string_response_new( - FlValue* response) { - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self = - CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(g_object_new( - core_tests_pigeon_test_flutter_small_api_echo_string_response_get_type(), - nullptr)); +static CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_flutter_small_api_echo_string_response_new(FlValue* response) { + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_small_api_echo_string_response_get_type(), nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } else { + } + else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), - FALSE); +gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), FALSE); return self->error != nullptr; } -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* -core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), - nullptr); - g_assert( - core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( - self)); +FlValue* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), nullptr); + g_assert(core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(self)); return fl_value_get_list_value(self->error, 2); } -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail( - CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), - nullptr); - g_assert( - !core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( - self)); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), nullptr); + g_assert(!core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(self)); return fl_value_get_string(self->return_value); } -static void core_tests_pigeon_test_flutter_small_api_echo_string_cb( - GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_small_api_echo_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_small_api_echo_string( - CoreTestsPigeonTestFlutterSmallApi* self, const gchar* a_string, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data) { +void core_tests_pigeon_test_flutter_small_api_echo_string(CoreTestsPigeonTestFlutterSmallApi* self, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_string(a_string)); - g_autofree gchar* channel_name = g_strdup_printf( - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString%" - "s", - self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = - core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new( - self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString%s", self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send( - channel, args, cancellable, - core_tests_pigeon_test_flutter_small_api_echo_string_cb, task); + fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_small_api_echo_string_cb, task); } -CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* -core_tests_pigeon_test_flutter_small_api_echo_string_finish( - CoreTestsPigeonTestFlutterSmallApi* self, GAsyncResult* result, - GError** error) { +CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_flutter_small_api_echo_string_finish(CoreTestsPigeonTestFlutterSmallApi* self, GAsyncResult* result, GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = - FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = - fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_small_api_echo_string_response_new( - response); + return core_tests_pigeon_test_flutter_small_api_echo_string_response_new(response); } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h index a117cd018f1c..1599f1478325 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h @@ -43,9 +43,7 @@ typedef enum { * */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestUnusedClass, - core_tests_pigeon_test_unused_class, - CORE_TESTS_PIGEON_TEST, UNUSED_CLASS, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestUnusedClass, core_tests_pigeon_test_unused_class, CORE_TESTS_PIGEON_TEST, UNUSED_CLASS, GObject) /** * core_tests_pigeon_test_unused_class_new: @@ -55,8 +53,7 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestUnusedClass, * * Returns: a new #CoreTestsPigeonTestUnusedClass */ -CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new( - FlValue* a_field); +CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new(FlValue* a_field); /** * core_tests_pigeon_test_unused_class_get_a_field @@ -66,8 +63,7 @@ CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_unused_class_get_a_field( - CoreTestsPigeonTestUnusedClass* object); +FlValue* core_tests_pigeon_test_unused_class_get_a_field(CoreTestsPigeonTestUnusedClass* object); /** * core_tests_pigeon_test_unused_class_equals: @@ -78,8 +74,7 @@ FlValue* core_tests_pigeon_test_unused_class_get_a_field( * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_unused_class_equals( - CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b); +gboolean core_tests_pigeon_test_unused_class_equals(CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b); /** * core_tests_pigeon_test_unused_class_hash: @@ -89,8 +84,7 @@ gboolean core_tests_pigeon_test_unused_class_equals( * * Returns: the hash code. */ -guint core_tests_pigeon_test_unused_class_hash( - CoreTestsPigeonTestUnusedClass* object); +guint core_tests_pigeon_test_unused_class_hash(CoreTestsPigeonTestUnusedClass* object); /** * CoreTestsPigeonTestAllTypes: @@ -98,9 +92,7 @@ guint core_tests_pigeon_test_unused_class_hash( * A class containing all supported types. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllTypes, - core_tests_pigeon_test_all_types, CORE_TESTS_PIGEON_TEST, - ALL_TYPES, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllTypes, core_tests_pigeon_test_all_types, CORE_TESTS_PIGEON_TEST, ALL_TYPES, GObject) /** * core_tests_pigeon_test_all_types_new: @@ -141,19 +133,7 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllTypes, * * Returns: a new #CoreTestsPigeonTestAllTypes */ -CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( - gboolean a_bool, int64_t an_int, int64_t an_int64, double a_double, - const uint8_t* a_byte_array, size_t a_byte_array_length, - const int32_t* a4_byte_array, size_t a4_byte_array_length, - const int64_t* a8_byte_array, size_t a8_byte_array_length, - const double* a_float_array, size_t a_float_array_length, - CoreTestsPigeonTestAnEnum an_enum, - CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, - FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, - FlValue* double_list, FlValue* bool_list, FlValue* enum_list, - FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, - FlValue* string_map, FlValue* int_map, FlValue* enum_map, - FlValue* object_map, FlValue* list_map, FlValue* map_map); +CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new(gboolean a_bool, int64_t an_int, int64_t an_int64, double a_double, const uint8_t* a_byte_array, size_t a_byte_array_length, const int32_t* a4_byte_array, size_t a4_byte_array_length, const int64_t* a8_byte_array, size_t a8_byte_array_length, const double* a_float_array, size_t a_float_array_length, CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map); /** * core_tests_pigeon_test_all_types_get_a_bool @@ -163,8 +143,7 @@ CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( * * Returns: the field value. */ -gboolean core_tests_pigeon_test_all_types_get_a_bool( - CoreTestsPigeonTestAllTypes* object); +gboolean core_tests_pigeon_test_all_types_get_a_bool(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_an_int @@ -174,8 +153,7 @@ gboolean core_tests_pigeon_test_all_types_get_a_bool( * * Returns: the field value. */ -int64_t core_tests_pigeon_test_all_types_get_an_int( - CoreTestsPigeonTestAllTypes* object); +int64_t core_tests_pigeon_test_all_types_get_an_int(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_an_int64 @@ -185,8 +163,7 @@ int64_t core_tests_pigeon_test_all_types_get_an_int( * * Returns: the field value. */ -int64_t core_tests_pigeon_test_all_types_get_an_int64( - CoreTestsPigeonTestAllTypes* object); +int64_t core_tests_pigeon_test_all_types_get_an_int64(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_a_double @@ -196,8 +173,7 @@ int64_t core_tests_pigeon_test_all_types_get_an_int64( * * Returns: the field value. */ -double core_tests_pigeon_test_all_types_get_a_double( - CoreTestsPigeonTestAllTypes* object); +double core_tests_pigeon_test_all_types_get_a_double(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_a_byte_array @@ -208,8 +184,7 @@ double core_tests_pigeon_test_all_types_get_a_double( * * Returns: the field value. */ -const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array( - CoreTestsPigeonTestAllTypes* object, size_t* length); +const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array(CoreTestsPigeonTestAllTypes* object, size_t* length); /** * core_tests_pigeon_test_all_types_get_a4_byte_array @@ -220,8 +195,7 @@ const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array( * * Returns: the field value. */ -const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array( - CoreTestsPigeonTestAllTypes* object, size_t* length); +const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array(CoreTestsPigeonTestAllTypes* object, size_t* length); /** * core_tests_pigeon_test_all_types_get_a8_byte_array @@ -232,8 +206,7 @@ const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array( * * Returns: the field value. */ -const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array( - CoreTestsPigeonTestAllTypes* object, size_t* length); +const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array(CoreTestsPigeonTestAllTypes* object, size_t* length); /** * core_tests_pigeon_test_all_types_get_a_float_array @@ -244,8 +217,7 @@ const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array( * * Returns: the field value. */ -const double* core_tests_pigeon_test_all_types_get_a_float_array( - CoreTestsPigeonTestAllTypes* object, size_t* length); +const double* core_tests_pigeon_test_all_types_get_a_float_array(CoreTestsPigeonTestAllTypes* object, size_t* length); /** * core_tests_pigeon_test_all_types_get_an_enum @@ -255,8 +227,7 @@ const double* core_tests_pigeon_test_all_types_get_a_float_array( * * Returns: the field value. */ -CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum( - CoreTestsPigeonTestAllTypes* object); +CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_another_enum @@ -266,9 +237,7 @@ CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum( * * Returns: the field value. */ -CoreTestsPigeonTestAnotherEnum -core_tests_pigeon_test_all_types_get_another_enum( - CoreTestsPigeonTestAllTypes* object); +CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_all_types_get_another_enum(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_a_string @@ -278,8 +247,7 @@ core_tests_pigeon_test_all_types_get_another_enum( * * Returns: the field value. */ -const gchar* core_tests_pigeon_test_all_types_get_a_string( - CoreTestsPigeonTestAllTypes* object); +const gchar* core_tests_pigeon_test_all_types_get_a_string(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_an_object @@ -289,8 +257,7 @@ const gchar* core_tests_pigeon_test_all_types_get_a_string( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_an_object( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_an_object(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_list @@ -300,8 +267,7 @@ FlValue* core_tests_pigeon_test_all_types_get_an_object( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_string_list @@ -311,8 +277,7 @@ FlValue* core_tests_pigeon_test_all_types_get_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_string_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_string_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_int_list @@ -322,8 +287,7 @@ FlValue* core_tests_pigeon_test_all_types_get_string_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_int_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_int_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_double_list @@ -333,8 +297,7 @@ FlValue* core_tests_pigeon_test_all_types_get_int_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_double_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_double_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_bool_list @@ -344,8 +307,7 @@ FlValue* core_tests_pigeon_test_all_types_get_double_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_bool_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_bool_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_enum_list @@ -355,8 +317,7 @@ FlValue* core_tests_pigeon_test_all_types_get_bool_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_enum_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_enum_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_object_list @@ -366,8 +327,7 @@ FlValue* core_tests_pigeon_test_all_types_get_enum_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_object_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_object_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_list_list @@ -377,8 +337,7 @@ FlValue* core_tests_pigeon_test_all_types_get_object_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_list_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_list_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_map_list @@ -388,8 +347,7 @@ FlValue* core_tests_pigeon_test_all_types_get_list_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_map_list( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_map_list(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_map @@ -399,8 +357,7 @@ FlValue* core_tests_pigeon_test_all_types_get_map_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_map( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_map(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_string_map @@ -410,8 +367,7 @@ FlValue* core_tests_pigeon_test_all_types_get_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_string_map( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_string_map(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_int_map @@ -421,8 +377,7 @@ FlValue* core_tests_pigeon_test_all_types_get_string_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_int_map( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_int_map(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_enum_map @@ -432,8 +387,7 @@ FlValue* core_tests_pigeon_test_all_types_get_int_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_enum_map( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_enum_map(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_object_map @@ -443,8 +397,7 @@ FlValue* core_tests_pigeon_test_all_types_get_enum_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_object_map( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_object_map(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_list_map @@ -454,8 +407,7 @@ FlValue* core_tests_pigeon_test_all_types_get_object_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_list_map( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_list_map(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_map_map @@ -465,8 +417,7 @@ FlValue* core_tests_pigeon_test_all_types_get_list_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_map_map( - CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_map_map(CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_equals: @@ -477,8 +428,7 @@ FlValue* core_tests_pigeon_test_all_types_get_map_map( * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_all_types_equals( - CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b); +gboolean core_tests_pigeon_test_all_types_equals(CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b); /** * core_tests_pigeon_test_all_types_hash: @@ -488,8 +438,7 @@ gboolean core_tests_pigeon_test_all_types_equals( * * Returns: the hash code. */ -guint core_tests_pigeon_test_all_types_hash( - CoreTestsPigeonTestAllTypes* object); +guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* object); /** * CoreTestsPigeonTestAllNullableTypes: @@ -497,9 +446,7 @@ guint core_tests_pigeon_test_all_types_hash( * A class containing all supported nullable types. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypes, - core_tests_pigeon_test_all_nullable_types, - CORE_TESTS_PIGEON_TEST, ALL_NULLABLE_TYPES, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypes, core_tests_pigeon_test_all_nullable_types, CORE_TESTS_PIGEON_TEST, ALL_NULLABLE_TYPES, GObject) /** * core_tests_pigeon_test_all_nullable_types_new: @@ -543,24 +490,7 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypes, * * Returns: a new #CoreTestsPigeonTestAllNullableTypes */ -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_all_nullable_types_new( - gboolean* a_nullable_bool, int64_t* a_nullable_int, - int64_t* a_nullable_int64, double* a_nullable_double, - const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, - const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, - const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, - const double* a_nullable_float_array, size_t a_nullable_float_array_length, - CoreTestsPigeonTestAnEnum* a_nullable_enum, - CoreTestsPigeonTestAnotherEnum* another_nullable_enum, - const gchar* a_nullable_string, FlValue* a_nullable_object, - CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, - FlValue* string_list, FlValue* int_list, FlValue* double_list, - FlValue* bool_list, FlValue* enum_list, FlValue* object_list, - FlValue* list_list, FlValue* map_list, FlValue* recursive_class_list, - FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, - FlValue* object_map, FlValue* list_map, FlValue* map_map, - FlValue* recursive_class_map); +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_new(gboolean* a_nullable_bool, int64_t* a_nullable_int, int64_t* a_nullable_int64, double* a_nullable_double, const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, const double* a_nullable_float_array, size_t a_nullable_float_array_length, CoreTestsPigeonTestAnEnum* a_nullable_enum, CoreTestsPigeonTestAnotherEnum* another_nullable_enum, const gchar* a_nullable_string, FlValue* a_nullable_object, CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* recursive_class_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map, FlValue* recursive_class_map); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool @@ -570,8 +500,7 @@ core_tests_pigeon_test_all_nullable_types_new( * * Returns: the field value. */ -gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool( - CoreTestsPigeonTestAllNullableTypes* object); +gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_int @@ -581,8 +510,7 @@ gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool( * * Returns: the field value. */ -int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int( - CoreTestsPigeonTestAllNullableTypes* object); +int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64 @@ -592,8 +520,7 @@ int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int( * * Returns: the field value. */ -int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64( - CoreTestsPigeonTestAllNullableTypes* object); +int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_double @@ -603,8 +530,7 @@ int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64( * * Returns: the field value. */ -double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double( - CoreTestsPigeonTestAllNullableTypes* object); +double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array @@ -615,9 +541,7 @@ double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double( * * Returns: the field value. */ -const uint8_t* -core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array( - CoreTestsPigeonTestAllNullableTypes* object, size_t* length); +const uint8_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array(CoreTestsPigeonTestAllNullableTypes* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array @@ -628,9 +552,7 @@ core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array( * * Returns: the field value. */ -const int32_t* -core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array( - CoreTestsPigeonTestAllNullableTypes* object, size_t* length); +const int32_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array(CoreTestsPigeonTestAllNullableTypes* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array @@ -641,9 +563,7 @@ core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array( * * Returns: the field value. */ -const int64_t* -core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array( - CoreTestsPigeonTestAllNullableTypes* object, size_t* length); +const int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array(CoreTestsPigeonTestAllNullableTypes* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array @@ -654,9 +574,7 @@ core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array( * * Returns: the field value. */ -const double* -core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array( - CoreTestsPigeonTestAllNullableTypes* object, size_t* length); +const double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array(CoreTestsPigeonTestAllNullableTypes* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum @@ -666,9 +584,7 @@ core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array( * * Returns: the field value. */ -CoreTestsPigeonTestAnEnum* -core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum( - CoreTestsPigeonTestAllNullableTypes* object); +CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum @@ -678,9 +594,7 @@ core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum( * * Returns: the field value. */ -CoreTestsPigeonTestAnotherEnum* -core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum( - CoreTestsPigeonTestAllNullableTypes* object); +CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_string @@ -690,8 +604,7 @@ core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum( * * Returns: the field value. */ -const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string( - CoreTestsPigeonTestAllNullableTypes* object); +const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_object @@ -701,8 +614,7 @@ const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_all_nullable_types @@ -712,9 +624,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object( * * Returns: the field value. */ -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_all_nullable_types_get_all_nullable_types( - CoreTestsPigeonTestAllNullableTypes* object); +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_get_all_nullable_types(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_list @@ -724,8 +634,7 @@ core_tests_pigeon_test_all_nullable_types_get_all_nullable_types( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_string_list @@ -735,8 +644,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_int_list @@ -746,8 +654,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_double_list @@ -757,8 +664,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_bool_list @@ -768,8 +674,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_enum_list @@ -779,8 +684,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_object_list @@ -790,8 +694,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_list_list @@ -801,8 +704,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_map_list @@ -812,8 +714,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_recursive_class_list @@ -823,8 +724,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_map @@ -834,8 +734,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_map( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_string_map @@ -845,8 +744,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_int_map @@ -856,8 +754,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_enum_map @@ -867,8 +764,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_object_map @@ -878,8 +774,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_list_map @@ -889,8 +784,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_map_map @@ -900,8 +794,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_recursive_class_map @@ -911,8 +804,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map( - CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map(CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_equals: @@ -923,9 +815,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map( * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_all_nullable_types_equals( - CoreTestsPigeonTestAllNullableTypes* a, - CoreTestsPigeonTestAllNullableTypes* b); +gboolean core_tests_pigeon_test_all_nullable_types_equals(CoreTestsPigeonTestAllNullableTypes* a, CoreTestsPigeonTestAllNullableTypes* b); /** * core_tests_pigeon_test_all_nullable_types_hash: @@ -935,8 +825,7 @@ gboolean core_tests_pigeon_test_all_nullable_types_equals( * * Returns: the hash code. */ -guint core_tests_pigeon_test_all_nullable_types_hash( - CoreTestsPigeonTestAllNullableTypes* object); +guint core_tests_pigeon_test_all_nullable_types_hash(CoreTestsPigeonTestAllNullableTypes* object); /** * CoreTestsPigeonTestAllNullableTypesWithoutRecursion: @@ -946,10 +835,7 @@ guint core_tests_pigeon_test_all_nullable_types_hash( * test Swift classes. */ -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion, - core_tests_pigeon_test_all_nullable_types_without_recursion, - CORE_TESTS_PIGEON_TEST, ALL_NULLABLE_TYPES_WITHOUT_RECURSION, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypesWithoutRecursion, core_tests_pigeon_test_all_nullable_types_without_recursion, CORE_TESTS_PIGEON_TEST, ALL_NULLABLE_TYPES_WITHOUT_RECURSION, GObject) /** * core_tests_pigeon_test_all_nullable_types_without_recursion_new: @@ -990,22 +876,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestAllNullableTypesWithoutRecursion */ -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_all_nullable_types_without_recursion_new( - gboolean* a_nullable_bool, int64_t* a_nullable_int, - int64_t* a_nullable_int64, double* a_nullable_double, - const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, - const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, - const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, - const double* a_nullable_float_array, size_t a_nullable_float_array_length, - CoreTestsPigeonTestAnEnum* a_nullable_enum, - CoreTestsPigeonTestAnotherEnum* another_nullable_enum, - const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, - FlValue* string_list, FlValue* int_list, FlValue* double_list, - FlValue* bool_list, FlValue* enum_list, FlValue* object_list, - FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, - FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, - FlValue* map_map); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_nullable_types_without_recursion_new(gboolean* a_nullable_bool, int64_t* a_nullable_int, int64_t* a_nullable_int64, double* a_nullable_double, const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, const double* a_nullable_float_array, size_t a_nullable_float_array_length, CoreTestsPigeonTestAnEnum* a_nullable_enum, CoreTestsPigeonTestAnotherEnum* another_nullable_enum, const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool @@ -1015,9 +886,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new( * * Returns: the field value. */ -gboolean* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +gboolean* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int @@ -1027,9 +896,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool( * * Returns: the field value. */ -int64_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64 @@ -1039,9 +906,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int( * * Returns: the field value. */ -int64_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double @@ -1051,9 +916,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64 * * Returns: the field value. */ -double* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array @@ -1064,10 +927,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_doubl * * Returns: the field value. */ -const uint8_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, - size_t* length); +const uint8_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array @@ -1078,10 +938,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_ * * Returns: the field value. */ -const int32_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, - size_t* length); +const int32_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array @@ -1092,10 +949,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte * * Returns: the field value. */ -const int64_t* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, - size_t* length); +const int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array @@ -1106,10 +960,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte * * Returns: the field value. */ -const double* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, - size_t* length); +const double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum @@ -1119,9 +970,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float * * Returns: the field value. */ -CoreTestsPigeonTestAnEnum* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum @@ -1131,9 +980,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum( * * Returns: the field value. */ -CoreTestsPigeonTestAnotherEnum* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string @@ -1143,9 +990,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable * * Returns: the field value. */ -const gchar* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +const gchar* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object @@ -1155,9 +1000,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_strin * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_list @@ -1167,8 +1010,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_objec * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list @@ -1178,9 +1020,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list @@ -1190,9 +1030,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list @@ -1202,9 +1040,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list @@ -1214,9 +1050,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list @@ -1226,9 +1060,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list @@ -1238,9 +1070,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list @@ -1250,9 +1080,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list @@ -1262,9 +1090,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_map @@ -1274,8 +1100,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map @@ -1285,9 +1110,7 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map @@ -1297,9 +1120,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map @@ -1309,9 +1130,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map @@ -1321,9 +1140,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map @@ -1333,9 +1150,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map @@ -1345,35 +1160,28 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map( * * Returns: the field value. */ -FlValue* -core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_equals: * @a: a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. * @b: another #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. * - * Checks if two #CoreTestsPigeonTestAllNullableTypesWithoutRecursion objects - * are equal. + * Checks if two #CoreTestsPigeonTestAllNullableTypesWithoutRecursion objects are equal. * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b); +gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_hash: * @object: a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. * - * Calculates a hash code for a - * #CoreTestsPigeonTestAllNullableTypesWithoutRecursion object. + * Calculates a hash code for a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion object. * * Returns: the hash code. */ -guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * CoreTestsPigeonTestAllClassesWrapper: @@ -1385,9 +1193,7 @@ guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( * than `AllTypes` when testing doesn't require both (ie. testing null classes). */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllClassesWrapper, - core_tests_pigeon_test_all_classes_wrapper, - CORE_TESTS_PIGEON_TEST, ALL_CLASSES_WRAPPER, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllClassesWrapper, core_tests_pigeon_test_all_classes_wrapper, CORE_TESTS_PIGEON_TEST, ALL_CLASSES_WRAPPER, GObject) /** * core_tests_pigeon_test_all_classes_wrapper_new: @@ -1403,14 +1209,7 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllClassesWrapper, * * Returns: a new #CoreTestsPigeonTestAllClassesWrapper */ -CoreTestsPigeonTestAllClassesWrapper* -core_tests_pigeon_test_all_classes_wrapper_new( - CoreTestsPigeonTestAllNullableTypes* all_nullable_types, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* - all_nullable_types_without_recursion, - CoreTestsPigeonTestAllTypes* all_types, FlValue* class_list, - FlValue* nullable_class_list, FlValue* class_map, - FlValue* nullable_class_map); +CoreTestsPigeonTestAllClassesWrapper* core_tests_pigeon_test_all_classes_wrapper_new(CoreTestsPigeonTestAllNullableTypes* all_nullable_types, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* all_nullable_types_without_recursion, CoreTestsPigeonTestAllTypes* all_types, FlValue* class_list, FlValue* nullable_class_list, FlValue* class_map, FlValue* nullable_class_map); /** * core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types @@ -1420,9 +1219,7 @@ core_tests_pigeon_test_all_classes_wrapper_new( * * Returns: the field value. */ -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types( - CoreTestsPigeonTestAllClassesWrapper* object); +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types(CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion @@ -1432,9 +1229,7 @@ core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types( * * Returns: the field value. */ -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion( - CoreTestsPigeonTestAllClassesWrapper* object); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion(CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_all_types @@ -1444,9 +1239,7 @@ core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recurs * * Returns: the field value. */ -CoreTestsPigeonTestAllTypes* -core_tests_pigeon_test_all_classes_wrapper_get_all_types( - CoreTestsPigeonTestAllClassesWrapper* object); +CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_types(CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_class_list @@ -1456,8 +1249,7 @@ core_tests_pigeon_test_all_classes_wrapper_get_all_types( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list( - CoreTestsPigeonTestAllClassesWrapper* object); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list(CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list @@ -1467,8 +1259,7 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list( - CoreTestsPigeonTestAllClassesWrapper* object); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list(CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_class_map @@ -1478,8 +1269,7 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map( - CoreTestsPigeonTestAllClassesWrapper* object); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map(CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map @@ -1489,8 +1279,7 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map( - CoreTestsPigeonTestAllClassesWrapper* object); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map(CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_equals: @@ -1501,9 +1290,7 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map( * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_all_classes_wrapper_equals( - CoreTestsPigeonTestAllClassesWrapper* a, - CoreTestsPigeonTestAllClassesWrapper* b); +gboolean core_tests_pigeon_test_all_classes_wrapper_equals(CoreTestsPigeonTestAllClassesWrapper* a, CoreTestsPigeonTestAllClassesWrapper* b); /** * core_tests_pigeon_test_all_classes_wrapper_hash: @@ -1513,8 +1300,7 @@ gboolean core_tests_pigeon_test_all_classes_wrapper_equals( * * Returns: the hash code. */ -guint core_tests_pigeon_test_all_classes_wrapper_hash( - CoreTestsPigeonTestAllClassesWrapper* object); +guint core_tests_pigeon_test_all_classes_wrapper_hash(CoreTestsPigeonTestAllClassesWrapper* object); /** * CoreTestsPigeonTestTestMessage: @@ -1522,9 +1308,7 @@ guint core_tests_pigeon_test_all_classes_wrapper_hash( * A data class containing a List, used in unit tests. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestTestMessage, - core_tests_pigeon_test_test_message, - CORE_TESTS_PIGEON_TEST, TEST_MESSAGE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestTestMessage, core_tests_pigeon_test_test_message, CORE_TESTS_PIGEON_TEST, TEST_MESSAGE, GObject) /** * core_tests_pigeon_test_test_message_new: @@ -1534,8 +1318,7 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestTestMessage, * * Returns: a new #CoreTestsPigeonTestTestMessage */ -CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new( - FlValue* test_list); +CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new(FlValue* test_list); /** * core_tests_pigeon_test_test_message_get_test_list @@ -1545,8 +1328,7 @@ CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new( * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_test_message_get_test_list( - CoreTestsPigeonTestTestMessage* object); +FlValue* core_tests_pigeon_test_test_message_get_test_list(CoreTestsPigeonTestTestMessage* object); /** * core_tests_pigeon_test_test_message_equals: @@ -1557,8 +1339,7 @@ FlValue* core_tests_pigeon_test_test_message_get_test_list( * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_test_message_equals( - CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b); +gboolean core_tests_pigeon_test_test_message_equals(CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b); /** * core_tests_pigeon_test_test_message_hash: @@ -1568,13 +1349,9 @@ gboolean core_tests_pigeon_test_test_message_equals( * * Returns: the hash code. */ -guint core_tests_pigeon_test_test_message_hash( - CoreTestsPigeonTestTestMessage* object); +guint core_tests_pigeon_test_test_message_hash(CoreTestsPigeonTestTestMessage* object); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestMessageCodec, - core_tests_pigeon_test_message_codec, - CORE_TESTS_PIGEON_TEST, MESSAGE_CODEC, - FlStandardMessageCodec) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestMessageCodec, core_tests_pigeon_test_message_codec, CORE_TESTS_PIGEON_TEST, MESSAGE_CODEC, FlStandardMessageCodec) /** * Custom type ID constants: @@ -1588,24 +1365,15 @@ extern const int core_tests_pigeon_test_another_enum_type_id; extern const int core_tests_pigeon_test_unused_class_type_id; extern const int core_tests_pigeon_test_all_types_type_id; extern const int core_tests_pigeon_test_all_nullable_types_type_id; -extern const int - core_tests_pigeon_test_all_nullable_types_without_recursion_type_id; +extern const int core_tests_pigeon_test_all_nullable_types_without_recursion_type_id; extern const int core_tests_pigeon_test_all_classes_wrapper_type_id; extern const int core_tests_pigeon_test_test_message_type_id; -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApi, - core_tests_pigeon_test_host_integration_core_api, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApi, core_tests_pigeon_test_host_integration_core_api, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API, GObject) -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle, - core_tests_pigeon_test_host_integration_core_api_response_handle, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle, core_tests_pigeon_test_host_integration_core_api_response_handle, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE, GObject) -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, - core_tests_pigeon_test_host_integration_core_api_noop_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_NOOP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, core_tests_pigeon_test_host_integration_core_api_noop_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_NOOP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_noop_response_new: @@ -1614,8 +1382,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* -core_tests_pigeon_test_host_integration_core_api_noop_response_new(); +CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_host_integration_core_api_noop_response_new(); /** * core_tests_pigeon_test_host_integration_core_api_noop_response_new_error: @@ -1627,15 +1394,9 @@ core_tests_pigeon_test_host_integration_core_api_noop_response_new(); * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* -core_tests_pigeon_test_host_integration_core_api_noop_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_host_integration_core_api_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse, - core_tests_pigeon_test_host_integration_core_api_echo_all_types_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new: @@ -1644,9 +1405,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new( - CoreTestsPigeonTestAllTypes* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new(CoreTestsPigeonTestAllTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error: @@ -1658,15 +1417,9 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse, - core_tests_pigeon_test_host_integration_core_api_throw_error_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_throw_error_response_new: @@ -1675,9 +1428,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_error_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error: @@ -1689,26 +1440,18 @@ core_tests_pigeon_test_host_integration_core_api_throw_error_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse, - core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new: * * Creates a new response to HostIntegrationCoreApi.throwErrorFromVoid. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* -core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new(); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new(); /** * core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error: @@ -1718,30 +1461,20 @@ core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_ * * Creates a new error response to HostIntegrationCoreApi.throwErrorFromVoid. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* -core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse, - core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new: * * Creates a new response to HostIntegrationCoreApi.throwFlutterError. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error: @@ -1751,18 +1484,11 @@ core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_ne * * Creates a new error response to HostIntegrationCoreApi.throwFlutterError. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* -core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_int_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_int_response_new: @@ -1771,9 +1497,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_int_response_new( - int64_t return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_response_new(int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error: @@ -1785,15 +1509,9 @@ core_tests_pigeon_test_host_integration_core_api_echo_int_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_double_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_double_response_new: @@ -1802,9 +1520,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_double_response_new( - double return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_double_response_new(double return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error: @@ -1816,15 +1532,9 @@ core_tests_pigeon_test_host_integration_core_api_echo_double_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, - core_tests_pigeon_test_host_integration_core_api_echo_bool_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new: @@ -1833,9 +1543,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new( - gboolean return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new(gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error: @@ -1847,15 +1555,9 @@ core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_string_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_string_response_new: @@ -1864,9 +1566,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_string_response_new( - const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_response_new(const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error: @@ -1878,27 +1578,18 @@ core_tests_pigeon_test_host_integration_core_api_echo_string_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoUint8List. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new( - const uint8_t* return_value, size_t return_value_length); +CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error: @@ -1908,18 +1599,11 @@ core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new( * * Creates a new error response to HostIntegrationCoreApi.echoUint8List. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse, - core_tests_pigeon_test_host_integration_core_api_echo_object_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_object_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_object_response_new: @@ -1928,9 +1612,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_object_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_object_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error: @@ -1942,15 +1624,9 @@ core_tests_pigeon_test_host_integration_core_api_echo_object_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_list_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, core_tests_pigeon_test_host_integration_core_api_echo_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_list_response_new: @@ -1959,9 +1635,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_host_integration_core_api_echo_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error: @@ -1973,15 +1647,9 @@ core_tests_pigeon_test_host_integration_core_api_echo_list_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new: @@ -1990,9 +1658,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error: @@ -2004,27 +1670,18 @@ core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_class_list_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoClassList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error: @@ -2034,30 +1691,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new( * * Creates a new error response to HostIntegrationCoreApi.echoClassList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullEnumList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error: @@ -2067,30 +1714,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_respons * * Creates a new error response to HostIntegrationCoreApi.echoNonNullEnumList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullClassList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error: @@ -2100,18 +1737,11 @@ core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_respon * * Creates a new error response to HostIntegrationCoreApi.echoNonNullClassList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_map_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_map_response_new: @@ -2120,9 +1750,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error: @@ -2134,27 +1762,18 @@ core_tests_pigeon_test_host_integration_core_api_echo_map_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_string_map_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoStringMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error: @@ -2164,18 +1783,11 @@ core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new( * * Creates a new error response to HostIntegrationCoreApi.echoStringMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_int_map_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new: @@ -2184,9 +1796,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error: @@ -2198,15 +1808,9 @@ core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new: @@ -2215,9 +1819,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error: @@ -2229,15 +1831,9 @@ core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_class_map_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new: @@ -2246,9 +1842,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error: @@ -2260,27 +1854,18 @@ core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullStringMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error: @@ -2290,30 +1875,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_respon * * Creates a new error response to HostIntegrationCoreApi.echoNonNullStringMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullIntMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error: @@ -2323,30 +1898,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_ * * Creates a new error response to HostIntegrationCoreApi.echoNonNullIntMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullEnumMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error: @@ -2356,30 +1921,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response * * Creates a new error response to HostIntegrationCoreApi.echoNonNullEnumMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullClassMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error: @@ -2389,30 +1944,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_respons * * Creates a new error response to HostIntegrationCoreApi.echoNonNullClassMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse, - core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new: * * Creates a new response to HostIntegrationCoreApi.echoClassWrapper. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new( - CoreTestsPigeonTestAllClassesWrapper* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new(CoreTestsPigeonTestAllClassesWrapper* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error: @@ -2422,18 +1967,11 @@ core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new * * Creates a new error response to HostIntegrationCoreApi.echoClassWrapper. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* -core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_enum_response, - CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new: @@ -2442,9 +1980,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new( - CoreTestsPigeonTestAnEnum return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new(CoreTestsPigeonTestAnEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error: @@ -2456,27 +1992,18 @@ core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new( * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new: * * Creates a new response to HostIntegrationCoreApi.echoAnotherEnum. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( - CoreTestsPigeonTestAnotherEnum return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new(CoreTestsPigeonTestAnotherEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error: @@ -2486,30 +2013,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( * * Creates a new error response to HostIntegrationCoreApi.echoAnotherEnum. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNamedDefaultString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new( - const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new(const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error: @@ -2517,33 +2034,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_respo * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoNamedDefaultString. + * Creates a new error response to HostIntegrationCoreApi.echoNamedDefaultString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new: * * Creates a new response to HostIntegrationCoreApi.echoOptionalDefaultDouble. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new( - double return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new(double return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error: @@ -2551,33 +2057,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_re * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoOptionalDefaultDouble. + * Creates a new error response to HostIntegrationCoreApi.echoOptionalDefaultDouble. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_required_int_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_required_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new: * * Creates a new response to HostIntegrationCoreApi.echoRequiredInt. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new( - int64_t return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new(int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error: @@ -2587,30 +2082,66 @@ core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new( * * Creates a new error response to HostIntegrationCoreApi.echoRequiredInt. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse, core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE, GObject) + +/** + * core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new: + * + * Creates a new response to HostIntegrationCoreApi.areAllNullableTypesEqual. + * + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new(gboolean return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new_error: + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Creates a new error response to HostIntegrationCoreApi.areAllNullableTypesEqual. + * + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new_error(const gchar* code, const gchar* message, FlValue* details); + +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse, core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE, GObject) + +/** + * core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new: + * + * Creates a new response to HostIntegrationCoreApi.getAllNullableTypesHash. + * + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new(int64_t return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error: + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Creates a new error response to HostIntegrationCoreApi.getAllNullableTypesHash. + * + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error(const gchar* code, const gchar* message, FlValue* details); + +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new: * * Creates a new response to HostIntegrationCoreApi.echoAllNullableTypes. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new( - CoreTestsPigeonTestAllNullableTypes* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error: @@ -2620,32 +2151,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_respons * * Creates a new error response to HostIntegrationCoreApi.echoAllNullableTypes. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new: * - * Creates a new response to - * HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion. + * Creates a new response to HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error: @@ -2653,33 +2172,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion. + * Creates a new error response to HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new: * * Creates a new response to HostIntegrationCoreApi.extractNestedNullableString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new( - const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new(const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error: @@ -2687,33 +2195,22 @@ core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.extractNestedNullableString. + * Creates a new error response to HostIntegrationCoreApi.extractNestedNullableString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new: * * Creates a new response to HostIntegrationCoreApi.createNestedNullableString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new( - CoreTestsPigeonTestAllClassesWrapper* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new(CoreTestsPigeonTestAllClassesWrapper* return_value); /** * core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error: @@ -2721,33 +2218,22 @@ core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_r * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.createNestedNullableString. + * Creates a new error response to HostIntegrationCoreApi.createNestedNullableString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse, - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new: * * Creates a new response to HostIntegrationCoreApi.sendMultipleNullableTypes. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new( - CoreTestsPigeonTestAllNullableTypes* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error: @@ -2755,35 +2241,22 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_re * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.sendMultipleNullableTypes. + * Creates a new error response to HostIntegrationCoreApi.sendMultipleNullableTypes. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new: * - * Creates a new response to - * HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion. + * Creates a new response to HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error: @@ -2791,33 +2264,22 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_wi * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion. + * Creates a new error response to HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableInt. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new( - int64_t* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new(int64_t* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error: @@ -2827,30 +2289,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new( * * Creates a new error response to HostIntegrationCoreApi.echoNullableInt. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableDouble. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new( - double* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new(double* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error: @@ -2860,30 +2312,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_n * * Creates a new error response to HostIntegrationCoreApi.echoNullableDouble. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableBool. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new( - gboolean* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new(gboolean* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error: @@ -2893,30 +2335,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new * * Creates a new error response to HostIntegrationCoreApi.echoNullableBool. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new( - const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new(const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error: @@ -2926,30 +2358,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_n * * Creates a new error response to HostIntegrationCoreApi.echoNullableString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableUint8List. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new( - const uint8_t* return_value, size_t return_value_length); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error: @@ -2959,30 +2381,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_respon * * Creates a new error response to HostIntegrationCoreApi.echoNullableUint8List. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableObject. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error: @@ -2992,30 +2404,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_n * * Creates a new error response to HostIntegrationCoreApi.echoNullableObject. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error: @@ -3025,30 +2427,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new * * Creates a new error response to HostIntegrationCoreApi.echoNullableList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableEnumList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error: @@ -3058,30 +2450,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_respons * * Creates a new error response to HostIntegrationCoreApi.echoNullableEnumList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableClassList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error: @@ -3091,31 +2473,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_respon * * Creates a new error response to HostIntegrationCoreApi.echoNullableClassList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullEnumList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error: @@ -3123,35 +2494,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_lis * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoNullableNonNullEnumList. + * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullEnumList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new: * - * Creates a new response to - * HostIntegrationCoreApi.echoNullableNonNullClassList. + * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullClassList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error: @@ -3159,33 +2517,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_li * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoNullableNonNullClassList. + * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullClassList. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error: @@ -3195,30 +2542,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new( * * Creates a new error response to HostIntegrationCoreApi.echoNullableMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableStringMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error: @@ -3228,30 +2565,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_respon * * Creates a new error response to HostIntegrationCoreApi.echoNullableStringMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableIntMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error: @@ -3261,30 +2588,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_ * * Creates a new error response to HostIntegrationCoreApi.echoNullableIntMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableEnumMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error: @@ -3294,30 +2611,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response * * Creates a new error response to HostIntegrationCoreApi.echoNullableEnumMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableClassMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error: @@ -3327,32 +2634,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_respons * * Creates a new error response to HostIntegrationCoreApi.echoNullableClassMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new: * - * Creates a new response to - * HostIntegrationCoreApi.echoNullableNonNullStringMap. + * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullStringMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error: @@ -3360,33 +2655,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_m * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoNullableNonNullStringMap. + * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullStringMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullIntMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error: @@ -3394,33 +2678,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoNullableNonNullIntMap. + * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullIntMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullEnumMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error: @@ -3428,34 +2701,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoNullableNonNullEnumMap. + * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullEnumMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullClassMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new( - FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new(FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error: @@ -3463,33 +2724,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_ma * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoNullableNonNullClassMap. + * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullClassMap. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableEnum. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new( - CoreTestsPigeonTestAnEnum* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new(CoreTestsPigeonTestAnEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error: @@ -3499,30 +2749,20 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new * * Creates a new error response to HostIntegrationCoreApi.echoNullableEnum. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, - core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new: * * Creates a new response to HostIntegrationCoreApi.echoAnotherNullableEnum. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new( - CoreTestsPigeonTestAnotherEnum* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new(CoreTestsPigeonTestAnotherEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error: @@ -3530,33 +2770,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_resp * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoAnotherNullableEnum. + * Creates a new error response to HostIntegrationCoreApi.echoAnotherNullableEnum. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, - core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new: * * Creates a new response to HostIntegrationCoreApi.echoOptionalNullableInt. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new( - int64_t* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new(int64_t* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error: @@ -3564,33 +2793,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_resp * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoOptionalNullableInt. + * Creates a new error response to HostIntegrationCoreApi.echoOptionalNullableInt. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* -core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse, - core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNamedNullableString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new( - const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new(const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error: @@ -3598,33 +2816,22 @@ core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_resp * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.echoNamedNullableString. + * Creates a new error response to HostIntegrationCoreApi.echoNamedNullableString. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* -core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse, - core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse, core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new: * * Creates a new response to HostIntegrationCoreApi.defaultIsMainThread. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* -core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new( - gboolean return_value); +CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new(gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error: @@ -3634,30 +2841,20 @@ core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response * * Creates a new error response to HostIntegrationCoreApi.defaultIsMainThread. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* -core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error(const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse, - core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response, - CORE_TESTS_PIGEON_TEST, - HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse, core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new: * * Creates a new response to HostIntegrationCoreApi.taskQueueIsBackgroundThread. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* -core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new( - gboolean return_value); +CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new(gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error: @@ -3665,528 +2862,173 @@ core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to - * HostIntegrationCoreApi.taskQueueIsBackgroundThread. + * Creates a new error response to HostIntegrationCoreApi.taskQueueIsBackgroundThread. * - * Returns: a new - * #CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse + * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* -core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error(const gchar* code, const gchar* message, FlValue* details); /** * CoreTestsPigeonTestHostIntegrationCoreApiVTable: * - * Table of functions exposed by HostIntegrationCoreApi to be implemented by the - * API provider. + * Table of functions exposed by HostIntegrationCoreApi to be implemented by the API provider. */ typedef struct { - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* (*noop)( - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* ( - *echo_all_types)(CoreTestsPigeonTestAllTypes* everything, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* (*throw_error)( - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* ( - *throw_error_from_void)(gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* ( - *throw_flutter_error)(gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* (*echo_int)( - int64_t an_int, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* (*echo_double)( - double a_double, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* (*echo_bool)( - gboolean a_bool, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* (*echo_string)( - const gchar* a_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* ( - *echo_uint8_list)(const uint8_t* a_uint8_list, size_t a_uint8_list_length, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* (*echo_object)( - FlValue* an_object, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* (*echo_list)( - FlValue* list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* ( - *echo_enum_list)(FlValue* enum_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* ( - *echo_class_list)(FlValue* class_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* ( - *echo_non_null_enum_list)(FlValue* enum_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* ( - *echo_non_null_class_list)(FlValue* class_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* (*echo_map)( - FlValue* map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* ( - *echo_string_map)(FlValue* string_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* (*echo_int_map)( - FlValue* int_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* ( - *echo_enum_map)(FlValue* enum_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* ( - *echo_class_map)(FlValue* class_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* ( - *echo_non_null_string_map)(FlValue* string_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* ( - *echo_non_null_int_map)(FlValue* int_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* ( - *echo_non_null_enum_map)(FlValue* enum_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* ( - *echo_non_null_class_map)(FlValue* class_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* ( - *echo_class_wrapper)(CoreTestsPigeonTestAllClassesWrapper* wrapper, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* (*echo_enum)( - CoreTestsPigeonTestAnEnum an_enum, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* ( - *echo_another_enum)(CoreTestsPigeonTestAnotherEnum another_enum, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* ( - *echo_named_default_string)(const gchar* a_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* ( - *echo_optional_default_double)(double a_double, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* ( - *echo_required_int)(int64_t an_int, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* ( - *echo_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* ( - *echo_all_nullable_types_without_recursion)( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* ( - *extract_nested_nullable_string)( - CoreTestsPigeonTestAllClassesWrapper* wrapper, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* ( - *create_nested_nullable_string)(const gchar* nullable_string, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* ( - *send_multiple_nullable_types)(gboolean* a_nullable_bool, - int64_t* a_nullable_int, - const gchar* a_nullable_string, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* ( - *send_multiple_nullable_types_without_recursion)( - gboolean* a_nullable_bool, int64_t* a_nullable_int, - const gchar* a_nullable_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* ( - *echo_nullable_int)(int64_t* a_nullable_int, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* ( - *echo_nullable_double)(double* a_nullable_double, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* ( - *echo_nullable_bool)(gboolean* a_nullable_bool, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* ( - *echo_nullable_string)(const gchar* a_nullable_string, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* ( - *echo_nullable_uint8_list)(const uint8_t* a_nullable_uint8_list, - size_t a_nullable_uint8_list_length, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* ( - *echo_nullable_object)(FlValue* a_nullable_object, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* ( - *echo_nullable_list)(FlValue* a_nullable_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* ( - *echo_nullable_enum_list)(FlValue* enum_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* ( - *echo_nullable_class_list)(FlValue* class_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* ( - *echo_nullable_non_null_enum_list)(FlValue* enum_list, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* ( - *echo_nullable_non_null_class_list)(FlValue* class_list, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* ( - *echo_nullable_map)(FlValue* map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* ( - *echo_nullable_string_map)(FlValue* string_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* ( - *echo_nullable_int_map)(FlValue* int_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* ( - *echo_nullable_enum_map)(FlValue* enum_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* ( - *echo_nullable_class_map)(FlValue* class_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* ( - *echo_nullable_non_null_string_map)(FlValue* string_map, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* ( - *echo_nullable_non_null_int_map)(FlValue* int_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* ( - *echo_nullable_non_null_enum_map)(FlValue* enum_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* ( - *echo_nullable_non_null_class_map)(FlValue* class_map, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* ( - *echo_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* ( - *echo_another_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* ( - *echo_optional_nullable_int)(int64_t* a_nullable_int, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* ( - *echo_named_nullable_string)(const gchar* a_nullable_string, - gpointer user_data); - void (*noop_async)( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_int)( - int64_t an_int, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_double)( - double a_double, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_bool)( - gboolean a_bool, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_string)( - const gchar* a_string, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_uint8_list)( - const uint8_t* a_uint8_list, size_t a_uint8_list_length, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_object)( - FlValue* an_object, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_list)( - FlValue* list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_enum_list)( - FlValue* enum_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_class_list)( - FlValue* class_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_map)( - FlValue* map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_string_map)( - FlValue* string_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_int_map)( - FlValue* int_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_enum_map)( - FlValue* enum_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_class_map)( - FlValue* class_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_enum)( - CoreTestsPigeonTestAnEnum an_enum, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_another_async_enum)( - CoreTestsPigeonTestAnotherEnum another_enum, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*throw_async_error)( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*throw_async_error_from_void)( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*throw_async_flutter_error)( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_all_types)( - CoreTestsPigeonTestAllTypes* everything, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_all_nullable_types)( - CoreTestsPigeonTestAllNullableTypes* everything, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_all_nullable_types_without_recursion)( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_int)( - int64_t* an_int, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_double)( - double* a_double, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_bool)( - gboolean* a_bool, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_string)( - const gchar* a_string, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_uint8_list)( - const uint8_t* a_uint8_list, size_t a_uint8_list_length, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_object)( - FlValue* an_object, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_list)( - FlValue* list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_enum_list)( - FlValue* enum_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_class_list)( - FlValue* class_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_map)( - FlValue* map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_string_map)( - FlValue* string_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_int_map)( - FlValue* int_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_enum_map)( - FlValue* enum_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_class_map)( - FlValue* class_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_async_nullable_enum)( - CoreTestsPigeonTestAnEnum* an_enum, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*echo_another_async_nullable_enum)( - CoreTestsPigeonTestAnotherEnum* another_enum, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* ( - *default_is_main_thread)(gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* ( - *task_queue_is_background_thread)(gpointer user_data); - void (*call_flutter_noop)( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_throw_error)( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_throw_error_from_void)( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_all_types)( - CoreTestsPigeonTestAllTypes* everything, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_all_nullable_types)( - CoreTestsPigeonTestAllNullableTypes* everything, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_send_multiple_nullable_types)( - gboolean* a_nullable_bool, int64_t* a_nullable_int, - const gchar* a_nullable_string, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_all_nullable_types_without_recursion)( - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_send_multiple_nullable_types_without_recursion)( - gboolean* a_nullable_bool, int64_t* a_nullable_int, - const gchar* a_nullable_string, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_bool)( - gboolean a_bool, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_int)( - int64_t an_int, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_double)( - double a_double, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_string)( - const gchar* a_string, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_uint8_list)( - const uint8_t* list, size_t list_length, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_list)( - FlValue* list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_enum_list)( - FlValue* enum_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_class_list)( - FlValue* class_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_non_null_enum_list)( - FlValue* enum_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_non_null_class_list)( - FlValue* class_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_map)( - FlValue* map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_string_map)( - FlValue* string_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_int_map)( - FlValue* int_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_enum_map)( - FlValue* enum_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_class_map)( - FlValue* class_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_non_null_string_map)( - FlValue* string_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_non_null_int_map)( - FlValue* int_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_non_null_enum_map)( - FlValue* enum_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_non_null_class_map)( - FlValue* class_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_enum)( - CoreTestsPigeonTestAnEnum an_enum, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_another_enum)( - CoreTestsPigeonTestAnotherEnum another_enum, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_bool)( - gboolean* a_bool, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_int)( - int64_t* an_int, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_double)( - double* a_double, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_string)( - const gchar* a_string, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_uint8_list)( - const uint8_t* list, size_t list_length, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_list)( - FlValue* list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_enum_list)( - FlValue* enum_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_class_list)( - FlValue* class_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_non_null_enum_list)( - FlValue* enum_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_non_null_class_list)( - FlValue* class_list, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_map)( - FlValue* map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_string_map)( - FlValue* string_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_int_map)( - FlValue* int_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_enum_map)( - FlValue* enum_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_class_map)( - FlValue* class_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_non_null_string_map)( - FlValue* string_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_non_null_int_map)( - FlValue* int_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_non_null_enum_map)( - FlValue* enum_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_non_null_class_map)( - FlValue* class_map, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_nullable_enum)( - CoreTestsPigeonTestAnEnum* an_enum, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_echo_another_nullable_enum)( - CoreTestsPigeonTestAnotherEnum* another_enum, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); - void (*call_flutter_small_api_echo_string)( - const gchar* a_string, - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* (*noop)(gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* (*echo_all_types)(CoreTestsPigeonTestAllTypes* everything, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* (*throw_error)(gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* (*throw_error_from_void)(gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* (*throw_flutter_error)(gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* (*echo_int)(int64_t an_int, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* (*echo_double)(double a_double, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* (*echo_bool)(gboolean a_bool, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* (*echo_string)(const gchar* a_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* (*echo_uint8_list)(const uint8_t* a_uint8_list, size_t a_uint8_list_length, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* (*echo_object)(FlValue* an_object, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* (*echo_list)(FlValue* list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* (*echo_enum_list)(FlValue* enum_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* (*echo_class_list)(FlValue* class_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* (*echo_non_null_enum_list)(FlValue* enum_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* (*echo_non_null_class_list)(FlValue* class_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* (*echo_map)(FlValue* map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* (*echo_string_map)(FlValue* string_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* (*echo_int_map)(FlValue* int_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* (*echo_enum_map)(FlValue* enum_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* (*echo_class_map)(FlValue* class_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* (*echo_non_null_string_map)(FlValue* string_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* (*echo_non_null_int_map)(FlValue* int_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* (*echo_non_null_enum_map)(FlValue* enum_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* (*echo_non_null_class_map)(FlValue* class_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* (*echo_class_wrapper)(CoreTestsPigeonTestAllClassesWrapper* wrapper, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* (*echo_enum)(CoreTestsPigeonTestAnEnum an_enum, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* (*echo_another_enum)(CoreTestsPigeonTestAnotherEnum another_enum, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* (*echo_named_default_string)(const gchar* a_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* (*echo_optional_default_double)(double a_double, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* (*echo_required_int)(int64_t an_int, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* (*are_all_nullable_types_equal)(CoreTestsPigeonTestAllNullableTypes* a, CoreTestsPigeonTestAllNullableTypes* b, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* (*get_all_nullable_types_hash)(CoreTestsPigeonTestAllNullableTypes* value, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* (*echo_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* (*echo_all_nullable_types_without_recursion)(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* (*extract_nested_nullable_string)(CoreTestsPigeonTestAllClassesWrapper* wrapper, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* (*create_nested_nullable_string)(const gchar* nullable_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* (*send_multiple_nullable_types)(gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* (*send_multiple_nullable_types_without_recursion)(gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* (*echo_nullable_int)(int64_t* a_nullable_int, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* (*echo_nullable_double)(double* a_nullable_double, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* (*echo_nullable_bool)(gboolean* a_nullable_bool, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* (*echo_nullable_string)(const gchar* a_nullable_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* (*echo_nullable_uint8_list)(const uint8_t* a_nullable_uint8_list, size_t a_nullable_uint8_list_length, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* (*echo_nullable_object)(FlValue* a_nullable_object, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* (*echo_nullable_list)(FlValue* a_nullable_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* (*echo_nullable_enum_list)(FlValue* enum_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* (*echo_nullable_class_list)(FlValue* class_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* (*echo_nullable_non_null_enum_list)(FlValue* enum_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* (*echo_nullable_non_null_class_list)(FlValue* class_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* (*echo_nullable_map)(FlValue* map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* (*echo_nullable_string_map)(FlValue* string_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* (*echo_nullable_int_map)(FlValue* int_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* (*echo_nullable_enum_map)(FlValue* enum_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* (*echo_nullable_class_map)(FlValue* class_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* (*echo_nullable_non_null_string_map)(FlValue* string_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* (*echo_nullable_non_null_int_map)(FlValue* int_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* (*echo_nullable_non_null_enum_map)(FlValue* enum_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* (*echo_nullable_non_null_class_map)(FlValue* class_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* (*echo_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* (*echo_another_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* (*echo_optional_nullable_int)(int64_t* a_nullable_int, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* (*echo_named_nullable_string)(const gchar* a_nullable_string, gpointer user_data); + void (*noop_async)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_int)(int64_t an_int, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_double)(double a_double, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_bool)(gboolean a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_uint8_list)(const uint8_t* a_uint8_list, size_t a_uint8_list_length, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_object)(FlValue* an_object, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_list)(FlValue* list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_map)(FlValue* map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_enum)(CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_another_async_enum)(CoreTestsPigeonTestAnotherEnum another_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*throw_async_error)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*throw_async_error_from_void)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*throw_async_flutter_error)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_all_types)(CoreTestsPigeonTestAllTypes* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_all_nullable_types_without_recursion)(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_int)(int64_t* an_int, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_double)(double* a_double, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_bool)(gboolean* a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_uint8_list)(const uint8_t* a_uint8_list, size_t a_uint8_list_length, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_object)(FlValue* an_object, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_list)(FlValue* list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_map)(FlValue* map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_async_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_another_async_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* (*default_is_main_thread)(gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* (*task_queue_is_background_thread)(gpointer user_data); + void (*call_flutter_noop)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_throw_error)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_throw_error_from_void)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_all_types)(CoreTestsPigeonTestAllTypes* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_send_multiple_nullable_types)(gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_all_nullable_types_without_recursion)(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_send_multiple_nullable_types_without_recursion)(gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_bool)(gboolean a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_int)(int64_t an_int, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_double)(double a_double, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_uint8_list)(const uint8_t* list, size_t list_length, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_list)(FlValue* list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_non_null_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_non_null_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_map)(FlValue* map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_non_null_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_non_null_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_non_null_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_non_null_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_enum)(CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_another_enum)(CoreTestsPigeonTestAnotherEnum another_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_bool)(gboolean* a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_int)(int64_t* an_int, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_double)(double* a_double, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_uint8_list)(const uint8_t* list, size_t list_length, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_list)(FlValue* list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_non_null_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_non_null_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_map)(FlValue* map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_non_null_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_non_null_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_non_null_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_non_null_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_another_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_small_api_echo_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); } CoreTestsPigeonTestHostIntegrationCoreApiVTable; /** @@ -4196,15 +3038,11 @@ typedef struct { * @suffix: (allow-none): a suffix to add to the API or %NULL for none. * @vtable: implementations of the methods in this API. * @user_data: (closure): user data to pass to the functions in @vtable. - * @user_data_free_func: (allow-none): a function which gets called to free - * @user_data, or %NULL. + * @user_data_free_func: (allow-none): a function which gets called to free @user_data, or %NULL. * * Connects the method handlers in the HostIntegrationCoreApi API. */ -void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix, - const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, - gpointer user_data, GDestroyNotify user_data_free_func); +void core_tests_pigeon_test_host_integration_core_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func); /** * core_tests_pigeon_test_host_integration_core_api_clear_method_handlers: @@ -4214,17 +3052,15 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( * * Clears the method handlers in the HostIntegrationCoreApi API. */ -void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix); +void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix); /** * core_tests_pigeon_test_host_integration_core_api_respond_noop_async: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * - * Responds to HostIntegrationCoreApi.noopAsync. + * Responds to HostIntegrationCoreApi.noopAsync. */ -void core_tests_pigeon_test_host_integration_core_api_respond_noop_async( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_integration_core_api_respond_noop_async(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async: @@ -4233,22 +3069,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_noop_async( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.noopAsync. + * Responds with an error to HostIntegrationCoreApi.noopAsync. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncInt. + * Responds to HostIntegrationCoreApi.echoAsyncInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - int64_t return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int: @@ -4257,22 +3089,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncInt. + * Responds with an error to HostIntegrationCoreApi.echoAsyncInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncDouble. + * Responds to HostIntegrationCoreApi.echoAsyncDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - double return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double: @@ -4281,22 +3109,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncDouble. + * Responds with an error to HostIntegrationCoreApi.echoAsyncDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncBool. + * Responds to HostIntegrationCoreApi.echoAsyncBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gboolean return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool: @@ -4305,22 +3129,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncBool. + * Responds with an error to HostIntegrationCoreApi.echoAsyncBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncString. + * Responds to HostIntegrationCoreApi.echoAsyncString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string: @@ -4329,24 +3149,19 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncString. + * Responds with an error to HostIntegrationCoreApi.echoAsyncString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. - * @return_value_length: (allow-none): location to write length of @return_value - * or %NULL to ignore. + * @return_value_length: (allow-none): location to write length of @return_value or %NULL to ignore. * - * Responds to HostIntegrationCoreApi.echoAsyncUint8List. + * Responds to HostIntegrationCoreApi.echoAsyncUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const uint8_t* return_value, size_t return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list: @@ -4355,22 +3170,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_l * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncUint8List. + * Responds with an error to HostIntegrationCoreApi.echoAsyncUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncObject. + * Responds to HostIntegrationCoreApi.echoAsyncObject. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object: @@ -4379,22 +3190,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncObject. + * Responds with an error to HostIntegrationCoreApi.echoAsyncObject. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncList. + * Responds to HostIntegrationCoreApi.echoAsyncList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list: @@ -4403,22 +3210,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncEnumList. + * Responds to HostIntegrationCoreApi.echoAsyncEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list: @@ -4427,22 +3230,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_li * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncEnumList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncClassList. + * Responds to HostIntegrationCoreApi.echoAsyncClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list: @@ -4451,22 +3250,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_l * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncClassList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncMap. + * Responds to HostIntegrationCoreApi.echoAsyncMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map: @@ -4475,22 +3270,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncStringMap. + * Responds to HostIntegrationCoreApi.echoAsyncStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map: @@ -4499,22 +3290,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncStringMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncIntMap. + * Responds to HostIntegrationCoreApi.echoAsyncIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map: @@ -4523,22 +3310,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncIntMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncEnumMap. + * Responds to HostIntegrationCoreApi.echoAsyncEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map: @@ -4547,22 +3330,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_ma * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncEnumMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncClassMap. + * Responds to HostIntegrationCoreApi.echoAsyncClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map: @@ -4571,22 +3350,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_m * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncClassMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncEnum. + * Responds to HostIntegrationCoreApi.echoAsyncEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnEnum return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum: @@ -4595,22 +3370,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncEnum. + * Responds with an error to HostIntegrationCoreApi.echoAsyncEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAnotherAsyncEnum. + * Responds to HostIntegrationCoreApi.echoAnotherAsyncEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnotherEnum return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum: @@ -4619,22 +3390,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAnotherAsyncEnum. + * Responds with an error to HostIntegrationCoreApi.echoAnotherAsyncEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.throwAsyncError. + * Responds to HostIntegrationCoreApi.throwAsyncError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error: @@ -4643,20 +3410,17 @@ void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.throwAsyncError. + * Responds with an error to HostIntegrationCoreApi.throwAsyncError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * - * Responds to HostIntegrationCoreApi.throwAsyncErrorFromVoid. + * Responds to HostIntegrationCoreApi.throwAsyncErrorFromVoid. */ -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void: @@ -4665,22 +3429,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.throwAsyncErrorFromVoid. + * Responds with an error to HostIntegrationCoreApi.throwAsyncErrorFromVoid. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.throwAsyncFlutterError. + * Responds to HostIntegrationCoreApi.throwAsyncFlutterError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error: @@ -4689,22 +3449,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutte * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.throwAsyncFlutterError. + * Responds with an error to HostIntegrationCoreApi.throwAsyncFlutterError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncAllTypes. + * Responds to HostIntegrationCoreApi.echoAsyncAllTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types: @@ -4713,22 +3469,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_typ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncAllTypes. + * Responds with an error to HostIntegrationCoreApi.echoAsyncAllTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes. + * Responds to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types: @@ -4737,24 +3489,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to - * HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion. + * Responds to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion: @@ -4763,23 +3509,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableInt. + * Responds to HostIntegrationCoreApi.echoAsyncNullableInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - int64_t* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int: @@ -4788,22 +3529,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableInt. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableDouble. + * Responds to HostIntegrationCoreApi.echoAsyncNullableDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - double* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double: @@ -4812,22 +3549,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableDouble. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableBool. + * Responds to HostIntegrationCoreApi.echoAsyncNullableBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gboolean* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool: @@ -4836,22 +3569,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableBool. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableString. + * Responds to HostIntegrationCoreApi.echoAsyncNullableString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string: @@ -4860,24 +3589,19 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableString. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. - * @return_value_length: (allow-none): location to write length of @return_value - * or %NULL to ignore. + * @return_value_length: (allow-none): location to write length of @return_value or %NULL to ignore. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableUint8List. + * Responds to HostIntegrationCoreApi.echoAsyncNullableUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const uint8_t* return_value, size_t return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list: @@ -4886,22 +3610,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableUint8List. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableObject. + * Responds to HostIntegrationCoreApi.echoAsyncNullableObject. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object: @@ -4910,22 +3630,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableObject. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableObject. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableList. + * Responds to HostIntegrationCoreApi.echoAsyncNullableList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list: @@ -4934,22 +3650,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableEnumList. + * Responds to HostIntegrationCoreApi.echoAsyncNullableEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list: @@ -4958,22 +3670,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnumList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableClassList. + * Responds to HostIntegrationCoreApi.echoAsyncNullableClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list: @@ -4982,22 +3690,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableClassList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map: @@ -5006,22 +3710,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableStringMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map: @@ -5030,22 +3730,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableStringMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableIntMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map: @@ -5054,22 +3750,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableIntMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableEnumMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map: @@ -5078,22 +3770,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnumMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableClassMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map: @@ -5102,22 +3790,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableClassMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableEnum. + * Responds to HostIntegrationCoreApi.echoAsyncNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnEnum* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum: @@ -5126,22 +3810,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnum. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. + * Responds to HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnotherEnum* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum: @@ -5150,21 +3830,17 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. + * Responds with an error to HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * - * Responds to HostIntegrationCoreApi.callFlutterNoop. + * Responds to HostIntegrationCoreApi.callFlutterNoop. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop: @@ -5173,22 +3849,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterNoop. + * Responds with an error to HostIntegrationCoreApi.callFlutterNoop. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterThrowError. + * Responds to HostIntegrationCoreApi.callFlutterThrowError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error: @@ -5197,20 +3869,17 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterThrowError. + * Responds with an error to HostIntegrationCoreApi.callFlutterThrowError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * - * Responds to HostIntegrationCoreApi.callFlutterThrowErrorFromVoid. + * Responds to HostIntegrationCoreApi.callFlutterThrowErrorFromVoid. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void: @@ -5219,23 +3888,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterThrowErrorFromVoid. + * Responds with an error to HostIntegrationCoreApi.callFlutterThrowErrorFromVoid. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAllTypes. + * Responds to HostIntegrationCoreApi.callFlutterEchoAllTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types: @@ -5244,22 +3908,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAllTypes. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAllTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAllNullableTypes. + * Responds to HostIntegrationCoreApi.callFlutterEchoAllNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types: @@ -5268,23 +3928,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoAllNullableTypes. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAllNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes. + * Responds to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types: @@ -5293,24 +3948,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes. + * Responds with an error to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to - * HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion. + * Responds to HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion: @@ -5319,24 +3968,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to - * HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion. + * Responds to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion: @@ -5345,23 +3988,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion. + * Responds with an error to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoBool. + * Responds to HostIntegrationCoreApi.callFlutterEchoBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gboolean return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool: @@ -5370,22 +4008,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoBool. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoInt. + * Responds to HostIntegrationCoreApi.callFlutterEchoInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - int64_t return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int: @@ -5394,22 +4028,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoInt. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoDouble. + * Responds to HostIntegrationCoreApi.callFlutterEchoDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - double return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double: @@ -5418,22 +4048,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoDouble. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoString. + * Responds to HostIntegrationCoreApi.callFlutterEchoString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string: @@ -5442,24 +4068,19 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoString. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. - * @return_value_length: (allow-none): location to write length of @return_value - * or %NULL to ignore. + * @return_value_length: (allow-none): location to write length of @return_value or %NULL to ignore. * - * Responds to HostIntegrationCoreApi.callFlutterEchoUint8List. + * Responds to HostIntegrationCoreApi.callFlutterEchoUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const uint8_t* return_value, size_t return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list: @@ -5468,22 +4089,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoUint8List. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoList. + * Responds to HostIntegrationCoreApi.callFlutterEchoList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list: @@ -5492,22 +4109,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoEnumList. + * Responds to HostIntegrationCoreApi.callFlutterEchoEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list: @@ -5516,22 +4129,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnumList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoClassList. + * Responds to HostIntegrationCoreApi.callFlutterEchoClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list: @@ -5540,22 +4149,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoClassList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullEnumList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list: @@ -5564,23 +4169,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNonNullEnumList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullClassList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list: @@ -5589,23 +4189,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNonNullClassList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map: @@ -5614,22 +4209,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoStringMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map: @@ -5638,22 +4229,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoStringMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoIntMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map: @@ -5662,22 +4249,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoIntMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoEnumMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map: @@ -5686,22 +4269,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnumMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoClassMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map: @@ -5710,22 +4289,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoClassMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullStringMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map: @@ -5734,23 +4309,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNonNullStringMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullIntMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map: @@ -5759,23 +4329,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNonNullIntMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map: @@ -5784,23 +4349,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullClassMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map: @@ -5809,23 +4369,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNonNullClassMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoEnum. + * Responds to HostIntegrationCoreApi.callFlutterEchoEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnEnum return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum: @@ -5834,22 +4389,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnum. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. + * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnotherEnum return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum: @@ -5858,22 +4409,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableBool. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - gboolean* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool: @@ -5882,22 +4429,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableBool. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableInt. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - int64_t* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int: @@ -5906,22 +4449,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableInt. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableDouble. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - double* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double: @@ -5930,23 +4469,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableDouble. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableString. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string: @@ -5955,25 +4489,19 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableString. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. - * @return_value_length: (allow-none): location to write length of @return_value - * or %NULL to ignore. + * @return_value_length: (allow-none): location to write length of @return_value or %NULL to ignore. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableUint8List. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const uint8_t* return_value, size_t return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list: @@ -5982,23 +4510,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableUint8List. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list: @@ -6007,22 +4530,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnumList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list: @@ -6031,23 +4550,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableEnumList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableClassList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list: @@ -6056,23 +4570,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableClassList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list: @@ -6081,23 +4590,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list: @@ -6106,23 +4610,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map: @@ -6131,22 +4630,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableStringMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map: @@ -6155,23 +4650,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableStringMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableIntMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map: @@ -6180,23 +4670,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableIntMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnumMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map: @@ -6205,23 +4690,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableEnumMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableClassMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map: @@ -6230,23 +4710,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableClassMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map: @@ -6255,23 +4730,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map: @@ -6280,23 +4750,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map: @@ -6305,23 +4770,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map: @@ -6330,23 +4790,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnum. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnEnum* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum: @@ -6355,22 +4810,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableEnum. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. + * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - CoreTestsPigeonTestAnotherEnum* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum: @@ -6379,23 +4830,18 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterSmallApiEchoString. + * Responds to HostIntegrationCoreApi.callFlutterSmallApiEchoString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string: @@ -6404,17 +4850,11 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to - * HostIntegrationCoreApi.callFlutterSmallApiEchoString. + * Responds with an error to HostIntegrationCoreApi.callFlutterSmallApiEchoString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string( - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, - core_tests_pigeon_test_flutter_integration_core_api_noop_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error: @@ -6424,9 +4864,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code: @@ -6436,9 +4874,7 @@ core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message: @@ -6448,9 +4884,7 @@ core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details: @@ -6460,15 +4894,9 @@ core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_mess * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse, - core_tests_pigeon_test_flutter_integration_core_api_throw_error_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse, core_tests_pigeon_test_flutter_integration_core_api_throw_error_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error: @@ -6478,9 +4906,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code: @@ -6490,9 +4916,7 @@ core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_erro * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message: @@ -6502,9 +4926,7 @@ core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_err * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details: @@ -6514,9 +4936,7 @@ core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_err * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value: @@ -6526,460 +4946,311 @@ core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_err * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse, - core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse, core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. * - * Checks if a response to FlutterIntegrationCoreApi.throwErrorFromVoid is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.throwErrorFromVoid is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoAllTypes is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Get the return value for this response. * * Returns: a return value. */ -CoreTestsPigeonTestAllTypes* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAllNullableTypes is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoAllNullableTypes is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* - response); +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse, - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * - * Checks if a response to FlutterIntegrationCoreApi.sendMultipleNullableTypes - * is an error. + * Checks if a response to FlutterIntegrationCoreApi.sendMultipleNullableTypes is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * * Get the return value for this response. * * Returns: a return value. */ -CoreTestsPigeonTestAllNullableTypes* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* - response); +CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * - * Checks if a response to - * FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* - response); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, - core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * - * Checks if a response to - * FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * * Get the return value for this response. * * Returns: a return value. */ -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* - response); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error: @@ -6989,9 +5260,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code: @@ -7001,9 +5270,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message: @@ -7013,9 +5280,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details: @@ -7025,9 +5290,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value: @@ -7037,15 +5300,9 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error * * Returns: a return value. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_int_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_int_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error: @@ -7055,9 +5312,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code: @@ -7067,9 +5322,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message: @@ -7079,9 +5332,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_ * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details: @@ -7091,9 +5342,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_ * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value: @@ -7103,15 +5352,9 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_ * * Returns: a return value. */ -int64_t -core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +int64_t core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_double_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_double_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error: @@ -7121,9 +5364,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code: @@ -7133,9 +5374,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_erro * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message: @@ -7145,9 +5384,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_err * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details: @@ -7157,9 +5394,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_err * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value: @@ -7169,15 +5404,9 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_err * * Returns: a return value. */ -double -core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +double core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_string_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_string_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error: @@ -7187,9 +5416,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code: @@ -7199,9 +5426,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_erro * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message: @@ -7211,9 +5436,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_err * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details: @@ -7223,9 +5446,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_err * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value: @@ -7235,93 +5456,62 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_err * * Returns: a return value. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoUint8List is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. - * @return_value_length: (allow-none): location to write length of the return - * value or %NULL to ignore. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @return_value_length: (allow-none): location to write length of the return value or %NULL to ignore. * * Get the return value for this response. * * Returns: a return value. */ -const uint8_t* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response, - size_t* return_value_length); +const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response, size_t* return_value_length); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_list_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error: @@ -7331,9 +5521,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code: @@ -7343,9 +5531,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message: @@ -7355,9 +5541,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details: @@ -7367,9 +5551,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value: @@ -7379,316 +5561,217 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoEnumList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoClassList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullEnumList is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullEnumList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullClassList is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullClassList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_map_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error: @@ -7698,9 +5781,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code: @@ -7710,9 +5791,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message: @@ -7722,9 +5801,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_ * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details: @@ -7734,9 +5811,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_ * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value: @@ -7746,91 +5821,61 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_ * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoStringMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error: @@ -7840,9 +5885,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code: @@ -7852,9 +5895,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_err * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message: @@ -7864,9 +5905,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_er * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details: @@ -7876,9 +5915,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_er * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value: @@ -7888,465 +5925,321 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_er * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoEnumMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoClassMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullStringMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullStringMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullIntMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullIntMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullEnumMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullEnumMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullClassMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullClassMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error: @@ -8356,9 +6249,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code: @@ -8368,9 +6259,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message: @@ -8380,9 +6269,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details: @@ -8392,9 +6279,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value: @@ -8404,1718 +6289,1154 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error * * Returns: a return value. */ -CoreTestsPigeonTestAnEnum -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +CoreTestsPigeonTestAnEnum core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAnotherEnum is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoAnotherEnum is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * * Get the return value for this response. * * Returns: a return value. */ -CoreTestsPigeonTestAnotherEnum -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* - response); +CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableBool is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableBool is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -gboolean* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* - response); +gboolean* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableInt is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableInt is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -int64_t* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* - response); +int64_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableDouble is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableDouble is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -double* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* - response); +double* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableString is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableString is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableUint8List is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableUint8List is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. - * @return_value_length: (allow-none): location to write length of the return - * value or %NULL to ignore. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @return_value_length: (allow-none): location to write length of the return value or %NULL to ignore. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -const uint8_t* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* - response, - size_t* return_value_length); +const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response, size_t* return_value_length); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableList is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnumList is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnumList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableClassList is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableClassList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullEnumList - * is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullEnumList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * - * Checks if a response to - * FlutterIntegrationCoreApi.echoNullableNonNullClassList is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullClassList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableStringMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableStringMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableIntMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableIntMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnumMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnumMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableClassMap is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableClassMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * - * Checks if a response to - * FlutterIntegrationCoreApi.echoNullableNonNullStringMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullStringMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullIntMap - * is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullIntMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullEnumMap - * is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullEnumMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullClassMap - * is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullClassMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnum is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnum is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -CoreTestsPigeonTestAnEnum* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* - response); +CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAnotherNullableEnum is - * an error. + * Checks if a response to FlutterIntegrationCoreApi.echoAnotherNullableEnum is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -CoreTestsPigeonTestAnotherEnum* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* - response); +CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, - core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error: @@ -10125,9 +7446,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code: @@ -10137,9 +7456,7 @@ core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message: @@ -10149,9 +7466,7 @@ core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_erro * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details: @@ -10161,86 +7476,59 @@ core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_erro * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse, - core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response, - CORE_TESTS_PIGEON_TEST, - FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAsyncString is an - * error. + * Checks if a response to FlutterIntegrationCoreApi.echoAsyncString is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* - response); +gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* - response); +FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value: - * @response: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * * Get the return value for this response. * * Returns: a return value. */ -const gchar* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* - response); +const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); /** * CoreTestsPigeonTestFlutterIntegrationCoreApi: @@ -10249,10 +7537,7 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_g * integration tests to call into. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, - core_tests_pigeon_test_flutter_integration_core_api, - CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, core_tests_pigeon_test_flutter_integration_core_api, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_new: @@ -10263,180 +7548,125 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, * * Returns: a new #CoreTestsPigeonTestFlutterIntegrationCoreApi */ -CoreTestsPigeonTestFlutterIntegrationCoreApi* -core_tests_pigeon_test_flutter_integration_core_api_new( - FlBinaryMessenger* messenger, const gchar* suffix); +CoreTestsPigeonTestFlutterIntegrationCoreApi* core_tests_pigeon_test_flutter_integration_core_api_new(FlBinaryMessenger* messenger, const gchar* suffix); /** * core_tests_pigeon_test_flutter_integration_core_api_noop: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * A no-op function taking no arguments and returning no value, to sanity * test basic calling. */ -void core_tests_pigeon_test_flutter_integration_core_api_noop( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_noop(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * * Completes a core_tests_pigeon_test_flutter_integration_core_api_noop() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse or %NULL - * on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* -core_tests_pigeon_test_flutter_integration_core_api_noop_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Responds with an error from an async function returning a value. */ -void core_tests_pigeon_test_flutter_integration_core_api_throw_error( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_throw_error(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_throw_error() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_throw_error() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Responds with an error from an async void function. */ -void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* -core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @everything: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed object, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - CoreTestsPigeonTestAllTypes* everything, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAllTypes* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_all_types() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @everything: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed object, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - CoreTestsPigeonTestAllNullableTypes* everything, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAllNullableTypes* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types: @@ -10445,76 +7675,50 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_fini * @a_nullable_int: (allow-none): parameter for this method. * @a_nullable_string: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns passed in arguments of multiple types. * * Tests multiple-arity FlutterApi handling. */ -void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - gboolean* a_nullable_bool, int64_t* a_nullable_int, - const gchar* a_nullable_string, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @everything: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed object, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion: @@ -10523,175 +7727,122 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_with * @a_nullable_int: (allow-none): parameter for this method. * @a_nullable_string: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns passed in arguments of multiple types. * * Tests multiple-arity FlutterApi handling. */ -void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - gboolean* a_nullable_bool, int64_t* a_nullable_int, - const gchar* a_nullable_string, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* -core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_bool: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed boolean, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_bool( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean a_bool, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_bool(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean a_bool, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_bool() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_bool() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @an_int: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed int, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_int( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, int64_t an_int, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_int(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, int64_t an_int, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_int() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_int() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_double: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed double, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_double( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, double a_double, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_double(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, double a_double, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_double() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_double() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_string: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed string, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_string( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_string() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_string() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list: @@ -10699,734 +7850,504 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish( * @list: parameter for this method. * @list_length: length of list. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed byte list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const uint8_t* list, - size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const uint8_t* list, size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_list() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_class_list() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @string_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_string_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @int_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_int_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_class_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @string_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @int_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @an_enum: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed enum to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - CoreTestsPigeonTestAnEnum an_enum, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAnEnum an_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_enum() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_enum() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @another_enum: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed enum to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse or %NULL - * on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_bool: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed boolean, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean* a_bool, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean* a_bool, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @an_int: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed int, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, int64_t* an_int, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, int64_t* an_int, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse or %NULL - * on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_double: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed double, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, double* a_double, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, double* a_double, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_string: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed string, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list: @@ -11434,689 +8355,460 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish( * @list: (allow-none): parameter for this method. * @list_length: length of list. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed byte list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const uint8_t* list, - size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const uint8_t* list, size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse or %NULL - * on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @string_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @int_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @string_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @int_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @an_enum: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed enum to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - CoreTestsPigeonTestAnEnum* an_enum, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAnEnum* an_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @another_enum: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed enum to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse - * or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * A no-op function taking no arguments and returning no value, to sanity * test basic asynchronous calling. */ -void core_tests_pigeon_test_flutter_integration_core_api_noop_async( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_noop_async(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_noop_async() - * call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_noop_async() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* -core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_string: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed in generic Object asynchronously. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a - * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_async_string() call. * - * Returns: a - * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse or %NULL - * on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* -core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish( - CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApi, - core_tests_pigeon_test_host_trivial_api, - CORE_TESTS_PIGEON_TEST, HOST_TRIVIAL_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApi, core_tests_pigeon_test_host_trivial_api, CORE_TESTS_PIGEON_TEST, HOST_TRIVIAL_API, GObject) -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, - core_tests_pigeon_test_host_trivial_api_noop_response, - CORE_TESTS_PIGEON_TEST, HOST_TRIVIAL_API_NOOP_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, core_tests_pigeon_test_host_trivial_api_noop_response, CORE_TESTS_PIGEON_TEST, HOST_TRIVIAL_API_NOOP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_trivial_api_noop_response_new: @@ -12125,8 +8817,7 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, * * Returns: a new #CoreTestsPigeonTestHostTrivialApiNoopResponse */ -CoreTestsPigeonTestHostTrivialApiNoopResponse* -core_tests_pigeon_test_host_trivial_api_noop_response_new(); +CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivial_api_noop_response_new(); /** * core_tests_pigeon_test_host_trivial_api_noop_response_new_error: @@ -12138,15 +8829,12 @@ core_tests_pigeon_test_host_trivial_api_noop_response_new(); * * Returns: a new #CoreTestsPigeonTestHostTrivialApiNoopResponse */ -CoreTestsPigeonTestHostTrivialApiNoopResponse* -core_tests_pigeon_test_host_trivial_api_noop_response_new_error( - const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivial_api_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details); /** * CoreTestsPigeonTestHostTrivialApiVTable: * - * Table of functions exposed by HostTrivialApi to be implemented by the API - * provider. + * Table of functions exposed by HostTrivialApi to be implemented by the API provider. */ typedef struct { CoreTestsPigeonTestHostTrivialApiNoopResponse* (*noop)(gpointer user_data); @@ -12159,15 +8847,11 @@ typedef struct { * @suffix: (allow-none): a suffix to add to the API or %NULL for none. * @vtable: implementations of the methods in this API. * @user_data: (closure): user data to pass to the functions in @vtable. - * @user_data_free_func: (allow-none): a function which gets called to free - * @user_data, or %NULL. + * @user_data_free_func: (allow-none): a function which gets called to free @user_data, or %NULL. * * Connects the method handlers in the HostTrivialApi API. */ -void core_tests_pigeon_test_host_trivial_api_set_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix, - const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, - GDestroyNotify user_data_free_func); +void core_tests_pigeon_test_host_trivial_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func); /** * core_tests_pigeon_test_host_trivial_api_clear_method_handlers: @@ -12177,31 +8861,20 @@ void core_tests_pigeon_test_host_trivial_api_set_method_handlers( * * Clears the method handlers in the HostTrivialApi API. */ -void core_tests_pigeon_test_host_trivial_api_clear_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix); +void core_tests_pigeon_test_host_trivial_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApi, - core_tests_pigeon_test_host_small_api, - CORE_TESTS_PIGEON_TEST, HOST_SMALL_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApi, core_tests_pigeon_test_host_small_api, CORE_TESTS_PIGEON_TEST, HOST_SMALL_API, GObject) -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiResponseHandle, - core_tests_pigeon_test_host_small_api_response_handle, - CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_RESPONSE_HANDLE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiResponseHandle, core_tests_pigeon_test_host_small_api_response_handle, CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_RESPONSE_HANDLE, GObject) /** * CoreTestsPigeonTestHostSmallApiVTable: * - * Table of functions exposed by HostSmallApi to be implemented by the API - * provider. + * Table of functions exposed by HostSmallApi to be implemented by the API provider. */ typedef struct { - void (*echo)(const gchar* a_string, - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, - gpointer user_data); - void (*void_void)( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, - gpointer user_data); + void (*echo)(const gchar* a_string, CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, gpointer user_data); + void (*void_void)(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, gpointer user_data); } CoreTestsPigeonTestHostSmallApiVTable; /** @@ -12211,15 +8884,11 @@ typedef struct { * @suffix: (allow-none): a suffix to add to the API or %NULL for none. * @vtable: implementations of the methods in this API. * @user_data: (closure): user data to pass to the functions in @vtable. - * @user_data_free_func: (allow-none): a function which gets called to free - * @user_data, or %NULL. + * @user_data_free_func: (allow-none): a function which gets called to free @user_data, or %NULL. * * Connects the method handlers in the HostSmallApi API. */ -void core_tests_pigeon_test_host_small_api_set_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix, - const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, - GDestroyNotify user_data_free_func); +void core_tests_pigeon_test_host_small_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func); /** * core_tests_pigeon_test_host_small_api_clear_method_handlers: @@ -12229,19 +8898,16 @@ void core_tests_pigeon_test_host_small_api_set_method_handlers( * * Clears the method handlers in the HostSmallApi API. */ -void core_tests_pigeon_test_host_small_api_clear_method_handlers( - FlBinaryMessenger* messenger, const gchar* suffix); +void core_tests_pigeon_test_host_small_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix); /** * core_tests_pigeon_test_host_small_api_respond_echo: * @response_handle: a #CoreTestsPigeonTestHostSmallApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostSmallApi.echo. + * Responds to HostSmallApi.echo. */ -void core_tests_pigeon_test_host_small_api_respond_echo( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, - const gchar* return_value); +void core_tests_pigeon_test_host_small_api_respond_echo(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* return_value); /** * core_tests_pigeon_test_host_small_api_respond_error_echo: @@ -12250,20 +8916,17 @@ void core_tests_pigeon_test_host_small_api_respond_echo( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostSmallApi.echo. + * Responds with an error to HostSmallApi.echo. */ -void core_tests_pigeon_test_host_small_api_respond_error_echo( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_small_api_respond_error_echo(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_small_api_respond_void_void: * @response_handle: a #CoreTestsPigeonTestHostSmallApiResponseHandle. * - * Responds to HostSmallApi.voidVoid. + * Responds to HostSmallApi.voidVoid. */ -void core_tests_pigeon_test_host_small_api_respond_void_void( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_small_api_respond_void_void(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_small_api_respond_error_void_void: @@ -12272,17 +8935,11 @@ void core_tests_pigeon_test_host_small_api_respond_void_void( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostSmallApi.voidVoid. + * Responds with an error to HostSmallApi.voidVoid. */ -void core_tests_pigeon_test_host_small_api_respond_error_void_void( - CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, - const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_small_api_respond_error_void_void(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, - core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE, - GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error: @@ -12292,9 +8949,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +gboolean core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code: @@ -12304,9 +8959,7 @@ core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message: @@ -12316,9 +8969,7 @@ core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_co * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details: @@ -12328,9 +8979,7 @@ core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_me * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +FlValue* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value: @@ -12340,14 +8989,9 @@ core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_de * * Returns: a return value. */ -CoreTestsPigeonTestTestMessage* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value( - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); -G_DECLARE_FINAL_TYPE( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, - core_tests_pigeon_test_flutter_small_api_echo_string_response, - CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API_ECHO_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_flutter_small_api_echo_string_response, CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API_ECHO_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error: @@ -12357,8 +9001,7 @@ G_DECLARE_FINAL_TYPE( * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code: @@ -12368,9 +9011,7 @@ gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message: @@ -12380,9 +9021,7 @@ core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code( * * Returns: an error message. */ -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details: @@ -12392,9 +9031,7 @@ core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message( * * Returns: (allow-none): an error details or %NULL. */ -FlValue* -core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +FlValue* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value: @@ -12404,9 +9041,7 @@ core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details( * * Returns: a return value. */ -const gchar* -core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value( - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * CoreTestsPigeonTestFlutterSmallApi: @@ -12414,9 +9049,7 @@ core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value( * A simple API called in some unit tests. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApi, - core_tests_pigeon_test_flutter_small_api, - CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApi, core_tests_pigeon_test_flutter_small_api, CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API, GObject) /** * core_tests_pigeon_test_flutter_small_api_new: @@ -12427,74 +9060,53 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApi, * * Returns: a new #CoreTestsPigeonTestFlutterSmallApi */ -CoreTestsPigeonTestFlutterSmallApi* -core_tests_pigeon_test_flutter_small_api_new(FlBinaryMessenger* messenger, - const gchar* suffix); +CoreTestsPigeonTestFlutterSmallApi* core_tests_pigeon_test_flutter_small_api_new(FlBinaryMessenger* messenger, const gchar* suffix); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list: * @api: a #CoreTestsPigeonTestFlutterSmallApi. * @msg: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * */ -void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list( - CoreTestsPigeonTestFlutterSmallApi* api, - CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, - GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list(CoreTestsPigeonTestFlutterSmallApi* api, CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish: * @api: a #CoreTestsPigeonTestFlutterSmallApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * - * Completes a core_tests_pigeon_test_flutter_small_api_echo_wrapped_list() - * call. + * Completes a core_tests_pigeon_test_flutter_small_api_echo_wrapped_list() call. * - * Returns: a #CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse or - * %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* -core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish( - CoreTestsPigeonTestFlutterSmallApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish(CoreTestsPigeonTestFlutterSmallApi* api, GAsyncResult* result, GError** error); /** * core_tests_pigeon_test_flutter_small_api_echo_string: * @api: a #CoreTestsPigeonTestFlutterSmallApi. * @a_string: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when - * the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * */ -void core_tests_pigeon_test_flutter_small_api_echo_string( - CoreTestsPigeonTestFlutterSmallApi* api, const gchar* a_string, - GCancellable* cancellable, GAsyncReadyCallback callback, - gpointer user_data); +void core_tests_pigeon_test_flutter_small_api_echo_string(CoreTestsPigeonTestFlutterSmallApi* api, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_small_api_echo_string_finish: * @api: a #CoreTestsPigeonTestFlutterSmallApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL - * to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. * * Completes a core_tests_pigeon_test_flutter_small_api_echo_string() call. * - * Returns: a #CoreTestsPigeonTestFlutterSmallApiEchoStringResponse or %NULL on - * error. + * Returns: a #CoreTestsPigeonTestFlutterSmallApiEchoStringResponse or %NULL on error. */ -CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* -core_tests_pigeon_test_flutter_small_api_echo_string_finish( - CoreTestsPigeonTestFlutterSmallApi* api, GAsyncResult* result, - GError** error); +CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_flutter_small_api_echo_string_finish(CoreTestsPigeonTestFlutterSmallApi* api, GAsyncResult* result, GError** error); G_END_DECLS diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc b/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc index 2f25ccba1372..ab14ebe7f295 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test/equality_test.cc @@ -152,7 +152,35 @@ TEST(Equality, SignedZero) { nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr); - EXPECT_FALSE(core_tests_pigeon_test_all_nullable_types_equals(all1, all2)); - EXPECT_NE(core_tests_pigeon_test_all_nullable_types_hash(all1), + EXPECT_TRUE(core_tests_pigeon_test_all_nullable_types_equals(all1, all2)); + EXPECT_EQ(core_tests_pigeon_test_all_nullable_types_hash(all1), + core_tests_pigeon_test_all_nullable_types_hash(all2)); +} + +TEST(Equality, SignedZeroMapKey) { + double p_zero = 0.0; + double n_zero = -0.0; + g_autoptr(FlValue) map1 = fl_value_new_map(); + fl_value_set_take(map1, fl_value_new_float(p_zero), fl_value_new_string("a")); + g_autoptr(FlValue) map2 = fl_value_new_map(); + fl_value_set_take(map2, fl_value_new_float(n_zero), fl_value_new_string("a")); + + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all1 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, map1, nullptr, + nullptr, nullptr); + g_autoptr(CoreTestsPigeonTestAllNullableTypes) all2 = + core_tests_pigeon_test_all_nullable_types_new( + nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, map2, nullptr, + nullptr, nullptr); + + EXPECT_TRUE(core_tests_pigeon_test_all_nullable_types_equals(all1, all2)); + EXPECT_EQ(core_tests_pigeon_test_all_nullable_types_hash(all1), core_tests_pigeon_test_all_nullable_types_hash(all2)); } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index 95c7aa410da0..cfcea8a96fe6 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -253,6 +253,21 @@ echo_all_nullable_types(CoreTestsPigeonTestAllNullableTypes* everything, everything); } +static CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* +are_all_nullable_types_equal(CoreTestsPigeonTestAllNullableTypes* a, + CoreTestsPigeonTestAllNullableTypes* b, + gpointer user_data) { + return core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new( + core_tests_pigeon_test_all_nullable_types_equals(a, b)); +} + +static CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* +get_all_nullable_types_hash(CoreTestsPigeonTestAllNullableTypes* value, + gpointer user_data) { + return core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new( + core_tests_pigeon_test_all_nullable_types_hash(value)); +} + static CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* echo_all_nullable_types_without_recursion( @@ -3225,6 +3240,8 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .echo_optional_default_double = echo_optional_default_double, .echo_required_int = echo_required_int, .echo_all_nullable_types = echo_all_nullable_types, + .are_all_nullable_types_equal = are_all_nullable_types_equal, + .get_all_nullable_types_hash = get_all_nullable_types_hash, .echo_all_nullable_types_without_recursion = echo_all_nullable_types_without_recursion, .extract_nested_nullable_string = extract_nested_nullable_string, diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 2741ab2a7ec3..4809c18112a5 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -33,14 +33,13 @@ FlutterError CreateConnectionError(const std::string channel_name) { EncodableValue("")); } -template +template bool PigeonInternalDeepEquals(const T& a, const T& b) { return a == b; } -template -bool PigeonInternalDeepEquals(const std::vector& a, - const std::vector& b) { +template +bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) { if (a.size() != b.size()) return false; for (size_t i = 0; i < a.size(); ++i) { if (!PigeonInternalDeepEquals(a[i], b[i])) return false; @@ -48,9 +47,8 @@ bool PigeonInternalDeepEquals(const std::vector& a, return true; } -template -bool PigeonInternalDeepEquals(const std::map& a, - const std::map& b) { +template +bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { if (a.size() != b.size()) return false; for (const auto& kv : a) { auto it = b.find(kv.first); @@ -64,32 +62,27 @@ inline bool PigeonInternalDeepEquals(const double& a, const double& b) { return (a == b) || (std::isnan(a) && std::isnan(b)); } -template -bool PigeonInternalDeepEquals(const std::optional& a, - const std::optional& b) { +template +bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& b) { if (!a && !b) return true; if (!a || !b) return false; return PigeonInternalDeepEquals(*a, *b); } -template -bool PigeonInternalDeepEquals(const std::unique_ptr& a, - const std::unique_ptr& b) { +template +bool PigeonInternalDeepEquals(const std::unique_ptr& a, const std::unique_ptr& b) { if (!a && !b) return true; if (!a || !b) return false; return PigeonInternalDeepEquals(*a, *b); } -inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, - const ::flutter::EncodableValue& b) { +inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { if (a.index() != b.index()) return false; if (const double* da = std::get_if(&a)) { return PigeonInternalDeepEquals(*da, std::get(b)); - } else if (const ::flutter::EncodableList* la = - std::get_if<::flutter::EncodableList>(&a)) { + } else if (const ::flutter::EncodableList* la = std::get_if<::flutter::EncodableList>(&a)) { return PigeonInternalDeepEquals(*la, std::get<::flutter::EncodableList>(b)); - } else if (const ::flutter::EncodableMap* ma = - std::get_if<::flutter::EncodableMap>(&a)) { + } else if (const ::flutter::EncodableMap* ma = std::get_if<::flutter::EncodableMap>(&a)) { return PigeonInternalDeepEquals(*ma, std::get<::flutter::EncodableMap>(b)); } return a == b; @@ -100,22 +93,21 @@ inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, UnusedClass::UnusedClass() {} UnusedClass::UnusedClass(const EncodableValue* a_field) - : a_field_(a_field ? std::optional(*a_field) - : std::nullopt) {} + : a_field_(a_field ? std::optional(*a_field) : std::nullopt) {} const EncodableValue* UnusedClass::a_field() const { return a_field_ ? &(*a_field_) : nullptr; } void UnusedClass::set_a_field(const EncodableValue* value_arg) { - a_field_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + a_field_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void UnusedClass::set_a_field(const EncodableValue& value_arg) { a_field_ = value_arg; } + EncodableList UnusedClass::ToEncodableList() const { EncodableList list; list.reserve(1); @@ -142,68 +134,99 @@ bool UnusedClass::operator!=(const UnusedClass& other) const { // AllTypes -AllTypes::AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, - double a_double, const std::vector& a_byte_array, - const std::vector& a4_byte_array, - const std::vector& a8_byte_array, - const std::vector& a_float_array, - const AnEnum& an_enum, const AnotherEnum& another_enum, - const std::string& a_string, const EncodableValue& an_object, - const EncodableList& list, const EncodableList& string_list, - const EncodableList& int_list, - const EncodableList& double_list, - const EncodableList& bool_list, - const EncodableList& enum_list, - const EncodableList& object_list, - const EncodableList& list_list, - const EncodableList& map_list, const EncodableMap& map, - const EncodableMap& string_map, const EncodableMap& int_map, - const EncodableMap& enum_map, const EncodableMap& object_map, - const EncodableMap& list_map, const EncodableMap& map_map) - : a_bool_(a_bool), - an_int_(an_int), - an_int64_(an_int64), - a_double_(a_double), - a_byte_array_(a_byte_array), - a4_byte_array_(a4_byte_array), - a8_byte_array_(a8_byte_array), - a_float_array_(a_float_array), - an_enum_(an_enum), - another_enum_(another_enum), - a_string_(a_string), - an_object_(an_object), - list_(list), - string_list_(string_list), - int_list_(int_list), - double_list_(double_list), - bool_list_(bool_list), - enum_list_(enum_list), - object_list_(object_list), - list_list_(list_list), - map_list_(map_list), - map_(map), - string_map_(string_map), - int_map_(int_map), - enum_map_(enum_map), - object_map_(object_map), - list_map_(list_map), - map_map_(map_map) {} - -bool AllTypes::a_bool() const { return a_bool_; } - -void AllTypes::set_a_bool(bool value_arg) { a_bool_ = value_arg; } - -int64_t AllTypes::an_int() const { return an_int_; } - -void AllTypes::set_an_int(int64_t value_arg) { an_int_ = value_arg; } - -int64_t AllTypes::an_int64() const { return an_int64_; } - -void AllTypes::set_an_int64(int64_t value_arg) { an_int64_ = value_arg; } - -double AllTypes::a_double() const { return a_double_; } - -void AllTypes::set_a_double(double value_arg) { a_double_ = value_arg; } +AllTypes::AllTypes( + bool a_bool, + int64_t an_int, + int64_t an_int64, + double a_double, + const std::vector& a_byte_array, + const std::vector& a4_byte_array, + const std::vector& a8_byte_array, + const std::vector& a_float_array, + const AnEnum& an_enum, + const AnotherEnum& another_enum, + const std::string& a_string, + const EncodableValue& an_object, + const EncodableList& list, + const EncodableList& string_list, + const EncodableList& int_list, + const EncodableList& double_list, + const EncodableList& bool_list, + const EncodableList& enum_list, + const EncodableList& object_list, + const EncodableList& list_list, + const EncodableList& map_list, + const EncodableMap& map, + const EncodableMap& string_map, + const EncodableMap& int_map, + const EncodableMap& enum_map, + const EncodableMap& object_map, + const EncodableMap& list_map, + const EncodableMap& map_map) + : a_bool_(a_bool), + an_int_(an_int), + an_int64_(an_int64), + a_double_(a_double), + a_byte_array_(a_byte_array), + a4_byte_array_(a4_byte_array), + a8_byte_array_(a8_byte_array), + a_float_array_(a_float_array), + an_enum_(an_enum), + another_enum_(another_enum), + a_string_(a_string), + an_object_(an_object), + list_(list), + string_list_(string_list), + int_list_(int_list), + double_list_(double_list), + bool_list_(bool_list), + enum_list_(enum_list), + object_list_(object_list), + list_list_(list_list), + map_list_(map_list), + map_(map), + string_map_(string_map), + int_map_(int_map), + enum_map_(enum_map), + object_map_(object_map), + list_map_(list_map), + map_map_(map_map) {} + +bool AllTypes::a_bool() const { + return a_bool_; +} + +void AllTypes::set_a_bool(bool value_arg) { + a_bool_ = value_arg; +} + + +int64_t AllTypes::an_int() const { + return an_int_; +} + +void AllTypes::set_an_int(int64_t value_arg) { + an_int_ = value_arg; +} + + +int64_t AllTypes::an_int64() const { + return an_int64_; +} + +void AllTypes::set_an_int64(int64_t value_arg) { + an_int64_ = value_arg; +} + + +double AllTypes::a_double() const { + return a_double_; +} + +void AllTypes::set_a_double(double value_arg) { + a_double_ = value_arg; +} + const std::vector& AllTypes::a_byte_array() const { return a_byte_array_; @@ -213,6 +236,7 @@ void AllTypes::set_a_byte_array(const std::vector& value_arg) { a_byte_array_ = value_arg; } + const std::vector& AllTypes::a4_byte_array() const { return a4_byte_array_; } @@ -221,6 +245,7 @@ void AllTypes::set_a4_byte_array(const std::vector& value_arg) { a4_byte_array_ = value_arg; } + const std::vector& AllTypes::a8_byte_array() const { return a8_byte_array_; } @@ -229,6 +254,7 @@ void AllTypes::set_a8_byte_array(const std::vector& value_arg) { a8_byte_array_ = value_arg; } + const std::vector& AllTypes::a_float_array() const { return a_float_array_; } @@ -237,120 +263,187 @@ void AllTypes::set_a_float_array(const std::vector& value_arg) { a_float_array_ = value_arg; } -const AnEnum& AllTypes::an_enum() const { return an_enum_; } -void AllTypes::set_an_enum(const AnEnum& value_arg) { an_enum_ = value_arg; } +const AnEnum& AllTypes::an_enum() const { + return an_enum_; +} + +void AllTypes::set_an_enum(const AnEnum& value_arg) { + an_enum_ = value_arg; +} + -const AnotherEnum& AllTypes::another_enum() const { return another_enum_; } +const AnotherEnum& AllTypes::another_enum() const { + return another_enum_; +} void AllTypes::set_another_enum(const AnotherEnum& value_arg) { another_enum_ = value_arg; } -const std::string& AllTypes::a_string() const { return a_string_; } + +const std::string& AllTypes::a_string() const { + return a_string_; +} void AllTypes::set_a_string(std::string_view value_arg) { a_string_ = value_arg; } -const EncodableValue& AllTypes::an_object() const { return an_object_; } + +const EncodableValue& AllTypes::an_object() const { + return an_object_; +} void AllTypes::set_an_object(const EncodableValue& value_arg) { an_object_ = value_arg; } -const EncodableList& AllTypes::list() const { return list_; } -void AllTypes::set_list(const EncodableList& value_arg) { list_ = value_arg; } +const EncodableList& AllTypes::list() const { + return list_; +} + +void AllTypes::set_list(const EncodableList& value_arg) { + list_ = value_arg; +} + -const EncodableList& AllTypes::string_list() const { return string_list_; } +const EncodableList& AllTypes::string_list() const { + return string_list_; +} void AllTypes::set_string_list(const EncodableList& value_arg) { string_list_ = value_arg; } -const EncodableList& AllTypes::int_list() const { return int_list_; } + +const EncodableList& AllTypes::int_list() const { + return int_list_; +} void AllTypes::set_int_list(const EncodableList& value_arg) { int_list_ = value_arg; } -const EncodableList& AllTypes::double_list() const { return double_list_; } + +const EncodableList& AllTypes::double_list() const { + return double_list_; +} void AllTypes::set_double_list(const EncodableList& value_arg) { double_list_ = value_arg; } -const EncodableList& AllTypes::bool_list() const { return bool_list_; } + +const EncodableList& AllTypes::bool_list() const { + return bool_list_; +} void AllTypes::set_bool_list(const EncodableList& value_arg) { bool_list_ = value_arg; } -const EncodableList& AllTypes::enum_list() const { return enum_list_; } + +const EncodableList& AllTypes::enum_list() const { + return enum_list_; +} void AllTypes::set_enum_list(const EncodableList& value_arg) { enum_list_ = value_arg; } -const EncodableList& AllTypes::object_list() const { return object_list_; } + +const EncodableList& AllTypes::object_list() const { + return object_list_; +} void AllTypes::set_object_list(const EncodableList& value_arg) { object_list_ = value_arg; } -const EncodableList& AllTypes::list_list() const { return list_list_; } + +const EncodableList& AllTypes::list_list() const { + return list_list_; +} void AllTypes::set_list_list(const EncodableList& value_arg) { list_list_ = value_arg; } -const EncodableList& AllTypes::map_list() const { return map_list_; } + +const EncodableList& AllTypes::map_list() const { + return map_list_; +} void AllTypes::set_map_list(const EncodableList& value_arg) { map_list_ = value_arg; } -const EncodableMap& AllTypes::map() const { return map_; } -void AllTypes::set_map(const EncodableMap& value_arg) { map_ = value_arg; } +const EncodableMap& AllTypes::map() const { + return map_; +} + +void AllTypes::set_map(const EncodableMap& value_arg) { + map_ = value_arg; +} + -const EncodableMap& AllTypes::string_map() const { return string_map_; } +const EncodableMap& AllTypes::string_map() const { + return string_map_; +} void AllTypes::set_string_map(const EncodableMap& value_arg) { string_map_ = value_arg; } -const EncodableMap& AllTypes::int_map() const { return int_map_; } + +const EncodableMap& AllTypes::int_map() const { + return int_map_; +} void AllTypes::set_int_map(const EncodableMap& value_arg) { int_map_ = value_arg; } -const EncodableMap& AllTypes::enum_map() const { return enum_map_; } + +const EncodableMap& AllTypes::enum_map() const { + return enum_map_; +} void AllTypes::set_enum_map(const EncodableMap& value_arg) { enum_map_ = value_arg; } -const EncodableMap& AllTypes::object_map() const { return object_map_; } + +const EncodableMap& AllTypes::object_map() const { + return object_map_; +} void AllTypes::set_object_map(const EncodableMap& value_arg) { object_map_ = value_arg; } -const EncodableMap& AllTypes::list_map() const { return list_map_; } + +const EncodableMap& AllTypes::list_map() const { + return list_map_; +} void AllTypes::set_list_map(const EncodableMap& value_arg) { list_map_ = value_arg; } -const EncodableMap& AllTypes::map_map() const { return map_map_; } + +const EncodableMap& AllTypes::map_map() const { + return map_map_; +} void AllTypes::set_map_map(const EncodableMap& value_arg) { map_map_ = value_arg; } + EncodableList AllTypes::ToEncodableList() const { EncodableList list; list.reserve(28); @@ -387,56 +480,39 @@ EncodableList AllTypes::ToEncodableList() const { AllTypes AllTypes::FromEncodableList(const EncodableList& list) { AllTypes decoded( - std::get(list[0]), std::get(list[1]), - std::get(list[2]), std::get(list[3]), - std::get>(list[4]), - std::get>(list[5]), - std::get>(list[6]), - std::get>(list[7]), - std::any_cast(std::get(list[8])), - std::any_cast( - std::get(list[9])), - std::get(list[10]), list[11], - std::get(list[12]), std::get(list[13]), - std::get(list[14]), std::get(list[15]), - std::get(list[16]), std::get(list[17]), - std::get(list[18]), std::get(list[19]), - std::get(list[20]), std::get(list[21]), - std::get(list[22]), std::get(list[23]), - std::get(list[24]), std::get(list[25]), - std::get(list[26]), std::get(list[27])); + std::get(list[0]), + std::get(list[1]), + std::get(list[2]), + std::get(list[3]), + std::get>(list[4]), + std::get>(list[5]), + std::get>(list[6]), + std::get>(list[7]), + std::any_cast(std::get(list[8])), + std::any_cast(std::get(list[9])), + std::get(list[10]), + list[11], + std::get(list[12]), + std::get(list[13]), + std::get(list[14]), + std::get(list[15]), + std::get(list[16]), + std::get(list[17]), + std::get(list[18]), + std::get(list[19]), + std::get(list[20]), + std::get(list[21]), + std::get(list[22]), + std::get(list[23]), + std::get(list[24]), + std::get(list[25]), + std::get(list[26]), + std::get(list[27])); return decoded; } bool AllTypes::operator==(const AllTypes& other) const { - return PigeonInternalDeepEquals(a_bool_, other.a_bool_) && - PigeonInternalDeepEquals(an_int_, other.an_int_) && - PigeonInternalDeepEquals(an_int64_, other.an_int64_) && - PigeonInternalDeepEquals(a_double_, other.a_double_) && - PigeonInternalDeepEquals(a_byte_array_, other.a_byte_array_) && - PigeonInternalDeepEquals(a4_byte_array_, other.a4_byte_array_) && - PigeonInternalDeepEquals(a8_byte_array_, other.a8_byte_array_) && - PigeonInternalDeepEquals(a_float_array_, other.a_float_array_) && - PigeonInternalDeepEquals(an_enum_, other.an_enum_) && - PigeonInternalDeepEquals(another_enum_, other.another_enum_) && - PigeonInternalDeepEquals(a_string_, other.a_string_) && - PigeonInternalDeepEquals(an_object_, other.an_object_) && - PigeonInternalDeepEquals(list_, other.list_) && - PigeonInternalDeepEquals(string_list_, other.string_list_) && - PigeonInternalDeepEquals(int_list_, other.int_list_) && - PigeonInternalDeepEquals(double_list_, other.double_list_) && - PigeonInternalDeepEquals(bool_list_, other.bool_list_) && - PigeonInternalDeepEquals(enum_list_, other.enum_list_) && - PigeonInternalDeepEquals(object_list_, other.object_list_) && - PigeonInternalDeepEquals(list_list_, other.list_list_) && - PigeonInternalDeepEquals(map_list_, other.map_list_) && - PigeonInternalDeepEquals(map_, other.map_) && - PigeonInternalDeepEquals(string_map_, other.string_map_) && - PigeonInternalDeepEquals(int_map_, other.int_map_) && - PigeonInternalDeepEquals(enum_map_, other.enum_map_) && - PigeonInternalDeepEquals(object_map_, other.object_map_) && - PigeonInternalDeepEquals(list_map_, other.list_map_) && - PigeonInternalDeepEquals(map_map_, other.map_map_); + return PigeonInternalDeepEquals(a_bool_, other.a_bool_) && PigeonInternalDeepEquals(an_int_, other.an_int_) && PigeonInternalDeepEquals(an_int64_, other.an_int64_) && PigeonInternalDeepEquals(a_double_, other.a_double_) && PigeonInternalDeepEquals(a_byte_array_, other.a_byte_array_) && PigeonInternalDeepEquals(a4_byte_array_, other.a4_byte_array_) && PigeonInternalDeepEquals(a8_byte_array_, other.a8_byte_array_) && PigeonInternalDeepEquals(a_float_array_, other.a_float_array_) && PigeonInternalDeepEquals(an_enum_, other.an_enum_) && PigeonInternalDeepEquals(another_enum_, other.another_enum_) && PigeonInternalDeepEquals(a_string_, other.a_string_) && PigeonInternalDeepEquals(an_object_, other.an_object_) && PigeonInternalDeepEquals(list_, other.list_) && PigeonInternalDeepEquals(string_list_, other.string_list_) && PigeonInternalDeepEquals(int_list_, other.int_list_) && PigeonInternalDeepEquals(double_list_, other.double_list_) && PigeonInternalDeepEquals(bool_list_, other.bool_list_) && PigeonInternalDeepEquals(enum_list_, other.enum_list_) && PigeonInternalDeepEquals(object_list_, other.object_list_) && PigeonInternalDeepEquals(list_list_, other.list_list_) && PigeonInternalDeepEquals(map_list_, other.map_list_) && PigeonInternalDeepEquals(map_, other.map_) && PigeonInternalDeepEquals(string_map_, other.string_map_) && PigeonInternalDeepEquals(int_map_, other.int_map_) && PigeonInternalDeepEquals(enum_map_, other.enum_map_) && PigeonInternalDeepEquals(object_map_, other.object_map_) && PigeonInternalDeepEquals(list_map_, other.list_map_) && PigeonInternalDeepEquals(map_map_, other.map_map_); } bool AllTypes::operator!=(const AllTypes& other) const { @@ -448,197 +524,101 @@ bool AllTypes::operator!=(const AllTypes& other) const { AllNullableTypes::AllNullableTypes() {} AllNullableTypes::AllNullableTypes( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const int64_t* a_nullable_int64, const double* a_nullable_double, - const std::vector* a_nullable_byte_array, - const std::vector* a_nullable4_byte_array, - const std::vector* a_nullable8_byte_array, - const std::vector* a_nullable_float_array, - const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, - const std::string* a_nullable_string, - const EncodableValue* a_nullable_object, - const AllNullableTypes* all_nullable_types, const EncodableList* list, - const EncodableList* string_list, const EncodableList* int_list, - const EncodableList* double_list, const EncodableList* bool_list, - const EncodableList* enum_list, const EncodableList* object_list, - const EncodableList* list_list, const EncodableList* map_list, - const EncodableList* recursive_class_list, const EncodableMap* map, - const EncodableMap* string_map, const EncodableMap* int_map, - const EncodableMap* enum_map, const EncodableMap* object_map, - const EncodableMap* list_map, const EncodableMap* map_map, - const EncodableMap* recursive_class_map) - : a_nullable_bool_(a_nullable_bool ? std::optional(*a_nullable_bool) - : std::nullopt), - a_nullable_int_(a_nullable_int ? std::optional(*a_nullable_int) - : std::nullopt), - a_nullable_int64_(a_nullable_int64 - ? std::optional(*a_nullable_int64) - : std::nullopt), - a_nullable_double_(a_nullable_double - ? std::optional(*a_nullable_double) - : std::nullopt), - a_nullable_byte_array_( - a_nullable_byte_array - ? std::optional>(*a_nullable_byte_array) - : std::nullopt), - a_nullable4_byte_array_( - a_nullable4_byte_array - ? std::optional>(*a_nullable4_byte_array) - : std::nullopt), - a_nullable8_byte_array_( - a_nullable8_byte_array - ? std::optional>(*a_nullable8_byte_array) - : std::nullopt), - a_nullable_float_array_( - a_nullable_float_array - ? std::optional>(*a_nullable_float_array) - : std::nullopt), - a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) - : std::nullopt), - another_nullable_enum_(another_nullable_enum ? std::optional( - *another_nullable_enum) - : std::nullopt), - a_nullable_string_(a_nullable_string - ? std::optional(*a_nullable_string) - : std::nullopt), - a_nullable_object_(a_nullable_object - ? std::optional(*a_nullable_object) - : std::nullopt), - all_nullable_types_( - all_nullable_types - ? std::make_unique(*all_nullable_types) - : nullptr), - list_(list ? std::optional(*list) : std::nullopt), - string_list_(string_list ? std::optional(*string_list) - : std::nullopt), - int_list_(int_list ? std::optional(*int_list) - : std::nullopt), - double_list_(double_list ? std::optional(*double_list) - : std::nullopt), - bool_list_(bool_list ? std::optional(*bool_list) - : std::nullopt), - enum_list_(enum_list ? std::optional(*enum_list) - : std::nullopt), - object_list_(object_list ? std::optional(*object_list) - : std::nullopt), - list_list_(list_list ? std::optional(*list_list) - : std::nullopt), - map_list_(map_list ? std::optional(*map_list) - : std::nullopt), - recursive_class_list_(recursive_class_list ? std::optional( - *recursive_class_list) - : std::nullopt), - map_(map ? std::optional(*map) : std::nullopt), - string_map_(string_map ? std::optional(*string_map) - : std::nullopt), - int_map_(int_map ? std::optional(*int_map) : std::nullopt), - enum_map_(enum_map ? std::optional(*enum_map) - : std::nullopt), - object_map_(object_map ? std::optional(*object_map) - : std::nullopt), - list_map_(list_map ? std::optional(*list_map) - : std::nullopt), - map_map_(map_map ? std::optional(*map_map) : std::nullopt), - recursive_class_map_(recursive_class_map ? std::optional( - *recursive_class_map) - : std::nullopt) {} + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const int64_t* a_nullable_int64, + const double* a_nullable_double, + const std::vector* a_nullable_byte_array, + const std::vector* a_nullable4_byte_array, + const std::vector* a_nullable8_byte_array, + const std::vector* a_nullable_float_array, + const AnEnum* a_nullable_enum, + const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, + const EncodableValue* a_nullable_object, + const AllNullableTypes* all_nullable_types, + const EncodableList* list, + const EncodableList* string_list, + const EncodableList* int_list, + const EncodableList* double_list, + const EncodableList* bool_list, + const EncodableList* enum_list, + const EncodableList* object_list, + const EncodableList* list_list, + const EncodableList* map_list, + const EncodableList* recursive_class_list, + const EncodableMap* map, + const EncodableMap* string_map, + const EncodableMap* int_map, + const EncodableMap* enum_map, + const EncodableMap* object_map, + const EncodableMap* list_map, + const EncodableMap* map_map, + const EncodableMap* recursive_class_map) + : a_nullable_bool_(a_nullable_bool ? std::optional(*a_nullable_bool) : std::nullopt), + a_nullable_int_(a_nullable_int ? std::optional(*a_nullable_int) : std::nullopt), + a_nullable_int64_(a_nullable_int64 ? std::optional(*a_nullable_int64) : std::nullopt), + a_nullable_double_(a_nullable_double ? std::optional(*a_nullable_double) : std::nullopt), + a_nullable_byte_array_(a_nullable_byte_array ? std::optional>(*a_nullable_byte_array) : std::nullopt), + a_nullable4_byte_array_(a_nullable4_byte_array ? std::optional>(*a_nullable4_byte_array) : std::nullopt), + a_nullable8_byte_array_(a_nullable8_byte_array ? std::optional>(*a_nullable8_byte_array) : std::nullopt), + a_nullable_float_array_(a_nullable_float_array ? std::optional>(*a_nullable_float_array) : std::nullopt), + a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) : std::nullopt), + another_nullable_enum_(another_nullable_enum ? std::optional(*another_nullable_enum) : std::nullopt), + a_nullable_string_(a_nullable_string ? std::optional(*a_nullable_string) : std::nullopt), + a_nullable_object_(a_nullable_object ? std::optional(*a_nullable_object) : std::nullopt), + all_nullable_types_(all_nullable_types ? std::make_unique(*all_nullable_types) : nullptr), + list_(list ? std::optional(*list) : std::nullopt), + string_list_(string_list ? std::optional(*string_list) : std::nullopt), + int_list_(int_list ? std::optional(*int_list) : std::nullopt), + double_list_(double_list ? std::optional(*double_list) : std::nullopt), + bool_list_(bool_list ? std::optional(*bool_list) : std::nullopt), + enum_list_(enum_list ? std::optional(*enum_list) : std::nullopt), + object_list_(object_list ? std::optional(*object_list) : std::nullopt), + list_list_(list_list ? std::optional(*list_list) : std::nullopt), + map_list_(map_list ? std::optional(*map_list) : std::nullopt), + recursive_class_list_(recursive_class_list ? std::optional(*recursive_class_list) : std::nullopt), + map_(map ? std::optional(*map) : std::nullopt), + string_map_(string_map ? std::optional(*string_map) : std::nullopt), + int_map_(int_map ? std::optional(*int_map) : std::nullopt), + enum_map_(enum_map ? std::optional(*enum_map) : std::nullopt), + object_map_(object_map ? std::optional(*object_map) : std::nullopt), + list_map_(list_map ? std::optional(*list_map) : std::nullopt), + map_map_(map_map ? std::optional(*map_map) : std::nullopt), + recursive_class_map_(recursive_class_map ? std::optional(*recursive_class_map) : std::nullopt) {} AllNullableTypes::AllNullableTypes(const AllNullableTypes& other) - : a_nullable_bool_(other.a_nullable_bool_ - ? std::optional(*other.a_nullable_bool_) - : std::nullopt), - a_nullable_int_(other.a_nullable_int_ - ? std::optional(*other.a_nullable_int_) - : std::nullopt), - a_nullable_int64_(other.a_nullable_int64_ - ? std::optional(*other.a_nullable_int64_) - : std::nullopt), - a_nullable_double_(other.a_nullable_double_ - ? std::optional(*other.a_nullable_double_) - : std::nullopt), - a_nullable_byte_array_(other.a_nullable_byte_array_ - ? std::optional>( - *other.a_nullable_byte_array_) - : std::nullopt), - a_nullable4_byte_array_(other.a_nullable4_byte_array_ - ? std::optional>( - *other.a_nullable4_byte_array_) - : std::nullopt), - a_nullable8_byte_array_(other.a_nullable8_byte_array_ - ? std::optional>( - *other.a_nullable8_byte_array_) - : std::nullopt), - a_nullable_float_array_(other.a_nullable_float_array_ - ? std::optional>( - *other.a_nullable_float_array_) - : std::nullopt), - a_nullable_enum_(other.a_nullable_enum_ - ? std::optional(*other.a_nullable_enum_) - : std::nullopt), - another_nullable_enum_( - other.another_nullable_enum_ - ? std::optional(*other.another_nullable_enum_) - : std::nullopt), - a_nullable_string_( - other.a_nullable_string_ - ? std::optional(*other.a_nullable_string_) - : std::nullopt), - a_nullable_object_( - other.a_nullable_object_ - ? std::optional(*other.a_nullable_object_) - : std::nullopt), - all_nullable_types_( - other.all_nullable_types_ - ? std::make_unique(*other.all_nullable_types_) - : nullptr), - list_(other.list_ ? std::optional(*other.list_) - : std::nullopt), - string_list_(other.string_list_ - ? std::optional(*other.string_list_) - : std::nullopt), - int_list_(other.int_list_ ? std::optional(*other.int_list_) - : std::nullopt), - double_list_(other.double_list_ - ? std::optional(*other.double_list_) - : std::nullopt), - bool_list_(other.bool_list_ - ? std::optional(*other.bool_list_) - : std::nullopt), - enum_list_(other.enum_list_ - ? std::optional(*other.enum_list_) - : std::nullopt), - object_list_(other.object_list_ - ? std::optional(*other.object_list_) - : std::nullopt), - list_list_(other.list_list_ - ? std::optional(*other.list_list_) - : std::nullopt), - map_list_(other.map_list_ ? std::optional(*other.map_list_) - : std::nullopt), - recursive_class_list_( - other.recursive_class_list_ - ? std::optional(*other.recursive_class_list_) - : std::nullopt), - map_(other.map_ ? std::optional(*other.map_) - : std::nullopt), - string_map_(other.string_map_ - ? std::optional(*other.string_map_) - : std::nullopt), - int_map_(other.int_map_ ? std::optional(*other.int_map_) - : std::nullopt), - enum_map_(other.enum_map_ ? std::optional(*other.enum_map_) - : std::nullopt), - object_map_(other.object_map_ - ? std::optional(*other.object_map_) - : std::nullopt), - list_map_(other.list_map_ ? std::optional(*other.list_map_) - : std::nullopt), - map_map_(other.map_map_ ? std::optional(*other.map_map_) - : std::nullopt), - recursive_class_map_( - other.recursive_class_map_ - ? std::optional(*other.recursive_class_map_) - : std::nullopt) {} + : a_nullable_bool_(other.a_nullable_bool_ ? std::optional(*other.a_nullable_bool_) : std::nullopt), + a_nullable_int_(other.a_nullable_int_ ? std::optional(*other.a_nullable_int_) : std::nullopt), + a_nullable_int64_(other.a_nullable_int64_ ? std::optional(*other.a_nullable_int64_) : std::nullopt), + a_nullable_double_(other.a_nullable_double_ ? std::optional(*other.a_nullable_double_) : std::nullopt), + a_nullable_byte_array_(other.a_nullable_byte_array_ ? std::optional>(*other.a_nullable_byte_array_) : std::nullopt), + a_nullable4_byte_array_(other.a_nullable4_byte_array_ ? std::optional>(*other.a_nullable4_byte_array_) : std::nullopt), + a_nullable8_byte_array_(other.a_nullable8_byte_array_ ? std::optional>(*other.a_nullable8_byte_array_) : std::nullopt), + a_nullable_float_array_(other.a_nullable_float_array_ ? std::optional>(*other.a_nullable_float_array_) : std::nullopt), + a_nullable_enum_(other.a_nullable_enum_ ? std::optional(*other.a_nullable_enum_) : std::nullopt), + another_nullable_enum_(other.another_nullable_enum_ ? std::optional(*other.another_nullable_enum_) : std::nullopt), + a_nullable_string_(other.a_nullable_string_ ? std::optional(*other.a_nullable_string_) : std::nullopt), + a_nullable_object_(other.a_nullable_object_ ? std::optional(*other.a_nullable_object_) : std::nullopt), + all_nullable_types_(other.all_nullable_types_ ? std::make_unique(*other.all_nullable_types_) : nullptr), + list_(other.list_ ? std::optional(*other.list_) : std::nullopt), + string_list_(other.string_list_ ? std::optional(*other.string_list_) : std::nullopt), + int_list_(other.int_list_ ? std::optional(*other.int_list_) : std::nullopt), + double_list_(other.double_list_ ? std::optional(*other.double_list_) : std::nullopt), + bool_list_(other.bool_list_ ? std::optional(*other.bool_list_) : std::nullopt), + enum_list_(other.enum_list_ ? std::optional(*other.enum_list_) : std::nullopt), + object_list_(other.object_list_ ? std::optional(*other.object_list_) : std::nullopt), + list_list_(other.list_list_ ? std::optional(*other.list_list_) : std::nullopt), + map_list_(other.map_list_ ? std::optional(*other.map_list_) : std::nullopt), + recursive_class_list_(other.recursive_class_list_ ? std::optional(*other.recursive_class_list_) : std::nullopt), + map_(other.map_ ? std::optional(*other.map_) : std::nullopt), + string_map_(other.string_map_ ? std::optional(*other.string_map_) : std::nullopt), + int_map_(other.int_map_ ? std::optional(*other.int_map_) : std::nullopt), + enum_map_(other.enum_map_ ? std::optional(*other.enum_map_) : std::nullopt), + object_map_(other.object_map_ ? std::optional(*other.object_map_) : std::nullopt), + list_map_(other.list_map_ ? std::optional(*other.list_map_) : std::nullopt), + map_map_(other.map_map_ ? std::optional(*other.map_map_) : std::nullopt), + recursive_class_map_(other.recursive_class_map_ ? std::optional(*other.recursive_class_map_) : std::nullopt) {} AllNullableTypes& AllNullableTypes::operator=(const AllNullableTypes& other) { a_nullable_bool_ = other.a_nullable_bool_; @@ -653,10 +633,7 @@ AllNullableTypes& AllNullableTypes::operator=(const AllNullableTypes& other) { another_nullable_enum_ = other.another_nullable_enum_; a_nullable_string_ = other.a_nullable_string_; a_nullable_object_ = other.a_nullable_object_; - all_nullable_types_ = - other.all_nullable_types_ - ? std::make_unique(*other.all_nullable_types_) - : nullptr; + all_nullable_types_ = other.all_nullable_types_ ? std::make_unique(*other.all_nullable_types_) : nullptr; list_ = other.list_; string_list_ = other.string_list_; int_list_ = other.int_list_; @@ -690,176 +667,163 @@ void AllNullableTypes::set_a_nullable_bool(bool value_arg) { a_nullable_bool_ = value_arg; } + const int64_t* AllNullableTypes::a_nullable_int() const { return a_nullable_int_ ? &(*a_nullable_int_) : nullptr; } void AllNullableTypes::set_a_nullable_int(const int64_t* value_arg) { - a_nullable_int_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_int_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_int(int64_t value_arg) { a_nullable_int_ = value_arg; } + const int64_t* AllNullableTypes::a_nullable_int64() const { return a_nullable_int64_ ? &(*a_nullable_int64_) : nullptr; } void AllNullableTypes::set_a_nullable_int64(const int64_t* value_arg) { - a_nullable_int64_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_int64_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_int64(int64_t value_arg) { a_nullable_int64_ = value_arg; } + const double* AllNullableTypes::a_nullable_double() const { return a_nullable_double_ ? &(*a_nullable_double_) : nullptr; } void AllNullableTypes::set_a_nullable_double(const double* value_arg) { - a_nullable_double_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_double_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_double(double value_arg) { a_nullable_double_ = value_arg; } + const std::vector* AllNullableTypes::a_nullable_byte_array() const { return a_nullable_byte_array_ ? &(*a_nullable_byte_array_) : nullptr; } -void AllNullableTypes::set_a_nullable_byte_array( - const std::vector* value_arg) { - a_nullable_byte_array_ = value_arg - ? std::optional>(*value_arg) - : std::nullopt; +void AllNullableTypes::set_a_nullable_byte_array(const std::vector* value_arg) { + a_nullable_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypes::set_a_nullable_byte_array( - const std::vector& value_arg) { +void AllNullableTypes::set_a_nullable_byte_array(const std::vector& value_arg) { a_nullable_byte_array_ = value_arg; } + const std::vector* AllNullableTypes::a_nullable4_byte_array() const { return a_nullable4_byte_array_ ? &(*a_nullable4_byte_array_) : nullptr; } -void AllNullableTypes::set_a_nullable4_byte_array( - const std::vector* value_arg) { - a_nullable4_byte_array_ = - value_arg ? std::optional>(*value_arg) - : std::nullopt; +void AllNullableTypes::set_a_nullable4_byte_array(const std::vector* value_arg) { + a_nullable4_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypes::set_a_nullable4_byte_array( - const std::vector& value_arg) { +void AllNullableTypes::set_a_nullable4_byte_array(const std::vector& value_arg) { a_nullable4_byte_array_ = value_arg; } + const std::vector* AllNullableTypes::a_nullable8_byte_array() const { return a_nullable8_byte_array_ ? &(*a_nullable8_byte_array_) : nullptr; } -void AllNullableTypes::set_a_nullable8_byte_array( - const std::vector* value_arg) { - a_nullable8_byte_array_ = - value_arg ? std::optional>(*value_arg) - : std::nullopt; +void AllNullableTypes::set_a_nullable8_byte_array(const std::vector* value_arg) { + a_nullable8_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypes::set_a_nullable8_byte_array( - const std::vector& value_arg) { +void AllNullableTypes::set_a_nullable8_byte_array(const std::vector& value_arg) { a_nullable8_byte_array_ = value_arg; } + const std::vector* AllNullableTypes::a_nullable_float_array() const { return a_nullable_float_array_ ? &(*a_nullable_float_array_) : nullptr; } -void AllNullableTypes::set_a_nullable_float_array( - const std::vector* value_arg) { - a_nullable_float_array_ = - value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypes::set_a_nullable_float_array(const std::vector* value_arg) { + a_nullable_float_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypes::set_a_nullable_float_array( - const std::vector& value_arg) { +void AllNullableTypes::set_a_nullable_float_array(const std::vector& value_arg) { a_nullable_float_array_ = value_arg; } + const AnEnum* AllNullableTypes::a_nullable_enum() const { return a_nullable_enum_ ? &(*a_nullable_enum_) : nullptr; } void AllNullableTypes::set_a_nullable_enum(const AnEnum* value_arg) { - a_nullable_enum_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_enum_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_enum(const AnEnum& value_arg) { a_nullable_enum_ = value_arg; } + const AnotherEnum* AllNullableTypes::another_nullable_enum() const { return another_nullable_enum_ ? &(*another_nullable_enum_) : nullptr; } void AllNullableTypes::set_another_nullable_enum(const AnotherEnum* value_arg) { - another_nullable_enum_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + another_nullable_enum_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_another_nullable_enum(const AnotherEnum& value_arg) { another_nullable_enum_ = value_arg; } + const std::string* AllNullableTypes::a_nullable_string() const { return a_nullable_string_ ? &(*a_nullable_string_) : nullptr; } -void AllNullableTypes::set_a_nullable_string( - const std::string_view* value_arg) { - a_nullable_string_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypes::set_a_nullable_string(const std::string_view* value_arg) { + a_nullable_string_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_string(std::string_view value_arg) { a_nullable_string_ = value_arg; } + const EncodableValue* AllNullableTypes::a_nullable_object() const { return a_nullable_object_ ? &(*a_nullable_object_) : nullptr; } void AllNullableTypes::set_a_nullable_object(const EncodableValue* value_arg) { - a_nullable_object_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_object_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_object(const EncodableValue& value_arg) { a_nullable_object_ = value_arg; } + const AllNullableTypes* AllNullableTypes::all_nullable_types() const { return all_nullable_types_.get(); } -void AllNullableTypes::set_all_nullable_types( - const AllNullableTypes* value_arg) { - all_nullable_types_ = - value_arg ? std::make_unique(*value_arg) : nullptr; +void AllNullableTypes::set_all_nullable_types(const AllNullableTypes* value_arg) { + all_nullable_types_ = value_arg ? std::make_unique(*value_arg) : nullptr; } -void AllNullableTypes::set_all_nullable_types( - const AllNullableTypes& value_arg) { +void AllNullableTypes::set_all_nullable_types(const AllNullableTypes& value_arg) { all_nullable_types_ = std::make_unique(value_arg); } + const EncodableList* AllNullableTypes::list() const { return list_ ? &(*list_) : nullptr; } @@ -872,125 +836,124 @@ void AllNullableTypes::set_list(const EncodableList& value_arg) { list_ = value_arg; } + const EncodableList* AllNullableTypes::string_list() const { return string_list_ ? &(*string_list_) : nullptr; } void AllNullableTypes::set_string_list(const EncodableList* value_arg) { - string_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + string_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_string_list(const EncodableList& value_arg) { string_list_ = value_arg; } + const EncodableList* AllNullableTypes::int_list() const { return int_list_ ? &(*int_list_) : nullptr; } void AllNullableTypes::set_int_list(const EncodableList* value_arg) { - int_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + int_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_int_list(const EncodableList& value_arg) { int_list_ = value_arg; } + const EncodableList* AllNullableTypes::double_list() const { return double_list_ ? &(*double_list_) : nullptr; } void AllNullableTypes::set_double_list(const EncodableList* value_arg) { - double_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + double_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_double_list(const EncodableList& value_arg) { double_list_ = value_arg; } + const EncodableList* AllNullableTypes::bool_list() const { return bool_list_ ? &(*bool_list_) : nullptr; } void AllNullableTypes::set_bool_list(const EncodableList* value_arg) { - bool_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + bool_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_bool_list(const EncodableList& value_arg) { bool_list_ = value_arg; } + const EncodableList* AllNullableTypes::enum_list() const { return enum_list_ ? &(*enum_list_) : nullptr; } void AllNullableTypes::set_enum_list(const EncodableList* value_arg) { - enum_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + enum_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_enum_list(const EncodableList& value_arg) { enum_list_ = value_arg; } + const EncodableList* AllNullableTypes::object_list() const { return object_list_ ? &(*object_list_) : nullptr; } void AllNullableTypes::set_object_list(const EncodableList* value_arg) { - object_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + object_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_object_list(const EncodableList& value_arg) { object_list_ = value_arg; } + const EncodableList* AllNullableTypes::list_list() const { return list_list_ ? &(*list_list_) : nullptr; } void AllNullableTypes::set_list_list(const EncodableList* value_arg) { - list_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + list_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_list_list(const EncodableList& value_arg) { list_list_ = value_arg; } + const EncodableList* AllNullableTypes::map_list() const { return map_list_ ? &(*map_list_) : nullptr; } void AllNullableTypes::set_map_list(const EncodableList* value_arg) { - map_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + map_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_map_list(const EncodableList& value_arg) { map_list_ = value_arg; } + const EncodableList* AllNullableTypes::recursive_class_list() const { return recursive_class_list_ ? &(*recursive_class_list_) : nullptr; } -void AllNullableTypes::set_recursive_class_list( - const EncodableList* value_arg) { - recursive_class_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypes::set_recursive_class_list(const EncodableList* value_arg) { + recursive_class_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypes::set_recursive_class_list( - const EncodableList& value_arg) { +void AllNullableTypes::set_recursive_class_list(const EncodableList& value_arg) { recursive_class_list_ = value_arg; } + const EncodableMap* AllNullableTypes::map() const { return map_ ? &(*map_) : nullptr; } @@ -1003,19 +966,20 @@ void AllNullableTypes::set_map(const EncodableMap& value_arg) { map_ = value_arg; } + const EncodableMap* AllNullableTypes::string_map() const { return string_map_ ? &(*string_map_) : nullptr; } void AllNullableTypes::set_string_map(const EncodableMap* value_arg) { - string_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + string_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_string_map(const EncodableMap& value_arg) { string_map_ = value_arg; } + const EncodableMap* AllNullableTypes::int_map() const { return int_map_ ? &(*int_map_) : nullptr; } @@ -1028,45 +992,46 @@ void AllNullableTypes::set_int_map(const EncodableMap& value_arg) { int_map_ = value_arg; } + const EncodableMap* AllNullableTypes::enum_map() const { return enum_map_ ? &(*enum_map_) : nullptr; } void AllNullableTypes::set_enum_map(const EncodableMap* value_arg) { - enum_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + enum_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_enum_map(const EncodableMap& value_arg) { enum_map_ = value_arg; } + const EncodableMap* AllNullableTypes::object_map() const { return object_map_ ? &(*object_map_) : nullptr; } void AllNullableTypes::set_object_map(const EncodableMap* value_arg) { - object_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + object_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_object_map(const EncodableMap& value_arg) { object_map_ = value_arg; } + const EncodableMap* AllNullableTypes::list_map() const { return list_map_ ? &(*list_map_) : nullptr; } void AllNullableTypes::set_list_map(const EncodableMap* value_arg) { - list_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + list_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_list_map(const EncodableMap& value_arg) { list_map_ = value_arg; } + const EncodableMap* AllNullableTypes::map_map() const { return map_map_ ? &(*map_map_) : nullptr; } @@ -1079,67 +1044,46 @@ void AllNullableTypes::set_map_map(const EncodableMap& value_arg) { map_map_ = value_arg; } + const EncodableMap* AllNullableTypes::recursive_class_map() const { return recursive_class_map_ ? &(*recursive_class_map_) : nullptr; } void AllNullableTypes::set_recursive_class_map(const EncodableMap* value_arg) { - recursive_class_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + recursive_class_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_recursive_class_map(const EncodableMap& value_arg) { recursive_class_map_ = value_arg; } + EncodableList AllNullableTypes::ToEncodableList() const { EncodableList list; list.reserve(31); - list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) - : EncodableValue()); - list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) - : EncodableValue()); - list.push_back(a_nullable_int64_ ? EncodableValue(*a_nullable_int64_) - : EncodableValue()); - list.push_back(a_nullable_double_ ? EncodableValue(*a_nullable_double_) - : EncodableValue()); - list.push_back(a_nullable_byte_array_ - ? EncodableValue(*a_nullable_byte_array_) - : EncodableValue()); - list.push_back(a_nullable4_byte_array_ - ? EncodableValue(*a_nullable4_byte_array_) - : EncodableValue()); - list.push_back(a_nullable8_byte_array_ - ? EncodableValue(*a_nullable8_byte_array_) - : EncodableValue()); - list.push_back(a_nullable_float_array_ - ? EncodableValue(*a_nullable_float_array_) - : EncodableValue()); - list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) - : EncodableValue()); - list.push_back(another_nullable_enum_ - ? CustomEncodableValue(*another_nullable_enum_) - : EncodableValue()); - list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) - : EncodableValue()); + list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) : EncodableValue()); + list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) : EncodableValue()); + list.push_back(a_nullable_int64_ ? EncodableValue(*a_nullable_int64_) : EncodableValue()); + list.push_back(a_nullable_double_ ? EncodableValue(*a_nullable_double_) : EncodableValue()); + list.push_back(a_nullable_byte_array_ ? EncodableValue(*a_nullable_byte_array_) : EncodableValue()); + list.push_back(a_nullable4_byte_array_ ? EncodableValue(*a_nullable4_byte_array_) : EncodableValue()); + list.push_back(a_nullable8_byte_array_ ? EncodableValue(*a_nullable8_byte_array_) : EncodableValue()); + list.push_back(a_nullable_float_array_ ? EncodableValue(*a_nullable_float_array_) : EncodableValue()); + list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) : EncodableValue()); + list.push_back(another_nullable_enum_ ? CustomEncodableValue(*another_nullable_enum_) : EncodableValue()); + list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) : EncodableValue()); list.push_back(a_nullable_object_ ? *a_nullable_object_ : EncodableValue()); - list.push_back(all_nullable_types_ - ? CustomEncodableValue(*all_nullable_types_) - : EncodableValue()); + list.push_back(all_nullable_types_ ? CustomEncodableValue(*all_nullable_types_) : EncodableValue()); list.push_back(list_ ? EncodableValue(*list_) : EncodableValue()); - list.push_back(string_list_ ? EncodableValue(*string_list_) - : EncodableValue()); + list.push_back(string_list_ ? EncodableValue(*string_list_) : EncodableValue()); list.push_back(int_list_ ? EncodableValue(*int_list_) : EncodableValue()); - list.push_back(double_list_ ? EncodableValue(*double_list_) - : EncodableValue()); + list.push_back(double_list_ ? EncodableValue(*double_list_) : EncodableValue()); list.push_back(bool_list_ ? EncodableValue(*bool_list_) : EncodableValue()); list.push_back(enum_list_ ? EncodableValue(*enum_list_) : EncodableValue()); - list.push_back(object_list_ ? EncodableValue(*object_list_) - : EncodableValue()); + list.push_back(object_list_ ? EncodableValue(*object_list_) : EncodableValue()); list.push_back(list_list_ ? EncodableValue(*list_list_) : EncodableValue()); list.push_back(map_list_ ? EncodableValue(*map_list_) : EncodableValue()); - list.push_back(recursive_class_list_ ? EncodableValue(*recursive_class_list_) - : EncodableValue()); + list.push_back(recursive_class_list_ ? EncodableValue(*recursive_class_list_) : EncodableValue()); list.push_back(map_ ? EncodableValue(*map_) : EncodableValue()); list.push_back(string_map_ ? EncodableValue(*string_map_) : EncodableValue()); list.push_back(int_map_ ? EncodableValue(*int_map_) : EncodableValue()); @@ -1147,13 +1091,11 @@ EncodableList AllNullableTypes::ToEncodableList() const { list.push_back(object_map_ ? EncodableValue(*object_map_) : EncodableValue()); list.push_back(list_map_ ? EncodableValue(*list_map_) : EncodableValue()); list.push_back(map_map_ ? EncodableValue(*map_map_) : EncodableValue()); - list.push_back(recursive_class_map_ ? EncodableValue(*recursive_class_map_) - : EncodableValue()); + list.push_back(recursive_class_map_ ? EncodableValue(*recursive_class_map_) : EncodableValue()); return list; } -AllNullableTypes AllNullableTypes::FromEncodableList( - const EncodableList& list) { +AllNullableTypes AllNullableTypes::FromEncodableList(const EncodableList& list) { AllNullableTypes decoded; auto& encodable_a_nullable_bool = list[0]; if (!encodable_a_nullable_bool.IsNull()) { @@ -1169,43 +1111,35 @@ AllNullableTypes AllNullableTypes::FromEncodableList( } auto& encodable_a_nullable_double = list[3]; if (!encodable_a_nullable_double.IsNull()) { - decoded.set_a_nullable_double( - std::get(encodable_a_nullable_double)); + decoded.set_a_nullable_double(std::get(encodable_a_nullable_double)); } auto& encodable_a_nullable_byte_array = list[4]; if (!encodable_a_nullable_byte_array.IsNull()) { - decoded.set_a_nullable_byte_array( - std::get>(encodable_a_nullable_byte_array)); + decoded.set_a_nullable_byte_array(std::get>(encodable_a_nullable_byte_array)); } auto& encodable_a_nullable4_byte_array = list[5]; if (!encodable_a_nullable4_byte_array.IsNull()) { - decoded.set_a_nullable4_byte_array( - std::get>(encodable_a_nullable4_byte_array)); + decoded.set_a_nullable4_byte_array(std::get>(encodable_a_nullable4_byte_array)); } auto& encodable_a_nullable8_byte_array = list[6]; if (!encodable_a_nullable8_byte_array.IsNull()) { - decoded.set_a_nullable8_byte_array( - std::get>(encodable_a_nullable8_byte_array)); + decoded.set_a_nullable8_byte_array(std::get>(encodable_a_nullable8_byte_array)); } auto& encodable_a_nullable_float_array = list[7]; if (!encodable_a_nullable_float_array.IsNull()) { - decoded.set_a_nullable_float_array( - std::get>(encodable_a_nullable_float_array)); + decoded.set_a_nullable_float_array(std::get>(encodable_a_nullable_float_array)); } auto& encodable_a_nullable_enum = list[8]; if (!encodable_a_nullable_enum.IsNull()) { - decoded.set_a_nullable_enum(std::any_cast( - std::get(encodable_a_nullable_enum))); + decoded.set_a_nullable_enum(std::any_cast(std::get(encodable_a_nullable_enum))); } auto& encodable_another_nullable_enum = list[9]; if (!encodable_another_nullable_enum.IsNull()) { - decoded.set_another_nullable_enum(std::any_cast( - std::get(encodable_another_nullable_enum))); + decoded.set_another_nullable_enum(std::any_cast(std::get(encodable_another_nullable_enum))); } auto& encodable_a_nullable_string = list[10]; if (!encodable_a_nullable_string.IsNull()) { - decoded.set_a_nullable_string( - std::get(encodable_a_nullable_string)); + decoded.set_a_nullable_string(std::get(encodable_a_nullable_string)); } auto& encodable_a_nullable_object = list[11]; if (!encodable_a_nullable_object.IsNull()) { @@ -1213,8 +1147,7 @@ AllNullableTypes AllNullableTypes::FromEncodableList( } auto& encodable_all_nullable_types = list[12]; if (!encodable_all_nullable_types.IsNull()) { - decoded.set_all_nullable_types(std::any_cast( - std::get(encodable_all_nullable_types))); + decoded.set_all_nullable_types(std::any_cast(std::get(encodable_all_nullable_types))); } auto& encodable_list = list[13]; if (!encodable_list.IsNull()) { @@ -1254,8 +1187,7 @@ AllNullableTypes AllNullableTypes::FromEncodableList( } auto& encodable_recursive_class_list = list[22]; if (!encodable_recursive_class_list.IsNull()) { - decoded.set_recursive_class_list( - std::get(encodable_recursive_class_list)); + decoded.set_recursive_class_list(std::get(encodable_recursive_class_list)); } auto& encodable_map = list[23]; if (!encodable_map.IsNull()) { @@ -1287,55 +1219,13 @@ AllNullableTypes AllNullableTypes::FromEncodableList( } auto& encodable_recursive_class_map = list[30]; if (!encodable_recursive_class_map.IsNull()) { - decoded.set_recursive_class_map( - std::get(encodable_recursive_class_map)); + decoded.set_recursive_class_map(std::get(encodable_recursive_class_map)); } return decoded; } bool AllNullableTypes::operator==(const AllNullableTypes& other) const { - return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && - PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && - PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && - PigeonInternalDeepEquals(a_nullable_double_, - other.a_nullable_double_) && - PigeonInternalDeepEquals(a_nullable_byte_array_, - other.a_nullable_byte_array_) && - PigeonInternalDeepEquals(a_nullable4_byte_array_, - other.a_nullable4_byte_array_) && - PigeonInternalDeepEquals(a_nullable8_byte_array_, - other.a_nullable8_byte_array_) && - PigeonInternalDeepEquals(a_nullable_float_array_, - other.a_nullable_float_array_) && - PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && - PigeonInternalDeepEquals(another_nullable_enum_, - other.another_nullable_enum_) && - PigeonInternalDeepEquals(a_nullable_string_, - other.a_nullable_string_) && - PigeonInternalDeepEquals(a_nullable_object_, - other.a_nullable_object_) && - PigeonInternalDeepEquals(all_nullable_types_, - other.all_nullable_types_) && - PigeonInternalDeepEquals(list_, other.list_) && - PigeonInternalDeepEquals(string_list_, other.string_list_) && - PigeonInternalDeepEquals(int_list_, other.int_list_) && - PigeonInternalDeepEquals(double_list_, other.double_list_) && - PigeonInternalDeepEquals(bool_list_, other.bool_list_) && - PigeonInternalDeepEquals(enum_list_, other.enum_list_) && - PigeonInternalDeepEquals(object_list_, other.object_list_) && - PigeonInternalDeepEquals(list_list_, other.list_list_) && - PigeonInternalDeepEquals(map_list_, other.map_list_) && - PigeonInternalDeepEquals(recursive_class_list_, - other.recursive_class_list_) && - PigeonInternalDeepEquals(map_, other.map_) && - PigeonInternalDeepEquals(string_map_, other.string_map_) && - PigeonInternalDeepEquals(int_map_, other.int_map_) && - PigeonInternalDeepEquals(enum_map_, other.enum_map_) && - PigeonInternalDeepEquals(object_map_, other.object_map_) && - PigeonInternalDeepEquals(list_map_, other.list_map_) && - PigeonInternalDeepEquals(map_map_, other.map_map_) && - PigeonInternalDeepEquals(recursive_class_map_, - other.recursive_class_map_); + return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && PigeonInternalDeepEquals(a_nullable_double_, other.a_nullable_double_) && PigeonInternalDeepEquals(a_nullable_byte_array_, other.a_nullable_byte_array_) && PigeonInternalDeepEquals(a_nullable4_byte_array_, other.a_nullable4_byte_array_) && PigeonInternalDeepEquals(a_nullable8_byte_array_, other.a_nullable8_byte_array_) && PigeonInternalDeepEquals(a_nullable_float_array_, other.a_nullable_float_array_) && PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && PigeonInternalDeepEquals(another_nullable_enum_, other.another_nullable_enum_) && PigeonInternalDeepEquals(a_nullable_string_, other.a_nullable_string_) && PigeonInternalDeepEquals(a_nullable_object_, other.a_nullable_object_) && PigeonInternalDeepEquals(all_nullable_types_, other.all_nullable_types_) && PigeonInternalDeepEquals(list_, other.list_) && PigeonInternalDeepEquals(string_list_, other.string_list_) && PigeonInternalDeepEquals(int_list_, other.int_list_) && PigeonInternalDeepEquals(double_list_, other.double_list_) && PigeonInternalDeepEquals(bool_list_, other.bool_list_) && PigeonInternalDeepEquals(enum_list_, other.enum_list_) && PigeonInternalDeepEquals(object_list_, other.object_list_) && PigeonInternalDeepEquals(list_list_, other.list_list_) && PigeonInternalDeepEquals(map_list_, other.map_list_) && PigeonInternalDeepEquals(recursive_class_list_, other.recursive_class_list_) && PigeonInternalDeepEquals(map_, other.map_) && PigeonInternalDeepEquals(string_map_, other.string_map_) && PigeonInternalDeepEquals(int_map_, other.int_map_) && PigeonInternalDeepEquals(enum_map_, other.enum_map_) && PigeonInternalDeepEquals(object_map_, other.object_map_) && PigeonInternalDeepEquals(list_map_, other.list_map_) && PigeonInternalDeepEquals(map_map_, other.map_map_) && PigeonInternalDeepEquals(recursive_class_map_, other.recursive_class_map_); } bool AllNullableTypes::operator!=(const AllNullableTypes& other) const { @@ -1347,96 +1237,68 @@ bool AllNullableTypes::operator!=(const AllNullableTypes& other) const { AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion() {} AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const int64_t* a_nullable_int64, const double* a_nullable_double, - const std::vector* a_nullable_byte_array, - const std::vector* a_nullable4_byte_array, - const std::vector* a_nullable8_byte_array, - const std::vector* a_nullable_float_array, - const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, - const std::string* a_nullable_string, - const EncodableValue* a_nullable_object, const EncodableList* list, - const EncodableList* string_list, const EncodableList* int_list, - const EncodableList* double_list, const EncodableList* bool_list, - const EncodableList* enum_list, const EncodableList* object_list, - const EncodableList* list_list, const EncodableList* map_list, - const EncodableMap* map, const EncodableMap* string_map, - const EncodableMap* int_map, const EncodableMap* enum_map, - const EncodableMap* object_map, const EncodableMap* list_map, - const EncodableMap* map_map) - : a_nullable_bool_(a_nullable_bool ? std::optional(*a_nullable_bool) - : std::nullopt), - a_nullable_int_(a_nullable_int ? std::optional(*a_nullable_int) - : std::nullopt), - a_nullable_int64_(a_nullable_int64 - ? std::optional(*a_nullable_int64) - : std::nullopt), - a_nullable_double_(a_nullable_double - ? std::optional(*a_nullable_double) - : std::nullopt), - a_nullable_byte_array_( - a_nullable_byte_array - ? std::optional>(*a_nullable_byte_array) - : std::nullopt), - a_nullable4_byte_array_( - a_nullable4_byte_array - ? std::optional>(*a_nullable4_byte_array) - : std::nullopt), - a_nullable8_byte_array_( - a_nullable8_byte_array - ? std::optional>(*a_nullable8_byte_array) - : std::nullopt), - a_nullable_float_array_( - a_nullable_float_array - ? std::optional>(*a_nullable_float_array) - : std::nullopt), - a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) - : std::nullopt), - another_nullable_enum_(another_nullable_enum ? std::optional( - *another_nullable_enum) - : std::nullopt), - a_nullable_string_(a_nullable_string - ? std::optional(*a_nullable_string) - : std::nullopt), - a_nullable_object_(a_nullable_object - ? std::optional(*a_nullable_object) - : std::nullopt), - list_(list ? std::optional(*list) : std::nullopt), - string_list_(string_list ? std::optional(*string_list) - : std::nullopt), - int_list_(int_list ? std::optional(*int_list) - : std::nullopt), - double_list_(double_list ? std::optional(*double_list) - : std::nullopt), - bool_list_(bool_list ? std::optional(*bool_list) - : std::nullopt), - enum_list_(enum_list ? std::optional(*enum_list) - : std::nullopt), - object_list_(object_list ? std::optional(*object_list) - : std::nullopt), - list_list_(list_list ? std::optional(*list_list) - : std::nullopt), - map_list_(map_list ? std::optional(*map_list) - : std::nullopt), - map_(map ? std::optional(*map) : std::nullopt), - string_map_(string_map ? std::optional(*string_map) - : std::nullopt), - int_map_(int_map ? std::optional(*int_map) : std::nullopt), - enum_map_(enum_map ? std::optional(*enum_map) - : std::nullopt), - object_map_(object_map ? std::optional(*object_map) - : std::nullopt), - list_map_(list_map ? std::optional(*list_map) - : std::nullopt), - map_map_(map_map ? std::optional(*map_map) : std::nullopt) { -} + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const int64_t* a_nullable_int64, + const double* a_nullable_double, + const std::vector* a_nullable_byte_array, + const std::vector* a_nullable4_byte_array, + const std::vector* a_nullable8_byte_array, + const std::vector* a_nullable_float_array, + const AnEnum* a_nullable_enum, + const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, + const EncodableValue* a_nullable_object, + const EncodableList* list, + const EncodableList* string_list, + const EncodableList* int_list, + const EncodableList* double_list, + const EncodableList* bool_list, + const EncodableList* enum_list, + const EncodableList* object_list, + const EncodableList* list_list, + const EncodableList* map_list, + const EncodableMap* map, + const EncodableMap* string_map, + const EncodableMap* int_map, + const EncodableMap* enum_map, + const EncodableMap* object_map, + const EncodableMap* list_map, + const EncodableMap* map_map) + : a_nullable_bool_(a_nullable_bool ? std::optional(*a_nullable_bool) : std::nullopt), + a_nullable_int_(a_nullable_int ? std::optional(*a_nullable_int) : std::nullopt), + a_nullable_int64_(a_nullable_int64 ? std::optional(*a_nullable_int64) : std::nullopt), + a_nullable_double_(a_nullable_double ? std::optional(*a_nullable_double) : std::nullopt), + a_nullable_byte_array_(a_nullable_byte_array ? std::optional>(*a_nullable_byte_array) : std::nullopt), + a_nullable4_byte_array_(a_nullable4_byte_array ? std::optional>(*a_nullable4_byte_array) : std::nullopt), + a_nullable8_byte_array_(a_nullable8_byte_array ? std::optional>(*a_nullable8_byte_array) : std::nullopt), + a_nullable_float_array_(a_nullable_float_array ? std::optional>(*a_nullable_float_array) : std::nullopt), + a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) : std::nullopt), + another_nullable_enum_(another_nullable_enum ? std::optional(*another_nullable_enum) : std::nullopt), + a_nullable_string_(a_nullable_string ? std::optional(*a_nullable_string) : std::nullopt), + a_nullable_object_(a_nullable_object ? std::optional(*a_nullable_object) : std::nullopt), + list_(list ? std::optional(*list) : std::nullopt), + string_list_(string_list ? std::optional(*string_list) : std::nullopt), + int_list_(int_list ? std::optional(*int_list) : std::nullopt), + double_list_(double_list ? std::optional(*double_list) : std::nullopt), + bool_list_(bool_list ? std::optional(*bool_list) : std::nullopt), + enum_list_(enum_list ? std::optional(*enum_list) : std::nullopt), + object_list_(object_list ? std::optional(*object_list) : std::nullopt), + list_list_(list_list ? std::optional(*list_list) : std::nullopt), + map_list_(map_list ? std::optional(*map_list) : std::nullopt), + map_(map ? std::optional(*map) : std::nullopt), + string_map_(string_map ? std::optional(*string_map) : std::nullopt), + int_map_(int_map ? std::optional(*int_map) : std::nullopt), + enum_map_(enum_map ? std::optional(*enum_map) : std::nullopt), + object_map_(object_map ? std::optional(*object_map) : std::nullopt), + list_map_(list_map ? std::optional(*list_map) : std::nullopt), + map_map_(map_map ? std::optional(*map_map) : std::nullopt) {} const bool* AllNullableTypesWithoutRecursion::a_nullable_bool() const { return a_nullable_bool_ ? &(*a_nullable_bool_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_bool( - const bool* value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_bool(const bool* value_arg) { a_nullable_bool_ = value_arg ? std::optional(*value_arg) : std::nullopt; } @@ -1444,311 +1306,267 @@ void AllNullableTypesWithoutRecursion::set_a_nullable_bool(bool value_arg) { a_nullable_bool_ = value_arg; } + const int64_t* AllNullableTypesWithoutRecursion::a_nullable_int() const { return a_nullable_int_ ? &(*a_nullable_int_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_int( - const int64_t* value_arg) { - a_nullable_int_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_int(const int64_t* value_arg) { + a_nullable_int_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypesWithoutRecursion::set_a_nullable_int(int64_t value_arg) { a_nullable_int_ = value_arg; } + const int64_t* AllNullableTypesWithoutRecursion::a_nullable_int64() const { return a_nullable_int64_ ? &(*a_nullable_int64_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_int64( - const int64_t* value_arg) { - a_nullable_int64_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_int64(const int64_t* value_arg) { + a_nullable_int64_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypesWithoutRecursion::set_a_nullable_int64(int64_t value_arg) { a_nullable_int64_ = value_arg; } + const double* AllNullableTypesWithoutRecursion::a_nullable_double() const { return a_nullable_double_ ? &(*a_nullable_double_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_double( - const double* value_arg) { - a_nullable_double_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_double(const double* value_arg) { + a_nullable_double_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypesWithoutRecursion::set_a_nullable_double(double value_arg) { a_nullable_double_ = value_arg; } -const std::vector* -AllNullableTypesWithoutRecursion::a_nullable_byte_array() const { + +const std::vector* AllNullableTypesWithoutRecursion::a_nullable_byte_array() const { return a_nullable_byte_array_ ? &(*a_nullable_byte_array_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_byte_array( - const std::vector* value_arg) { - a_nullable_byte_array_ = value_arg - ? std::optional>(*value_arg) - : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_byte_array(const std::vector* value_arg) { + a_nullable_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_byte_array( - const std::vector& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_byte_array(const std::vector& value_arg) { a_nullable_byte_array_ = value_arg; } -const std::vector* -AllNullableTypesWithoutRecursion::a_nullable4_byte_array() const { + +const std::vector* AllNullableTypesWithoutRecursion::a_nullable4_byte_array() const { return a_nullable4_byte_array_ ? &(*a_nullable4_byte_array_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable4_byte_array( - const std::vector* value_arg) { - a_nullable4_byte_array_ = - value_arg ? std::optional>(*value_arg) - : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable4_byte_array(const std::vector* value_arg) { + a_nullable4_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable4_byte_array( - const std::vector& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable4_byte_array(const std::vector& value_arg) { a_nullable4_byte_array_ = value_arg; } -const std::vector* -AllNullableTypesWithoutRecursion::a_nullable8_byte_array() const { + +const std::vector* AllNullableTypesWithoutRecursion::a_nullable8_byte_array() const { return a_nullable8_byte_array_ ? &(*a_nullable8_byte_array_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable8_byte_array( - const std::vector* value_arg) { - a_nullable8_byte_array_ = - value_arg ? std::optional>(*value_arg) - : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable8_byte_array(const std::vector* value_arg) { + a_nullable8_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable8_byte_array( - const std::vector& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable8_byte_array(const std::vector& value_arg) { a_nullable8_byte_array_ = value_arg; } -const std::vector* -AllNullableTypesWithoutRecursion::a_nullable_float_array() const { + +const std::vector* AllNullableTypesWithoutRecursion::a_nullable_float_array() const { return a_nullable_float_array_ ? &(*a_nullable_float_array_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_float_array( - const std::vector* value_arg) { - a_nullable_float_array_ = - value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_float_array(const std::vector* value_arg) { + a_nullable_float_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_float_array( - const std::vector& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_float_array(const std::vector& value_arg) { a_nullable_float_array_ = value_arg; } + const AnEnum* AllNullableTypesWithoutRecursion::a_nullable_enum() const { return a_nullable_enum_ ? &(*a_nullable_enum_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_enum( - const AnEnum* value_arg) { - a_nullable_enum_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_enum(const AnEnum* value_arg) { + a_nullable_enum_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_enum( - const AnEnum& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_enum(const AnEnum& value_arg) { a_nullable_enum_ = value_arg; } -const AnotherEnum* AllNullableTypesWithoutRecursion::another_nullable_enum() - const { + +const AnotherEnum* AllNullableTypesWithoutRecursion::another_nullable_enum() const { return another_nullable_enum_ ? &(*another_nullable_enum_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_another_nullable_enum( - const AnotherEnum* value_arg) { - another_nullable_enum_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_another_nullable_enum(const AnotherEnum* value_arg) { + another_nullable_enum_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_another_nullable_enum( - const AnotherEnum& value_arg) { +void AllNullableTypesWithoutRecursion::set_another_nullable_enum(const AnotherEnum& value_arg) { another_nullable_enum_ = value_arg; } + const std::string* AllNullableTypesWithoutRecursion::a_nullable_string() const { return a_nullable_string_ ? &(*a_nullable_string_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_string( - const std::string_view* value_arg) { - a_nullable_string_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_string(const std::string_view* value_arg) { + a_nullable_string_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_string( - std::string_view value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_string(std::string_view value_arg) { a_nullable_string_ = value_arg; } -const EncodableValue* AllNullableTypesWithoutRecursion::a_nullable_object() - const { + +const EncodableValue* AllNullableTypesWithoutRecursion::a_nullable_object() const { return a_nullable_object_ ? &(*a_nullable_object_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_object( - const EncodableValue* value_arg) { - a_nullable_object_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_object(const EncodableValue* value_arg) { + a_nullable_object_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_object( - const EncodableValue& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_object(const EncodableValue& value_arg) { a_nullable_object_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::list() const { return list_ ? &(*list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_list( - const EncodableList* value_arg) { +void AllNullableTypesWithoutRecursion::set_list(const EncodableList* value_arg) { list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_list(const EncodableList& value_arg) { list_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::string_list() const { return string_list_ ? &(*string_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_string_list( - const EncodableList* value_arg) { - string_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_string_list(const EncodableList* value_arg) { + string_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_string_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_string_list(const EncodableList& value_arg) { string_list_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::int_list() const { return int_list_ ? &(*int_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_int_list( - const EncodableList* value_arg) { - int_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_int_list(const EncodableList* value_arg) { + int_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_int_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_int_list(const EncodableList& value_arg) { int_list_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::double_list() const { return double_list_ ? &(*double_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_double_list( - const EncodableList* value_arg) { - double_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_double_list(const EncodableList* value_arg) { + double_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_double_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_double_list(const EncodableList& value_arg) { double_list_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::bool_list() const { return bool_list_ ? &(*bool_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_bool_list( - const EncodableList* value_arg) { - bool_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_bool_list(const EncodableList* value_arg) { + bool_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_bool_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_bool_list(const EncodableList& value_arg) { bool_list_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::enum_list() const { return enum_list_ ? &(*enum_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_enum_list( - const EncodableList* value_arg) { - enum_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_enum_list(const EncodableList* value_arg) { + enum_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_enum_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_enum_list(const EncodableList& value_arg) { enum_list_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::object_list() const { return object_list_ ? &(*object_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_object_list( - const EncodableList* value_arg) { - object_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_object_list(const EncodableList* value_arg) { + object_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_object_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_object_list(const EncodableList& value_arg) { object_list_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::list_list() const { return list_list_ ? &(*list_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_list_list( - const EncodableList* value_arg) { - list_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_list_list(const EncodableList* value_arg) { + list_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_list_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_list_list(const EncodableList& value_arg) { list_list_ = value_arg; } + const EncodableList* AllNullableTypesWithoutRecursion::map_list() const { return map_list_ ? &(*map_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_map_list( - const EncodableList* value_arg) { - map_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_map_list(const EncodableList* value_arg) { + map_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_map_list( - const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_map_list(const EncodableList& value_arg) { map_list_ = value_arg; } + const EncodableMap* AllNullableTypesWithoutRecursion::map() const { return map_ ? &(*map_) : nullptr; } @@ -1761,135 +1579,107 @@ void AllNullableTypesWithoutRecursion::set_map(const EncodableMap& value_arg) { map_ = value_arg; } + const EncodableMap* AllNullableTypesWithoutRecursion::string_map() const { return string_map_ ? &(*string_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_string_map( - const EncodableMap* value_arg) { - string_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_string_map(const EncodableMap* value_arg) { + string_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_string_map( - const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_string_map(const EncodableMap& value_arg) { string_map_ = value_arg; } + const EncodableMap* AllNullableTypesWithoutRecursion::int_map() const { return int_map_ ? &(*int_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_int_map( - const EncodableMap* value_arg) { +void AllNullableTypesWithoutRecursion::set_int_map(const EncodableMap* value_arg) { int_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_int_map( - const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_int_map(const EncodableMap& value_arg) { int_map_ = value_arg; } + const EncodableMap* AllNullableTypesWithoutRecursion::enum_map() const { return enum_map_ ? &(*enum_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_enum_map( - const EncodableMap* value_arg) { - enum_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_enum_map(const EncodableMap* value_arg) { + enum_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_enum_map( - const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_enum_map(const EncodableMap& value_arg) { enum_map_ = value_arg; } + const EncodableMap* AllNullableTypesWithoutRecursion::object_map() const { return object_map_ ? &(*object_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_object_map( - const EncodableMap* value_arg) { - object_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_object_map(const EncodableMap* value_arg) { + object_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_object_map( - const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_object_map(const EncodableMap& value_arg) { object_map_ = value_arg; } + const EncodableMap* AllNullableTypesWithoutRecursion::list_map() const { return list_map_ ? &(*list_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_list_map( - const EncodableMap* value_arg) { - list_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_list_map(const EncodableMap* value_arg) { + list_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_list_map( - const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_list_map(const EncodableMap& value_arg) { list_map_ = value_arg; } + const EncodableMap* AllNullableTypesWithoutRecursion::map_map() const { return map_map_ ? &(*map_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_map_map( - const EncodableMap* value_arg) { +void AllNullableTypesWithoutRecursion::set_map_map(const EncodableMap* value_arg) { map_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_map_map( - const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_map_map(const EncodableMap& value_arg) { map_map_ = value_arg; } + EncodableList AllNullableTypesWithoutRecursion::ToEncodableList() const { EncodableList list; list.reserve(28); - list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) - : EncodableValue()); - list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) - : EncodableValue()); - list.push_back(a_nullable_int64_ ? EncodableValue(*a_nullable_int64_) - : EncodableValue()); - list.push_back(a_nullable_double_ ? EncodableValue(*a_nullable_double_) - : EncodableValue()); - list.push_back(a_nullable_byte_array_ - ? EncodableValue(*a_nullable_byte_array_) - : EncodableValue()); - list.push_back(a_nullable4_byte_array_ - ? EncodableValue(*a_nullable4_byte_array_) - : EncodableValue()); - list.push_back(a_nullable8_byte_array_ - ? EncodableValue(*a_nullable8_byte_array_) - : EncodableValue()); - list.push_back(a_nullable_float_array_ - ? EncodableValue(*a_nullable_float_array_) - : EncodableValue()); - list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) - : EncodableValue()); - list.push_back(another_nullable_enum_ - ? CustomEncodableValue(*another_nullable_enum_) - : EncodableValue()); - list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) - : EncodableValue()); + list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) : EncodableValue()); + list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) : EncodableValue()); + list.push_back(a_nullable_int64_ ? EncodableValue(*a_nullable_int64_) : EncodableValue()); + list.push_back(a_nullable_double_ ? EncodableValue(*a_nullable_double_) : EncodableValue()); + list.push_back(a_nullable_byte_array_ ? EncodableValue(*a_nullable_byte_array_) : EncodableValue()); + list.push_back(a_nullable4_byte_array_ ? EncodableValue(*a_nullable4_byte_array_) : EncodableValue()); + list.push_back(a_nullable8_byte_array_ ? EncodableValue(*a_nullable8_byte_array_) : EncodableValue()); + list.push_back(a_nullable_float_array_ ? EncodableValue(*a_nullable_float_array_) : EncodableValue()); + list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) : EncodableValue()); + list.push_back(another_nullable_enum_ ? CustomEncodableValue(*another_nullable_enum_) : EncodableValue()); + list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) : EncodableValue()); list.push_back(a_nullable_object_ ? *a_nullable_object_ : EncodableValue()); list.push_back(list_ ? EncodableValue(*list_) : EncodableValue()); - list.push_back(string_list_ ? EncodableValue(*string_list_) - : EncodableValue()); + list.push_back(string_list_ ? EncodableValue(*string_list_) : EncodableValue()); list.push_back(int_list_ ? EncodableValue(*int_list_) : EncodableValue()); - list.push_back(double_list_ ? EncodableValue(*double_list_) - : EncodableValue()); + list.push_back(double_list_ ? EncodableValue(*double_list_) : EncodableValue()); list.push_back(bool_list_ ? EncodableValue(*bool_list_) : EncodableValue()); list.push_back(enum_list_ ? EncodableValue(*enum_list_) : EncodableValue()); - list.push_back(object_list_ ? EncodableValue(*object_list_) - : EncodableValue()); + list.push_back(object_list_ ? EncodableValue(*object_list_) : EncodableValue()); list.push_back(list_list_ ? EncodableValue(*list_list_) : EncodableValue()); list.push_back(map_list_ ? EncodableValue(*map_list_) : EncodableValue()); list.push_back(map_ ? EncodableValue(*map_) : EncodableValue()); @@ -1902,8 +1692,7 @@ EncodableList AllNullableTypesWithoutRecursion::ToEncodableList() const { return list; } -AllNullableTypesWithoutRecursion -AllNullableTypesWithoutRecursion::FromEncodableList(const EncodableList& list) { +AllNullableTypesWithoutRecursion AllNullableTypesWithoutRecursion::FromEncodableList(const EncodableList& list) { AllNullableTypesWithoutRecursion decoded; auto& encodable_a_nullable_bool = list[0]; if (!encodable_a_nullable_bool.IsNull()) { @@ -1919,43 +1708,35 @@ AllNullableTypesWithoutRecursion::FromEncodableList(const EncodableList& list) { } auto& encodable_a_nullable_double = list[3]; if (!encodable_a_nullable_double.IsNull()) { - decoded.set_a_nullable_double( - std::get(encodable_a_nullable_double)); + decoded.set_a_nullable_double(std::get(encodable_a_nullable_double)); } auto& encodable_a_nullable_byte_array = list[4]; if (!encodable_a_nullable_byte_array.IsNull()) { - decoded.set_a_nullable_byte_array( - std::get>(encodable_a_nullable_byte_array)); + decoded.set_a_nullable_byte_array(std::get>(encodable_a_nullable_byte_array)); } auto& encodable_a_nullable4_byte_array = list[5]; if (!encodable_a_nullable4_byte_array.IsNull()) { - decoded.set_a_nullable4_byte_array( - std::get>(encodable_a_nullable4_byte_array)); + decoded.set_a_nullable4_byte_array(std::get>(encodable_a_nullable4_byte_array)); } auto& encodable_a_nullable8_byte_array = list[6]; if (!encodable_a_nullable8_byte_array.IsNull()) { - decoded.set_a_nullable8_byte_array( - std::get>(encodable_a_nullable8_byte_array)); + decoded.set_a_nullable8_byte_array(std::get>(encodable_a_nullable8_byte_array)); } auto& encodable_a_nullable_float_array = list[7]; if (!encodable_a_nullable_float_array.IsNull()) { - decoded.set_a_nullable_float_array( - std::get>(encodable_a_nullable_float_array)); + decoded.set_a_nullable_float_array(std::get>(encodable_a_nullable_float_array)); } auto& encodable_a_nullable_enum = list[8]; if (!encodable_a_nullable_enum.IsNull()) { - decoded.set_a_nullable_enum(std::any_cast( - std::get(encodable_a_nullable_enum))); + decoded.set_a_nullable_enum(std::any_cast(std::get(encodable_a_nullable_enum))); } auto& encodable_another_nullable_enum = list[9]; if (!encodable_another_nullable_enum.IsNull()) { - decoded.set_another_nullable_enum(std::any_cast( - std::get(encodable_another_nullable_enum))); + decoded.set_another_nullable_enum(std::any_cast(std::get(encodable_another_nullable_enum))); } auto& encodable_a_nullable_string = list[10]; if (!encodable_a_nullable_string.IsNull()) { - decoded.set_a_nullable_string( - std::get(encodable_a_nullable_string)); + decoded.set_a_nullable_string(std::get(encodable_a_nullable_string)); } auto& encodable_a_nullable_object = list[11]; if (!encodable_a_nullable_object.IsNull()) { @@ -2028,119 +1809,53 @@ AllNullableTypesWithoutRecursion::FromEncodableList(const EncodableList& list) { return decoded; } -bool AllNullableTypesWithoutRecursion::operator==( - const AllNullableTypesWithoutRecursion& other) const { - return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && - PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && - PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && - PigeonInternalDeepEquals(a_nullable_double_, - other.a_nullable_double_) && - PigeonInternalDeepEquals(a_nullable_byte_array_, - other.a_nullable_byte_array_) && - PigeonInternalDeepEquals(a_nullable4_byte_array_, - other.a_nullable4_byte_array_) && - PigeonInternalDeepEquals(a_nullable8_byte_array_, - other.a_nullable8_byte_array_) && - PigeonInternalDeepEquals(a_nullable_float_array_, - other.a_nullable_float_array_) && - PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && - PigeonInternalDeepEquals(another_nullable_enum_, - other.another_nullable_enum_) && - PigeonInternalDeepEquals(a_nullable_string_, - other.a_nullable_string_) && - PigeonInternalDeepEquals(a_nullable_object_, - other.a_nullable_object_) && - PigeonInternalDeepEquals(list_, other.list_) && - PigeonInternalDeepEquals(string_list_, other.string_list_) && - PigeonInternalDeepEquals(int_list_, other.int_list_) && - PigeonInternalDeepEquals(double_list_, other.double_list_) && - PigeonInternalDeepEquals(bool_list_, other.bool_list_) && - PigeonInternalDeepEquals(enum_list_, other.enum_list_) && - PigeonInternalDeepEquals(object_list_, other.object_list_) && - PigeonInternalDeepEquals(list_list_, other.list_list_) && - PigeonInternalDeepEquals(map_list_, other.map_list_) && - PigeonInternalDeepEquals(map_, other.map_) && - PigeonInternalDeepEquals(string_map_, other.string_map_) && - PigeonInternalDeepEquals(int_map_, other.int_map_) && - PigeonInternalDeepEquals(enum_map_, other.enum_map_) && - PigeonInternalDeepEquals(object_map_, other.object_map_) && - PigeonInternalDeepEquals(list_map_, other.list_map_) && - PigeonInternalDeepEquals(map_map_, other.map_map_); -} - -bool AllNullableTypesWithoutRecursion::operator!=( - const AllNullableTypesWithoutRecursion& other) const { +bool AllNullableTypesWithoutRecursion::operator==(const AllNullableTypesWithoutRecursion& other) const { + return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && PigeonInternalDeepEquals(a_nullable_double_, other.a_nullable_double_) && PigeonInternalDeepEquals(a_nullable_byte_array_, other.a_nullable_byte_array_) && PigeonInternalDeepEquals(a_nullable4_byte_array_, other.a_nullable4_byte_array_) && PigeonInternalDeepEquals(a_nullable8_byte_array_, other.a_nullable8_byte_array_) && PigeonInternalDeepEquals(a_nullable_float_array_, other.a_nullable_float_array_) && PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && PigeonInternalDeepEquals(another_nullable_enum_, other.another_nullable_enum_) && PigeonInternalDeepEquals(a_nullable_string_, other.a_nullable_string_) && PigeonInternalDeepEquals(a_nullable_object_, other.a_nullable_object_) && PigeonInternalDeepEquals(list_, other.list_) && PigeonInternalDeepEquals(string_list_, other.string_list_) && PigeonInternalDeepEquals(int_list_, other.int_list_) && PigeonInternalDeepEquals(double_list_, other.double_list_) && PigeonInternalDeepEquals(bool_list_, other.bool_list_) && PigeonInternalDeepEquals(enum_list_, other.enum_list_) && PigeonInternalDeepEquals(object_list_, other.object_list_) && PigeonInternalDeepEquals(list_list_, other.list_list_) && PigeonInternalDeepEquals(map_list_, other.map_list_) && PigeonInternalDeepEquals(map_, other.map_) && PigeonInternalDeepEquals(string_map_, other.string_map_) && PigeonInternalDeepEquals(int_map_, other.int_map_) && PigeonInternalDeepEquals(enum_map_, other.enum_map_) && PigeonInternalDeepEquals(object_map_, other.object_map_) && PigeonInternalDeepEquals(list_map_, other.list_map_) && PigeonInternalDeepEquals(map_map_, other.map_map_); +} + +bool AllNullableTypesWithoutRecursion::operator!=(const AllNullableTypesWithoutRecursion& other) const { return !(*this == other); } // AllClassesWrapper -AllClassesWrapper::AllClassesWrapper(const AllNullableTypes& all_nullable_types, - const EncodableList& class_list, - const EncodableMap& class_map) - : all_nullable_types_( - std::make_unique(all_nullable_types)), - class_list_(class_list), - class_map_(class_map) {} - -AllClassesWrapper::AllClassesWrapper(const AllNullableTypes& all_nullable_types, - const AllNullableTypesWithoutRecursion* - all_nullable_types_without_recursion, - const AllTypes* all_types, - const EncodableList& class_list, - const EncodableList* nullable_class_list, - const EncodableMap& class_map, - const EncodableMap* nullable_class_map) - : all_nullable_types_( - std::make_unique(all_nullable_types)), - all_nullable_types_without_recursion_( - all_nullable_types_without_recursion - ? std::make_unique( - *all_nullable_types_without_recursion) - : nullptr), - all_types_(all_types ? std::make_unique(*all_types) : nullptr), - class_list_(class_list), - nullable_class_list_(nullable_class_list ? std::optional( - *nullable_class_list) - : std::nullopt), - class_map_(class_map), - nullable_class_map_(nullable_class_map - ? std::optional(*nullable_class_map) - : std::nullopt) {} +AllClassesWrapper::AllClassesWrapper( + const AllNullableTypes& all_nullable_types, + const EncodableList& class_list, + const EncodableMap& class_map) + : all_nullable_types_(std::make_unique(all_nullable_types)), + class_list_(class_list), + class_map_(class_map) {} + +AllClassesWrapper::AllClassesWrapper( + const AllNullableTypes& all_nullable_types, + const AllNullableTypesWithoutRecursion* all_nullable_types_without_recursion, + const AllTypes* all_types, + const EncodableList& class_list, + const EncodableList* nullable_class_list, + const EncodableMap& class_map, + const EncodableMap* nullable_class_map) + : all_nullable_types_(std::make_unique(all_nullable_types)), + all_nullable_types_without_recursion_(all_nullable_types_without_recursion ? std::make_unique(*all_nullable_types_without_recursion) : nullptr), + all_types_(all_types ? std::make_unique(*all_types) : nullptr), + class_list_(class_list), + nullable_class_list_(nullable_class_list ? std::optional(*nullable_class_list) : std::nullopt), + class_map_(class_map), + nullable_class_map_(nullable_class_map ? std::optional(*nullable_class_map) : std::nullopt) {} AllClassesWrapper::AllClassesWrapper(const AllClassesWrapper& other) - : all_nullable_types_( - std::make_unique(*other.all_nullable_types_)), - all_nullable_types_without_recursion_( - other.all_nullable_types_without_recursion_ - ? std::make_unique( - *other.all_nullable_types_without_recursion_) - : nullptr), - all_types_(other.all_types_ - ? std::make_unique(*other.all_types_) - : nullptr), - class_list_(other.class_list_), - nullable_class_list_( - other.nullable_class_list_ - ? std::optional(*other.nullable_class_list_) - : std::nullopt), - class_map_(other.class_map_), - nullable_class_map_( - other.nullable_class_map_ - ? std::optional(*other.nullable_class_map_) - : std::nullopt) {} - -AllClassesWrapper& AllClassesWrapper::operator=( - const AllClassesWrapper& other) { - all_nullable_types_ = - std::make_unique(*other.all_nullable_types_); - all_nullable_types_without_recursion_ = - other.all_nullable_types_without_recursion_ - ? std::make_unique( - *other.all_nullable_types_without_recursion_) - : nullptr; - all_types_ = other.all_types_ ? std::make_unique(*other.all_types_) - : nullptr; + : all_nullable_types_(std::make_unique(*other.all_nullable_types_)), + all_nullable_types_without_recursion_(other.all_nullable_types_without_recursion_ ? std::make_unique(*other.all_nullable_types_without_recursion_) : nullptr), + all_types_(other.all_types_ ? std::make_unique(*other.all_types_) : nullptr), + class_list_(other.class_list_), + nullable_class_list_(other.nullable_class_list_ ? std::optional(*other.nullable_class_list_) : std::nullopt), + class_map_(other.class_map_), + nullable_class_map_(other.nullable_class_map_ ? std::optional(*other.nullable_class_map_) : std::nullopt) {} + +AllClassesWrapper& AllClassesWrapper::operator=(const AllClassesWrapper& other) { + all_nullable_types_ = std::make_unique(*other.all_nullable_types_); + all_nullable_types_without_recursion_ = other.all_nullable_types_without_recursion_ ? std::make_unique(*other.all_nullable_types_without_recursion_) : nullptr; + all_types_ = other.all_types_ ? std::make_unique(*other.all_types_) : nullptr; class_list_ = other.class_list_; nullable_class_list_ = other.nullable_class_list_; class_map_ = other.class_map_; @@ -2152,29 +1867,24 @@ const AllNullableTypes& AllClassesWrapper::all_nullable_types() const { return *all_nullable_types_; } -void AllClassesWrapper::set_all_nullable_types( - const AllNullableTypes& value_arg) { +void AllClassesWrapper::set_all_nullable_types(const AllNullableTypes& value_arg) { all_nullable_types_ = std::make_unique(value_arg); } -const AllNullableTypesWithoutRecursion* -AllClassesWrapper::all_nullable_types_without_recursion() const { + +const AllNullableTypesWithoutRecursion* AllClassesWrapper::all_nullable_types_without_recursion() const { return all_nullable_types_without_recursion_.get(); } -void AllClassesWrapper::set_all_nullable_types_without_recursion( - const AllNullableTypesWithoutRecursion* value_arg) { - all_nullable_types_without_recursion_ = - value_arg ? std::make_unique(*value_arg) - : nullptr; +void AllClassesWrapper::set_all_nullable_types_without_recursion(const AllNullableTypesWithoutRecursion* value_arg) { + all_nullable_types_without_recursion_ = value_arg ? std::make_unique(*value_arg) : nullptr; } -void AllClassesWrapper::set_all_nullable_types_without_recursion( - const AllNullableTypesWithoutRecursion& value_arg) { - all_nullable_types_without_recursion_ = - std::make_unique(value_arg); +void AllClassesWrapper::set_all_nullable_types_without_recursion(const AllNullableTypesWithoutRecursion& value_arg) { + all_nullable_types_without_recursion_ = std::make_unique(value_arg); } + const AllTypes* AllClassesWrapper::all_types() const { return all_types_.get(); } @@ -2187,6 +1897,7 @@ void AllClassesWrapper::set_all_types(const AllTypes& value_arg) { all_types_ = std::make_unique(value_arg); } + const EncodableList& AllClassesWrapper::class_list() const { return class_list_; } @@ -2195,103 +1906,81 @@ void AllClassesWrapper::set_class_list(const EncodableList& value_arg) { class_list_ = value_arg; } + const EncodableList* AllClassesWrapper::nullable_class_list() const { return nullable_class_list_ ? &(*nullable_class_list_) : nullptr; } -void AllClassesWrapper::set_nullable_class_list( - const EncodableList* value_arg) { - nullable_class_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; +void AllClassesWrapper::set_nullable_class_list(const EncodableList* value_arg) { + nullable_class_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllClassesWrapper::set_nullable_class_list( - const EncodableList& value_arg) { +void AllClassesWrapper::set_nullable_class_list(const EncodableList& value_arg) { nullable_class_list_ = value_arg; } -const EncodableMap& AllClassesWrapper::class_map() const { return class_map_; } + +const EncodableMap& AllClassesWrapper::class_map() const { + return class_map_; +} void AllClassesWrapper::set_class_map(const EncodableMap& value_arg) { class_map_ = value_arg; } + const EncodableMap* AllClassesWrapper::nullable_class_map() const { return nullable_class_map_ ? &(*nullable_class_map_) : nullptr; } void AllClassesWrapper::set_nullable_class_map(const EncodableMap* value_arg) { - nullable_class_map_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + nullable_class_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void AllClassesWrapper::set_nullable_class_map(const EncodableMap& value_arg) { nullable_class_map_ = value_arg; } + EncodableList AllClassesWrapper::ToEncodableList() const { EncodableList list; list.reserve(7); list.push_back(CustomEncodableValue(*all_nullable_types_)); - list.push_back( - all_nullable_types_without_recursion_ - ? CustomEncodableValue(*all_nullable_types_without_recursion_) - : EncodableValue()); - list.push_back(all_types_ ? CustomEncodableValue(*all_types_) - : EncodableValue()); + list.push_back(all_nullable_types_without_recursion_ ? CustomEncodableValue(*all_nullable_types_without_recursion_) : EncodableValue()); + list.push_back(all_types_ ? CustomEncodableValue(*all_types_) : EncodableValue()); list.push_back(EncodableValue(class_list_)); - list.push_back(nullable_class_list_ ? EncodableValue(*nullable_class_list_) - : EncodableValue()); + list.push_back(nullable_class_list_ ? EncodableValue(*nullable_class_list_) : EncodableValue()); list.push_back(EncodableValue(class_map_)); - list.push_back(nullable_class_map_ ? EncodableValue(*nullable_class_map_) - : EncodableValue()); + list.push_back(nullable_class_map_ ? EncodableValue(*nullable_class_map_) : EncodableValue()); return list; } -AllClassesWrapper AllClassesWrapper::FromEncodableList( - const EncodableList& list) { - AllClassesWrapper decoded(std::any_cast( - std::get(list[0])), - std::get(list[3]), - std::get(list[5])); +AllClassesWrapper AllClassesWrapper::FromEncodableList(const EncodableList& list) { + AllClassesWrapper decoded( + std::any_cast(std::get(list[0])), + std::get(list[3]), + std::get(list[5])); auto& encodable_all_nullable_types_without_recursion = list[1]; if (!encodable_all_nullable_types_without_recursion.IsNull()) { - decoded.set_all_nullable_types_without_recursion( - std::any_cast( - std::get( - encodable_all_nullable_types_without_recursion))); + decoded.set_all_nullable_types_without_recursion(std::any_cast(std::get(encodable_all_nullable_types_without_recursion))); } auto& encodable_all_types = list[2]; if (!encodable_all_types.IsNull()) { - decoded.set_all_types(std::any_cast( - std::get(encodable_all_types))); + decoded.set_all_types(std::any_cast(std::get(encodable_all_types))); } auto& encodable_nullable_class_list = list[4]; if (!encodable_nullable_class_list.IsNull()) { - decoded.set_nullable_class_list( - std::get(encodable_nullable_class_list)); + decoded.set_nullable_class_list(std::get(encodable_nullable_class_list)); } auto& encodable_nullable_class_map = list[6]; if (!encodable_nullable_class_map.IsNull()) { - decoded.set_nullable_class_map( - std::get(encodable_nullable_class_map)); + decoded.set_nullable_class_map(std::get(encodable_nullable_class_map)); } return decoded; } bool AllClassesWrapper::operator==(const AllClassesWrapper& other) const { - return PigeonInternalDeepEquals(all_nullable_types_, - other.all_nullable_types_) && - PigeonInternalDeepEquals( - all_nullable_types_without_recursion_, - other.all_nullable_types_without_recursion_) && - PigeonInternalDeepEquals(all_types_, other.all_types_) && - PigeonInternalDeepEquals(class_list_, other.class_list_) && - PigeonInternalDeepEquals(nullable_class_list_, - other.nullable_class_list_) && - PigeonInternalDeepEquals(class_map_, other.class_map_) && - PigeonInternalDeepEquals(nullable_class_map_, - other.nullable_class_map_); + return PigeonInternalDeepEquals(all_nullable_types_, other.all_nullable_types_) && PigeonInternalDeepEquals(all_nullable_types_without_recursion_, other.all_nullable_types_without_recursion_) && PigeonInternalDeepEquals(all_types_, other.all_types_) && PigeonInternalDeepEquals(class_list_, other.class_list_) && PigeonInternalDeepEquals(nullable_class_list_, other.nullable_class_list_) && PigeonInternalDeepEquals(class_map_, other.class_map_) && PigeonInternalDeepEquals(nullable_class_map_, other.nullable_class_map_); } bool AllClassesWrapper::operator!=(const AllClassesWrapper& other) const { @@ -2303,22 +1992,21 @@ bool AllClassesWrapper::operator!=(const AllClassesWrapper& other) const { TestMessage::TestMessage() {} TestMessage::TestMessage(const EncodableList* test_list) - : test_list_(test_list ? std::optional(*test_list) - : std::nullopt) {} + : test_list_(test_list ? std::optional(*test_list) : std::nullopt) {} const EncodableList* TestMessage::test_list() const { return test_list_ ? &(*test_list_) : nullptr; } void TestMessage::set_test_list(const EncodableList* value_arg) { - test_list_ = - value_arg ? std::optional(*value_arg) : std::nullopt; + test_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } void TestMessage::set_test_list(const EncodableList& value_arg) { test_list_ = value_arg; } + EncodableList TestMessage::ToEncodableList() const { EncodableList list; list.reserve(1); @@ -2343,120 +2031,88 @@ bool TestMessage::operator!=(const TestMessage& other) const { return !(*this == other); } + PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( - uint8_t type, ::flutter::ByteStreamReader* stream) const { + uint8_t type, + ::flutter::ByteStreamReader* stream) const { switch (type) { case 129: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue(static_cast(enum_arg_value)); - } + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() ? EncodableValue() : CustomEncodableValue(static_cast(enum_arg_value)); + } case 130: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() ? EncodableValue() : CustomEncodableValue(static_cast(enum_arg_value)); + } case 131: { - return CustomEncodableValue(UnusedClass::FromEncodableList( - std::get(ReadValue(stream)))); - } + return CustomEncodableValue(UnusedClass::FromEncodableList(std::get(ReadValue(stream)))); + } case 132: { - return CustomEncodableValue(AllTypes::FromEncodableList( - std::get(ReadValue(stream)))); - } + return CustomEncodableValue(AllTypes::FromEncodableList(std::get(ReadValue(stream)))); + } case 133: { - return CustomEncodableValue(AllNullableTypes::FromEncodableList( - std::get(ReadValue(stream)))); - } + return CustomEncodableValue(AllNullableTypes::FromEncodableList(std::get(ReadValue(stream)))); + } case 134: { - return CustomEncodableValue( - AllNullableTypesWithoutRecursion::FromEncodableList( - std::get(ReadValue(stream)))); - } + return CustomEncodableValue(AllNullableTypesWithoutRecursion::FromEncodableList(std::get(ReadValue(stream)))); + } case 135: { - return CustomEncodableValue(AllClassesWrapper::FromEncodableList( - std::get(ReadValue(stream)))); - } + return CustomEncodableValue(AllClassesWrapper::FromEncodableList(std::get(ReadValue(stream)))); + } case 136: { - return CustomEncodableValue(TestMessage::FromEncodableList( - std::get(ReadValue(stream)))); - } + return CustomEncodableValue(TestMessage::FromEncodableList(std::get(ReadValue(stream)))); + } default: return ::flutter::StandardCodecSerializer::ReadValueOfType(type, stream); - } + } } void PigeonInternalCodecSerializer::WriteValue( - const EncodableValue& value, ::flutter::ByteStreamWriter* stream) const { - if (const CustomEncodableValue* custom_value = - std::get_if(&value)) { + const EncodableValue& value, + ::flutter::ByteStreamWriter* stream) const { + if (const CustomEncodableValue* custom_value = std::get_if(&value)) { if (custom_value->type() == typeid(AnEnum)) { stream->WriteByte(129); - WriteValue(EncodableValue( - static_cast(std::any_cast(*custom_value))), - stream); + WriteValue(EncodableValue(static_cast(std::any_cast(*custom_value))), stream); return; } if (custom_value->type() == typeid(AnotherEnum)) { stream->WriteByte(130); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); + WriteValue(EncodableValue(static_cast(std::any_cast(*custom_value))), stream); return; } if (custom_value->type() == typeid(UnusedClass)) { stream->WriteByte(131); - WriteValue( - EncodableValue( - std::any_cast(*custom_value).ToEncodableList()), - stream); + WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); return; } if (custom_value->type() == typeid(AllTypes)) { stream->WriteByte(132); - WriteValue(EncodableValue( - std::any_cast(*custom_value).ToEncodableList()), - stream); + WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); return; } if (custom_value->type() == typeid(AllNullableTypes)) { stream->WriteByte(133); - WriteValue( - EncodableValue( - std::any_cast(*custom_value).ToEncodableList()), - stream); + WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); return; } if (custom_value->type() == typeid(AllNullableTypesWithoutRecursion)) { stream->WriteByte(134); - WriteValue(EncodableValue(std::any_cast( - *custom_value) - .ToEncodableList()), - stream); + WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); return; } if (custom_value->type() == typeid(AllClassesWrapper)) { stream->WriteByte(135); - WriteValue(EncodableValue(std::any_cast(*custom_value) - .ToEncodableList()), - stream); + WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); return; } if (custom_value->type() == typeid(TestMessage)) { stream->WriteByte(136); - WriteValue( - EncodableValue( - std::any_cast(*custom_value).ToEncodableList()), - stream); + WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); return; } } @@ -2465,1182 +2121,806 @@ void PigeonInternalCodecSerializer::WriteValue( /// The codec used by HostIntegrationCoreApi. const ::flutter::StandardMessageCodec& HostIntegrationCoreApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance( - &PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); } -// Sets up an instance of `HostIntegrationCoreApi` to handle messages through -// the `binary_messenger`. -void HostIntegrationCoreApi::SetUp(::flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api) { +// Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binary_messenger`. +void HostIntegrationCoreApi::SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api) { HostIntegrationCoreApi::SetUp(binary_messenger, api, ""); } -void HostIntegrationCoreApi::SetUp(::flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api, - const std::string& message_channel_suffix) { - const std::string prepended_suffix = - message_channel_suffix.length() > 0 - ? std::string(".") + message_channel_suffix - : ""; - { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.noop" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - std::optional output = api->Noop(); - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAllTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - if (encodable_everything_arg.IsNull()) { - reply(WrapError("everything_arg unexpectedly null.")); - return; - } - const auto& everything_arg = std::any_cast( - std::get(encodable_everything_arg)); - ErrorOr output = api->EchoAllTypes(everything_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } +void HostIntegrationCoreApi::SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api, + const std::string& message_channel_suffix) { + const std::string prepended_suffix = message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : ""; { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.throwError" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - ErrorOr> output = api->ThrowError(); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + std::optional output = api->Noop(); + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.throwErrorFromVoid" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - std::optional output = api->ThrowErrorFromVoid(); - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + if (encodable_everything_arg.IsNull()) { + reply(WrapError("everything_arg unexpectedly null.")); + return; + } + const auto& everything_arg = std::any_cast(std::get(encodable_everything_arg)); + ErrorOr output = api->EchoAllTypes(everything_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.throwFlutterError" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - ErrorOr> output = - api->ThrowFlutterError(); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + ErrorOr> output = api->ThrowError(); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoInt" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); - return; - } - const int64_t an_int_arg = encodable_an_int_arg.LongValue(); - ErrorOr output = api->EchoInt(an_int_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + std::optional output = api->ThrowErrorFromVoid(); + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoDouble" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); - return; - } - const auto& a_double_arg = - std::get(encodable_a_double_arg); - ErrorOr output = api->EchoDouble(a_double_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + ErrorOr> output = api->ThrowFlutterError(); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoBool" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - if (encodable_a_bool_arg.IsNull()) { - reply(WrapError("a_bool_arg unexpectedly null.")); - return; - } - const auto& a_bool_arg = std::get(encodable_a_bool_arg); - ErrorOr output = api->EchoBool(a_bool_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + if (encodable_an_int_arg.IsNull()) { + reply(WrapError("an_int_arg unexpectedly null.")); + return; + } + const int64_t an_int_arg = encodable_an_int_arg.LongValue(); + ErrorOr output = api->EchoInt(an_int_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = - std::get(encodable_a_string_arg); - ErrorOr output = api->EchoString(a_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + if (encodable_a_double_arg.IsNull()) { + reply(WrapError("a_double_arg unexpectedly null.")); + return; + } + const auto& a_double_arg = std::get(encodable_a_double_arg); + ErrorOr output = api->EchoDouble(a_double_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoUint8List" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_uint8_list_arg = args.at(0); - if (encodable_a_uint8_list_arg.IsNull()) { - reply(WrapError("a_uint8_list_arg unexpectedly null.")); - return; - } - const auto& a_uint8_list_arg = - std::get>(encodable_a_uint8_list_arg); - ErrorOr> output = - api->EchoUint8List(a_uint8_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + if (encodable_a_bool_arg.IsNull()) { + reply(WrapError("a_bool_arg unexpectedly null.")); + return; + } + const auto& a_bool_arg = std::get(encodable_a_bool_arg); + ErrorOr output = api->EchoBool(a_bool_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoObject" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_object_arg = args.at(0); - if (encodable_an_object_arg.IsNull()) { - reply(WrapError("an_object_arg unexpectedly null.")); - return; - } - const auto& an_object_arg = encodable_an_object_arg; - ErrorOr output = api->EchoObject(an_object_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = std::get(encodable_a_string_arg); + ErrorOr output = api->EchoString(a_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - if (encodable_list_arg.IsNull()) { - reply(WrapError("list_arg unexpectedly null.")); - return; - } - const auto& list_arg = - std::get(encodable_list_arg); - ErrorOr output = api->EchoList(list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_uint8_list_arg = args.at(0); + if (encodable_a_uint8_list_arg.IsNull()) { + reply(WrapError("a_uint8_list_arg unexpectedly null.")); + return; + } + const auto& a_uint8_list_arg = std::get>(encodable_a_uint8_list_arg); + ErrorOr> output = api->EchoUint8List(a_uint8_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = - std::get(encodable_enum_list_arg); - ErrorOr output = api->EchoEnumList(enum_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_object_arg = args.at(0); + if (encodable_an_object_arg.IsNull()) { + reply(WrapError("an_object_arg unexpectedly null.")); + return; + } + const auto& an_object_arg = encodable_an_object_arg; + ErrorOr output = api->EchoObject(an_object_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = - std::get(encodable_class_list_arg); - ErrorOr output = - api->EchoClassList(class_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + if (encodable_list_arg.IsNull()) { + reply(WrapError("list_arg unexpectedly null.")); + return; + } + const auto& list_arg = std::get(encodable_list_arg); + ErrorOr output = api->EchoList(list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNonNullEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = - std::get(encodable_enum_list_arg); - ErrorOr output = - api->EchoNonNullEnumList(enum_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = std::get(encodable_enum_list_arg); + ErrorOr output = api->EchoEnumList(enum_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = - std::get(encodable_class_list_arg); - ErrorOr output = - api->EchoNonNullClassList(class_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = std::get(encodable_class_list_arg); + ErrorOr output = api->EchoClassList(class_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - if (encodable_map_arg.IsNull()) { - reply(WrapError("map_arg unexpectedly null.")); - return; - } - const auto& map_arg = std::get(encodable_map_arg); - ErrorOr output = api->EchoMap(map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = std::get(encodable_enum_list_arg); + ErrorOr output = api->EchoNonNullEnumList(enum_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = - std::get(encodable_string_map_arg); - ErrorOr output = api->EchoStringMap(string_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = std::get(encodable_class_list_arg); + ErrorOr output = api->EchoNonNullClassList(class_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = - std::get(encodable_int_map_arg); - ErrorOr output = api->EchoIntMap(int_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + if (encodable_map_arg.IsNull()) { + reply(WrapError("map_arg unexpectedly null.")); + return; + } + const auto& map_arg = std::get(encodable_map_arg); + ErrorOr output = api->EchoMap(map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = - std::get(encodable_enum_map_arg); - ErrorOr output = api->EchoEnumMap(enum_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = std::get(encodable_string_map_arg); + ErrorOr output = api->EchoStringMap(string_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = - std::get(encodable_class_map_arg); - ErrorOr output = api->EchoClassMap(class_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = std::get(encodable_int_map_arg); + ErrorOr output = api->EchoIntMap(int_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNonNullStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = - std::get(encodable_string_map_arg); - ErrorOr output = - api->EchoNonNullStringMap(string_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = std::get(encodable_enum_map_arg); + ErrorOr output = api->EchoEnumMap(enum_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNonNullIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = - std::get(encodable_int_map_arg); - ErrorOr output = - api->EchoNonNullIntMap(int_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = std::get(encodable_class_map_arg); + ErrorOr output = api->EchoClassMap(class_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNonNullEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = - std::get(encodable_enum_map_arg); - ErrorOr output = - api->EchoNonNullEnumMap(enum_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNonNullClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = - std::get(encodable_class_map_arg); - ErrorOr output = - api->EchoNonNullClassMap(class_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoClassWrapper" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_wrapper_arg = args.at(0); - if (encodable_wrapper_arg.IsNull()) { - reply(WrapError("wrapper_arg unexpectedly null.")); - return; - } - const auto& wrapper_arg = std::any_cast( - std::get(encodable_wrapper_arg)); - ErrorOr output = - api->EchoClassWrapper(wrapper_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = std::get(encodable_string_map_arg); + ErrorOr output = api->EchoNonNullStringMap(string_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - if (encodable_an_enum_arg.IsNull()) { - reply(WrapError("an_enum_arg unexpectedly null.")); - return; - } - const auto& an_enum_arg = std::any_cast( - std::get(encodable_an_enum_arg)); - ErrorOr output = api->EchoEnum(an_enum_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = std::get(encodable_int_map_arg); + ErrorOr output = api->EchoNonNullIntMap(int_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAnotherEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - if (encodable_another_enum_arg.IsNull()) { - reply(WrapError("another_enum_arg unexpectedly null.")); - return; - } - const auto& another_enum_arg = std::any_cast( - std::get(encodable_another_enum_arg)); - ErrorOr output = - api->EchoAnotherEnum(another_enum_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = std::get(encodable_enum_map_arg); + ErrorOr output = api->EchoNonNullEnumMap(enum_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNamedDefaultString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = - std::get(encodable_a_string_arg); - ErrorOr output = - api->EchoNamedDefaultString(a_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = std::get(encodable_class_map_arg); + ErrorOr output = api->EchoNonNullClassMap(class_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoOptionalDefaultDouble" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); - return; - } - const auto& a_double_arg = - std::get(encodable_a_double_arg); - ErrorOr output = - api->EchoOptionalDefaultDouble(a_double_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_wrapper_arg = args.at(0); + if (encodable_wrapper_arg.IsNull()) { + reply(WrapError("wrapper_arg unexpectedly null.")); + return; + } + const auto& wrapper_arg = std::any_cast(std::get(encodable_wrapper_arg)); + ErrorOr output = api->EchoClassWrapper(wrapper_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoRequiredInt" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); - return; - } - const int64_t an_int_arg = encodable_an_int_arg.LongValue(); - ErrorOr output = api->EchoRequiredInt(an_int_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + if (encodable_an_enum_arg.IsNull()) { + reply(WrapError("an_enum_arg unexpectedly null.")); + return; + } + const auto& an_enum_arg = std::any_cast(std::get(encodable_an_enum_arg)); + ErrorOr output = api->EchoEnum(an_enum_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAllNullableTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = - encodable_everything_arg.IsNull() - ? nullptr - : &(std::any_cast( - std::get( - encodable_everything_arg))); - ErrorOr> output = - api->EchoAllNullableTypes(everything_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); + return; + } + const auto& another_enum_arg = std::any_cast(std::get(encodable_another_enum_arg)); + ErrorOr output = api->EchoAnotherEnum(another_enum_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAllNullableTypesWithoutRecursion" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, - const ::flutter::MessageReply< - EncodableValue>& reply) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = - encodable_everything_arg.IsNull() - ? nullptr - : &(std::any_cast( - std::get( - encodable_everything_arg))); - ErrorOr> output = - api->EchoAllNullableTypesWithoutRecursion(everything_arg); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = std::get(encodable_a_string_arg); + ErrorOr output = api->EchoNamedDefaultString(a_string_arg); if (output.has_error()) { reply(WrapError(output.error())); return; } EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); reply(EncodableValue(std::move(wrapped))); } catch (const std::exception& exception) { reply(WrapError(exception.what())); @@ -3651,6769 +2931,5101 @@ void HostIntegrationCoreApi::SetUp(::flutter::BinaryMessenger* binary_messenger, } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "extractNestedNullableString" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_wrapper_arg = args.at(0); - if (encodable_wrapper_arg.IsNull()) { - reply(WrapError("wrapper_arg unexpectedly null.")); - return; - } - const auto& wrapper_arg = std::any_cast( - std::get(encodable_wrapper_arg)); - ErrorOr> output = - api->ExtractNestedNullableString(wrapper_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + if (encodable_a_double_arg.IsNull()) { + reply(WrapError("a_double_arg unexpectedly null.")); + return; + } + const auto& a_double_arg = std::get(encodable_a_double_arg); + ErrorOr output = api->EchoOptionalDefaultDouble(a_double_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "createNestedNullableString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_nullable_string_arg = args.at(0); - const auto* nullable_string_arg = - std::get_if(&encodable_nullable_string_arg); - ErrorOr output = - api->CreateNestedNullableString(nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + if (encodable_an_int_arg.IsNull()) { + reply(WrapError("an_int_arg unexpectedly null.")); + return; + } + const int64_t an_int_arg = encodable_an_int_arg.LongValue(); + ErrorOr output = api->EchoRequiredInt(an_int_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "sendMultipleNullableTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = - std::get_if(&encodable_a_nullable_bool_arg); - const auto& encodable_a_nullable_int_arg = args.at(1); - const auto* a_nullable_int_arg = - std::get_if(&encodable_a_nullable_int_arg); - const auto& encodable_a_nullable_string_arg = args.at(2); - const auto* a_nullable_string_arg = - std::get_if(&encodable_a_nullable_string_arg); - ErrorOr output = api->SendMultipleNullableTypes( - a_nullable_bool_arg, a_nullable_int_arg, - a_nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_arg = args.at(0); + if (encodable_a_arg.IsNull()) { + reply(WrapError("a_arg unexpectedly null.")); + return; + } + const auto& a_arg = std::any_cast(std::get(encodable_a_arg)); + const auto& encodable_b_arg = args.at(1); + if (encodable_b_arg.IsNull()) { + reply(WrapError("b_arg unexpectedly null.")); + return; + } + const auto& b_arg = std::any_cast(std::get(encodable_b_arg)); + ErrorOr output = api->AreAllNullableTypesEqual(a_arg, b_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "sendMultipleNullableTypesWithoutRecursion" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = - std::get_if(&encodable_a_nullable_bool_arg); - const auto& encodable_a_nullable_int_arg = args.at(1); - const auto* a_nullable_int_arg = - std::get_if(&encodable_a_nullable_int_arg); - const auto& encodable_a_nullable_string_arg = args.at(2); - const auto* a_nullable_string_arg = - std::get_if(&encodable_a_nullable_string_arg); - ErrorOr output = - api->SendMultipleNullableTypesWithoutRecursion( - a_nullable_bool_arg, a_nullable_int_arg, - a_nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_value_arg = args.at(0); + if (encodable_value_arg.IsNull()) { + reply(WrapError("value_arg unexpectedly null.")); + return; + } + const auto& value_arg = std::any_cast(std::get(encodable_value_arg)); + ErrorOr output = api->GetAllNullableTypesHash(value_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableInt" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_int_arg = args.at(0); - const auto* a_nullable_int_arg = - std::get_if(&encodable_a_nullable_int_arg); - ErrorOr> output = - api->EchoNullableInt(a_nullable_int_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); + ErrorOr> output = api->EchoAllNullableTypes(everything_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableDouble" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_double_arg = args.at(0); - const auto* a_nullable_double_arg = - std::get_if(&encodable_a_nullable_double_arg); - ErrorOr> output = - api->EchoNullableDouble(a_nullable_double_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); + ErrorOr> output = api->EchoAllNullableTypesWithoutRecursion(everything_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableBool" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = - std::get_if(&encodable_a_nullable_bool_arg); - ErrorOr> output = - api->EchoNullableBool(a_nullable_bool_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_string_arg = args.at(0); - const auto* a_nullable_string_arg = - std::get_if(&encodable_a_nullable_string_arg); - ErrorOr> output = - api->EchoNullableString(a_nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableUint8List" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_uint8_list_arg = args.at(0); - const auto* a_nullable_uint8_list_arg = - std::get_if>( - &encodable_a_nullable_uint8_list_arg); - ErrorOr>> output = - api->EchoNullableUint8List(a_nullable_uint8_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_wrapper_arg = args.at(0); + if (encodable_wrapper_arg.IsNull()) { + reply(WrapError("wrapper_arg unexpectedly null.")); + return; + } + const auto& wrapper_arg = std::any_cast(std::get(encodable_wrapper_arg)); + ErrorOr> output = api->ExtractNestedNullableString(wrapper_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableObject" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_object_arg = args.at(0); - const auto* a_nullable_object_arg = - &encodable_a_nullable_object_arg; - ErrorOr> output = - api->EchoNullableObject(a_nullable_object_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_nullable_string_arg = args.at(0); + const auto* nullable_string_arg = std::get_if(&encodable_nullable_string_arg); + ErrorOr output = api->CreateNestedNullableString(nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_list_arg = args.at(0); - const auto* a_nullable_list_arg = - std::get_if(&encodable_a_nullable_list_arg); - ErrorOr> output = - api->EchoNullableList(a_nullable_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); + const auto& encodable_a_nullable_int_arg = args.at(1); + const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); + const auto& encodable_a_nullable_string_arg = args.at(2); + const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); + ErrorOr output = api->SendMultipleNullableTypes(a_nullable_bool_arg, a_nullable_int_arg, a_nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = - std::get_if(&encodable_enum_list_arg); - ErrorOr> output = - api->EchoNullableEnumList(enum_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); + const auto& encodable_a_nullable_int_arg = args.at(1); + const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); + const auto& encodable_a_nullable_string_arg = args.at(2); + const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); + ErrorOr output = api->SendMultipleNullableTypesWithoutRecursion(a_nullable_bool_arg, a_nullable_int_arg, a_nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = - std::get_if(&encodable_class_list_arg); - ErrorOr> output = - api->EchoNullableClassList(class_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_int_arg = args.at(0); + const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); + ErrorOr> output = api->EchoNullableInt(a_nullable_int_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = - std::get_if(&encodable_enum_list_arg); - ErrorOr> output = - api->EchoNullableNonNullEnumList(enum_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_double_arg = args.at(0); + const auto* a_nullable_double_arg = std::get_if(&encodable_a_nullable_double_arg); + ErrorOr> output = api->EchoNullableDouble(a_nullable_double_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = - std::get_if(&encodable_class_list_arg); - ErrorOr> output = - api->EchoNullableNonNullClassList(class_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); + ErrorOr> output = api->EchoNullableBool(a_nullable_bool_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - const auto* map_arg = - std::get_if(&encodable_map_arg); - ErrorOr> output = - api->EchoNullableMap(map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_string_arg = args.at(0); + const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); + ErrorOr> output = api->EchoNullableString(a_nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = - std::get_if(&encodable_string_map_arg); - ErrorOr> output = - api->EchoNullableStringMap(string_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_uint8_list_arg = args.at(0); + const auto* a_nullable_uint8_list_arg = std::get_if>(&encodable_a_nullable_uint8_list_arg); + ErrorOr>> output = api->EchoNullableUint8List(a_nullable_uint8_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = - std::get_if(&encodable_int_map_arg); - ErrorOr> output = - api->EchoNullableIntMap(int_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_object_arg = args.at(0); + const auto* a_nullable_object_arg = &encodable_a_nullable_object_arg; + ErrorOr> output = api->EchoNullableObject(a_nullable_object_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = - std::get_if(&encodable_enum_map_arg); - ErrorOr> output = - api->EchoNullableEnumMap(enum_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_list_arg = args.at(0); + const auto* a_nullable_list_arg = std::get_if(&encodable_a_nullable_list_arg); + ErrorOr> output = api->EchoNullableList(a_nullable_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = - std::get_if(&encodable_class_map_arg); - ErrorOr> output = - api->EchoNullableClassMap(class_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); + ErrorOr> output = api->EchoNullableEnumList(enum_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = - std::get_if(&encodable_string_map_arg); - ErrorOr> output = - api->EchoNullableNonNullStringMap(string_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = std::get_if(&encodable_class_list_arg); + ErrorOr> output = api->EchoNullableClassList(class_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = - std::get_if(&encodable_int_map_arg); - ErrorOr> output = - api->EchoNullableNonNullIntMap(int_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); + ErrorOr> output = api->EchoNullableNonNullEnumList(enum_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = - std::get_if(&encodable_enum_map_arg); - ErrorOr> output = - api->EchoNullableNonNullEnumMap(enum_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = std::get_if(&encodable_class_list_arg); + ErrorOr> output = api->EchoNullableNonNullClassList(class_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNullableNonNullClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = - std::get_if(&encodable_class_map_arg); - ErrorOr> output = - api->EchoNullableNonNullClassMap(class_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + const auto* map_arg = std::get_if(&encodable_map_arg); + ErrorOr> output = api->EchoNullableMap(map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = std::get_if(&encodable_string_map_arg); + ErrorOr> output = api->EchoNullableStringMap(string_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = std::get_if(&encodable_int_map_arg); + ErrorOr> output = api->EchoNullableIntMap(int_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); + ErrorOr> output = api->EchoNullableEnumMap(enum_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = std::get_if(&encodable_class_map_arg); + ErrorOr> output = api->EchoNullableClassMap(class_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = std::get_if(&encodable_string_map_arg); + ErrorOr> output = api->EchoNullableNonNullStringMap(string_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = std::get_if(&encodable_int_map_arg); + ErrorOr> output = api->EchoNullableNonNullIntMap(int_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); + ErrorOr> output = api->EchoNullableNonNullEnumMap(enum_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = std::get_if(&encodable_class_map_arg); + ErrorOr> output = api->EchoNullableNonNullClassMap(class_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + AnEnum an_enum_arg_value; + const AnEnum* an_enum_arg = nullptr; + if (!encodable_an_enum_arg.IsNull()) { + an_enum_arg_value = std::any_cast(std::get(encodable_an_enum_arg)); + an_enum_arg = &an_enum_arg_value; + } + ErrorOr> output = api->EchoNullableEnum(an_enum_arg ? &(*an_enum_arg) : nullptr); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast(std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + ErrorOr> output = api->EchoAnotherNullableEnum(another_enum_arg ? &(*another_enum_arg) : nullptr); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoNullableEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - AnEnum an_enum_arg_value; - const AnEnum* an_enum_arg = nullptr; - if (!encodable_an_enum_arg.IsNull()) { - an_enum_arg_value = std::any_cast( - std::get(encodable_an_enum_arg)); - an_enum_arg = &an_enum_arg_value; - } - ErrorOr> output = api->EchoNullableEnum( - an_enum_arg ? &(*an_enum_arg) : nullptr); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_int_arg = args.at(0); + const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); + ErrorOr> output = api->EchoOptionalNullableInt(a_nullable_int_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherNullableEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - AnotherEnum another_enum_arg_value; - const AnotherEnum* another_enum_arg = nullptr; - if (!encodable_another_enum_arg.IsNull()) { - another_enum_arg_value = std::any_cast( - std::get(encodable_another_enum_arg)); - another_enum_arg = &another_enum_arg_value; - } - ErrorOr> output = - api->EchoAnotherNullableEnum( - another_enum_arg ? &(*another_enum_arg) : nullptr); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_string_arg = args.at(0); + const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); + ErrorOr> output = api->EchoNamedNullableString(a_nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoOptionalNullableInt" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_int_arg = args.at(0); - const auto* a_nullable_int_arg = - std::get_if(&encodable_a_nullable_int_arg); - ErrorOr> output = - api->EchoOptionalNullableInt(a_nullable_int_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + api->NoopAsync([reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoNamedNullableString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_string_arg = args.at(0); - const auto* a_nullable_string_arg = - std::get_if(&encodable_a_nullable_string_arg); - ErrorOr> output = - api->EchoNamedNullableString(a_nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + if (encodable_an_int_arg.IsNull()) { + reply(WrapError("an_int_arg unexpectedly null.")); + return; + } + const int64_t an_int_arg = encodable_an_int_arg.LongValue(); + api->EchoAsyncInt(an_int_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.noopAsync" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - api->NoopAsync([reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + if (encodable_a_double_arg.IsNull()) { + reply(WrapError("a_double_arg unexpectedly null.")); + return; + } + const auto& a_double_arg = std::get(encodable_a_double_arg); + api->EchoAsyncDouble(a_double_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncInt" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); - return; - } - const int64_t an_int_arg = encodable_an_int_arg.LongValue(); - api->EchoAsyncInt(an_int_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + if (encodable_a_bool_arg.IsNull()) { + reply(WrapError("a_bool_arg unexpectedly null.")); + return; + } + const auto& a_bool_arg = std::get(encodable_a_bool_arg); + api->EchoAsyncBool(a_bool_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncDouble" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); - return; - } - const auto& a_double_arg = - std::get(encodable_a_double_arg); - api->EchoAsyncDouble( - a_double_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = std::get(encodable_a_string_arg); + api->EchoAsyncString(a_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncBool" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - if (encodable_a_bool_arg.IsNull()) { - reply(WrapError("a_bool_arg unexpectedly null.")); - return; - } - const auto& a_bool_arg = std::get(encodable_a_bool_arg); - api->EchoAsyncBool(a_bool_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_uint8_list_arg = args.at(0); + if (encodable_a_uint8_list_arg.IsNull()) { + reply(WrapError("a_uint8_list_arg unexpectedly null.")); + return; + } + const auto& a_uint8_list_arg = std::get>(encodable_a_uint8_list_arg); + api->EchoAsyncUint8List(a_uint8_list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = - std::get(encodable_a_string_arg); - api->EchoAsyncString( - a_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_object_arg = args.at(0); + if (encodable_an_object_arg.IsNull()) { + reply(WrapError("an_object_arg unexpectedly null.")); + return; + } + const auto& an_object_arg = encodable_an_object_arg; + api->EchoAsyncObject(an_object_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncUint8List" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_uint8_list_arg = args.at(0); - if (encodable_a_uint8_list_arg.IsNull()) { - reply(WrapError("a_uint8_list_arg unexpectedly null.")); - return; - } - const auto& a_uint8_list_arg = - std::get>(encodable_a_uint8_list_arg); - api->EchoAsyncUint8List( - a_uint8_list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + if (encodable_list_arg.IsNull()) { + reply(WrapError("list_arg unexpectedly null.")); + return; + } + const auto& list_arg = std::get(encodable_list_arg); + api->EchoAsyncList(list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncObject" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_object_arg = args.at(0); - if (encodable_an_object_arg.IsNull()) { - reply(WrapError("an_object_arg unexpectedly null.")); - return; - } - const auto& an_object_arg = encodable_an_object_arg; - api->EchoAsyncObject( - an_object_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = std::get(encodable_enum_list_arg); + api->EchoAsyncEnumList(enum_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - if (encodable_list_arg.IsNull()) { - reply(WrapError("list_arg unexpectedly null.")); - return; - } - const auto& list_arg = - std::get(encodable_list_arg); - api->EchoAsyncList( - list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = std::get(encodable_class_list_arg); + api->EchoAsyncClassList(class_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = - std::get(encodable_enum_list_arg); - api->EchoAsyncEnumList( - enum_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + if (encodable_map_arg.IsNull()) { + reply(WrapError("map_arg unexpectedly null.")); + return; + } + const auto& map_arg = std::get(encodable_map_arg); + api->EchoAsyncMap(map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = - std::get(encodable_class_list_arg); - api->EchoAsyncClassList( - class_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = std::get(encodable_string_map_arg); + api->EchoAsyncStringMap(string_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - if (encodable_map_arg.IsNull()) { - reply(WrapError("map_arg unexpectedly null.")); - return; - } - const auto& map_arg = std::get(encodable_map_arg); - api->EchoAsyncMap( - map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = std::get(encodable_int_map_arg); + api->EchoAsyncIntMap(int_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = - std::get(encodable_string_map_arg); - api->EchoAsyncStringMap( - string_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = std::get(encodable_enum_map_arg); + api->EchoAsyncEnumMap(enum_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = - std::get(encodable_int_map_arg); - api->EchoAsyncIntMap( - int_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = std::get(encodable_class_map_arg); + api->EchoAsyncClassMap(class_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = - std::get(encodable_enum_map_arg); - api->EchoAsyncEnumMap( - enum_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + if (encodable_an_enum_arg.IsNull()) { + reply(WrapError("an_enum_arg unexpectedly null.")); + return; + } + const auto& an_enum_arg = std::any_cast(std::get(encodable_an_enum_arg)); + api->EchoAsyncEnum(an_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = - std::get(encodable_class_map_arg); - api->EchoAsyncClassMap( - class_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); + return; + } + const auto& another_enum_arg = std::any_cast(std::get(encodable_another_enum_arg)); + api->EchoAnotherAsyncEnum(another_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - if (encodable_an_enum_arg.IsNull()) { - reply(WrapError("an_enum_arg unexpectedly null.")); - return; - } - const auto& an_enum_arg = std::any_cast( - std::get(encodable_an_enum_arg)); - api->EchoAsyncEnum( - an_enum_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + api->ThrowAsyncError([reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherAsyncEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - if (encodable_another_enum_arg.IsNull()) { - reply(WrapError("another_enum_arg unexpectedly null.")); - return; - } - const auto& another_enum_arg = std::any_cast( - std::get(encodable_another_enum_arg)); - api->EchoAnotherAsyncEnum( - another_enum_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + api->ThrowAsyncErrorFromVoid([reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.throwAsyncError" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - api->ThrowAsyncError( - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + api->ThrowAsyncFlutterError([reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwAsyncErrorFromVoid" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - api->ThrowAsyncErrorFromVoid( - [reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + if (encodable_everything_arg.IsNull()) { + reply(WrapError("everything_arg unexpectedly null.")); + return; + } + const auto& everything_arg = std::any_cast(std::get(encodable_everything_arg)); + api->EchoAsyncAllTypes(everything_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "throwAsyncFlutterError" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - api->ThrowAsyncFlutterError( - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); + api->EchoAsyncNullableAllNullableTypes(everything_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAsyncAllTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - if (encodable_everything_arg.IsNull()) { - reply(WrapError("everything_arg unexpectedly null.")); - return; - } - const auto& everything_arg = std::any_cast( - std::get(encodable_everything_arg)); - api->EchoAsyncAllTypes( - everything_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); + api->EchoAsyncNullableAllNullableTypesWithoutRecursion(everything_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableAllNullableTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = - encodable_everything_arg.IsNull() - ? nullptr - : &(std::any_cast( - std::get( - encodable_everything_arg))); - api->EchoAsyncNullableAllNullableTypes( - everything_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue( - std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + const auto* an_int_arg = std::get_if(&encodable_an_int_arg); + api->EchoAsyncNullableInt(an_int_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableAllNullableTypesWithoutRecursion" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, - const ::flutter::MessageReply< - EncodableValue>& reply) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = - encodable_everything_arg.IsNull() - ? nullptr - : &(std::any_cast( - std::get( - encodable_everything_arg))); - api->EchoAsyncNullableAllNullableTypesWithoutRecursion( - everything_arg, - [reply](ErrorOr>&& - output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableInt" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - const auto* an_int_arg = - std::get_if(&encodable_an_int_arg); - api->EchoAsyncNullableInt( - an_int_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + const auto& encodable_a_double_arg = args.at(0); + const auto* a_double_arg = std::get_if(&encodable_a_double_arg); + api->EchoAsyncNullableDouble(a_double_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableDouble" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - const auto* a_double_arg = - std::get_if(&encodable_a_double_arg); - api->EchoAsyncNullableDouble( - a_double_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + const auto* a_bool_arg = std::get_if(&encodable_a_bool_arg); + api->EchoAsyncNullableBool(a_bool_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableBool" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - const auto* a_bool_arg = std::get_if(&encodable_a_bool_arg); - api->EchoAsyncNullableBool( - a_bool_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + const auto* a_string_arg = std::get_if(&encodable_a_string_arg); + api->EchoAsyncNullableString(a_string_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - const auto* a_string_arg = - std::get_if(&encodable_a_string_arg); - api->EchoAsyncNullableString( - a_string_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_uint8_list_arg = args.at(0); + const auto* a_uint8_list_arg = std::get_if>(&encodable_a_uint8_list_arg); + api->EchoAsyncNullableUint8List(a_uint8_list_arg, [reply](ErrorOr>>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableUint8List" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_uint8_list_arg = args.at(0); - const auto* a_uint8_list_arg = std::get_if>( - &encodable_a_uint8_list_arg); - api->EchoAsyncNullableUint8List( - a_uint8_list_arg, - [reply]( - ErrorOr>>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_object_arg = args.at(0); + const auto* an_object_arg = &encodable_an_object_arg; + api->EchoAsyncNullableObject(an_object_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableObject" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_object_arg = args.at(0); - const auto* an_object_arg = &encodable_an_object_arg; - api->EchoAsyncNullableObject( - an_object_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + const auto* list_arg = std::get_if(&encodable_list_arg); + api->EchoAsyncNullableList(list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - const auto* list_arg = - std::get_if(&encodable_list_arg); - api->EchoAsyncNullableList( - list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); + api->EchoAsyncNullableEnumList(enum_list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = - std::get_if(&encodable_enum_list_arg); - api->EchoAsyncNullableEnumList( - enum_list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = std::get_if(&encodable_class_list_arg); + api->EchoAsyncNullableClassList(class_list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = - std::get_if(&encodable_class_list_arg); - api->EchoAsyncNullableClassList( - class_list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + const auto* map_arg = std::get_if(&encodable_map_arg); + api->EchoAsyncNullableMap(map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - const auto* map_arg = - std::get_if(&encodable_map_arg); - api->EchoAsyncNullableMap( - map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = std::get_if(&encodable_string_map_arg); + api->EchoAsyncNullableStringMap(string_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = - std::get_if(&encodable_string_map_arg); - api->EchoAsyncNullableStringMap( - string_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = std::get_if(&encodable_int_map_arg); + api->EchoAsyncNullableIntMap(int_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = - std::get_if(&encodable_int_map_arg); - api->EchoAsyncNullableIntMap( - int_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); + api->EchoAsyncNullableEnumMap(enum_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = - std::get_if(&encodable_enum_map_arg); - api->EchoAsyncNullableEnumMap( - enum_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = std::get_if(&encodable_class_map_arg); + api->EchoAsyncNullableClassMap(class_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = - std::get_if(&encodable_class_map_arg); - api->EchoAsyncNullableClassMap( - class_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + AnEnum an_enum_arg_value; + const AnEnum* an_enum_arg = nullptr; + if (!encodable_an_enum_arg.IsNull()) { + an_enum_arg_value = std::any_cast(std::get(encodable_an_enum_arg)); + an_enum_arg = &an_enum_arg_value; + } + api->EchoAsyncNullableEnum(an_enum_arg ? &(*an_enum_arg) : nullptr, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAsyncNullableEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - AnEnum an_enum_arg_value; - const AnEnum* an_enum_arg = nullptr; - if (!encodable_an_enum_arg.IsNull()) { - an_enum_arg_value = std::any_cast( - std::get(encodable_an_enum_arg)); - an_enum_arg = &an_enum_arg_value; - } - api->EchoAsyncNullableEnum( - an_enum_arg ? &(*an_enum_arg) : nullptr, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue( - std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast(std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + api->EchoAnotherAsyncNullableEnum(another_enum_arg ? &(*another_enum_arg) : nullptr, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "echoAnotherAsyncNullableEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - AnotherEnum another_enum_arg_value; - const AnotherEnum* another_enum_arg = nullptr; - if (!encodable_another_enum_arg.IsNull()) { - another_enum_arg_value = std::any_cast( - std::get(encodable_another_enum_arg)); - another_enum_arg = &another_enum_arg_value; - } - api->EchoAnotherAsyncNullableEnum( - another_enum_arg ? &(*another_enum_arg) : nullptr, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue( - std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + ErrorOr output = api->DefaultIsMainThread(); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.defaultIsMainThread" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - ErrorOr output = api->DefaultIsMainThread(); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + ErrorOr output = api->TaskQueueIsBackgroundThread(); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "taskQueueIsBackgroundThread" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - ErrorOr output = api->TaskQueueIsBackgroundThread(); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + api->CallFlutterNoop([reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterNoop" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - api->CallFlutterNoop( - [reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + api->CallFlutterThrowError([reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterThrowError" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - api->CallFlutterThrowError( - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + api->CallFlutterThrowErrorFromVoid([reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterThrowErrorFromVoid" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - api->CallFlutterThrowErrorFromVoid( - [reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + if (encodable_everything_arg.IsNull()) { + reply(WrapError("everything_arg unexpectedly null.")); + return; + } + const auto& everything_arg = std::any_cast(std::get(encodable_everything_arg)); + api->CallFlutterEchoAllTypes(everything_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAllTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - if (encodable_everything_arg.IsNull()) { - reply(WrapError("everything_arg unexpectedly null.")); - return; - } - const auto& everything_arg = std::any_cast( - std::get(encodable_everything_arg)); - api->CallFlutterEchoAllTypes( - everything_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); + api->CallFlutterEchoAllNullableTypes(everything_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAllNullableTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = - encodable_everything_arg.IsNull() - ? nullptr - : &(std::any_cast( - std::get( - encodable_everything_arg))); - api->CallFlutterEchoAllNullableTypes( - everything_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue( - std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); + const auto& encodable_a_nullable_int_arg = args.at(1); + const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); + const auto& encodable_a_nullable_string_arg = args.at(2); + const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); + api->CallFlutterSendMultipleNullableTypes(a_nullable_bool_arg, a_nullable_int_arg, a_nullable_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterSendMultipleNullableTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = - std::get_if(&encodable_a_nullable_bool_arg); - const auto& encodable_a_nullable_int_arg = args.at(1); - const auto* a_nullable_int_arg = - std::get_if(&encodable_a_nullable_int_arg); - const auto& encodable_a_nullable_string_arg = args.at(2); - const auto* a_nullable_string_arg = - std::get_if(&encodable_a_nullable_string_arg); - api->CallFlutterSendMultipleNullableTypes( - a_nullable_bool_arg, a_nullable_int_arg, - a_nullable_string_arg, - [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); + api->CallFlutterEchoAllNullableTypesWithoutRecursion(everything_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAllNullableTypesWithoutRecursion" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, - const ::flutter::MessageReply< - EncodableValue>& reply) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { try { const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = - encodable_everything_arg.IsNull() - ? nullptr - : &(std::any_cast( - std::get( - encodable_everything_arg))); - api->CallFlutterEchoAllNullableTypesWithoutRecursion( - everything_arg, - [reply](ErrorOr>&& - output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterSendMultipleNullableTypesWithoutRecursion" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = - std::get_if(&encodable_a_nullable_bool_arg); - const auto& encodable_a_nullable_int_arg = args.at(1); - const auto* a_nullable_int_arg = - std::get_if(&encodable_a_nullable_int_arg); - const auto& encodable_a_nullable_string_arg = args.at(2); - const auto* a_nullable_string_arg = - std::get_if(&encodable_a_nullable_string_arg); - api->CallFlutterSendMultipleNullableTypesWithoutRecursion( - a_nullable_bool_arg, a_nullable_int_arg, - a_nullable_string_arg, - [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); + const auto& encodable_a_nullable_int_arg = args.at(1); + const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); + const auto& encodable_a_nullable_string_arg = args.at(2); + const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); + api->CallFlutterSendMultipleNullableTypesWithoutRecursion(a_nullable_bool_arg, a_nullable_int_arg, a_nullable_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoBool" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - if (encodable_a_bool_arg.IsNull()) { - reply(WrapError("a_bool_arg unexpectedly null.")); - return; - } - const auto& a_bool_arg = std::get(encodable_a_bool_arg); - api->CallFlutterEchoBool( - a_bool_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + if (encodable_a_bool_arg.IsNull()) { + reply(WrapError("a_bool_arg unexpectedly null.")); + return; + } + const auto& a_bool_arg = std::get(encodable_a_bool_arg); + api->CallFlutterEchoBool(a_bool_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoInt" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); - return; - } - const int64_t an_int_arg = encodable_an_int_arg.LongValue(); - api->CallFlutterEchoInt( - an_int_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + if (encodable_an_int_arg.IsNull()) { + reply(WrapError("an_int_arg unexpectedly null.")); + return; + } + const int64_t an_int_arg = encodable_an_int_arg.LongValue(); + api->CallFlutterEchoInt(an_int_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoDouble" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); - return; - } - const auto& a_double_arg = - std::get(encodable_a_double_arg); - api->CallFlutterEchoDouble( - a_double_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + if (encodable_a_double_arg.IsNull()) { + reply(WrapError("a_double_arg unexpectedly null.")); + return; + } + const auto& a_double_arg = std::get(encodable_a_double_arg); + api->CallFlutterEchoDouble(a_double_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = - std::get(encodable_a_string_arg); - api->CallFlutterEchoString( - a_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = std::get(encodable_a_string_arg); + api->CallFlutterEchoString(a_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoUint8List" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - if (encodable_list_arg.IsNull()) { - reply(WrapError("list_arg unexpectedly null.")); - return; - } - const auto& list_arg = - std::get>(encodable_list_arg); - api->CallFlutterEchoUint8List( - list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + if (encodable_list_arg.IsNull()) { + reply(WrapError("list_arg unexpectedly null.")); + return; + } + const auto& list_arg = std::get>(encodable_list_arg); + api->CallFlutterEchoUint8List(list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - if (encodable_list_arg.IsNull()) { - reply(WrapError("list_arg unexpectedly null.")); - return; - } - const auto& list_arg = - std::get(encodable_list_arg); - api->CallFlutterEchoList( - list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + if (encodable_list_arg.IsNull()) { + reply(WrapError("list_arg unexpectedly null.")); + return; + } + const auto& list_arg = std::get(encodable_list_arg); + api->CallFlutterEchoList(list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = - std::get(encodable_enum_list_arg); - api->CallFlutterEchoEnumList( - enum_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = std::get(encodable_enum_list_arg); + api->CallFlutterEchoEnumList(enum_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = - std::get(encodable_class_list_arg); - api->CallFlutterEchoClassList( - class_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = std::get(encodable_class_list_arg); + api->CallFlutterEchoClassList(class_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = - std::get(encodable_enum_list_arg); - api->CallFlutterEchoNonNullEnumList( - enum_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = std::get(encodable_enum_list_arg); + api->CallFlutterEchoNonNullEnumList(enum_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = - std::get(encodable_class_list_arg); - api->CallFlutterEchoNonNullClassList( - class_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = std::get(encodable_class_list_arg); + api->CallFlutterEchoNonNullClassList(class_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - if (encodable_map_arg.IsNull()) { - reply(WrapError("map_arg unexpectedly null.")); - return; - } - const auto& map_arg = std::get(encodable_map_arg); - api->CallFlutterEchoMap( - map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + if (encodable_map_arg.IsNull()) { + reply(WrapError("map_arg unexpectedly null.")); + return; + } + const auto& map_arg = std::get(encodable_map_arg); + api->CallFlutterEchoMap(map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = - std::get(encodable_string_map_arg); - api->CallFlutterEchoStringMap( - string_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = std::get(encodable_string_map_arg); + api->CallFlutterEchoStringMap(string_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = - std::get(encodable_int_map_arg); - api->CallFlutterEchoIntMap( - int_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = std::get(encodable_int_map_arg); + api->CallFlutterEchoIntMap(int_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = - std::get(encodable_enum_map_arg); - api->CallFlutterEchoEnumMap( - enum_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = std::get(encodable_enum_map_arg); + api->CallFlutterEchoEnumMap(enum_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = - std::get(encodable_class_map_arg); - api->CallFlutterEchoClassMap( - class_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = std::get(encodable_class_map_arg); + api->CallFlutterEchoClassMap(class_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = - std::get(encodable_string_map_arg); - api->CallFlutterEchoNonNullStringMap( - string_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = std::get(encodable_string_map_arg); + api->CallFlutterEchoNonNullStringMap(string_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = - std::get(encodable_int_map_arg); - api->CallFlutterEchoNonNullIntMap( - int_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = std::get(encodable_int_map_arg); + api->CallFlutterEchoNonNullIntMap(int_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = - std::get(encodable_enum_map_arg); - api->CallFlutterEchoNonNullEnumMap( - enum_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = std::get(encodable_enum_map_arg); + api->CallFlutterEchoNonNullEnumMap(enum_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNonNullClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = - std::get(encodable_class_map_arg); - api->CallFlutterEchoNonNullClassMap( - class_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = std::get(encodable_class_map_arg); + api->CallFlutterEchoNonNullClassMap(class_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.callFlutterEchoEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - if (encodable_an_enum_arg.IsNull()) { - reply(WrapError("an_enum_arg unexpectedly null.")); - return; - } - const auto& an_enum_arg = std::any_cast( - std::get(encodable_an_enum_arg)); - api->CallFlutterEchoEnum( - an_enum_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + if (encodable_an_enum_arg.IsNull()) { + reply(WrapError("an_enum_arg unexpectedly null.")); + return; + } + const auto& an_enum_arg = std::any_cast(std::get(encodable_an_enum_arg)); + api->CallFlutterEchoEnum(an_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAnotherEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - if (encodable_another_enum_arg.IsNull()) { - reply(WrapError("another_enum_arg unexpectedly null.")); - return; - } - const auto& another_enum_arg = std::any_cast( - std::get(encodable_another_enum_arg)); - api->CallFlutterEchoAnotherEnum( - another_enum_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); + return; + } + const auto& another_enum_arg = std::any_cast(std::get(encodable_another_enum_arg)); + api->CallFlutterEchoAnotherEnum(another_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableBool" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - const auto* a_bool_arg = std::get_if(&encodable_a_bool_arg); - api->CallFlutterEchoNullableBool( - a_bool_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + const auto* a_bool_arg = std::get_if(&encodable_a_bool_arg); + api->CallFlutterEchoNullableBool(a_bool_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableInt" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - const auto* an_int_arg = - std::get_if(&encodable_an_int_arg); - api->CallFlutterEchoNullableInt( - an_int_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + const auto* an_int_arg = std::get_if(&encodable_an_int_arg); + api->CallFlutterEchoNullableInt(an_int_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableDouble" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - const auto* a_double_arg = - std::get_if(&encodable_a_double_arg); - api->CallFlutterEchoNullableDouble( - a_double_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + const auto* a_double_arg = std::get_if(&encodable_a_double_arg); + api->CallFlutterEchoNullableDouble(a_double_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - const auto* a_string_arg = - std::get_if(&encodable_a_string_arg); - api->CallFlutterEchoNullableString( - a_string_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + const auto* a_string_arg = std::get_if(&encodable_a_string_arg); + api->CallFlutterEchoNullableString(a_string_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableUint8List" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - const auto* list_arg = - std::get_if>(&encodable_list_arg); - api->CallFlutterEchoNullableUint8List( - list_arg, - [reply]( - ErrorOr>>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + const auto* list_arg = std::get_if>(&encodable_list_arg); + api->CallFlutterEchoNullableUint8List(list_arg, [reply](ErrorOr>>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - const auto* list_arg = - std::get_if(&encodable_list_arg); - api->CallFlutterEchoNullableList( - list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + const auto* list_arg = std::get_if(&encodable_list_arg); + api->CallFlutterEchoNullableList(list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = - std::get_if(&encodable_enum_list_arg); - api->CallFlutterEchoNullableEnumList( - enum_list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); + api->CallFlutterEchoNullableEnumList(enum_list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = - std::get_if(&encodable_class_list_arg); - api->CallFlutterEchoNullableClassList( - class_list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = std::get_if(&encodable_class_list_arg); + api->CallFlutterEchoNullableClassList(class_list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullEnumList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = - std::get_if(&encodable_enum_list_arg); - api->CallFlutterEchoNullableNonNullEnumList( - enum_list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); + api->CallFlutterEchoNullableNonNullEnumList(enum_list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullClassList" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = - std::get_if(&encodable_class_list_arg); - api->CallFlutterEchoNullableNonNullClassList( - class_list_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = std::get_if(&encodable_class_list_arg); + api->CallFlutterEchoNullableNonNullClassList(class_list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - const auto* map_arg = - std::get_if(&encodable_map_arg); - api->CallFlutterEchoNullableMap( - map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + const auto* map_arg = std::get_if(&encodable_map_arg); + api->CallFlutterEchoNullableMap(map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = - std::get_if(&encodable_string_map_arg); - api->CallFlutterEchoNullableStringMap( - string_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = std::get_if(&encodable_string_map_arg); + api->CallFlutterEchoNullableStringMap(string_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = - std::get_if(&encodable_int_map_arg); - api->CallFlutterEchoNullableIntMap( - int_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = std::get_if(&encodable_int_map_arg); + api->CallFlutterEchoNullableIntMap(int_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = - std::get_if(&encodable_enum_map_arg); - api->CallFlutterEchoNullableEnumMap( - enum_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); + api->CallFlutterEchoNullableEnumMap(enum_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = - std::get_if(&encodable_class_map_arg); - api->CallFlutterEchoNullableClassMap( - class_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = std::get_if(&encodable_class_map_arg); + api->CallFlutterEchoNullableClassMap(class_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullStringMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = - std::get_if(&encodable_string_map_arg); - api->CallFlutterEchoNullableNonNullStringMap( - string_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = std::get_if(&encodable_string_map_arg); + api->CallFlutterEchoNullableNonNullStringMap(string_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullIntMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = - std::get_if(&encodable_int_map_arg); - api->CallFlutterEchoNullableNonNullIntMap( - int_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = std::get_if(&encodable_int_map_arg); + api->CallFlutterEchoNullableNonNullIntMap(int_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullEnumMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = - std::get_if(&encodable_enum_map_arg); - api->CallFlutterEchoNullableNonNullEnumMap( - enum_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); + api->CallFlutterEchoNullableNonNullEnumMap(enum_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableNonNullClassMap" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = - std::get_if(&encodable_class_map_arg); - api->CallFlutterEchoNullableNonNullClassMap( - class_map_arg, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back( - EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = std::get_if(&encodable_class_map_arg); + api->CallFlutterEchoNullableNonNullClassMap(class_map_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoNullableEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - AnEnum an_enum_arg_value; - const AnEnum* an_enum_arg = nullptr; - if (!encodable_an_enum_arg.IsNull()) { - an_enum_arg_value = std::any_cast( - std::get(encodable_an_enum_arg)); - an_enum_arg = &an_enum_arg_value; - } - api->CallFlutterEchoNullableEnum( - an_enum_arg ? &(*an_enum_arg) : nullptr, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue( - std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + AnEnum an_enum_arg_value; + const AnEnum* an_enum_arg = nullptr; + if (!encodable_an_enum_arg.IsNull()) { + an_enum_arg_value = std::any_cast(std::get(encodable_an_enum_arg)); + an_enum_arg = &an_enum_arg_value; + } + api->CallFlutterEchoNullableEnum(an_enum_arg ? &(*an_enum_arg) : nullptr, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterEchoAnotherNullableEnum" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - AnotherEnum another_enum_arg_value; - const AnotherEnum* another_enum_arg = nullptr; - if (!encodable_another_enum_arg.IsNull()) { - another_enum_arg_value = std::any_cast( - std::get(encodable_another_enum_arg)); - another_enum_arg = &another_enum_arg_value; - } - api->CallFlutterEchoAnotherNullableEnum( - another_enum_arg ? &(*another_enum_arg) : nullptr, - [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue( - std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast(std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + api->CallFlutterEchoAnotherNullableEnum(another_enum_arg ? &(*another_enum_arg) : nullptr, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); } + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." - "callFlutterSmallApiEchoString" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = - std::get(encodable_a_string_arg); - api->CallFlutterSmallApiEchoString( - a_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = std::get(encodable_a_string_arg); + api->CallFlutterSmallApiEchoString(a_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } } -EncodableValue HostIntegrationCoreApi::WrapError( - std::string_view error_message) { - return EncodableValue( - EncodableList{EncodableValue(std::string(error_message)), - EncodableValue("Error"), EncodableValue()}); +EncodableValue HostIntegrationCoreApi::WrapError(std::string_view error_message) { + return EncodableValue(EncodableList{ + EncodableValue(std::string(error_message)), + EncodableValue("Error"), + EncodableValue() + }); } EncodableValue HostIntegrationCoreApi::WrapError(const FlutterError& error) { - return EncodableValue(EncodableList{EncodableValue(error.code()), - EncodableValue(error.message()), - error.details()}); + return EncodableValue(EncodableList{ + EncodableValue(error.code()), + EncodableValue(error.message()), + error.details() + }); } -// Generated class from Pigeon that represents Flutter messages that can be -// called from C++. -FlutterIntegrationCoreApi::FlutterIntegrationCoreApi( - ::flutter::BinaryMessenger* binary_messenger) - : binary_messenger_(binary_messenger), message_channel_suffix_("") {} +// Generated class from Pigeon that represents Flutter messages that can be called from C++. +FlutterIntegrationCoreApi::FlutterIntegrationCoreApi(::flutter::BinaryMessenger* binary_messenger) + : binary_messenger_(binary_messenger), + message_channel_suffix_("") {} FlutterIntegrationCoreApi::FlutterIntegrationCoreApi( - ::flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix) - : binary_messenger_(binary_messenger), - message_channel_suffix_(message_channel_suffix.length() > 0 - ? std::string(".") + message_channel_suffix - : "") {} + ::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix) + : binary_messenger_(binary_messenger), + message_channel_suffix_(message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : "") {} const ::flutter::StandardMessageCodec& FlutterIntegrationCoreApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance( - &PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); } void FlutterIntegrationCoreApi::Noop( - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "noop" + - message_channel_suffix_; + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - on_success(); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + on_success(); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::ThrowError( - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "throwError" + - message_channel_suffix_; + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = &list_return_value->at(0); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = &list_return_value->at(0); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::ThrowErrorFromVoid( - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "throwErrorFromVoid" + - message_channel_suffix_; + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - on_success(); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + on_success(); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoAllTypes( - const AllTypes& everything_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAllTypes" + - message_channel_suffix_; + const AllTypes& everything_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - CustomEncodableValue(everything_arg), + CustomEncodableValue(everything_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast( - std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoAllNullableTypes( - const AllNullableTypes* everything_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAllNullableTypes" + - message_channel_suffix_; + const AllNullableTypes* everything_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - everything_arg ? CustomEncodableValue(*everything_arg) : EncodableValue(), + everything_arg ? CustomEncodableValue(*everything_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = list_return_value->at(0).IsNull() ? nullptr : &(std::any_cast(std::get(list_return_value->at(0)))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - list_return_value->at(0).IsNull() - ? nullptr - : &(std::any_cast( - std::get( - list_return_value->at(0)))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::SendMultipleNullableTypes( - const bool* a_nullable_bool_arg, const int64_t* a_nullable_int_arg, - const std::string* a_nullable_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "sendMultipleNullableTypes" + - message_channel_suffix_; + const bool* a_nullable_bool_arg, + const int64_t* a_nullable_int_arg, + const std::string* a_nullable_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_nullable_bool_arg ? EncodableValue(*a_nullable_bool_arg) - : EncodableValue(), - a_nullable_int_arg ? EncodableValue(*a_nullable_int_arg) - : EncodableValue(), - a_nullable_string_arg ? EncodableValue(*a_nullable_string_arg) - : EncodableValue(), + a_nullable_bool_arg ? EncodableValue(*a_nullable_bool_arg) : EncodableValue(), + a_nullable_int_arg ? EncodableValue(*a_nullable_int_arg) : EncodableValue(), + a_nullable_string_arg ? EncodableValue(*a_nullable_string_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast( - std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAllNullableTypesWithoutRecursion" + - message_channel_suffix_; + const AllNullableTypesWithoutRecursion* everything_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - everything_arg ? CustomEncodableValue(*everything_arg) : EncodableValue(), + everything_arg ? CustomEncodableValue(*everything_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = list_return_value->at(0).IsNull() ? nullptr : &(std::any_cast(std::get(list_return_value->at(0)))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - list_return_value->at(0).IsNull() - ? nullptr - : &(std::any_cast( - std::get( - list_return_value->at(0)))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::SendMultipleNullableTypesWithoutRecursion( - const bool* a_nullable_bool_arg, const int64_t* a_nullable_int_arg, - const std::string* a_nullable_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "sendMultipleNullableTypesWithoutRecursion" + - message_channel_suffix_; + const bool* a_nullable_bool_arg, + const int64_t* a_nullable_int_arg, + const std::string* a_nullable_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_nullable_bool_arg ? EncodableValue(*a_nullable_bool_arg) - : EncodableValue(), - a_nullable_int_arg ? EncodableValue(*a_nullable_int_arg) - : EncodableValue(), - a_nullable_string_arg ? EncodableValue(*a_nullable_string_arg) - : EncodableValue(), + a_nullable_bool_arg ? EncodableValue(*a_nullable_bool_arg) : EncodableValue(), + a_nullable_int_arg ? EncodableValue(*a_nullable_int_arg) : EncodableValue(), + a_nullable_string_arg ? EncodableValue(*a_nullable_string_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::any_cast( - std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoBool( - bool a_bool_arg, std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoBool" + - message_channel_suffix_; + bool a_bool_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_bool_arg), + EncodableValue(a_bool_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoInt( - int64_t an_int_arg, std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoInt" + - message_channel_suffix_; + int64_t an_int_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(an_int_arg), + EncodableValue(an_int_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const int64_t return_value = list_return_value->at(0).LongValue(); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const int64_t return_value = list_return_value->at(0).LongValue(); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoDouble( - double a_double_arg, std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoDouble" + - message_channel_suffix_; + double a_double_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_double_arg), + EncodableValue(a_double_arg), }); - channel.Send(encoded_api_arguments, [channel_name, - on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, - size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); + const auto* list_return_value = std::get_if(&encodable_return_value); if (list_return_value) { if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); } else { const auto& return_value = std::get(list_return_value->at(0)); on_success(return_value); } } else { on_error(CreateConnectionError(channel_name)); - } + } }); } void FlutterIntegrationCoreApi::EchoString( - const std::string& a_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoString" + - message_channel_suffix_; + const std::string& a_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_string_arg), + EncodableValue(a_string_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoUint8List( - const std::vector& list_arg, - std::function&)>&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoUint8List" + - message_channel_suffix_; + const std::vector& list_arg, + std::function&)>&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(list_arg), + EncodableValue(list_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get>(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get>(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoList( - const EncodableList& list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoList" + - message_channel_suffix_; + const EncodableList& list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(list_arg), + EncodableValue(list_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoEnumList( - const EncodableList& enum_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoEnumList" + - message_channel_suffix_; + const EncodableList& enum_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(enum_list_arg), + EncodableValue(enum_list_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoClassList( - const EncodableList& class_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoClassList" + - message_channel_suffix_; + const EncodableList& class_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(class_list_arg), + EncodableValue(class_list_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNonNullEnumList( - const EncodableList& enum_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullEnumList" + - message_channel_suffix_; + const EncodableList& enum_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(enum_list_arg), + EncodableValue(enum_list_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNonNullClassList( - const EncodableList& class_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullClassList" + - message_channel_suffix_; + const EncodableList& class_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(class_list_arg), + EncodableValue(class_list_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoMap( - const EncodableMap& map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoMap" + - message_channel_suffix_; + const EncodableMap& map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(map_arg), + EncodableValue(map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoStringMap( - const EncodableMap& string_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoStringMap" + - message_channel_suffix_; + const EncodableMap& string_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(string_map_arg), + EncodableValue(string_map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoIntMap( - const EncodableMap& int_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoIntMap" + - message_channel_suffix_; + const EncodableMap& int_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(int_map_arg), + EncodableValue(int_map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoEnumMap( - const EncodableMap& enum_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoEnumMap" + - message_channel_suffix_; + const EncodableMap& enum_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(enum_map_arg), + EncodableValue(enum_map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoClassMap( - const EncodableMap& class_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoClassMap" + - message_channel_suffix_; + const EncodableMap& class_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(class_map_arg), + EncodableValue(class_map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNonNullStringMap( - const EncodableMap& string_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullStringMap" + - message_channel_suffix_; + const EncodableMap& string_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(string_map_arg), + EncodableValue(string_map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNonNullIntMap( - const EncodableMap& int_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullIntMap" + - message_channel_suffix_; + const EncodableMap& int_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(int_map_arg), + EncodableValue(int_map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNonNullEnumMap( - const EncodableMap& enum_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullEnumMap" + - message_channel_suffix_; + const EncodableMap& enum_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(enum_map_arg), + EncodableValue(enum_map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNonNullClassMap( - const EncodableMap& class_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNonNullClassMap" + - message_channel_suffix_; + const EncodableMap& class_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(class_map_arg), + EncodableValue(class_map_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoEnum( - const AnEnum& an_enum_arg, std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoEnum" + - message_channel_suffix_; + const AnEnum& an_enum_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - CustomEncodableValue(an_enum_arg), + CustomEncodableValue(an_enum_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast( - std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoAnotherEnum( - const AnotherEnum& another_enum_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAnotherEnum" + - message_channel_suffix_; + const AnotherEnum& another_enum_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - CustomEncodableValue(another_enum_arg), + CustomEncodableValue(another_enum_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast( - std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableBool( - const bool* a_bool_arg, std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableBool" + - message_channel_suffix_; + const bool* a_bool_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_bool_arg ? EncodableValue(*a_bool_arg) : EncodableValue(), + a_bool_arg ? EncodableValue(*a_bool_arg) : EncodableValue(), }); - channel.Send(encoded_api_arguments, [channel_name, - on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, - size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); + const auto* list_return_value = std::get_if(&encodable_return_value); if (list_return_value) { if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); } else { const auto* return_value = std::get_if(&list_return_value->at(0)); on_success(return_value); } } else { on_error(CreateConnectionError(channel_name)); - } + } }); } void FlutterIntegrationCoreApi::EchoNullableInt( - const int64_t* an_int_arg, std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableInt" + - message_channel_suffix_; + const int64_t* an_int_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - an_int_arg ? EncodableValue(*an_int_arg) : EncodableValue(), + an_int_arg ? EncodableValue(*an_int_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableDouble( - const double* a_double_arg, std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableDouble" + - message_channel_suffix_; + const double* a_double_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_double_arg ? EncodableValue(*a_double_arg) : EncodableValue(), + a_double_arg ? EncodableValue(*a_double_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableString( - const std::string* a_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableString" + - message_channel_suffix_; + const std::string* a_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_string_arg ? EncodableValue(*a_string_arg) : EncodableValue(), + a_string_arg ? EncodableValue(*a_string_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableUint8List( - const std::vector* list_arg, - std::function*)>&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableUint8List" + - message_channel_suffix_; + const std::vector* list_arg, + std::function*)>&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - list_arg ? EncodableValue(*list_arg) : EncodableValue(), + list_arg ? EncodableValue(*list_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if>(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if>(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableList( - const EncodableList* list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableList" + - message_channel_suffix_; + const EncodableList* list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - list_arg ? EncodableValue(*list_arg) : EncodableValue(), + list_arg ? EncodableValue(*list_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableEnumList( - const EncodableList* enum_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableEnumList" + - message_channel_suffix_; + const EncodableList* enum_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - enum_list_arg ? EncodableValue(*enum_list_arg) : EncodableValue(), + enum_list_arg ? EncodableValue(*enum_list_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableClassList( - const EncodableList* class_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableClassList" + - message_channel_suffix_; + const EncodableList* class_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - class_list_arg ? EncodableValue(*class_list_arg) : EncodableValue(), + class_list_arg ? EncodableValue(*class_list_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableNonNullEnumList( - const EncodableList* enum_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullEnumList" + - message_channel_suffix_; + const EncodableList* enum_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - enum_list_arg ? EncodableValue(*enum_list_arg) : EncodableValue(), + enum_list_arg ? EncodableValue(*enum_list_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableNonNullClassList( - const EncodableList* class_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullClassList" + - message_channel_suffix_; + const EncodableList* class_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - class_list_arg ? EncodableValue(*class_list_arg) : EncodableValue(), + class_list_arg ? EncodableValue(*class_list_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableMap( - const EncodableMap* map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableMap" + - message_channel_suffix_; + const EncodableMap* map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - map_arg ? EncodableValue(*map_arg) : EncodableValue(), + map_arg ? EncodableValue(*map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableStringMap( - const EncodableMap* string_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableStringMap" + - message_channel_suffix_; + const EncodableMap* string_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - string_map_arg ? EncodableValue(*string_map_arg) : EncodableValue(), + string_map_arg ? EncodableValue(*string_map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableIntMap( - const EncodableMap* int_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableIntMap" + - message_channel_suffix_; + const EncodableMap* int_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - int_map_arg ? EncodableValue(*int_map_arg) : EncodableValue(), + int_map_arg ? EncodableValue(*int_map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableEnumMap( - const EncodableMap* enum_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableEnumMap" + - message_channel_suffix_; + const EncodableMap* enum_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - enum_map_arg ? EncodableValue(*enum_map_arg) : EncodableValue(), + enum_map_arg ? EncodableValue(*enum_map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableClassMap( - const EncodableMap* class_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableClassMap" + - message_channel_suffix_; + const EncodableMap* class_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - class_map_arg ? EncodableValue(*class_map_arg) : EncodableValue(), + class_map_arg ? EncodableValue(*class_map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableNonNullStringMap( - const EncodableMap* string_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullStringMap" + - message_channel_suffix_; + const EncodableMap* string_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - string_map_arg ? EncodableValue(*string_map_arg) : EncodableValue(), + string_map_arg ? EncodableValue(*string_map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableNonNullIntMap( - const EncodableMap* int_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullIntMap" + - message_channel_suffix_; + const EncodableMap* int_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - int_map_arg ? EncodableValue(*int_map_arg) : EncodableValue(), + int_map_arg ? EncodableValue(*int_map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableNonNullEnumMap( - const EncodableMap* enum_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullEnumMap" + - message_channel_suffix_; + const EncodableMap* enum_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - enum_map_arg ? EncodableValue(*enum_map_arg) : EncodableValue(), + enum_map_arg ? EncodableValue(*enum_map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableNonNullClassMap( - const EncodableMap* class_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableNonNullClassMap" + - message_channel_suffix_; + const EncodableMap* class_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - class_map_arg ? EncodableValue(*class_map_arg) : EncodableValue(), + class_map_arg ? EncodableValue(*class_map_arg) : EncodableValue(), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto* return_value = std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto* return_value = - std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterIntegrationCoreApi::EchoNullableEnum( - const AnEnum* an_enum_arg, std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoNullableEnum" + - message_channel_suffix_; + const AnEnum* an_enum_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - an_enum_arg ? CustomEncodableValue(*an_enum_arg) : EncodableValue(), + an_enum_arg ? CustomEncodableValue(*an_enum_arg) : EncodableValue(), }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - AnEnum return_value_value; - const AnEnum* return_value = nullptr; - if (!list_return_value->at(0).IsNull()) { - return_value_value = std::any_cast( - std::get(list_return_value->at(0))); - return_value = &return_value_value; - } - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + AnEnum return_value_value; + const AnEnum* return_value = nullptr; + if (!list_return_value->at(0).IsNull()) { + return_value_value = std::any_cast(std::get(list_return_value->at(0))); + return_value = &return_value_value; } - }); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoAnotherNullableEnum( - const AnotherEnum* another_enum_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAnotherNullableEnum" + - message_channel_suffix_; + const AnotherEnum* another_enum_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - another_enum_arg ? CustomEncodableValue(*another_enum_arg) - : EncodableValue(), + another_enum_arg ? CustomEncodableValue(*another_enum_arg) : EncodableValue(), }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - AnotherEnum return_value_value; - const AnotherEnum* return_value = nullptr; - if (!list_return_value->at(0).IsNull()) { - return_value_value = std::any_cast( - std::get(list_return_value->at(0))); - return_value = &return_value_value; - } - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + AnotherEnum return_value_value; + const AnotherEnum* return_value = nullptr; + if (!list_return_value->at(0).IsNull()) { + return_value_value = std::any_cast(std::get(list_return_value->at(0))); + return_value = &return_value_value; } - }); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::NoopAsync( - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "noopAsync" + - message_channel_suffix_; + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - on_success(); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + on_success(); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoAsyncString( - const std::string& a_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." - "echoAsyncString" + - message_channel_suffix_; + const std::string& a_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_string_arg), + EncodableValue(a_string_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } /// The codec used by HostTrivialApi. const ::flutter::StandardMessageCodec& HostTrivialApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance( - &PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); } -// Sets up an instance of `HostTrivialApi` to handle messages through the -// `binary_messenger`. -void HostTrivialApi::SetUp(::flutter::BinaryMessenger* binary_messenger, - HostTrivialApi* api) { +// Sets up an instance of `HostTrivialApi` to handle messages through the `binary_messenger`. +void HostTrivialApi::SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostTrivialApi* api) { HostTrivialApi::SetUp(binary_messenger, api, ""); } -void HostTrivialApi::SetUp(::flutter::BinaryMessenger* binary_messenger, - HostTrivialApi* api, - const std::string& message_channel_suffix) { - const std::string prepended_suffix = - message_channel_suffix.length() > 0 - ? std::string(".") + message_channel_suffix - : ""; - { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - std::optional output = api->Noop(); - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); +void HostTrivialApi::SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostTrivialApi* api, + const std::string& message_channel_suffix) { + const std::string prepended_suffix = message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : ""; + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + std::optional output = api->Noop(); + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } @@ -10421,98 +8033,85 @@ void HostTrivialApi::SetUp(::flutter::BinaryMessenger* binary_messenger, } EncodableValue HostTrivialApi::WrapError(std::string_view error_message) { - return EncodableValue( - EncodableList{EncodableValue(std::string(error_message)), - EncodableValue("Error"), EncodableValue()}); + return EncodableValue(EncodableList{ + EncodableValue(std::string(error_message)), + EncodableValue("Error"), + EncodableValue() + }); } EncodableValue HostTrivialApi::WrapError(const FlutterError& error) { - return EncodableValue(EncodableList{EncodableValue(error.code()), - EncodableValue(error.message()), - error.details()}); + return EncodableValue(EncodableList{ + EncodableValue(error.code()), + EncodableValue(error.message()), + error.details() + }); } /// The codec used by HostSmallApi. const ::flutter::StandardMessageCodec& HostSmallApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance( - &PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); } -// Sets up an instance of `HostSmallApi` to handle messages through the -// `binary_messenger`. -void HostSmallApi::SetUp(::flutter::BinaryMessenger* binary_messenger, - HostSmallApi* api) { +// Sets up an instance of `HostSmallApi` to handle messages through the `binary_messenger`. +void HostSmallApi::SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostSmallApi* api) { HostSmallApi::SetUp(binary_messenger, api, ""); } -void HostSmallApi::SetUp(::flutter::BinaryMessenger* binary_messenger, - HostSmallApi* api, - const std::string& message_channel_suffix) { - const std::string prepended_suffix = - message_channel_suffix.length() > 0 - ? std::string(".") + message_channel_suffix - : ""; - { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = - std::get(encodable_a_string_arg); - api->Echo(a_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); +void HostSmallApi::SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostSmallApi* api, + const std::string& message_channel_suffix) { + const std::string prepended_suffix = message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : ""; + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo" + prepended_suffix, &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = std::get(encodable_a_string_arg); + api->Echo(a_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel( - binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid" + - prepended_suffix, - &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid" + prepended_suffix, &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const ::flutter::MessageReply& reply) { - try { - api->VoidVoid([reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); + channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + try { + api->VoidVoid([reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } @@ -10520,107 +8119,86 @@ void HostSmallApi::SetUp(::flutter::BinaryMessenger* binary_messenger, } EncodableValue HostSmallApi::WrapError(std::string_view error_message) { - return EncodableValue( - EncodableList{EncodableValue(std::string(error_message)), - EncodableValue("Error"), EncodableValue()}); + return EncodableValue(EncodableList{ + EncodableValue(std::string(error_message)), + EncodableValue("Error"), + EncodableValue() + }); } EncodableValue HostSmallApi::WrapError(const FlutterError& error) { - return EncodableValue(EncodableList{EncodableValue(error.code()), - EncodableValue(error.message()), - error.details()}); + return EncodableValue(EncodableList{ + EncodableValue(error.code()), + EncodableValue(error.message()), + error.details() + }); } -// Generated class from Pigeon that represents Flutter messages that can be -// called from C++. +// Generated class from Pigeon that represents Flutter messages that can be called from C++. FlutterSmallApi::FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger) - : binary_messenger_(binary_messenger), message_channel_suffix_("") {} + : binary_messenger_(binary_messenger), + message_channel_suffix_("") {} -FlutterSmallApi::FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix) - : binary_messenger_(binary_messenger), - message_channel_suffix_(message_channel_suffix.length() > 0 - ? std::string(".") + message_channel_suffix - : "") {} +FlutterSmallApi::FlutterSmallApi( + ::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix) + : binary_messenger_(binary_messenger), + message_channel_suffix_(message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : "") {} const ::flutter::StandardMessageCodec& FlutterSmallApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance( - &PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); } void FlutterSmallApi::EchoWrappedList( - const TestMessage& msg_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi." - "echoWrappedList" + - message_channel_suffix_; + const TestMessage& msg_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - CustomEncodableValue(msg_arg), + CustomEncodableValue(msg_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast( - std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } void FlutterSmallApi::EchoString( - const std::string& a_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = - "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString" + - message_channel_suffix_; + const std::string& a_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString" + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_string_arg), + EncodableValue(a_string_arg), + }); + channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } }); - channel.Send( - encoded_api_arguments, [channel_name, on_success = std::move(on_success), - on_error = std::move(on_error)]( - const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = - GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = - std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error( - FlutterError(std::get(list_return_value->at(0)), - std::get(list_return_value->at(1)), - list_return_value->at(2))); - } else { - const auto& return_value = - std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); } } // namespace core_tests_pigeontest diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index af3183d541fd..83130d348354 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -24,12 +24,12 @@ class CoreTestsTest; class FlutterError { public: - explicit FlutterError(const std::string& code) : code_(code) {} + explicit FlutterError(const std::string& code) + : code_(code) {} explicit FlutterError(const std::string& code, const std::string& message) - : code_(code), message_(message) {} - explicit FlutterError(const std::string& code, const std::string& message, - const ::flutter::EncodableValue& details) - : code_(code), message_(message), details_(details) {} + : code_(code), message_(message) {} + explicit FlutterError(const std::string& code, const std::string& message, const ::flutter::EncodableValue& details) + : code_(code), message_(message), details_(details) {} const std::string& code() const { return code_; } const std::string& message() const { return message_; } @@ -41,8 +41,7 @@ class FlutterError { ::flutter::EncodableValue details_; }; -template -class ErrorOr { +template class ErrorOr { public: ErrorOr(const T& rhs) : v_(rhs) {} ErrorOr(const T&& rhs) : v_(std::move(rhs)) {} @@ -65,6 +64,7 @@ class ErrorOr { std::variant v_; }; + enum class AnEnum { kOne = 0, kTwo = 1, @@ -73,7 +73,10 @@ enum class AnEnum { kFourHundredTwentyTwo = 4 }; -enum class AnotherEnum { kJustInCase = 0 }; +enum class AnotherEnum { + kJustInCase = 0 +}; + // Generated class from Pigeon that represents data sent in messages. class UnusedClass { @@ -90,7 +93,6 @@ class UnusedClass { bool operator==(const UnusedClass& other) const; bool operator!=(const UnusedClass& other) const; - private: static UnusedClass FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; @@ -104,36 +106,42 @@ class UnusedClass { std::optional<::flutter::EncodableValue> a_field_; }; + // A class containing all supported types. // // Generated class from Pigeon that represents data sent in messages. class AllTypes { public: // Constructs an object setting all fields. - explicit AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, - double a_double, const std::vector& a_byte_array, - const std::vector& a4_byte_array, - const std::vector& a8_byte_array, - const std::vector& a_float_array, - const AnEnum& an_enum, const AnotherEnum& another_enum, - const std::string& a_string, - const ::flutter::EncodableValue& an_object, - const ::flutter::EncodableList& list, - const ::flutter::EncodableList& string_list, - const ::flutter::EncodableList& int_list, - const ::flutter::EncodableList& double_list, - const ::flutter::EncodableList& bool_list, - const ::flutter::EncodableList& enum_list, - const ::flutter::EncodableList& object_list, - const ::flutter::EncodableList& list_list, - const ::flutter::EncodableList& map_list, - const ::flutter::EncodableMap& map, - const ::flutter::EncodableMap& string_map, - const ::flutter::EncodableMap& int_map, - const ::flutter::EncodableMap& enum_map, - const ::flutter::EncodableMap& object_map, - const ::flutter::EncodableMap& list_map, - const ::flutter::EncodableMap& map_map); + explicit AllTypes( + bool a_bool, + int64_t an_int, + int64_t an_int64, + double a_double, + const std::vector& a_byte_array, + const std::vector& a4_byte_array, + const std::vector& a8_byte_array, + const std::vector& a_float_array, + const AnEnum& an_enum, + const AnotherEnum& another_enum, + const std::string& a_string, + const ::flutter::EncodableValue& an_object, + const ::flutter::EncodableList& list, + const ::flutter::EncodableList& string_list, + const ::flutter::EncodableList& int_list, + const ::flutter::EncodableList& double_list, + const ::flutter::EncodableList& bool_list, + const ::flutter::EncodableList& enum_list, + const ::flutter::EncodableList& object_list, + const ::flutter::EncodableList& list_list, + const ::flutter::EncodableList& map_list, + const ::flutter::EncodableMap& map, + const ::flutter::EncodableMap& string_map, + const ::flutter::EncodableMap& int_map, + const ::flutter::EncodableMap& enum_map, + const ::flutter::EncodableMap& object_map, + const ::flutter::EncodableMap& list_map, + const ::flutter::EncodableMap& map_map); bool a_bool() const; void set_a_bool(bool value_arg); @@ -221,7 +229,6 @@ class AllTypes { bool operator==(const AllTypes& other) const; bool operator!=(const AllTypes& other) const; - private: static AllTypes FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; @@ -263,6 +270,7 @@ class AllTypes { ::flutter::EncodableMap map_map_; }; + // A class containing all supported nullable types. // // Generated class from Pigeon that represents data sent in messages. @@ -273,34 +281,37 @@ class AllNullableTypes { // Constructs an object setting all fields. explicit AllNullableTypes( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const int64_t* a_nullable_int64, const double* a_nullable_double, - const std::vector* a_nullable_byte_array, - const std::vector* a_nullable4_byte_array, - const std::vector* a_nullable8_byte_array, - const std::vector* a_nullable_float_array, - const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, - const std::string* a_nullable_string, - const ::flutter::EncodableValue* a_nullable_object, - const AllNullableTypes* all_nullable_types, - const ::flutter::EncodableList* list, - const ::flutter::EncodableList* string_list, - const ::flutter::EncodableList* int_list, - const ::flutter::EncodableList* double_list, - const ::flutter::EncodableList* bool_list, - const ::flutter::EncodableList* enum_list, - const ::flutter::EncodableList* object_list, - const ::flutter::EncodableList* list_list, - const ::flutter::EncodableList* map_list, - const ::flutter::EncodableList* recursive_class_list, - const ::flutter::EncodableMap* map, - const ::flutter::EncodableMap* string_map, - const ::flutter::EncodableMap* int_map, - const ::flutter::EncodableMap* enum_map, - const ::flutter::EncodableMap* object_map, - const ::flutter::EncodableMap* list_map, - const ::flutter::EncodableMap* map_map, - const ::flutter::EncodableMap* recursive_class_map); + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const int64_t* a_nullable_int64, + const double* a_nullable_double, + const std::vector* a_nullable_byte_array, + const std::vector* a_nullable4_byte_array, + const std::vector* a_nullable8_byte_array, + const std::vector* a_nullable_float_array, + const AnEnum* a_nullable_enum, + const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, + const ::flutter::EncodableValue* a_nullable_object, + const AllNullableTypes* all_nullable_types, + const ::flutter::EncodableList* list, + const ::flutter::EncodableList* string_list, + const ::flutter::EncodableList* int_list, + const ::flutter::EncodableList* double_list, + const ::flutter::EncodableList* bool_list, + const ::flutter::EncodableList* enum_list, + const ::flutter::EncodableList* object_list, + const ::flutter::EncodableList* list_list, + const ::flutter::EncodableList* map_list, + const ::flutter::EncodableList* recursive_class_list, + const ::flutter::EncodableMap* map, + const ::flutter::EncodableMap* string_map, + const ::flutter::EncodableMap* int_map, + const ::flutter::EncodableMap* enum_map, + const ::flutter::EncodableMap* object_map, + const ::flutter::EncodableMap* list_map, + const ::flutter::EncodableMap* map_map, + const ::flutter::EncodableMap* recursive_class_map); ~AllNullableTypes() = default; AllNullableTypes(const AllNullableTypes& other); @@ -433,10 +444,8 @@ class AllNullableTypes { bool operator==(const AllNullableTypes& other) const; bool operator!=(const AllNullableTypes& other) const; - private: - static AllNullableTypes FromEncodableList( - const ::flutter::EncodableList& list); + static AllNullableTypes FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; @@ -479,6 +488,7 @@ class AllNullableTypes { std::optional<::flutter::EncodableMap> recursive_class_map_; }; + // The primary purpose for this class is to ensure coverage of Swift structs // with nullable items, as the primary [AllNullableTypes] class is being used to // test Swift classes. @@ -491,31 +501,34 @@ class AllNullableTypesWithoutRecursion { // Constructs an object setting all fields. explicit AllNullableTypesWithoutRecursion( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const int64_t* a_nullable_int64, const double* a_nullable_double, - const std::vector* a_nullable_byte_array, - const std::vector* a_nullable4_byte_array, - const std::vector* a_nullable8_byte_array, - const std::vector* a_nullable_float_array, - const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, - const std::string* a_nullable_string, - const ::flutter::EncodableValue* a_nullable_object, - const ::flutter::EncodableList* list, - const ::flutter::EncodableList* string_list, - const ::flutter::EncodableList* int_list, - const ::flutter::EncodableList* double_list, - const ::flutter::EncodableList* bool_list, - const ::flutter::EncodableList* enum_list, - const ::flutter::EncodableList* object_list, - const ::flutter::EncodableList* list_list, - const ::flutter::EncodableList* map_list, - const ::flutter::EncodableMap* map, - const ::flutter::EncodableMap* string_map, - const ::flutter::EncodableMap* int_map, - const ::flutter::EncodableMap* enum_map, - const ::flutter::EncodableMap* object_map, - const ::flutter::EncodableMap* list_map, - const ::flutter::EncodableMap* map_map); + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const int64_t* a_nullable_int64, + const double* a_nullable_double, + const std::vector* a_nullable_byte_array, + const std::vector* a_nullable4_byte_array, + const std::vector* a_nullable8_byte_array, + const std::vector* a_nullable_float_array, + const AnEnum* a_nullable_enum, + const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, + const ::flutter::EncodableValue* a_nullable_object, + const ::flutter::EncodableList* list, + const ::flutter::EncodableList* string_list, + const ::flutter::EncodableList* int_list, + const ::flutter::EncodableList* double_list, + const ::flutter::EncodableList* bool_list, + const ::flutter::EncodableList* enum_list, + const ::flutter::EncodableList* object_list, + const ::flutter::EncodableList* list_list, + const ::flutter::EncodableList* map_list, + const ::flutter::EncodableMap* map, + const ::flutter::EncodableMap* string_map, + const ::flutter::EncodableMap* int_map, + const ::flutter::EncodableMap* enum_map, + const ::flutter::EncodableMap* object_map, + const ::flutter::EncodableMap* list_map, + const ::flutter::EncodableMap* map_map); const bool* a_nullable_bool() const; void set_a_nullable_bool(const bool* value_arg); @@ -631,10 +644,8 @@ class AllNullableTypesWithoutRecursion { bool operator==(const AllNullableTypesWithoutRecursion& other) const; bool operator!=(const AllNullableTypesWithoutRecursion& other) const; - private: - static AllNullableTypesWithoutRecursion FromEncodableList( - const ::flutter::EncodableList& list); + static AllNullableTypesWithoutRecursion FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; @@ -674,6 +685,7 @@ class AllNullableTypesWithoutRecursion { std::optional<::flutter::EncodableMap> map_map_; }; + // A class for testing nested class handling. // // This is needed to test nested nullable and non-nullable classes, @@ -684,19 +696,20 @@ class AllNullableTypesWithoutRecursion { class AllClassesWrapper { public: // Constructs an object setting all non-nullable fields. - explicit AllClassesWrapper(const AllNullableTypes& all_nullable_types, - const ::flutter::EncodableList& class_list, - const ::flutter::EncodableMap& class_map); + explicit AllClassesWrapper( + const AllNullableTypes& all_nullable_types, + const ::flutter::EncodableList& class_list, + const ::flutter::EncodableMap& class_map); // Constructs an object setting all fields. explicit AllClassesWrapper( - const AllNullableTypes& all_nullable_types, - const AllNullableTypesWithoutRecursion* - all_nullable_types_without_recursion, - const AllTypes* all_types, const ::flutter::EncodableList& class_list, - const ::flutter::EncodableList* nullable_class_list, - const ::flutter::EncodableMap& class_map, - const ::flutter::EncodableMap* nullable_class_map); + const AllNullableTypes& all_nullable_types, + const AllNullableTypesWithoutRecursion* all_nullable_types_without_recursion, + const AllTypes* all_types, + const ::flutter::EncodableList& class_list, + const ::flutter::EncodableList* nullable_class_list, + const ::flutter::EncodableMap& class_map, + const ::flutter::EncodableMap* nullable_class_map); ~AllClassesWrapper() = default; AllClassesWrapper(const AllClassesWrapper& other); @@ -706,12 +719,9 @@ class AllClassesWrapper { const AllNullableTypes& all_nullable_types() const; void set_all_nullable_types(const AllNullableTypes& value_arg); - const AllNullableTypesWithoutRecursion* all_nullable_types_without_recursion() - const; - void set_all_nullable_types_without_recursion( - const AllNullableTypesWithoutRecursion* value_arg); - void set_all_nullable_types_without_recursion( - const AllNullableTypesWithoutRecursion& value_arg); + const AllNullableTypesWithoutRecursion* all_nullable_types_without_recursion() const; + void set_all_nullable_types_without_recursion(const AllNullableTypesWithoutRecursion* value_arg); + void set_all_nullable_types_without_recursion(const AllNullableTypesWithoutRecursion& value_arg); const AllTypes* all_types() const; void set_all_types(const AllTypes* value_arg); @@ -733,10 +743,8 @@ class AllClassesWrapper { bool operator==(const AllClassesWrapper& other) const; bool operator!=(const AllClassesWrapper& other) const; - private: - static AllClassesWrapper FromEncodableList( - const ::flutter::EncodableList& list); + static AllClassesWrapper FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -746,8 +754,7 @@ class AllClassesWrapper { friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; std::unique_ptr all_nullable_types_; - std::unique_ptr - all_nullable_types_without_recursion_; + std::unique_ptr all_nullable_types_without_recursion_; std::unique_ptr all_types_; ::flutter::EncodableList class_list_; std::optional<::flutter::EncodableList> nullable_class_list_; @@ -755,6 +762,7 @@ class AllClassesWrapper { std::optional<::flutter::EncodableMap> nullable_class_map_; }; + // A data class containing a List, used in unit tests. // // Generated class from Pigeon that represents data sent in messages. @@ -772,7 +780,6 @@ class TestMessage { bool operator==(const TestMessage& other) const; bool operator!=(const TestMessage& other) const; - private: static TestMessage FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; @@ -786,8 +793,8 @@ class TestMessage { std::optional<::flutter::EncodableList> test_list_; }; -class PigeonInternalCodecSerializer - : public ::flutter::StandardCodecSerializer { + +class PigeonInternalCodecSerializer : public ::flutter::StandardCodecSerializer { public: PigeonInternalCodecSerializer(); inline static PigeonInternalCodecSerializer& GetInstance() { @@ -795,19 +802,19 @@ class PigeonInternalCodecSerializer return sInstance; } - void WriteValue(const ::flutter::EncodableValue& value, - ::flutter::ByteStreamWriter* stream) const override; - + void WriteValue( + const ::flutter::EncodableValue& value, + ::flutter::ByteStreamWriter* stream) const override; protected: ::flutter::EncodableValue ReadValueOfType( - uint8_t type, ::flutter::ByteStreamReader* stream) const override; + uint8_t type, + ::flutter::ByteStreamReader* stream) const override; }; // The core interface that each host language plugin must implement in // platform_test integration tests. // -// Generated interface from Pigeon that represents a handler of messages from -// Flutter. +// Generated interface from Pigeon that represents a handler of messages from Flutter. class HostIntegrationCoreApi { public: HostIntegrationCoreApi(const HostIntegrationCoreApi&) = delete; @@ -823,8 +830,7 @@ class HostIntegrationCoreApi { // Returns an error from a void function, to test error handling. virtual std::optional ThrowErrorFromVoid() = 0; // Returns a Flutter error, to test error handling. - virtual ErrorOr> - ThrowFlutterError() = 0; + virtual ErrorOr> ThrowFlutterError() = 0; // Returns passed in int. virtual ErrorOr EchoInt(int64_t an_int) = 0; // Returns passed in double. @@ -834,811 +840,720 @@ class HostIntegrationCoreApi { // Returns the passed in string. virtual ErrorOr EchoString(const std::string& a_string) = 0; // Returns the passed in Uint8List. - virtual ErrorOr> EchoUint8List( - const std::vector& a_uint8_list) = 0; + virtual ErrorOr> EchoUint8List(const std::vector& a_uint8_list) = 0; // Returns the passed in generic Object. - virtual ErrorOr<::flutter::EncodableValue> EchoObject( - const ::flutter::EncodableValue& an_object) = 0; + virtual ErrorOr<::flutter::EncodableValue> EchoObject(const ::flutter::EncodableValue& an_object) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoList( - const ::flutter::EncodableList& list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoList(const ::flutter::EncodableList& list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoEnumList( - const ::flutter::EncodableList& enum_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoEnumList(const ::flutter::EncodableList& enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoClassList( - const ::flutter::EncodableList& class_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoClassList(const ::flutter::EncodableList& class_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoNonNullEnumList( - const ::flutter::EncodableList& enum_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoNonNullEnumList(const ::flutter::EncodableList& enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoNonNullClassList( - const ::flutter::EncodableList& class_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoNonNullClassList(const ::flutter::EncodableList& class_list) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoMap( - const ::flutter::EncodableMap& map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoMap(const ::flutter::EncodableMap& map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoStringMap( - const ::flutter::EncodableMap& string_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoStringMap(const ::flutter::EncodableMap& string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoIntMap( - const ::flutter::EncodableMap& int_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoIntMap(const ::flutter::EncodableMap& int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoEnumMap( - const ::flutter::EncodableMap& enum_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoEnumMap(const ::flutter::EncodableMap& enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoClassMap( - const ::flutter::EncodableMap& class_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoClassMap(const ::flutter::EncodableMap& class_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoNonNullStringMap( - const ::flutter::EncodableMap& string_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullStringMap(const ::flutter::EncodableMap& string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoNonNullIntMap( - const ::flutter::EncodableMap& int_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullIntMap(const ::flutter::EncodableMap& int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoNonNullEnumMap( - const ::flutter::EncodableMap& enum_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullEnumMap(const ::flutter::EncodableMap& enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoNonNullClassMap( - const ::flutter::EncodableMap& class_map) = 0; - // Returns the passed class to test nested class serialization and - // deserialization. - virtual ErrorOr EchoClassWrapper( - const AllClassesWrapper& wrapper) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullClassMap(const ::flutter::EncodableMap& class_map) = 0; + // Returns the passed class to test nested class serialization and deserialization. + virtual ErrorOr EchoClassWrapper(const AllClassesWrapper& wrapper) = 0; // Returns the passed enum to test serialization and deserialization. virtual ErrorOr EchoEnum(const AnEnum& an_enum) = 0; // Returns the passed enum to test serialization and deserialization. - virtual ErrorOr EchoAnotherEnum( - const AnotherEnum& another_enum) = 0; + virtual ErrorOr EchoAnotherEnum(const AnotherEnum& another_enum) = 0; // Returns the default string. - virtual ErrorOr EchoNamedDefaultString( - const std::string& a_string) = 0; + virtual ErrorOr EchoNamedDefaultString(const std::string& a_string) = 0; // Returns passed in double. virtual ErrorOr EchoOptionalDefaultDouble(double a_double) = 0; // Returns passed in int. virtual ErrorOr EchoRequiredInt(int64_t an_int) = 0; + // Returns the result of platform-side equality check. + virtual ErrorOr AreAllNullableTypesEqual( + const AllNullableTypes& a, + const AllNullableTypes& b) = 0; + // Returns the platform-side hash code for the given object. + virtual ErrorOr GetAllNullableTypesHash(const AllNullableTypes& value) = 0; // Returns the passed object, to test serialization and deserialization. - virtual ErrorOr> EchoAllNullableTypes( - const AllNullableTypes* everything) = 0; + virtual ErrorOr> EchoAllNullableTypes(const AllNullableTypes* everything) = 0; // Returns the passed object, to test serialization and deserialization. - virtual ErrorOr> - EchoAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything) = 0; + virtual ErrorOr> EchoAllNullableTypesWithoutRecursion(const AllNullableTypesWithoutRecursion* everything) = 0; // Returns the inner `aString` value from the wrapped object, to test // sending of nested objects. - virtual ErrorOr> ExtractNestedNullableString( - const AllClassesWrapper& wrapper) = 0; + virtual ErrorOr> ExtractNestedNullableString(const AllClassesWrapper& wrapper) = 0; // Returns the inner `aString` value from the wrapped object, to test // sending of nested objects. - virtual ErrorOr CreateNestedNullableString( - const std::string* nullable_string) = 0; + virtual ErrorOr CreateNestedNullableString(const std::string* nullable_string) = 0; // Returns passed in arguments of multiple types. virtual ErrorOr SendMultipleNullableTypes( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const std::string* a_nullable_string) = 0; + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const std::string* a_nullable_string) = 0; // Returns passed in arguments of multiple types. - virtual ErrorOr - SendMultipleNullableTypesWithoutRecursion( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const std::string* a_nullable_string) = 0; + virtual ErrorOr SendMultipleNullableTypesWithoutRecursion( + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const std::string* a_nullable_string) = 0; // Returns passed in int. - virtual ErrorOr> EchoNullableInt( - const int64_t* a_nullable_int) = 0; + virtual ErrorOr> EchoNullableInt(const int64_t* a_nullable_int) = 0; // Returns passed in double. - virtual ErrorOr> EchoNullableDouble( - const double* a_nullable_double) = 0; + virtual ErrorOr> EchoNullableDouble(const double* a_nullable_double) = 0; // Returns the passed in boolean. - virtual ErrorOr> EchoNullableBool( - const bool* a_nullable_bool) = 0; + virtual ErrorOr> EchoNullableBool(const bool* a_nullable_bool) = 0; // Returns the passed in string. - virtual ErrorOr> EchoNullableString( - const std::string* a_nullable_string) = 0; + virtual ErrorOr> EchoNullableString(const std::string* a_nullable_string) = 0; // Returns the passed in Uint8List. - virtual ErrorOr>> EchoNullableUint8List( - const std::vector* a_nullable_uint8_list) = 0; + virtual ErrorOr>> EchoNullableUint8List(const std::vector* a_nullable_uint8_list) = 0; // Returns the passed in generic Object. - virtual ErrorOr> EchoNullableObject( - const ::flutter::EncodableValue* a_nullable_object) = 0; + virtual ErrorOr> EchoNullableObject(const ::flutter::EncodableValue* a_nullable_object) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableList( - const ::flutter::EncodableList* a_nullable_list) = 0; + virtual ErrorOr> EchoNullableList(const ::flutter::EncodableList* a_nullable_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableEnumList( - const ::flutter::EncodableList* enum_list) = 0; + virtual ErrorOr> EchoNullableEnumList(const ::flutter::EncodableList* enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableClassList(const ::flutter::EncodableList* class_list) = 0; + virtual ErrorOr> EchoNullableClassList(const ::flutter::EncodableList* class_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullEnumList(const ::flutter::EncodableList* enum_list) = 0; + virtual ErrorOr> EchoNullableNonNullEnumList(const ::flutter::EncodableList* enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullClassList(const ::flutter::EncodableList* class_list) = 0; + virtual ErrorOr> EchoNullableNonNullClassList(const ::flutter::EncodableList* class_list) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableMap( - const ::flutter::EncodableMap* map) = 0; + virtual ErrorOr> EchoNullableMap(const ::flutter::EncodableMap* map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableStringMap( - const ::flutter::EncodableMap* string_map) = 0; + virtual ErrorOr> EchoNullableStringMap(const ::flutter::EncodableMap* string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableIntMap( - const ::flutter::EncodableMap* int_map) = 0; + virtual ErrorOr> EchoNullableIntMap(const ::flutter::EncodableMap* int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableEnumMap( - const ::flutter::EncodableMap* enum_map) = 0; + virtual ErrorOr> EchoNullableEnumMap(const ::flutter::EncodableMap* enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableClassMap( - const ::flutter::EncodableMap* class_map) = 0; + virtual ErrorOr> EchoNullableClassMap(const ::flutter::EncodableMap* class_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullStringMap(const ::flutter::EncodableMap* string_map) = 0; + virtual ErrorOr> EchoNullableNonNullStringMap(const ::flutter::EncodableMap* string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullIntMap(const ::flutter::EncodableMap* int_map) = 0; + virtual ErrorOr> EchoNullableNonNullIntMap(const ::flutter::EncodableMap* int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullEnumMap(const ::flutter::EncodableMap* enum_map) = 0; + virtual ErrorOr> EchoNullableNonNullEnumMap(const ::flutter::EncodableMap* enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> - EchoNullableNonNullClassMap(const ::flutter::EncodableMap* class_map) = 0; - virtual ErrorOr> EchoNullableEnum( - const AnEnum* an_enum) = 0; - virtual ErrorOr> EchoAnotherNullableEnum( - const AnotherEnum* another_enum) = 0; + virtual ErrorOr> EchoNullableNonNullClassMap(const ::flutter::EncodableMap* class_map) = 0; + virtual ErrorOr> EchoNullableEnum(const AnEnum* an_enum) = 0; + virtual ErrorOr> EchoAnotherNullableEnum(const AnotherEnum* another_enum) = 0; // Returns passed in int. - virtual ErrorOr> EchoOptionalNullableInt( - const int64_t* a_nullable_int) = 0; + virtual ErrorOr> EchoOptionalNullableInt(const int64_t* a_nullable_int) = 0; // Returns the passed in string. - virtual ErrorOr> EchoNamedNullableString( - const std::string* a_nullable_string) = 0; + virtual ErrorOr> EchoNamedNullableString(const std::string* a_nullable_string) = 0; // A no-op function taking no arguments and returning no value, to sanity // test basic asynchronous calling. - virtual void NoopAsync( - std::function reply)> result) = 0; + virtual void NoopAsync(std::function reply)> result) = 0; // Returns passed in int asynchronously. virtual void EchoAsyncInt( - int64_t an_int, std::function reply)> result) = 0; + int64_t an_int, + std::function reply)> result) = 0; // Returns passed in double asynchronously. virtual void EchoAsyncDouble( - double a_double, std::function reply)> result) = 0; + double a_double, + std::function reply)> result) = 0; // Returns the passed in boolean asynchronously. virtual void EchoAsyncBool( - bool a_bool, std::function reply)> result) = 0; + bool a_bool, + std::function reply)> result) = 0; // Returns the passed string asynchronously. virtual void EchoAsyncString( - const std::string& a_string, - std::function reply)> result) = 0; + const std::string& a_string, + std::function reply)> result) = 0; // Returns the passed in Uint8List asynchronously. virtual void EchoAsyncUint8List( - const std::vector& a_uint8_list, - std::function> reply)> result) = 0; + const std::vector& a_uint8_list, + std::function> reply)> result) = 0; // Returns the passed in generic Object asynchronously. virtual void EchoAsyncObject( - const ::flutter::EncodableValue& an_object, - std::function reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableValue& an_object, + std::function reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and deserialization. virtual void EchoAsyncList( - const ::flutter::EncodableList& list, - std::function reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableList& list, + std::function reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and deserialization. virtual void EchoAsyncEnumList( - const ::flutter::EncodableList& enum_list, - std::function reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and deserialization. virtual void EchoAsyncClassList( - const ::flutter::EncodableList& class_list, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncMap( - const ::flutter::EncodableMap& map, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap& map, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncStringMap( - const ::flutter::EncodableMap& string_map, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncIntMap( - const ::flutter::EncodableMap& int_map, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncClassMap( - const ::flutter::EncodableMap& class_map, - std::function reply)> result) = 0; - // Returns the passed enum, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and deserialization. virtual void EchoAsyncEnum( - const AnEnum& an_enum, - std::function reply)> result) = 0; - // Returns the passed enum, to test asynchronous serialization and - // deserialization. + const AnEnum& an_enum, + std::function reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and deserialization. virtual void EchoAnotherAsyncEnum( - const AnotherEnum& another_enum, - std::function reply)> result) = 0; + const AnotherEnum& another_enum, + std::function reply)> result) = 0; // Responds with an error from an async function returning a value. - virtual void ThrowAsyncError( - std::function< - void(ErrorOr> reply)> - result) = 0; + virtual void ThrowAsyncError(std::function> reply)> result) = 0; // Responds with an error from an async void function. - virtual void ThrowAsyncErrorFromVoid( - std::function reply)> result) = 0; + virtual void ThrowAsyncErrorFromVoid(std::function reply)> result) = 0; // Responds with a Flutter error from an async function returning a value. - virtual void ThrowAsyncFlutterError( - std::function< - void(ErrorOr> reply)> - result) = 0; + virtual void ThrowAsyncFlutterError(std::function> reply)> result) = 0; // Returns the passed object, to test async serialization and deserialization. virtual void EchoAsyncAllTypes( - const AllTypes& everything, - std::function reply)> result) = 0; + const AllTypes& everything, + std::function reply)> result) = 0; // Returns the passed object, to test serialization and deserialization. virtual void EchoAsyncNullableAllNullableTypes( - const AllNullableTypes* everything, - std::function> reply)> - result) = 0; + const AllNullableTypes* everything, + std::function> reply)> result) = 0; // Returns the passed object, to test serialization and deserialization. virtual void EchoAsyncNullableAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything, - std::function< - void(ErrorOr> reply)> - result) = 0; + const AllNullableTypesWithoutRecursion* everything, + std::function> reply)> result) = 0; // Returns passed in int asynchronously. virtual void EchoAsyncNullableInt( - const int64_t* an_int, - std::function> reply)> result) = 0; + const int64_t* an_int, + std::function> reply)> result) = 0; // Returns passed in double asynchronously. virtual void EchoAsyncNullableDouble( - const double* a_double, - std::function> reply)> result) = 0; + const double* a_double, + std::function> reply)> result) = 0; // Returns the passed in boolean asynchronously. virtual void EchoAsyncNullableBool( - const bool* a_bool, - std::function> reply)> result) = 0; + const bool* a_bool, + std::function> reply)> result) = 0; // Returns the passed string asynchronously. virtual void EchoAsyncNullableString( - const std::string* a_string, - std::function> reply)> - result) = 0; + const std::string* a_string, + std::function> reply)> result) = 0; // Returns the passed in Uint8List asynchronously. virtual void EchoAsyncNullableUint8List( - const std::vector* a_uint8_list, - std::function>> reply)> - result) = 0; + const std::vector* a_uint8_list, + std::function>> reply)> result) = 0; // Returns the passed in generic Object asynchronously. virtual void EchoAsyncNullableObject( - const ::flutter::EncodableValue* an_object, - std::function< - void(ErrorOr> reply)> - result) = 0; - // Returns the passed list, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableValue* an_object, + std::function> reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableList( - const ::flutter::EncodableList* list, - std::function< - void(ErrorOr> reply)> - result) = 0; - // Returns the passed list, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableList* list, + std::function> reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableEnumList( - const ::flutter::EncodableList* enum_list, - std::function< - void(ErrorOr> reply)> - result) = 0; - // Returns the passed list, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableList* enum_list, + std::function> reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableClassList( - const ::flutter::EncodableList* class_list, - std::function< - void(ErrorOr> reply)> - result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableList* class_list, + std::function> reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableMap( - const ::flutter::EncodableMap* map, - std::function> reply)> - result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap* map, + std::function> reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableStringMap( - const ::flutter::EncodableMap* string_map, - std::function> reply)> - result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap* string_map, + std::function> reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableIntMap( - const ::flutter::EncodableMap* int_map, - std::function> reply)> - result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap* int_map, + std::function> reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function> reply)> - result) = 0; - // Returns the passed map, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap* enum_map, + std::function> reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableClassMap( - const ::flutter::EncodableMap* class_map, - std::function> reply)> - result) = 0; - // Returns the passed enum, to test asynchronous serialization and - // deserialization. + const ::flutter::EncodableMap* class_map, + std::function> reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and deserialization. virtual void EchoAsyncNullableEnum( - const AnEnum* an_enum, - std::function> reply)> result) = 0; - // Returns the passed enum, to test asynchronous serialization and - // deserialization. + const AnEnum* an_enum, + std::function> reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and deserialization. virtual void EchoAnotherAsyncNullableEnum( - const AnotherEnum* another_enum, - std::function> reply)> - result) = 0; + const AnotherEnum* another_enum, + std::function> reply)> result) = 0; // Returns true if the handler is run on a main thread, which should be // true since there is no TaskQueue annotation. virtual ErrorOr DefaultIsMainThread() = 0; // Returns true if the handler is run on a non-main thread, which should be // true for any platform with TaskQueue support. virtual ErrorOr TaskQueueIsBackgroundThread() = 0; - virtual void CallFlutterNoop( - std::function reply)> result) = 0; - virtual void CallFlutterThrowError( - std::function< - void(ErrorOr> reply)> - result) = 0; - virtual void CallFlutterThrowErrorFromVoid( - std::function reply)> result) = 0; + virtual void CallFlutterNoop(std::function reply)> result) = 0; + virtual void CallFlutterThrowError(std::function> reply)> result) = 0; + virtual void CallFlutterThrowErrorFromVoid(std::function reply)> result) = 0; virtual void CallFlutterEchoAllTypes( - const AllTypes& everything, - std::function reply)> result) = 0; + const AllTypes& everything, + std::function reply)> result) = 0; virtual void CallFlutterEchoAllNullableTypes( - const AllNullableTypes* everything, - std::function> reply)> - result) = 0; + const AllNullableTypes* everything, + std::function> reply)> result) = 0; virtual void CallFlutterSendMultipleNullableTypes( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const std::string* a_nullable_string, - std::function reply)> result) = 0; + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const std::string* a_nullable_string, + std::function reply)> result) = 0; virtual void CallFlutterEchoAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything, - std::function< - void(ErrorOr> reply)> - result) = 0; + const AllNullableTypesWithoutRecursion* everything, + std::function> reply)> result) = 0; virtual void CallFlutterSendMultipleNullableTypesWithoutRecursion( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const std::string* a_nullable_string, - std::function reply)> - result) = 0; + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const std::string* a_nullable_string, + std::function reply)> result) = 0; virtual void CallFlutterEchoBool( - bool a_bool, std::function reply)> result) = 0; + bool a_bool, + std::function reply)> result) = 0; virtual void CallFlutterEchoInt( - int64_t an_int, std::function reply)> result) = 0; + int64_t an_int, + std::function reply)> result) = 0; virtual void CallFlutterEchoDouble( - double a_double, std::function reply)> result) = 0; + double a_double, + std::function reply)> result) = 0; virtual void CallFlutterEchoString( - const std::string& a_string, - std::function reply)> result) = 0; + const std::string& a_string, + std::function reply)> result) = 0; virtual void CallFlutterEchoUint8List( - const std::vector& list, - std::function> reply)> result) = 0; + const std::vector& list, + std::function> reply)> result) = 0; virtual void CallFlutterEchoList( - const ::flutter::EncodableList& list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& list, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnumList( - const ::flutter::EncodableList& enum_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoClassList( - const ::flutter::EncodableList& class_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullEnumList( - const ::flutter::EncodableList& enum_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullClassList( - const ::flutter::EncodableList& class_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoMap( - const ::flutter::EncodableMap& map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& map, + std::function reply)> result) = 0; virtual void CallFlutterEchoStringMap( - const ::flutter::EncodableMap& string_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoIntMap( - const ::flutter::EncodableMap& int_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoClassMap( - const ::flutter::EncodableMap& class_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullStringMap( - const ::flutter::EncodableMap& string_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullIntMap( - const ::flutter::EncodableMap& int_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullClassMap( - const ::flutter::EncodableMap& class_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnum( - const AnEnum& an_enum, - std::function reply)> result) = 0; + const AnEnum& an_enum, + std::function reply)> result) = 0; virtual void CallFlutterEchoAnotherEnum( - const AnotherEnum& another_enum, - std::function reply)> result) = 0; + const AnotherEnum& another_enum, + std::function reply)> result) = 0; virtual void CallFlutterEchoNullableBool( - const bool* a_bool, - std::function> reply)> result) = 0; + const bool* a_bool, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableInt( - const int64_t* an_int, - std::function> reply)> result) = 0; + const int64_t* an_int, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableDouble( - const double* a_double, - std::function> reply)> result) = 0; + const double* a_double, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableString( - const std::string* a_string, - std::function> reply)> - result) = 0; + const std::string* a_string, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableUint8List( - const std::vector* list, - std::function>> reply)> - result) = 0; + const std::vector* list, + std::function>> reply)> result) = 0; virtual void CallFlutterEchoNullableList( - const ::flutter::EncodableList* list, - std::function< - void(ErrorOr> reply)> - result) = 0; + const ::flutter::EncodableList* list, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableEnumList( - const ::flutter::EncodableList* enum_list, - std::function< - void(ErrorOr> reply)> - result) = 0; + const ::flutter::EncodableList* enum_list, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableClassList( - const ::flutter::EncodableList* class_list, - std::function< - void(ErrorOr> reply)> - result) = 0; + const ::flutter::EncodableList* class_list, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullEnumList( - const ::flutter::EncodableList* enum_list, - std::function< - void(ErrorOr> reply)> - result) = 0; + const ::flutter::EncodableList* enum_list, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullClassList( - const ::flutter::EncodableList* class_list, - std::function< - void(ErrorOr> reply)> - result) = 0; + const ::flutter::EncodableList* class_list, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableMap( - const ::flutter::EncodableMap* map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableStringMap( - const ::flutter::EncodableMap* string_map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* string_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableIntMap( - const ::flutter::EncodableMap* int_map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* int_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* enum_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableClassMap( - const ::flutter::EncodableMap* class_map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* class_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullStringMap( - const ::flutter::EncodableMap* string_map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* string_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullIntMap( - const ::flutter::EncodableMap* int_map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* int_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* enum_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableNonNullClassMap( - const ::flutter::EncodableMap* class_map, - std::function> reply)> - result) = 0; + const ::flutter::EncodableMap* class_map, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableEnum( - const AnEnum* an_enum, - std::function> reply)> result) = 0; + const AnEnum* an_enum, + std::function> reply)> result) = 0; virtual void CallFlutterEchoAnotherNullableEnum( - const AnotherEnum* another_enum, - std::function> reply)> - result) = 0; + const AnotherEnum* another_enum, + std::function> reply)> result) = 0; virtual void CallFlutterSmallApiEchoString( - const std::string& a_string, - std::function reply)> result) = 0; + const std::string& a_string, + std::function reply)> result) = 0; // The codec used by HostIntegrationCoreApi. static const ::flutter::StandardMessageCodec& GetCodec(); - // Sets up an instance of `HostIntegrationCoreApi` to handle messages through - // the `binary_messenger`. - static void SetUp(::flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api); - static void SetUp(::flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api, - const std::string& message_channel_suffix); + // Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binary_messenger`. + static void SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api); + static void SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api, + const std::string& message_channel_suffix); static ::flutter::EncodableValue WrapError(std::string_view error_message); static ::flutter::EncodableValue WrapError(const FlutterError& error); - protected: HostIntegrationCoreApi() = default; }; // The core interface that the Dart platform_test code implements for host // integration tests to call into. // -// Generated class from Pigeon that represents Flutter messages that can be -// called from C++. +// Generated class from Pigeon that represents Flutter messages that can be called from C++. class FlutterIntegrationCoreApi { public: FlutterIntegrationCoreApi(::flutter::BinaryMessenger* binary_messenger); - FlutterIntegrationCoreApi(::flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix); + FlutterIntegrationCoreApi( + ::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix); static const ::flutter::StandardMessageCodec& GetCodec(); // A no-op function taking no arguments and returning no value, to sanity // test basic calling. - void Noop(std::function&& on_success, - std::function&& on_error); + void Noop( + std::function&& on_success, + std::function&& on_error); // Responds with an error from an async function returning a value. void ThrowError( - std::function&& on_success, - std::function&& on_error); + std::function&& on_success, + std::function&& on_error); // Responds with an error from an async void function. - void ThrowErrorFromVoid(std::function&& on_success, - std::function&& on_error); + void ThrowErrorFromVoid( + std::function&& on_success, + std::function&& on_error); // Returns the passed object, to test serialization and deserialization. - void EchoAllTypes(const AllTypes& everything, - std::function&& on_success, - std::function&& on_error); + void EchoAllTypes( + const AllTypes& everything, + std::function&& on_success, + std::function&& on_error); // Returns the passed object, to test serialization and deserialization. void EchoAllNullableTypes( - const AllNullableTypes* everything, - std::function&& on_success, - std::function&& on_error); + const AllNullableTypes* everything, + std::function&& on_success, + std::function&& on_error); // Returns passed in arguments of multiple types. // // Tests multiple-arity FlutterApi handling. void SendMultipleNullableTypes( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const std::string* a_nullable_string, - std::function&& on_success, - std::function&& on_error); + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const std::string* a_nullable_string, + std::function&& on_success, + std::function&& on_error); // Returns the passed object, to test serialization and deserialization. void EchoAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything, - std::function&& on_success, - std::function&& on_error); + const AllNullableTypesWithoutRecursion* everything, + std::function&& on_success, + std::function&& on_error); // Returns passed in arguments of multiple types. // // Tests multiple-arity FlutterApi handling. void SendMultipleNullableTypesWithoutRecursion( - const bool* a_nullable_bool, const int64_t* a_nullable_int, - const std::string* a_nullable_string, - std::function&& on_success, - std::function&& on_error); + const bool* a_nullable_bool, + const int64_t* a_nullable_int, + const std::string* a_nullable_string, + std::function&& on_success, + std::function&& on_error); // Returns the passed boolean, to test serialization and deserialization. - void EchoBool(bool a_bool, std::function&& on_success, - std::function&& on_error); + void EchoBool( + bool a_bool, + std::function&& on_success, + std::function&& on_error); // Returns the passed int, to test serialization and deserialization. - void EchoInt(int64_t an_int, std::function&& on_success, - std::function&& on_error); + void EchoInt( + int64_t an_int, + std::function&& on_success, + std::function&& on_error); // Returns the passed double, to test serialization and deserialization. - void EchoDouble(double a_double, std::function&& on_success, - std::function&& on_error); + void EchoDouble( + double a_double, + std::function&& on_success, + std::function&& on_error); // Returns the passed string, to test serialization and deserialization. - void EchoString(const std::string& a_string, - std::function&& on_success, - std::function&& on_error); + void EchoString( + const std::string& a_string, + std::function&& on_success, + std::function&& on_error); // Returns the passed byte list, to test serialization and deserialization. void EchoUint8List( - const std::vector& list, - std::function&)>&& on_success, - std::function&& on_error); + const std::vector& list, + std::function&)>&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoList( - const ::flutter::EncodableList& list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoEnumList( - const ::flutter::EncodableList& enum_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& enum_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoClassList( - const ::flutter::EncodableList& class_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& class_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNonNullEnumList( - const ::flutter::EncodableList& enum_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& enum_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNonNullClassList( - const ::flutter::EncodableList& class_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& class_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. - void EchoMap(const ::flutter::EncodableMap& map, - std::function&& on_success, - std::function&& on_error); + void EchoMap( + const ::flutter::EncodableMap& map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoStringMap( - const ::flutter::EncodableMap& string_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& string_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoIntMap( - const ::flutter::EncodableMap& int_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& int_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& enum_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoClassMap( - const ::flutter::EncodableMap& class_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& class_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullStringMap( - const ::flutter::EncodableMap& string_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& string_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullIntMap( - const ::flutter::EncodableMap& int_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& int_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& enum_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullClassMap( - const ::flutter::EncodableMap& class_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& class_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed enum to test serialization and deserialization. - void EchoEnum(const AnEnum& an_enum, - std::function&& on_success, - std::function&& on_error); + void EchoEnum( + const AnEnum& an_enum, + std::function&& on_success, + std::function&& on_error); // Returns the passed enum to test serialization and deserialization. - void EchoAnotherEnum(const AnotherEnum& another_enum, - std::function&& on_success, - std::function&& on_error); + void EchoAnotherEnum( + const AnotherEnum& another_enum, + std::function&& on_success, + std::function&& on_error); // Returns the passed boolean, to test serialization and deserialization. - void EchoNullableBool(const bool* a_bool, - std::function&& on_success, - std::function&& on_error); + void EchoNullableBool( + const bool* a_bool, + std::function&& on_success, + std::function&& on_error); // Returns the passed int, to test serialization and deserialization. - void EchoNullableInt(const int64_t* an_int, - std::function&& on_success, - std::function&& on_error); + void EchoNullableInt( + const int64_t* an_int, + std::function&& on_success, + std::function&& on_error); // Returns the passed double, to test serialization and deserialization. - void EchoNullableDouble(const double* a_double, - std::function&& on_success, - std::function&& on_error); + void EchoNullableDouble( + const double* a_double, + std::function&& on_success, + std::function&& on_error); // Returns the passed string, to test serialization and deserialization. - void EchoNullableString(const std::string* a_string, - std::function&& on_success, - std::function&& on_error); + void EchoNullableString( + const std::string* a_string, + std::function&& on_success, + std::function&& on_error); // Returns the passed byte list, to test serialization and deserialization. void EchoNullableUint8List( - const std::vector* list, - std::function*)>&& on_success, - std::function&& on_error); + const std::vector* list, + std::function*)>&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableList( - const ::flutter::EncodableList* list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableEnumList( - const ::flutter::EncodableList* enum_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* enum_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableClassList( - const ::flutter::EncodableList* class_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* class_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableNonNullEnumList( - const ::flutter::EncodableList* enum_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* enum_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableNonNullClassList( - const ::flutter::EncodableList* class_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* class_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableMap( - const ::flutter::EncodableMap* map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableStringMap( - const ::flutter::EncodableMap* string_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* string_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableIntMap( - const ::flutter::EncodableMap* int_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* int_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* enum_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableClassMap( - const ::flutter::EncodableMap* class_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* class_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullStringMap( - const ::flutter::EncodableMap* string_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* string_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullIntMap( - const ::flutter::EncodableMap* int_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* int_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* enum_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullClassMap( - const ::flutter::EncodableMap* class_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* class_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed enum to test serialization and deserialization. - void EchoNullableEnum(const AnEnum* an_enum, - std::function&& on_success, - std::function&& on_error); + void EchoNullableEnum( + const AnEnum* an_enum, + std::function&& on_success, + std::function&& on_error); // Returns the passed enum to test serialization and deserialization. void EchoAnotherNullableEnum( - const AnotherEnum* another_enum, - std::function&& on_success, - std::function&& on_error); + const AnotherEnum* another_enum, + std::function&& on_success, + std::function&& on_error); // A no-op function taking no arguments and returning no value, to sanity // test basic asynchronous calling. - void NoopAsync(std::function&& on_success, - std::function&& on_error); + void NoopAsync( + std::function&& on_success, + std::function&& on_error); // Returns the passed in generic Object asynchronously. - void EchoAsyncString(const std::string& a_string, - std::function&& on_success, - std::function&& on_error); - + void EchoAsyncString( + const std::string& a_string, + std::function&& on_success, + std::function&& on_error); private: ::flutter::BinaryMessenger* binary_messenger_; std::string message_channel_suffix_; @@ -1646,8 +1561,7 @@ class FlutterIntegrationCoreApi { // An API that can be implemented for minimal, compile-only tests. // -// Generated interface from Pigeon that represents a handler of messages from -// Flutter. +// Generated interface from Pigeon that represents a handler of messages from Flutter. class HostTrivialApi { public: HostTrivialApi(const HostTrivialApi&) = delete; @@ -1657,65 +1571,65 @@ class HostTrivialApi { // The codec used by HostTrivialApi. static const ::flutter::StandardMessageCodec& GetCodec(); - // Sets up an instance of `HostTrivialApi` to handle messages through the - // `binary_messenger`. - static void SetUp(::flutter::BinaryMessenger* binary_messenger, - HostTrivialApi* api); - static void SetUp(::flutter::BinaryMessenger* binary_messenger, - HostTrivialApi* api, - const std::string& message_channel_suffix); + // Sets up an instance of `HostTrivialApi` to handle messages through the `binary_messenger`. + static void SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostTrivialApi* api); + static void SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostTrivialApi* api, + const std::string& message_channel_suffix); static ::flutter::EncodableValue WrapError(std::string_view error_message); static ::flutter::EncodableValue WrapError(const FlutterError& error); - protected: HostTrivialApi() = default; }; // A simple API implemented in some unit tests. // -// Generated interface from Pigeon that represents a handler of messages from -// Flutter. +// Generated interface from Pigeon that represents a handler of messages from Flutter. class HostSmallApi { public: HostSmallApi(const HostSmallApi&) = delete; HostSmallApi& operator=(const HostSmallApi&) = delete; virtual ~HostSmallApi() {} - virtual void Echo(const std::string& a_string, - std::function reply)> result) = 0; - virtual void VoidVoid( - std::function reply)> result) = 0; + virtual void Echo( + const std::string& a_string, + std::function reply)> result) = 0; + virtual void VoidVoid(std::function reply)> result) = 0; // The codec used by HostSmallApi. static const ::flutter::StandardMessageCodec& GetCodec(); - // Sets up an instance of `HostSmallApi` to handle messages through the - // `binary_messenger`. - static void SetUp(::flutter::BinaryMessenger* binary_messenger, - HostSmallApi* api); - static void SetUp(::flutter::BinaryMessenger* binary_messenger, - HostSmallApi* api, - const std::string& message_channel_suffix); + // Sets up an instance of `HostSmallApi` to handle messages through the `binary_messenger`. + static void SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostSmallApi* api); + static void SetUp( + ::flutter::BinaryMessenger* binary_messenger, + HostSmallApi* api, + const std::string& message_channel_suffix); static ::flutter::EncodableValue WrapError(std::string_view error_message); static ::flutter::EncodableValue WrapError(const FlutterError& error); - protected: HostSmallApi() = default; }; // A simple API called in some unit tests. // -// Generated class from Pigeon that represents Flutter messages that can be -// called from C++. +// Generated class from Pigeon that represents Flutter messages that can be called from C++. class FlutterSmallApi { public: FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger); - FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix); + FlutterSmallApi( + ::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix); static const ::flutter::StandardMessageCodec& GetCodec(); - void EchoWrappedList(const TestMessage& msg, - std::function&& on_success, - std::function&& on_error); - void EchoString(const std::string& a_string, - std::function&& on_success, - std::function&& on_error); - + void EchoWrappedList( + const TestMessage& msg, + std::function&& on_success, + std::function&& on_error); + void EchoString( + const std::string& a_string, + std::function&& on_success, + std::function&& on_error); private: ::flutter::BinaryMessenger* binary_messenger_; std::string message_channel_suffix_; diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp index 33a1a3e6f6e0..bcadcc5f6a5c 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/test/equality_test.cpp @@ -57,7 +57,7 @@ TEST(EqualityTests, SignedZeroEquality) { AllNullableTypes all2; all2.set_a_nullable_double(-0.0); - EXPECT_NE(all1, all2); + EXPECT_EQ(all1, all2); } } // namespace test diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp index bb77ea902dfc..e7bf4b01fd55 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp @@ -97,6 +97,17 @@ ErrorOr> TestPlugin::EchoAllNullableTypes( return std::optional(*everything); } +ErrorOr TestPlugin::AreAllNullableTypesEqual(const AllNullableTypes& a, + const AllNullableTypes& b) { + return a == b; +} + +ErrorOr TestPlugin::GetAllNullableTypesHash( + const AllNullableTypes& value) { + // TODO(gaaclarke): Implement hashing for C++ classes in the generator. + return 0; +} + ErrorOr> TestPlugin::EchoAllNullableTypesWithoutRecursion( const AllNullableTypesWithoutRecursion* everything) { diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h index 002a73291335..4b99934d4b5b 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h @@ -60,6 +60,11 @@ class TestPlugin : public flutter::Plugin, std::optional> EchoAllNullableTypes( const core_tests_pigeontest::AllNullableTypes* everything) override; + core_tests_pigeontest::ErrorOr AreAllNullableTypesEqual( + const core_tests_pigeontest::AllNullableTypes& a, + const core_tests_pigeontest::AllNullableTypes& b) override; + core_tests_pigeontest::ErrorOr GetAllNullableTypesHash( + const core_tests_pigeontest::AllNullableTypes& value) override; core_tests_pigeontest::ErrorOr< std::optional> EchoAllNullableTypesWithoutRecursion( From 655229c345f31c211da84175e59afdbb743ba10a Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 18:45:24 -0800 Subject: [PATCH 25/33] finish tests --- .../java/io/flutter/plugins/Messages.java | 6 +- .../AlternateLanguageTestPlugin.java | 11 + .../CoreTests.java | 2928 +- .../AlternateLanguageTestPlugin.m | 11 + .../CoreTests.gen.m | 6068 ++- .../CoreTests.gen.h | 1167 +- .../lib/integration_tests.dart | 45 + .../lib/message.gen.dart | 189 +- .../lib/src/generated/core_tests.gen.dart | 4496 +- .../lib/src/generated/enum.gen.dart | 103 +- .../generated/event_channel_tests.gen.dart | 241 +- ...ent_channel_without_classes_tests.gen.dart | 14 +- .../src/generated/flutter_unittests.gen.dart | 149 +- .../lib/src/generated/message.gen.dart | 189 +- .../lib/src/generated/multiple_arity.gen.dart | 80 +- .../src/generated/non_null_fields.gen.dart | 152 +- .../lib/src/generated/null_fields.gen.dart | 128 +- .../src/generated/nullable_returns.gen.dart | 213 +- .../lib/src/generated/primitive.gen.dart | 406 +- .../src/generated/proxy_api_tests.gen.dart | 2246 +- .../test/message_test.dart | 179 +- .../test/test_message.gen.dart | 179 +- .../com/example/test_plugin/CoreTests.gen.kt | 3767 +- .../test_plugin/EventChannelTests.gen.kt | 411 +- .../example/test_plugin/ProxyApiTests.gen.kt | 2565 +- .../Sources/test_plugin/CoreTests.gen.swift | 2012 +- .../test_plugin/EventChannelTests.gen.swift | 97 +- .../test_plugin/ProxyApiTests.gen.swift | 1887 +- .../Sources/test_plugin/TestPlugin.swift | 2 +- .../test_plugin/example/test_output.txt | 308 + .../linux/pigeon/core_tests.gen.cc | 33755 ++++++++++++---- .../test_plugin/linux/pigeon/core_tests.gen.h | 7219 +++- .../windows/pigeon/core_tests.gen.cpp | 13362 +++--- .../windows/pigeon/core_tests.gen.h | 1304 +- 34 files changed, 58743 insertions(+), 27146 deletions(-) create mode 100644 packages/pigeon/platform_tests/test_plugin/example/test_output.txt diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index 34eb092f1443..853fa1ee865f 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -84,10 +84,12 @@ static boolean pigeonDeepEquals(Object a, Object b) { return true; } if (a instanceof Double && b instanceof Double) { - return (double) a == (double) b || (Double.isNaN((double) a) && Double.isNaN((double) b)); + return ((double) a == 0.0 ? 0.0 : (double) a) == ((double) b == 0.0 ? 0.0 : (double) b) + || (Double.isNaN((double) a) && Double.isNaN((double) b)); } if (a instanceof Float && b instanceof Float) { - return (float) a == (float) b || (Float.isNaN((float) a) && Float.isNaN((float) b)); + return ((float) a == 0.0f ? 0.0f : (float) a) == ((float) b == 0.0f ? 0.0f : (float) b) + || (Float.isNaN((float) a) && Float.isNaN((float) b)); } return a.equals(b); } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java index 4ece8628d399..aeab38507c2a 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java @@ -61,6 +61,17 @@ public void noop() {} return everything; } + @Override + public @NonNull Boolean areAllNullableTypesEqual( + @NonNull AllNullableTypes a, @NonNull AllNullableTypes b) { + return a.equals(b); + } + + @Override + public @NonNull Long getAllNullableTypesHash(@NonNull AllNullableTypes value) { + return (long) value.hashCode(); + } + @Override public @Nullable AllNullableTypesWithoutRecursion echoAllNullableTypesWithoutRecursion( @Nullable AllNullableTypesWithoutRecursion everything) { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index 9b7c21a02e53..b9a73fc2fa02 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -24,17 +24,19 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; -import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Objects; /** Generated class from Pigeon. */ @SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) public class CoreTests { static boolean pigeonDeepEquals(Object a, Object b) { - if (a == b) { return true; } - if (a == null || b == null) { return false; } + if (a == b) { + return true; + } + if (a == null || b == null) { + return false; + } if (a instanceof byte[] && b instanceof byte[]) { return Arrays.equals((byte[]) a, (byte[]) b); } @@ -58,7 +60,9 @@ static boolean pigeonDeepEquals(Object a, Object b) { if (a instanceof List && b instanceof List) { List listA = (List) a; List listB = (List) b; - if (listA.size() != listB.size()) { return false; } + if (listA.size() != listB.size()) { + return false; + } for (int i = 0; i < listA.size(); i++) { if (!pigeonDeepEquals(listA.get(i), listB.get(i))) { return false; @@ -69,7 +73,9 @@ static boolean pigeonDeepEquals(Object a, Object b) { if (a instanceof Map && b instanceof Map) { Map mapA = (Map) a; Map mapB = (Map) b; - if (mapA.size() != mapB.size()) { return false; } + if (mapA.size() != mapB.size()) { + return false; + } for (Object key : mapA.keySet()) { if (!mapB.containsKey(key)) { return false; @@ -81,16 +87,20 @@ static boolean pigeonDeepEquals(Object a, Object b) { return true; } if (a instanceof Double && b instanceof Double) { - return (double) a == (double) b || (Double.isNaN((double) a) && Double.isNaN((double) b)); + return ((double) a == 0.0 ? 0.0 : (double) a) == ((double) b == 0.0 ? 0.0 : (double) b) + || (Double.isNaN((double) a) && Double.isNaN((double) b)); } if (a instanceof Float && b instanceof Float) { - return (float) a == (float) b || (Float.isNaN((float) a) && Float.isNaN((float) b)); + return ((float) a == 0.0f ? 0.0f : (float) a) == ((float) b == 0.0f ? 0.0f : (float) b) + || (Float.isNaN((float) a) && Float.isNaN((float) b)); } return a.equals(b); } static int pigeonDeepHashCode(Object value) { - if (value == null) { return 0; } + if (value == null) { + return 0; + } if (value instanceof byte[]) { return Arrays.hashCode((byte[]) value); } @@ -143,7 +153,6 @@ static int pigeonDeepHashCode(Object value) { return value.hashCode(); } - /** Error class for passing custom error details to Flutter via a thrown PlatformException. */ public static class FlutterError extends RuntimeException { @@ -153,8 +162,7 @@ public static class FlutterError extends RuntimeException { /** The error details. Must be a datatype supported by the api codec. */ public final Object details; - public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) - { + public FlutterError(@NonNull String code, @Nullable String message, @Nullable Object details) { super(message); this.code = code; this.details = details; @@ -173,14 +181,15 @@ protected static ArrayList wrapError(@NonNull Throwable exception) { errorList.add(exception.toString()); errorList.add(exception.getClass().getSimpleName()); errorList.add( - "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); + "Cause: " + exception.getCause() + ", Stacktrace: " + Log.getStackTraceString(exception)); } return errorList; } @NonNull protected static FlutterError createConnectionError(@NonNull String channelName) { - return new FlutterError("channel-error", "Unable to establish connection on channel: " + channelName + ".", ""); + return new FlutterError( + "channel-error", "Unable to establish connection on channel: " + channelName + ".", ""); } @Target(METHOD) @@ -225,8 +234,12 @@ public void setAField(@Nullable Object setterArg) { @Override public boolean equals(Object o) { - if (this == o) { return true; } - if (o == null || getClass() != o.getClass()) { return false; } + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } UnusedClass that = (UnusedClass) o; return pigeonDeepEquals(aField, that.aField); } @@ -272,7 +285,7 @@ ArrayList toList() { /** * A class containing all supported types. * - * Generated class from Pigeon that represents data sent in messages. + *

Generated class from Pigeon that represents data sent in messages. */ public static final class AllTypes { private @NonNull Boolean aBool; @@ -644,15 +657,77 @@ public void setMapMap(@NonNull Map> setterArg) { @Override public boolean equals(Object o) { - if (this == o) { return true; } - if (o == null || getClass() != o.getClass()) { return false; } + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } AllTypes that = (AllTypes) o; - return pigeonDeepEquals(aBool, that.aBool) && pigeonDeepEquals(anInt, that.anInt) && pigeonDeepEquals(anInt64, that.anInt64) && pigeonDeepEquals(aDouble, that.aDouble) && pigeonDeepEquals(aByteArray, that.aByteArray) && pigeonDeepEquals(a4ByteArray, that.a4ByteArray) && pigeonDeepEquals(a8ByteArray, that.a8ByteArray) && pigeonDeepEquals(aFloatArray, that.aFloatArray) && pigeonDeepEquals(anEnum, that.anEnum) && pigeonDeepEquals(anotherEnum, that.anotherEnum) && pigeonDeepEquals(aString, that.aString) && pigeonDeepEquals(anObject, that.anObject) && pigeonDeepEquals(list, that.list) && pigeonDeepEquals(stringList, that.stringList) && pigeonDeepEquals(intList, that.intList) && pigeonDeepEquals(doubleList, that.doubleList) && pigeonDeepEquals(boolList, that.boolList) && pigeonDeepEquals(enumList, that.enumList) && pigeonDeepEquals(objectList, that.objectList) && pigeonDeepEquals(listList, that.listList) && pigeonDeepEquals(mapList, that.mapList) && pigeonDeepEquals(map, that.map) && pigeonDeepEquals(stringMap, that.stringMap) && pigeonDeepEquals(intMap, that.intMap) && pigeonDeepEquals(enumMap, that.enumMap) && pigeonDeepEquals(objectMap, that.objectMap) && pigeonDeepEquals(listMap, that.listMap) && pigeonDeepEquals(mapMap, that.mapMap); + return pigeonDeepEquals(aBool, that.aBool) + && pigeonDeepEquals(anInt, that.anInt) + && pigeonDeepEquals(anInt64, that.anInt64) + && pigeonDeepEquals(aDouble, that.aDouble) + && pigeonDeepEquals(aByteArray, that.aByteArray) + && pigeonDeepEquals(a4ByteArray, that.a4ByteArray) + && pigeonDeepEquals(a8ByteArray, that.a8ByteArray) + && pigeonDeepEquals(aFloatArray, that.aFloatArray) + && pigeonDeepEquals(anEnum, that.anEnum) + && pigeonDeepEquals(anotherEnum, that.anotherEnum) + && pigeonDeepEquals(aString, that.aString) + && pigeonDeepEquals(anObject, that.anObject) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap); } @Override public int hashCode() { - Object[] fields = new Object[] {getClass(), aBool, anInt, anInt64, aDouble, aByteArray, a4ByteArray, a8ByteArray, aFloatArray, anEnum, anotherEnum, aString, anObject, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap}; + Object[] fields = + new Object[] { + getClass(), + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap + }; return pigeonDeepHashCode(fields); } @@ -1015,7 +1090,7 @@ ArrayList toList() { /** * A class containing all supported nullable types. * - * Generated class from Pigeon that represents data sent in messages. + *

Generated class from Pigeon that represents data sent in messages. */ public static final class AllNullableTypes { private @Nullable Boolean aNullableBool; @@ -1330,15 +1405,83 @@ public void setRecursiveClassMap(@Nullable Map setterArg @Override public boolean equals(Object o) { - if (this == o) { return true; } - if (o == null || getClass() != o.getClass()) { return false; } + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } AllNullableTypes that = (AllNullableTypes) o; - return pigeonDeepEquals(aNullableBool, that.aNullableBool) && pigeonDeepEquals(aNullableInt, that.aNullableInt) && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) && pigeonDeepEquals(aNullableString, that.aNullableString) && pigeonDeepEquals(aNullableObject, that.aNullableObject) && pigeonDeepEquals(allNullableTypes, that.allNullableTypes) && pigeonDeepEquals(list, that.list) && pigeonDeepEquals(stringList, that.stringList) && pigeonDeepEquals(intList, that.intList) && pigeonDeepEquals(doubleList, that.doubleList) && pigeonDeepEquals(boolList, that.boolList) && pigeonDeepEquals(enumList, that.enumList) && pigeonDeepEquals(objectList, that.objectList) && pigeonDeepEquals(listList, that.listList) && pigeonDeepEquals(mapList, that.mapList) && pigeonDeepEquals(recursiveClassList, that.recursiveClassList) && pigeonDeepEquals(map, that.map) && pigeonDeepEquals(stringMap, that.stringMap) && pigeonDeepEquals(intMap, that.intMap) && pigeonDeepEquals(enumMap, that.enumMap) && pigeonDeepEquals(objectMap, that.objectMap) && pigeonDeepEquals(listMap, that.listMap) && pigeonDeepEquals(mapMap, that.mapMap) && pigeonDeepEquals(recursiveClassMap, that.recursiveClassMap); + return pigeonDeepEquals(aNullableBool, that.aNullableBool) + && pigeonDeepEquals(aNullableInt, that.aNullableInt) + && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) + && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) + && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) + && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) + && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) + && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) + && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) + && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) + && pigeonDeepEquals(aNullableString, that.aNullableString) + && pigeonDeepEquals(aNullableObject, that.aNullableObject) + && pigeonDeepEquals(allNullableTypes, that.allNullableTypes) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(recursiveClassList, that.recursiveClassList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap) + && pigeonDeepEquals(recursiveClassMap, that.recursiveClassMap); } @Override public int hashCode() { - Object[] fields = new Object[] {getClass(), aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, recursiveClassList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap, recursiveClassMap}; + Object[] fields = + new Object[] { + getClass(), + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap + }; return pigeonDeepHashCode(fields); } @@ -1587,7 +1730,8 @@ public static final class Builder { private @Nullable Map recursiveClassMap; @CanIgnoreReturnValue - public @NonNull Builder setRecursiveClassMap(@Nullable Map setterArg) { + public @NonNull Builder setRecursiveClassMap( + @Nullable Map setterArg) { this.recursiveClassMap = setterArg; return this; } @@ -1735,11 +1879,10 @@ ArrayList toList() { } /** - * The primary purpose for this class is to ensure coverage of Swift structs - * with nullable items, as the primary [AllNullableTypes] class is being used to - * test Swift classes. + * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, + * as the primary [AllNullableTypes] class is being used to test Swift classes. * - * Generated class from Pigeon that represents data sent in messages. + *

Generated class from Pigeon that represents data sent in messages. */ public static final class AllNullableTypesWithoutRecursion { private @Nullable Boolean aNullableBool; @@ -2024,15 +2167,77 @@ public void setMapMap(@Nullable Map> setterArg) { @Override public boolean equals(Object o) { - if (this == o) { return true; } - if (o == null || getClass() != o.getClass()) { return false; } + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; - return pigeonDeepEquals(aNullableBool, that.aNullableBool) && pigeonDeepEquals(aNullableInt, that.aNullableInt) && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) && pigeonDeepEquals(aNullableString, that.aNullableString) && pigeonDeepEquals(aNullableObject, that.aNullableObject) && pigeonDeepEquals(list, that.list) && pigeonDeepEquals(stringList, that.stringList) && pigeonDeepEquals(intList, that.intList) && pigeonDeepEquals(doubleList, that.doubleList) && pigeonDeepEquals(boolList, that.boolList) && pigeonDeepEquals(enumList, that.enumList) && pigeonDeepEquals(objectList, that.objectList) && pigeonDeepEquals(listList, that.listList) && pigeonDeepEquals(mapList, that.mapList) && pigeonDeepEquals(map, that.map) && pigeonDeepEquals(stringMap, that.stringMap) && pigeonDeepEquals(intMap, that.intMap) && pigeonDeepEquals(enumMap, that.enumMap) && pigeonDeepEquals(objectMap, that.objectMap) && pigeonDeepEquals(listMap, that.listMap) && pigeonDeepEquals(mapMap, that.mapMap); + return pigeonDeepEquals(aNullableBool, that.aNullableBool) + && pigeonDeepEquals(aNullableInt, that.aNullableInt) + && pigeonDeepEquals(aNullableInt64, that.aNullableInt64) + && pigeonDeepEquals(aNullableDouble, that.aNullableDouble) + && pigeonDeepEquals(aNullableByteArray, that.aNullableByteArray) + && pigeonDeepEquals(aNullable4ByteArray, that.aNullable4ByteArray) + && pigeonDeepEquals(aNullable8ByteArray, that.aNullable8ByteArray) + && pigeonDeepEquals(aNullableFloatArray, that.aNullableFloatArray) + && pigeonDeepEquals(aNullableEnum, that.aNullableEnum) + && pigeonDeepEquals(anotherNullableEnum, that.anotherNullableEnum) + && pigeonDeepEquals(aNullableString, that.aNullableString) + && pigeonDeepEquals(aNullableObject, that.aNullableObject) + && pigeonDeepEquals(list, that.list) + && pigeonDeepEquals(stringList, that.stringList) + && pigeonDeepEquals(intList, that.intList) + && pigeonDeepEquals(doubleList, that.doubleList) + && pigeonDeepEquals(boolList, that.boolList) + && pigeonDeepEquals(enumList, that.enumList) + && pigeonDeepEquals(objectList, that.objectList) + && pigeonDeepEquals(listList, that.listList) + && pigeonDeepEquals(mapList, that.mapList) + && pigeonDeepEquals(map, that.map) + && pigeonDeepEquals(stringMap, that.stringMap) + && pigeonDeepEquals(intMap, that.intMap) + && pigeonDeepEquals(enumMap, that.enumMap) + && pigeonDeepEquals(objectMap, that.objectMap) + && pigeonDeepEquals(listMap, that.listMap) + && pigeonDeepEquals(mapMap, that.mapMap); } @Override public int hashCode() { - Object[] fields = new Object[] {getClass(), aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap}; + Object[] fields = + new Object[] { + getClass(), + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap + }; return pigeonDeepHashCode(fields); } @@ -2330,7 +2535,8 @@ ArrayList toList() { return toListResult; } - static @NonNull AllNullableTypesWithoutRecursion fromList(@NonNull ArrayList pigeonVar_list) { + static @NonNull AllNullableTypesWithoutRecursion fromList( + @NonNull ArrayList pigeonVar_list) { AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); Object aNullableBool = pigeonVar_list.get(0); pigeonResult.setANullableBool((Boolean) aNullableBool); @@ -2395,11 +2601,11 @@ ArrayList toList() { /** * A class for testing nested class handling. * - * This is needed to test nested nullable and non-nullable classes, - * `AllNullableTypes` is non-nullable here as it is easier to instantiate - * than `AllTypes` when testing doesn't require both (ie. testing null classes). + *

This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is + * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require + * both (ie. testing null classes). * - * Generated class from Pigeon that represents data sent in messages. + *

Generated class from Pigeon that represents data sent in messages. */ public static final class AllClassesWrapper { private @NonNull AllNullableTypes allNullableTypes; @@ -2421,7 +2627,8 @@ public void setAllNullableTypes(@NonNull AllNullableTypes setterArg) { return allNullableTypesWithoutRecursion; } - public void setAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion setterArg) { + public void setAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion setterArg) { this.allNullableTypesWithoutRecursion = setterArg; } @@ -2477,7 +2684,8 @@ public void setClassMap(@NonNull Map setterArg) { return nullableClassMap; } - public void setNullableClassMap(@Nullable Map setterArg) { + public void setNullableClassMap( + @Nullable Map setterArg) { this.nullableClassMap = setterArg; } @@ -2486,15 +2694,36 @@ public void setNullableClassMap(@Nullable Map nullableClassList; @CanIgnoreReturnValue - public @NonNull Builder setNullableClassList(@Nullable List setterArg) { + public @NonNull Builder setNullableClassList( + @Nullable List setterArg) { this.nullableClassList = setterArg; return this; } @@ -2551,7 +2782,8 @@ public static final class Builder { private @Nullable Map nullableClassMap; @CanIgnoreReturnValue - public @NonNull Builder setNullableClassMap(@Nullable Map setterArg) { + public @NonNull Builder setNullableClassMap( + @Nullable Map setterArg) { this.nullableClassMap = setterArg; return this; } @@ -2587,7 +2819,8 @@ ArrayList toList() { Object allNullableTypes = pigeonVar_list.get(0); pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); Object allNullableTypesWithoutRecursion = pigeonVar_list.get(1); - pigeonResult.setAllNullableTypesWithoutRecursion((AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); + pigeonResult.setAllNullableTypesWithoutRecursion( + (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); Object allTypes = pigeonVar_list.get(2); pigeonResult.setAllTypes((AllTypes) allTypes); Object classList = pigeonVar_list.get(3); @@ -2597,7 +2830,8 @@ ArrayList toList() { Object classMap = pigeonVar_list.get(5); pigeonResult.setClassMap((Map) classMap); Object nullableClassMap = pigeonVar_list.get(6); - pigeonResult.setNullableClassMap((Map) nullableClassMap); + pigeonResult.setNullableClassMap( + (Map) nullableClassMap); return pigeonResult; } } @@ -2605,7 +2839,7 @@ ArrayList toList() { /** * A data class containing a List, used in unit tests. * - * Generated class from Pigeon that represents data sent in messages. + *

Generated class from Pigeon that represents data sent in messages. */ public static final class TestMessage { private @Nullable List testList; @@ -2620,8 +2854,12 @@ public void setTestList(@Nullable List setterArg) { @Override public boolean equals(Object o) { - if (this == o) { return true; } - if (o == null || getClass() != o.getClass()) { return false; } + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } TestMessage that = (TestMessage) o; return pigeonDeepEquals(testList, that.testList); } @@ -2672,14 +2910,16 @@ private PigeonCodec() {} @Override protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { switch (type) { - case (byte) 129: { - Object value = readValue(buffer); - return value == null ? null : AnEnum.values()[((Long) value).intValue()]; - } - case (byte) 130: { - Object value = readValue(buffer); - return value == null ? null : AnotherEnum.values()[((Long) value).intValue()]; - } + case (byte) 129: + { + Object value = readValue(buffer); + return value == null ? null : AnEnum.values()[((Long) value).intValue()]; + } + case (byte) 130: + { + Object value = readValue(buffer); + return value == null ? null : AnotherEnum.values()[((Long) value).intValue()]; + } case (byte) 131: return UnusedClass.fromList((ArrayList) readValue(buffer)); case (byte) 132: @@ -2729,7 +2969,6 @@ protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { } } - /** Asynchronous error handling return type for non-nullable API method returns. */ public interface Result { /** Success case callback method for handling returns. */ @@ -2755,211 +2994,217 @@ public interface VoidResult { void error(@NonNull Throwable error); } /** - * The core interface that each host language plugin must implement in - * platform_test integration tests. + * The core interface that each host language plugin must implement in platform_test integration + * tests. * - * Generated interface from Pigeon that represents a handler of messages from Flutter. + *

Generated interface from Pigeon that represents a handler of messages from Flutter. */ public interface HostIntegrationCoreApi { /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic calling. + * A no-op function taking no arguments and returning no value, to sanity test basic calling. */ void noop(); /** Returns the passed object, to test serialization and deserialization. */ - @NonNull + @NonNull AllTypes echoAllTypes(@NonNull AllTypes everything); /** Returns an error, to test error handling. */ - @Nullable + @Nullable Object throwError(); /** Returns an error from a void function, to test error handling. */ void throwErrorFromVoid(); /** Returns a Flutter error, to test error handling. */ - @Nullable + @Nullable Object throwFlutterError(); /** Returns passed in int. */ - @NonNull + @NonNull Long echoInt(@NonNull Long anInt); /** Returns passed in double. */ - @NonNull + @NonNull Double echoDouble(@NonNull Double aDouble); /** Returns the passed in boolean. */ - @NonNull + @NonNull Boolean echoBool(@NonNull Boolean aBool); /** Returns the passed in string. */ - @NonNull + @NonNull String echoString(@NonNull String aString); /** Returns the passed in Uint8List. */ - @NonNull + @NonNull byte[] echoUint8List(@NonNull byte[] aUint8List); /** Returns the passed in generic Object. */ - @NonNull + @NonNull Object echoObject(@NonNull Object anObject); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoList(@NonNull List list); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoEnumList(@NonNull List enumList); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoClassList(@NonNull List classList); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoNonNullEnumList(@NonNull List enumList); /** Returns the passed list, to test serialization and deserialization. */ - @NonNull + @NonNull List echoNonNullClassList(@NonNull List classList); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoMap(@NonNull Map map); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoStringMap(@NonNull Map stringMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoIntMap(@NonNull Map intMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoEnumMap(@NonNull Map enumMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoClassMap(@NonNull Map classMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoNonNullStringMap(@NonNull Map stringMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoNonNullIntMap(@NonNull Map intMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoNonNullEnumMap(@NonNull Map enumMap); /** Returns the passed map, to test serialization and deserialization. */ - @NonNull + @NonNull Map echoNonNullClassMap(@NonNull Map classMap); /** Returns the passed class to test nested class serialization and deserialization. */ - @NonNull + @NonNull AllClassesWrapper echoClassWrapper(@NonNull AllClassesWrapper wrapper); /** Returns the passed enum to test serialization and deserialization. */ - @NonNull + @NonNull AnEnum echoEnum(@NonNull AnEnum anEnum); /** Returns the passed enum to test serialization and deserialization. */ - @NonNull + @NonNull AnotherEnum echoAnotherEnum(@NonNull AnotherEnum anotherEnum); /** Returns the default string. */ - @NonNull + @NonNull String echoNamedDefaultString(@NonNull String aString); /** Returns passed in double. */ - @NonNull + @NonNull Double echoOptionalDefaultDouble(@NonNull Double aDouble); /** Returns passed in int. */ - @NonNull + @NonNull Long echoRequiredInt(@NonNull Long anInt); /** Returns the result of platform-side equality check. */ - @NonNull + @NonNull Boolean areAllNullableTypesEqual(@NonNull AllNullableTypes a, @NonNull AllNullableTypes b); /** Returns the platform-side hash code for the given object. */ - @NonNull + @NonNull Long getAllNullableTypesHash(@NonNull AllNullableTypes value); /** Returns the passed object, to test serialization and deserialization. */ - @Nullable + @Nullable AllNullableTypes echoAllNullableTypes(@Nullable AllNullableTypes everything); /** Returns the passed object, to test serialization and deserialization. */ - @Nullable - AllNullableTypesWithoutRecursion echoAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion everything); + @Nullable + AllNullableTypesWithoutRecursion echoAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion everything); /** - * Returns the inner `aString` value from the wrapped object, to test - * sending of nested objects. + * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. */ - @Nullable + @Nullable String extractNestedNullableString(@NonNull AllClassesWrapper wrapper); /** - * Returns the inner `aString` value from the wrapped object, to test - * sending of nested objects. + * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. */ - @NonNull + @NonNull AllClassesWrapper createNestedNullableString(@Nullable String nullableString); /** Returns passed in arguments of multiple types. */ - @NonNull - AllNullableTypes sendMultipleNullableTypes(@Nullable Boolean aNullableBool, @Nullable Long aNullableInt, @Nullable String aNullableString); + @NonNull + AllNullableTypes sendMultipleNullableTypes( + @Nullable Boolean aNullableBool, + @Nullable Long aNullableInt, + @Nullable String aNullableString); /** Returns passed in arguments of multiple types. */ - @NonNull - AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion(@Nullable Boolean aNullableBool, @Nullable Long aNullableInt, @Nullable String aNullableString); + @NonNull + AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( + @Nullable Boolean aNullableBool, + @Nullable Long aNullableInt, + @Nullable String aNullableString); /** Returns passed in int. */ - @Nullable + @Nullable Long echoNullableInt(@Nullable Long aNullableInt); /** Returns passed in double. */ - @Nullable + @Nullable Double echoNullableDouble(@Nullable Double aNullableDouble); /** Returns the passed in boolean. */ - @Nullable + @Nullable Boolean echoNullableBool(@Nullable Boolean aNullableBool); /** Returns the passed in string. */ - @Nullable + @Nullable String echoNullableString(@Nullable String aNullableString); /** Returns the passed in Uint8List. */ - @Nullable + @Nullable byte[] echoNullableUint8List(@Nullable byte[] aNullableUint8List); /** Returns the passed in generic Object. */ - @Nullable + @Nullable Object echoNullableObject(@Nullable Object aNullableObject); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableList(@Nullable List aNullableList); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableEnumList(@Nullable List enumList); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableClassList(@Nullable List classList); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableNonNullEnumList(@Nullable List enumList); /** Returns the passed list, to test serialization and deserialization. */ - @Nullable + @Nullable List echoNullableNonNullClassList(@Nullable List classList); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableMap(@Nullable Map map); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableStringMap(@Nullable Map stringMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableIntMap(@Nullable Map intMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableEnumMap(@Nullable Map enumMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableClassMap(@Nullable Map classMap); + @Nullable + Map echoNullableClassMap( + @Nullable Map classMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableNonNullStringMap(@Nullable Map stringMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableNonNullIntMap(@Nullable Map intMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable + @Nullable Map echoNullableNonNullEnumMap(@Nullable Map enumMap); /** Returns the passed map, to test serialization and deserialization. */ - @Nullable - Map echoNullableNonNullClassMap(@Nullable Map classMap); + @Nullable + Map echoNullableNonNullClassMap( + @Nullable Map classMap); - @Nullable + @Nullable AnEnum echoNullableEnum(@Nullable AnEnum anEnum); - @Nullable + @Nullable AnotherEnum echoAnotherNullableEnum(@Nullable AnotherEnum anotherEnum); /** Returns passed in int. */ - @Nullable + @Nullable Long echoOptionalNullableInt(@Nullable Long aNullableInt); /** Returns the passed in string. */ - @Nullable + @Nullable String echoNamedNullableString(@Nullable String aNullableString); /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic asynchronous calling. + * A no-op function taking no arguments and returning no value, to sanity test basic + * asynchronous calling. */ void noopAsync(@NonNull VoidResult result); /** Returns passed in int asynchronously. */ @@ -2979,21 +3224,28 @@ public interface HostIntegrationCoreApi { /** Returns the passed list, to test asynchronous serialization and deserialization. */ void echoAsyncEnumList(@NonNull List enumList, @NonNull Result> result); /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncClassList(@NonNull List classList, @NonNull Result> result); + void echoAsyncClassList( + @NonNull List classList, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncMap(@NonNull Map map, @NonNull Result> result); + void echoAsyncMap( + @NonNull Map map, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncStringMap(@NonNull Map stringMap, @NonNull Result> result); + void echoAsyncStringMap( + @NonNull Map stringMap, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ void echoAsyncIntMap(@NonNull Map intMap, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncEnumMap(@NonNull Map enumMap, @NonNull Result> result); + void echoAsyncEnumMap( + @NonNull Map enumMap, @NonNull Result> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncClassMap(@NonNull Map classMap, @NonNull Result> result); + void echoAsyncClassMap( + @NonNull Map classMap, + @NonNull Result> result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ void echoAsyncEnum(@NonNull AnEnum anEnum, @NonNull Result result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - void echoAnotherAsyncEnum(@NonNull AnotherEnum anotherEnum, @NonNull Result result); + void echoAnotherAsyncEnum( + @NonNull AnotherEnum anotherEnum, @NonNull Result result); /** Responds with an error from an async function returning a value. */ void throwAsyncError(@NonNull NullableResult result); /** Responds with an error from an async void function. */ @@ -3003,9 +3255,12 @@ public interface HostIntegrationCoreApi { /** Returns the passed object, to test async serialization and deserialization. */ void echoAsyncAllTypes(@NonNull AllTypes everything, @NonNull Result result); /** Returns the passed object, to test serialization and deserialization. */ - void echoAsyncNullableAllNullableTypes(@Nullable AllNullableTypes everything, @NonNull NullableResult result); + void echoAsyncNullableAllNullableTypes( + @Nullable AllNullableTypes everything, @NonNull NullableResult result); /** Returns the passed object, to test serialization and deserialization. */ - void echoAsyncNullableAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion everything, @NonNull NullableResult result); + void echoAsyncNullableAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion everything, + @NonNull NullableResult result); /** Returns passed in int asynchronously. */ void echoAsyncNullableInt(@Nullable Long anInt, @NonNull NullableResult result); /** Returns passed in double asynchronously. */ @@ -3015,40 +3270,53 @@ public interface HostIntegrationCoreApi { /** Returns the passed string asynchronously. */ void echoAsyncNullableString(@Nullable String aString, @NonNull NullableResult result); /** Returns the passed in Uint8List asynchronously. */ - void echoAsyncNullableUint8List(@Nullable byte[] aUint8List, @NonNull NullableResult result); + void echoAsyncNullableUint8List( + @Nullable byte[] aUint8List, @NonNull NullableResult result); /** Returns the passed in generic Object asynchronously. */ void echoAsyncNullableObject(@Nullable Object anObject, @NonNull NullableResult result); /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableList(@Nullable List list, @NonNull NullableResult> result); + void echoAsyncNullableList( + @Nullable List list, @NonNull NullableResult> result); /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableEnumList(@Nullable List enumList, @NonNull NullableResult> result); + void echoAsyncNullableEnumList( + @Nullable List enumList, @NonNull NullableResult> result); /** Returns the passed list, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableClassList(@Nullable List classList, @NonNull NullableResult> result); + void echoAsyncNullableClassList( + @Nullable List classList, + @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableMap(@Nullable Map map, @NonNull NullableResult> result); + void echoAsyncNullableMap( + @Nullable Map map, @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableStringMap(@Nullable Map stringMap, @NonNull NullableResult> result); + void echoAsyncNullableStringMap( + @Nullable Map stringMap, + @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableIntMap(@Nullable Map intMap, @NonNull NullableResult> result); + void echoAsyncNullableIntMap( + @Nullable Map intMap, @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableEnumMap(@Nullable Map enumMap, @NonNull NullableResult> result); + void echoAsyncNullableEnumMap( + @Nullable Map enumMap, @NonNull NullableResult> result); /** Returns the passed map, to test asynchronous serialization and deserialization. */ - void echoAsyncNullableClassMap(@Nullable Map classMap, @NonNull NullableResult> result); + void echoAsyncNullableClassMap( + @Nullable Map classMap, + @NonNull NullableResult> result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ void echoAsyncNullableEnum(@Nullable AnEnum anEnum, @NonNull NullableResult result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - void echoAnotherAsyncNullableEnum(@Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); + void echoAnotherAsyncNullableEnum( + @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); /** - * Returns true if the handler is run on a main thread, which should be - * true since there is no TaskQueue annotation. + * Returns true if the handler is run on a main thread, which should be true since there is no + * TaskQueue annotation. */ - @NonNull + @NonNull Boolean defaultIsMainThread(); /** - * Returns true if the handler is run on a non-main thread, which should be - * true for any platform with TaskQueue support. + * Returns true if the handler is run on a non-main thread, which should be true for any + * platform with TaskQueue support. */ - @NonNull + @NonNull Boolean taskQueueIsBackgroundThread(); void callFlutterNoop(@NonNull VoidResult result); @@ -3059,13 +3327,24 @@ public interface HostIntegrationCoreApi { void callFlutterEchoAllTypes(@NonNull AllTypes everything, @NonNull Result result); - void callFlutterEchoAllNullableTypes(@Nullable AllNullableTypes everything, @NonNull NullableResult result); + void callFlutterEchoAllNullableTypes( + @Nullable AllNullableTypes everything, @NonNull NullableResult result); - void callFlutterSendMultipleNullableTypes(@Nullable Boolean aNullableBool, @Nullable Long aNullableInt, @Nullable String aNullableString, @NonNull Result result); + void callFlutterSendMultipleNullableTypes( + @Nullable Boolean aNullableBool, + @Nullable Long aNullableInt, + @Nullable String aNullableString, + @NonNull Result result); - void callFlutterEchoAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion everything, @NonNull NullableResult result); + void callFlutterEchoAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion everything, + @NonNull NullableResult result); - void callFlutterSendMultipleNullableTypesWithoutRecursion(@Nullable Boolean aNullableBool, @Nullable Long aNullableInt, @Nullable String aNullableString, @NonNull Result result); + void callFlutterSendMultipleNullableTypesWithoutRecursion( + @Nullable Boolean aNullableBool, + @Nullable Long aNullableInt, + @Nullable String aNullableString, + @NonNull Result result); void callFlutterEchoBool(@NonNull Boolean aBool, @NonNull Result result); @@ -3079,77 +3358,119 @@ public interface HostIntegrationCoreApi { void callFlutterEchoList(@NonNull List list, @NonNull Result> result); - void callFlutterEchoEnumList(@NonNull List enumList, @NonNull Result> result); + void callFlutterEchoEnumList( + @NonNull List enumList, @NonNull Result> result); - void callFlutterEchoClassList(@NonNull List classList, @NonNull Result> result); + void callFlutterEchoClassList( + @NonNull List classList, @NonNull Result> result); - void callFlutterEchoNonNullEnumList(@NonNull List enumList, @NonNull Result> result); + void callFlutterEchoNonNullEnumList( + @NonNull List enumList, @NonNull Result> result); - void callFlutterEchoNonNullClassList(@NonNull List classList, @NonNull Result> result); + void callFlutterEchoNonNullClassList( + @NonNull List classList, @NonNull Result> result); - void callFlutterEchoMap(@NonNull Map map, @NonNull Result> result); + void callFlutterEchoMap( + @NonNull Map map, @NonNull Result> result); - void callFlutterEchoStringMap(@NonNull Map stringMap, @NonNull Result> result); + void callFlutterEchoStringMap( + @NonNull Map stringMap, @NonNull Result> result); - void callFlutterEchoIntMap(@NonNull Map intMap, @NonNull Result> result); + void callFlutterEchoIntMap( + @NonNull Map intMap, @NonNull Result> result); - void callFlutterEchoEnumMap(@NonNull Map enumMap, @NonNull Result> result); + void callFlutterEchoEnumMap( + @NonNull Map enumMap, @NonNull Result> result); - void callFlutterEchoClassMap(@NonNull Map classMap, @NonNull Result> result); + void callFlutterEchoClassMap( + @NonNull Map classMap, + @NonNull Result> result); - void callFlutterEchoNonNullStringMap(@NonNull Map stringMap, @NonNull Result> result); + void callFlutterEchoNonNullStringMap( + @NonNull Map stringMap, @NonNull Result> result); - void callFlutterEchoNonNullIntMap(@NonNull Map intMap, @NonNull Result> result); + void callFlutterEchoNonNullIntMap( + @NonNull Map intMap, @NonNull Result> result); - void callFlutterEchoNonNullEnumMap(@NonNull Map enumMap, @NonNull Result> result); + void callFlutterEchoNonNullEnumMap( + @NonNull Map enumMap, @NonNull Result> result); - void callFlutterEchoNonNullClassMap(@NonNull Map classMap, @NonNull Result> result); + void callFlutterEchoNonNullClassMap( + @NonNull Map classMap, + @NonNull Result> result); void callFlutterEchoEnum(@NonNull AnEnum anEnum, @NonNull Result result); - void callFlutterEchoAnotherEnum(@NonNull AnotherEnum anotherEnum, @NonNull Result result); + void callFlutterEchoAnotherEnum( + @NonNull AnotherEnum anotherEnum, @NonNull Result result); - void callFlutterEchoNullableBool(@Nullable Boolean aBool, @NonNull NullableResult result); + void callFlutterEchoNullableBool( + @Nullable Boolean aBool, @NonNull NullableResult result); void callFlutterEchoNullableInt(@Nullable Long anInt, @NonNull NullableResult result); - void callFlutterEchoNullableDouble(@Nullable Double aDouble, @NonNull NullableResult result); + void callFlutterEchoNullableDouble( + @Nullable Double aDouble, @NonNull NullableResult result); - void callFlutterEchoNullableString(@Nullable String aString, @NonNull NullableResult result); + void callFlutterEchoNullableString( + @Nullable String aString, @NonNull NullableResult result); - void callFlutterEchoNullableUint8List(@Nullable byte[] list, @NonNull NullableResult result); + void callFlutterEchoNullableUint8List( + @Nullable byte[] list, @NonNull NullableResult result); - void callFlutterEchoNullableList(@Nullable List list, @NonNull NullableResult> result); + void callFlutterEchoNullableList( + @Nullable List list, @NonNull NullableResult> result); - void callFlutterEchoNullableEnumList(@Nullable List enumList, @NonNull NullableResult> result); + void callFlutterEchoNullableEnumList( + @Nullable List enumList, @NonNull NullableResult> result); - void callFlutterEchoNullableClassList(@Nullable List classList, @NonNull NullableResult> result); + void callFlutterEchoNullableClassList( + @Nullable List classList, + @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullEnumList(@Nullable List enumList, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullEnumList( + @Nullable List enumList, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullClassList(@Nullable List classList, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullClassList( + @Nullable List classList, + @NonNull NullableResult> result); - void callFlutterEchoNullableMap(@Nullable Map map, @NonNull NullableResult> result); + void callFlutterEchoNullableMap( + @Nullable Map map, @NonNull NullableResult> result); - void callFlutterEchoNullableStringMap(@Nullable Map stringMap, @NonNull NullableResult> result); + void callFlutterEchoNullableStringMap( + @Nullable Map stringMap, + @NonNull NullableResult> result); - void callFlutterEchoNullableIntMap(@Nullable Map intMap, @NonNull NullableResult> result); + void callFlutterEchoNullableIntMap( + @Nullable Map intMap, @NonNull NullableResult> result); - void callFlutterEchoNullableEnumMap(@Nullable Map enumMap, @NonNull NullableResult> result); + void callFlutterEchoNullableEnumMap( + @Nullable Map enumMap, @NonNull NullableResult> result); - void callFlutterEchoNullableClassMap(@Nullable Map classMap, @NonNull NullableResult> result); + void callFlutterEchoNullableClassMap( + @Nullable Map classMap, + @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullStringMap(@Nullable Map stringMap, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullStringMap( + @Nullable Map stringMap, + @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullIntMap(@Nullable Map intMap, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullIntMap( + @Nullable Map intMap, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullEnumMap(@Nullable Map enumMap, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullEnumMap( + @Nullable Map enumMap, @NonNull NullableResult> result); - void callFlutterEchoNullableNonNullClassMap(@Nullable Map classMap, @NonNull NullableResult> result); + void callFlutterEchoNullableNonNullClassMap( + @Nullable Map classMap, + @NonNull NullableResult> result); - void callFlutterEchoNullableEnum(@Nullable AnEnum anEnum, @NonNull NullableResult result); + void callFlutterEchoNullableEnum( + @Nullable AnEnum anEnum, @NonNull NullableResult result); - void callFlutterEchoAnotherNullableEnum(@Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); + void callFlutterEchoAnotherNullableEnum( + @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); void callFlutterSmallApiEchoString(@NonNull String aString, @NonNull Result result); @@ -3157,17 +3478,28 @@ public interface HostIntegrationCoreApi { static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } - /**Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. */ - static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostIntegrationCoreApi api) { + /** + * Sets up an instance of `HostIntegrationCoreApi` to handle messages through the + * `binaryMessenger`. + */ + static void setUp( + @NonNull BinaryMessenger binaryMessenger, @Nullable HostIntegrationCoreApi api) { setUp(binaryMessenger, "", api); } - static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String messageChannelSuffix, @Nullable HostIntegrationCoreApi api) { + + static void setUp( + @NonNull BinaryMessenger binaryMessenger, + @NonNull String messageChannelSuffix, + @Nullable HostIntegrationCoreApi api) { messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; BinaryMessenger.TaskQueue taskQueue = binaryMessenger.makeBackgroundTaskQueue(); { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3175,8 +3507,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { api.noop(); wrapped.add(0, null); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3188,7 +3519,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3198,8 +3532,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { AllTypes output = api.echoAllTypes(everythingArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3211,7 +3544,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3219,8 +3555,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Object output = api.throwError(); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3232,7 +3567,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3240,8 +3578,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { api.throwErrorFromVoid(); wrapped.add(0, null); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3253,7 +3590,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3261,8 +3601,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Object output = api.throwFlutterError(); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3274,7 +3613,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3284,8 +3626,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Long output = api.echoInt(anIntArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3297,7 +3638,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3307,8 +3651,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Double output = api.echoDouble(aDoubleArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3320,7 +3663,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3330,8 +3676,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Boolean output = api.echoBool(aBoolArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3343,7 +3688,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3353,8 +3701,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { String output = api.echoString(aStringArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3366,7 +3713,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3376,8 +3726,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { byte[] output = api.echoUint8List(aUint8ListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3389,7 +3738,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3399,8 +3751,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Object output = api.echoObject(anObjectArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3412,7 +3763,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3422,8 +3776,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoList(listArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3435,7 +3788,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3445,8 +3801,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoEnumList(enumListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3458,7 +3813,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3468,8 +3826,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoClassList(classListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3481,7 +3838,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3491,8 +3851,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoNonNullEnumList(enumListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3504,7 +3863,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3514,8 +3876,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoNonNullClassList(classListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3527,7 +3888,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3537,8 +3901,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoMap(mapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3550,7 +3913,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3560,8 +3926,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoStringMap(stringMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3573,7 +3938,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3583,8 +3951,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoIntMap(intMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3596,7 +3963,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3606,8 +3976,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoEnumMap(enumMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3619,7 +3988,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3629,8 +4001,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoClassMap(classMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3642,7 +4013,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3652,8 +4026,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNonNullStringMap(stringMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3665,7 +4038,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3675,8 +4051,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNonNullIntMap(intMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3688,7 +4063,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3698,8 +4076,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNonNullEnumMap(enumMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3711,7 +4088,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3721,8 +4101,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNonNullClassMap(classMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3734,7 +4113,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3744,8 +4126,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { AllClassesWrapper output = api.echoClassWrapper(wrapperArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3757,7 +4138,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3767,8 +4151,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { AnEnum output = api.echoEnum(anEnumArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3780,7 +4163,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3790,8 +4176,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { AnotherEnum output = api.echoAnotherEnum(anotherEnumArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3803,7 +4188,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3813,8 +4201,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { String output = api.echoNamedDefaultString(aStringArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3826,7 +4213,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3836,8 +4226,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Double output = api.echoOptionalDefaultDouble(aDoubleArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3849,7 +4238,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3859,8 +4251,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Long output = api.echoRequiredInt(anIntArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3872,7 +4263,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3883,8 +4277,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Boolean output = api.areAllNullableTypesEqual(aArg, bArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3896,7 +4289,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3906,8 +4302,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Long output = api.getAllNullableTypesHash(valueArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3919,7 +4314,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3929,8 +4327,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { AllNullableTypes output = api.echoAllNullableTypes(everythingArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3942,18 +4339,22 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); + AllNullableTypesWithoutRecursion everythingArg = + (AllNullableTypesWithoutRecursion) args.get(0); try { - AllNullableTypesWithoutRecursion output = api.echoAllNullableTypesWithoutRecursion(everythingArg); + AllNullableTypesWithoutRecursion output = + api.echoAllNullableTypesWithoutRecursion(everythingArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3965,7 +4366,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3975,8 +4379,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { String output = api.extractNestedNullableString(wrapperArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -3988,7 +4391,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -3998,8 +4404,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { AllClassesWrapper output = api.createNestedNullableString(nullableStringArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4011,7 +4416,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4021,10 +4429,11 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess Long aNullableIntArg = (Long) args.get(1); String aNullableStringArg = (String) args.get(2); try { - AllNullableTypes output = api.sendMultipleNullableTypes(aNullableBoolArg, aNullableIntArg, aNullableStringArg); + AllNullableTypes output = + api.sendMultipleNullableTypes( + aNullableBoolArg, aNullableIntArg, aNullableStringArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4036,7 +4445,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4046,10 +4458,11 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess Long aNullableIntArg = (Long) args.get(1); String aNullableStringArg = (String) args.get(2); try { - AllNullableTypesWithoutRecursion output = api.sendMultipleNullableTypesWithoutRecursion(aNullableBoolArg, aNullableIntArg, aNullableStringArg); + AllNullableTypesWithoutRecursion output = + api.sendMultipleNullableTypesWithoutRecursion( + aNullableBoolArg, aNullableIntArg, aNullableStringArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4061,7 +4474,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4071,8 +4487,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Long output = api.echoNullableInt(aNullableIntArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4084,7 +4499,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4094,8 +4512,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Double output = api.echoNullableDouble(aNullableDoubleArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4107,7 +4524,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4117,8 +4537,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Boolean output = api.echoNullableBool(aNullableBoolArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4130,7 +4549,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4140,8 +4562,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { String output = api.echoNullableString(aNullableStringArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4153,7 +4574,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4163,8 +4587,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { byte[] output = api.echoNullableUint8List(aNullableUint8ListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4176,7 +4599,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4186,8 +4612,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Object output = api.echoNullableObject(aNullableObjectArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4199,7 +4624,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4209,8 +4637,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoNullableList(aNullableListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4222,7 +4649,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4232,8 +4662,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoNullableEnumList(enumListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4245,7 +4674,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4255,8 +4687,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoNullableClassList(classListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4268,7 +4699,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4278,8 +4712,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoNullableNonNullEnumList(enumListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4291,7 +4724,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4301,8 +4737,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { List output = api.echoNullableNonNullClassList(classListArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4314,7 +4749,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4324,8 +4762,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableMap(mapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4337,7 +4774,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4347,8 +4787,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableStringMap(stringMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4360,7 +4799,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4370,8 +4812,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableIntMap(intMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4383,7 +4824,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4393,8 +4837,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableEnumMap(enumMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4406,7 +4849,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4416,8 +4862,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableClassMap(classMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4429,7 +4874,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4439,8 +4887,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableNonNullStringMap(stringMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4452,7 +4899,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4462,8 +4912,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableNonNullIntMap(intMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4475,7 +4924,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4485,8 +4937,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableNonNullEnumMap(enumMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4498,7 +4949,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4508,8 +4962,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Map output = api.echoNullableNonNullClassMap(classMapArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4521,7 +4974,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4531,8 +4987,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { AnEnum output = api.echoNullableEnum(anEnumArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4544,7 +4999,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4554,8 +5012,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { AnotherEnum output = api.echoAnotherNullableEnum(anotherEnumArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4567,7 +5024,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4577,8 +5037,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { Long output = api.echoOptionalNullableInt(aNullableIntArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4590,7 +5049,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4600,8 +5062,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { String output = api.echoNamedNullableString(aNullableStringArg); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -4613,7 +5074,10 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4640,7 +5104,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4669,7 +5136,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4698,7 +5168,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4727,7 +5200,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4756,7 +5232,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4785,7 +5264,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4814,7 +5296,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4843,7 +5328,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4872,7 +5360,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4901,7 +5392,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4930,7 +5424,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4959,7 +5456,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -4988,7 +5488,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5017,7 +5520,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5046,7 +5552,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5075,7 +5584,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5104,7 +5616,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5131,7 +5646,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5158,7 +5676,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5185,7 +5706,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5214,7 +5738,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5243,13 +5770,17 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); + AllNullableTypesWithoutRecursion everythingArg = + (AllNullableTypesWithoutRecursion) args.get(0); NullableResult resultCallback = new NullableResult() { public void success(AllNullableTypesWithoutRecursion result) { @@ -5263,7 +5794,8 @@ public void error(Throwable error) { } }; - api.echoAsyncNullableAllNullableTypesWithoutRecursion(everythingArg, resultCallback); + api.echoAsyncNullableAllNullableTypesWithoutRecursion( + everythingArg, resultCallback); }); } else { channel.setMessageHandler(null); @@ -5272,7 +5804,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5301,7 +5836,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5330,7 +5868,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5359,7 +5900,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5388,7 +5932,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5417,7 +5964,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5446,7 +5996,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5475,7 +6028,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5504,7 +6060,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5533,7 +6092,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5562,7 +6124,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5591,7 +6156,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5620,7 +6188,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5649,7 +6220,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5678,7 +6252,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5707,7 +6284,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5736,7 +6316,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5744,8 +6327,7 @@ public void error(Throwable error) { try { Boolean output = api.defaultIsMainThread(); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -5757,7 +6339,11 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread" + messageChannelSuffix, getCodec(), taskQueue); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread" + + messageChannelSuffix, + getCodec(), + taskQueue); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5765,8 +6351,7 @@ public void error(Throwable error) { try { Boolean output = api.taskQueueIsBackgroundThread(); wrapped.add(0, output); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -5778,7 +6363,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5805,7 +6393,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5832,7 +6423,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5859,7 +6453,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5888,7 +6485,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5917,7 +6517,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5939,7 +6542,8 @@ public void error(Throwable error) { } }; - api.callFlutterSendMultipleNullableTypes(aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); + api.callFlutterSendMultipleNullableTypes( + aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); }); } else { channel.setMessageHandler(null); @@ -5948,13 +6552,17 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; - AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); + AllNullableTypesWithoutRecursion everythingArg = + (AllNullableTypesWithoutRecursion) args.get(0); NullableResult resultCallback = new NullableResult() { public void success(AllNullableTypesWithoutRecursion result) { @@ -5977,7 +6585,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -5999,7 +6610,8 @@ public void error(Throwable error) { } }; - api.callFlutterSendMultipleNullableTypesWithoutRecursion(aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); + api.callFlutterSendMultipleNullableTypesWithoutRecursion( + aNullableBoolArg, aNullableIntArg, aNullableStringArg, resultCallback); }); } else { channel.setMessageHandler(null); @@ -6008,7 +6620,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6037,7 +6652,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6066,7 +6684,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6095,7 +6716,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6124,7 +6748,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6153,7 +6780,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6182,7 +6812,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6211,7 +6844,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6240,7 +6876,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6269,7 +6908,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6298,7 +6940,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6327,7 +6972,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6356,7 +7004,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6385,7 +7036,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6414,7 +7068,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6443,7 +7100,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6472,7 +7132,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6501,7 +7164,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6530,7 +7196,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6559,7 +7228,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6588,7 +7260,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6617,7 +7292,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6646,7 +7324,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6675,7 +7356,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6704,7 +7388,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6733,7 +7420,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6762,7 +7452,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6791,7 +7484,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6820,7 +7516,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6849,7 +7548,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6878,7 +7580,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6907,7 +7612,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6936,7 +7644,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6965,7 +7676,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -6994,7 +7708,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7023,7 +7740,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7052,7 +7772,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7081,7 +7804,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7110,7 +7836,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7139,7 +7868,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7168,7 +7900,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7197,7 +7932,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7226,7 +7964,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -7255,10 +7996,10 @@ public void error(Throwable error) { } } /** - * The core interface that the Dart platform_test code implements for host - * integration tests to call into. + * The core interface that the Dart platform_test code implements for host integration tests to + * call into. * - * Generated class from Pigeon that represents Flutter messages that can be called from Java. + *

Generated class from Pigeon that represents Flutter messages that can be called from Java. */ public static class FlutterIntegrationCoreApi { private final @NonNull BinaryMessenger binaryMessenger; @@ -7267,1277 +8008,1591 @@ public static class FlutterIntegrationCoreApi { public FlutterIntegrationCoreApi(@NonNull BinaryMessenger argBinaryMessenger) { this(argBinaryMessenger, ""); } - public FlutterIntegrationCoreApi(@NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { + + public FlutterIntegrationCoreApi( + @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { this.binaryMessenger = argBinaryMessenger; this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; } - /** - * Public interface for sending reply. - * The codec used by FlutterIntegrationCoreApi. - */ + /** Public interface for sending reply. The codec used by FlutterIntegrationCoreApi. */ static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic calling. + * A no-op function taking no arguments and returning no value, to sanity test basic calling. */ public void noop(@NonNull VoidResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( null, channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Responds with an error from an async function returning a value. */ public void throwError(@NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( null, channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Object output = listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Responds with an error from an async void function. */ public void throwErrorFromVoid(@NonNull VoidResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( null, channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed object, to test serialization and deserialization. */ public void echoAllTypes(@NonNull AllTypes everythingArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") AllTypes output = (AllTypes) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed object, to test serialization and deserialization. */ - public void echoAllNullableTypes(@Nullable AllNullableTypes everythingArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes" + messageChannelSuffix; + public void echoAllNullableTypes( + @Nullable AllNullableTypes everythingArg, + @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AllNullableTypes output = (AllNullableTypes) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** * Returns passed in arguments of multiple types. * - * Tests multiple-arity FlutterApi handling. + *

Tests multiple-arity FlutterApi handling. */ - public void sendMultipleNullableTypes(@Nullable Boolean aNullableBoolArg, @Nullable Long aNullableIntArg, @Nullable String aNullableStringArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes" + messageChannelSuffix; + public void sendMultipleNullableTypes( + @Nullable Boolean aNullableBoolArg, + @Nullable Long aNullableIntArg, + @Nullable String aNullableStringArg, + @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") AllNullableTypes output = (AllNullableTypes) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed object, to test serialization and deserialization. */ - public void echoAllNullableTypesWithoutRecursion(@Nullable AllNullableTypesWithoutRecursion everythingArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + messageChannelSuffix; + public void echoAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion everythingArg, + @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") - AllNullableTypesWithoutRecursion output = (AllNullableTypesWithoutRecursion) listReply.get(0); + AllNullableTypesWithoutRecursion output = + (AllNullableTypesWithoutRecursion) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** * Returns passed in arguments of multiple types. * - * Tests multiple-arity FlutterApi handling. + *

Tests multiple-arity FlutterApi handling. */ - public void sendMultipleNullableTypesWithoutRecursion(@Nullable Boolean aNullableBoolArg, @Nullable Long aNullableIntArg, @Nullable String aNullableStringArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + messageChannelSuffix; + public void sendMultipleNullableTypesWithoutRecursion( + @Nullable Boolean aNullableBoolArg, + @Nullable Long aNullableIntArg, + @Nullable String aNullableStringArg, + @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") - AllNullableTypesWithoutRecursion output = (AllNullableTypesWithoutRecursion) listReply.get(0); + AllNullableTypesWithoutRecursion output = + (AllNullableTypesWithoutRecursion) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed boolean, to test serialization and deserialization. */ public void echoBool(@NonNull Boolean aBoolArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aBoolArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Boolean output = (Boolean) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed int, to test serialization and deserialization. */ public void echoInt(@NonNull Long anIntArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anIntArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Long output = (Long) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed double, to test serialization and deserialization. */ public void echoDouble(@NonNull Double aDoubleArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aDoubleArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Double output = (Double) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed string, to test serialization and deserialization. */ public void echoString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed byte list, to test serialization and deserialization. */ public void echoUint8List(@NonNull byte[] listArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") byte[] output = (byte[]) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ public void echoList(@NonNull List listArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoEnumList(@NonNull List enumListArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList" + messageChannelSuffix; + public void echoEnumList( + @NonNull List enumListArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoClassList(@NonNull List classListArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList" + messageChannelSuffix; + public void echoClassList( + @NonNull List classListArg, + @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNonNullEnumList(@NonNull List enumListArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList" + messageChannelSuffix; + public void echoNonNullEnumList( + @NonNull List enumListArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNonNullClassList(@NonNull List classListArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList" + messageChannelSuffix; + public void echoNonNullClassList( + @NonNull List classListArg, + @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoMap(@NonNull Map mapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap" + messageChannelSuffix; + public void echoMap( + @NonNull Map mapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(mapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoStringMap(@NonNull Map stringMapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap" + messageChannelSuffix; + public void echoStringMap( + @NonNull Map stringMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(stringMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoIntMap(@NonNull Map intMapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap" + messageChannelSuffix; + public void echoIntMap( + @NonNull Map intMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(intMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoEnumMap(@NonNull Map enumMapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap" + messageChannelSuffix; + public void echoEnumMap( + @NonNull Map enumMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoClassMap(@NonNull Map classMapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap" + messageChannelSuffix; + public void echoClassMap( + @NonNull Map classMapArg, + @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullStringMap(@NonNull Map stringMapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap" + messageChannelSuffix; + public void echoNonNullStringMap( + @NonNull Map stringMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(stringMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullIntMap(@NonNull Map intMapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap" + messageChannelSuffix; + public void echoNonNullIntMap( + @NonNull Map intMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(intMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullEnumMap(@NonNull Map enumMapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap" + messageChannelSuffix; + public void echoNonNullEnumMap( + @NonNull Map enumMapArg, @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNonNullClassMap(@NonNull Map classMapArg, @NonNull Result> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap" + messageChannelSuffix; + public void echoNonNullClassMap( + @NonNull Map classMapArg, + @NonNull Result> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed enum to test serialization and deserialization. */ public void echoEnum(@NonNull AnEnum anEnumArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") AnEnum output = (AnEnum) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed enum to test serialization and deserialization. */ - public void echoAnotherEnum(@NonNull AnotherEnum anotherEnumArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum" + messageChannelSuffix; + public void echoAnotherEnum( + @NonNull AnotherEnum anotherEnumArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anotherEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") AnotherEnum output = (AnotherEnum) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed boolean, to test serialization and deserialization. */ - public void echoNullableBool(@Nullable Boolean aBoolArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool" + messageChannelSuffix; + public void echoNullableBool( + @Nullable Boolean aBoolArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aBoolArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Boolean output = (Boolean) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed int, to test serialization and deserialization. */ public void echoNullableInt(@Nullable Long anIntArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anIntArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Long output = (Long) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed double, to test serialization and deserialization. */ - public void echoNullableDouble(@Nullable Double aDoubleArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble" + messageChannelSuffix; + public void echoNullableDouble( + @Nullable Double aDoubleArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aDoubleArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Double output = (Double) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed string, to test serialization and deserialization. */ - public void echoNullableString(@Nullable String aStringArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString" + messageChannelSuffix; + public void echoNullableString( + @Nullable String aStringArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed byte list, to test serialization and deserialization. */ - public void echoNullableUint8List(@Nullable byte[] listArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List" + messageChannelSuffix; + public void echoNullableUint8List( + @Nullable byte[] listArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") byte[] output = (byte[]) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableList(@Nullable List listArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList" + messageChannelSuffix; + public void echoNullableList( + @Nullable List listArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableEnumList(@Nullable List enumListArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList" + messageChannelSuffix; + public void echoNullableEnumList( + @Nullable List enumListArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableClassList(@Nullable List classListArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList" + messageChannelSuffix; + public void echoNullableClassList( + @Nullable List classListArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableNonNullEnumList(@Nullable List enumListArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList" + messageChannelSuffix; + public void echoNullableNonNullEnumList( + @Nullable List enumListArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed list, to test serialization and deserialization. */ - public void echoNullableNonNullClassList(@Nullable List classListArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList" + messageChannelSuffix; + public void echoNullableNonNullClassList( + @Nullable List classListArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classListArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableMap(@Nullable Map mapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap" + messageChannelSuffix; + public void echoNullableMap( + @Nullable Map mapArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(mapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableStringMap(@Nullable Map stringMapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap" + messageChannelSuffix; + public void echoNullableStringMap( + @Nullable Map stringMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(stringMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableIntMap(@Nullable Map intMapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap" + messageChannelSuffix; + public void echoNullableIntMap( + @Nullable Map intMapArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(intMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableEnumMap(@Nullable Map enumMapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap" + messageChannelSuffix; + public void echoNullableEnumMap( + @Nullable Map enumMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableClassMap(@Nullable Map classMapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap" + messageChannelSuffix; + public void echoNullableClassMap( + @Nullable Map classMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullStringMap(@Nullable Map stringMapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap" + messageChannelSuffix; + public void echoNullableNonNullStringMap( + @Nullable Map stringMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(stringMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullIntMap(@Nullable Map intMapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap" + messageChannelSuffix; + public void echoNullableNonNullIntMap( + @Nullable Map intMapArg, @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(intMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullEnumMap(@Nullable Map enumMapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap" + messageChannelSuffix; + public void echoNullableNonNullEnumMap( + @Nullable Map enumMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(enumMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed map, to test serialization and deserialization. */ - public void echoNullableNonNullClassMap(@Nullable Map classMapArg, @NonNull NullableResult> result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap" + messageChannelSuffix; + public void echoNullableNonNullClassMap( + @Nullable Map classMapArg, + @NonNull NullableResult> result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(classMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed enum to test serialization and deserialization. */ - public void echoNullableEnum(@Nullable AnEnum anEnumArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum" + messageChannelSuffix; + public void echoNullableEnum( + @Nullable AnEnum anEnumArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AnEnum output = (AnEnum) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed enum to test serialization and deserialization. */ - public void echoAnotherNullableEnum(@Nullable AnotherEnum anotherEnumArg, @NonNull NullableResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum" + messageChannelSuffix; + public void echoAnotherNullableEnum( + @Nullable AnotherEnum anotherEnumArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(anotherEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AnotherEnum output = (AnotherEnum) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic asynchronous calling. + * A no-op function taking no arguments and returning no value, to sanity test basic + * asynchronous calling. */ public void noopAsync(@NonNull VoidResult result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( null, channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } /** Returns the passed in generic Object asynchronously. */ public void echoAsyncString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } } /** * An API that can be implemented for minimal, compile-only tests. * - * Generated interface from Pigeon that represents a handler of messages from Flutter. + *

Generated interface from Pigeon that represents a handler of messages from Flutter. */ public interface HostTrivialApi { @@ -8547,16 +9602,23 @@ public interface HostTrivialApi { static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } - /**Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. */ + /** Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. */ static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostTrivialApi api) { setUp(binaryMessenger, "", api); } - static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String messageChannelSuffix, @Nullable HostTrivialApi api) { + + static void setUp( + @NonNull BinaryMessenger binaryMessenger, + @NonNull String messageChannelSuffix, + @Nullable HostTrivialApi api) { messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -8564,8 +9626,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess try { api.noop(); wrapped.add(0, null); - } - catch (Throwable exception) { + } catch (Throwable exception) { wrapped = wrapError(exception); } reply.reply(wrapped); @@ -8579,7 +9640,7 @@ static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String mess /** * A simple API implemented in some unit tests. * - * Generated interface from Pigeon that represents a handler of messages from Flutter. + *

Generated interface from Pigeon that represents a handler of messages from Flutter. */ public interface HostSmallApi { @@ -8591,16 +9652,23 @@ public interface HostSmallApi { static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } - /**Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. */ + /** Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. */ static void setUp(@NonNull BinaryMessenger binaryMessenger, @Nullable HostSmallApi api) { setUp(binaryMessenger, "", api); } - static void setUp(@NonNull BinaryMessenger binaryMessenger, @NonNull String messageChannelSuffix, @Nullable HostSmallApi api) { + + static void setUp( + @NonNull BinaryMessenger binaryMessenger, + @NonNull String messageChannelSuffix, + @Nullable HostSmallApi api) { messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -8629,7 +9697,10 @@ public void error(Throwable error) { { BasicMessageChannel channel = new BasicMessageChannel<>( - binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid" + messageChannelSuffix, getCodec()); + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid" + + messageChannelSuffix, + getCodec()); if (api != null) { channel.setMessageHandler( (message, reply) -> { @@ -8658,7 +9729,7 @@ public void error(Throwable error) { /** * A simple API called in some unit tests. * - * Generated class from Pigeon that represents Flutter messages that can be called from Java. + *

Generated class from Pigeon that represents Flutter messages that can be called from Java. */ public static class FlutterSmallApi { private final @NonNull BinaryMessenger binaryMessenger; @@ -8667,64 +9738,79 @@ public static class FlutterSmallApi { public FlutterSmallApi(@NonNull BinaryMessenger argBinaryMessenger) { this(argBinaryMessenger, ""); } - public FlutterSmallApi(@NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { + + public FlutterSmallApi( + @NonNull BinaryMessenger argBinaryMessenger, @NonNull String messageChannelSuffix) { this.binaryMessenger = argBinaryMessenger; this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; } - /** - * Public interface for sending reply. - * The codec used by FlutterSmallApi. - */ + /** Public interface for sending reply. The codec used by FlutterSmallApi. */ static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } + public void echoWrappedList(@NonNull TestMessage msgArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(msgArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") TestMessage output = (TestMessage) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } + public void echoString(@NonNull String aStringArg, @NonNull Result result) { - final String channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString" + messageChannelSuffix; + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString" + + messageChannelSuffix; BasicMessageChannel channel = - new BasicMessageChannel<>( - binaryMessenger, channelName, getCodec()); + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { - result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { - result.error(new FlutterError("null-error", "Flutter api returned null value for non-null return value.", "")); + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); result.success(output); } - } else { + } else { result.error(createConnectionError(channelName)); - } + } }); } } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/AlternateLanguageTestPlugin.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/AlternateLanguageTestPlugin.m index 1d494ba618ed..650bf5a3fc91 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/AlternateLanguageTestPlugin.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/AlternateLanguageTestPlugin.m @@ -201,6 +201,17 @@ - (nullable NSNumber *)echoRequiredInt:(NSInteger)anInt return @(anInt); } +- (nullable NSNumber *)areAllNullableTypesEqualA:(FLTAllNullableTypes *)a + b:(FLTAllNullableTypes *)b + error:(FlutterError *_Nullable *_Nonnull)error { + return @([a isEqual:b]); +} + +- (nullable NSNumber *)getAllNullableTypesHashValue:(FLTAllNullableTypes *)value + error:(FlutterError *_Nullable *_Nonnull)error { + return @([value hash]); +} + - (nullable NSString *)extractNestedNullableStringFrom:(FLTAllClassesWrapper *)wrapper error:(FlutterError *_Nullable *_Nonnull)error { return wrapper.allNullableTypes.aNullableString; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index 05f7fb53817c..be39beab28d7 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -96,7 +96,12 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { } static FlutterError *createConnectionError(NSString *channelName) { - return [FlutterError errorWithCode:@"channel-error" message:[NSString stringWithFormat:@"%@/%@/%@", @"Unable to establish connection on channel: '", channelName, @"'."] details:@""]; + return [FlutterError + errorWithCode:@"channel-error" + message:[NSString stringWithFormat:@"%@/%@/%@", + @"Unable to establish connection on channel: '", + channelName, @"'."] + details:@""]; } static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { @@ -161,8 +166,8 @@ + (nullable FLTTestMessage *)nullableFromList:(NSArray *)list; @end @implementation FLTUnusedClass -+ (instancetype)makeWithAField:(nullable id )aField { - FLTUnusedClass* pigeonResult = [[FLTUnusedClass alloc] init]; ++ (instancetype)makeWithAField:(nullable id)aField { + FLTUnusedClass *pigeonResult = [[FLTUnusedClass alloc] init]; pigeonResult.aField = aField; return pigeonResult; } @@ -198,35 +203,35 @@ - (NSUInteger)hash { @end @implementation FLTAllTypes -+ (instancetype)makeWithABool:(BOOL )aBool - anInt:(NSInteger )anInt - anInt64:(NSInteger )anInt64 - aDouble:(double )aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(FLTAnEnum)anEnum - anotherEnum:(FLTAnotherEnum)anotherEnum - aString:(NSString *)aString - anObject:(id )anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - enumList:(NSArray *)enumList - objectList:(NSArray *)objectList - listList:(NSArray *> *)listList - mapList:(NSArray *> *)mapList - map:(NSDictionary *)map - stringMap:(NSDictionary *)stringMap - intMap:(NSDictionary *)intMap - enumMap:(NSDictionary *)enumMap - objectMap:(NSDictionary *)objectMap - listMap:(NSDictionary *> *)listMap - mapMap:(NSDictionary *> *)mapMap { - FLTAllTypes* pigeonResult = [[FLTAllTypes alloc] init]; ++ (instancetype)makeWithABool:(BOOL)aBool + anInt:(NSInteger)anInt + anInt64:(NSInteger)anInt64 + aDouble:(double)aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(FLTAnEnum)anEnum + anotherEnum:(FLTAnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id)anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + enumList:(NSArray *)enumList + objectList:(NSArray *)objectList + listList:(NSArray *> *)listList + mapList:(NSArray *> *)mapList + map:(NSDictionary *)map + stringMap:(NSDictionary *)stringMap + intMap:(NSDictionary *)intMap + enumMap:(NSDictionary *)enumMap + objectMap:(NSDictionary *)objectMap + listMap:(NSDictionary *> *)listMap + mapMap:(NSDictionary *> *)mapMap { + FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; pigeonResult.aBool = aBool; pigeonResult.anInt = anInt; pigeonResult.anInt64 = anInt64; @@ -334,7 +339,31 @@ - (BOOL)isEqual:(id)object { return NO; } FLTAllTypes *other = (FLTAllTypes *)object; - return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && FLTPigeonDeepEquals(self.aFloatArray, other.aFloatArray) && self.anEnum == other.anEnum && self.anotherEnum == other.anotherEnum && FLTPigeonDeepEquals(self.aString, other.aString) && FLTPigeonDeepEquals(self.anObject, other.anObject) && FLTPigeonDeepEquals(self.list, other.list) && FLTPigeonDeepEquals(self.stringList, other.stringList) && FLTPigeonDeepEquals(self.intList, other.intList) && FLTPigeonDeepEquals(self.doubleList, other.doubleList) && FLTPigeonDeepEquals(self.boolList, other.boolList) && FLTPigeonDeepEquals(self.enumList, other.enumList) && FLTPigeonDeepEquals(self.objectList, other.objectList) && FLTPigeonDeepEquals(self.listList, other.listList) && FLTPigeonDeepEquals(self.mapList, other.mapList) && FLTPigeonDeepEquals(self.map, other.map) && FLTPigeonDeepEquals(self.stringMap, other.stringMap) && FLTPigeonDeepEquals(self.intMap, other.intMap) && FLTPigeonDeepEquals(self.enumMap, other.enumMap) && FLTPigeonDeepEquals(self.objectMap, other.objectMap) && FLTPigeonDeepEquals(self.listMap, other.listMap) && FLTPigeonDeepEquals(self.mapMap, other.mapMap); + return self.aBool == other.aBool && self.anInt == other.anInt && self.anInt64 == other.anInt64 && + (self.aDouble == other.aDouble || (isnan(self.aDouble) && isnan(other.aDouble))) && + FLTPigeonDeepEquals(self.aByteArray, other.aByteArray) && + FLTPigeonDeepEquals(self.a4ByteArray, other.a4ByteArray) && + FLTPigeonDeepEquals(self.a8ByteArray, other.a8ByteArray) && + FLTPigeonDeepEquals(self.aFloatArray, other.aFloatArray) && self.anEnum == other.anEnum && + self.anotherEnum == other.anotherEnum && + FLTPigeonDeepEquals(self.aString, other.aString) && + FLTPigeonDeepEquals(self.anObject, other.anObject) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap); } - (NSUInteger)hash { @@ -342,7 +371,8 @@ - (NSUInteger)hash { result = result * 31 + @(self.aBool).hash; result = result * 31 + @(self.anInt).hash; result = result * 31 + @(self.anInt64).hash; - result = result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); + result = + result * 31 + (isnan(self.aDouble) ? (NSUInteger)0x7FF8000000000000 : @(self.aDouble).hash); result = result * 31 + FLTPigeonDeepHash(self.aByteArray); result = result * 31 + FLTPigeonDeepHash(self.a4ByteArray); result = result * 31 + FLTPigeonDeepHash(self.a8ByteArray); @@ -372,38 +402,40 @@ - (NSUInteger)hash { @end @implementation FLTAllNullableTypes -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id )aNullableObject - allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - recursiveClassList:(nullable NSArray *)recursiveClassList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap - recursiveClassMap:(nullable NSDictionary *)recursiveClassMap { - FLTAllNullableTypes* pigeonResult = [[FLTAllNullableTypes alloc] init]; ++ (instancetype) + makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + recursiveClassList:(nullable NSArray *)recursiveClassList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap + recursiveClassMap: + (nullable NSDictionary *)recursiveClassMap { + FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; pigeonResult.aNullableBool = aNullableBool; pigeonResult.aNullableInt = aNullableInt; pigeonResult.aNullableInt64 = aNullableInt64; @@ -518,7 +550,37 @@ - (BOOL)isEqual:(id)object { return NO; } FLTAllNullableTypes *other = (FLTAllNullableTypes *)object; - return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && FLTPigeonDeepEquals(self.list, other.list) && FLTPigeonDeepEquals(self.stringList, other.stringList) && FLTPigeonDeepEquals(self.intList, other.intList) && FLTPigeonDeepEquals(self.doubleList, other.doubleList) && FLTPigeonDeepEquals(self.boolList, other.boolList) && FLTPigeonDeepEquals(self.enumList, other.enumList) && FLTPigeonDeepEquals(self.objectList, other.objectList) && FLTPigeonDeepEquals(self.listList, other.listList) && FLTPigeonDeepEquals(self.mapList, other.mapList) && FLTPigeonDeepEquals(self.recursiveClassList, other.recursiveClassList) && FLTPigeonDeepEquals(self.map, other.map) && FLTPigeonDeepEquals(self.stringMap, other.stringMap) && FLTPigeonDeepEquals(self.intMap, other.intMap) && FLTPigeonDeepEquals(self.enumMap, other.enumMap) && FLTPigeonDeepEquals(self.objectMap, other.objectMap) && FLTPigeonDeepEquals(self.listMap, other.listMap) && FLTPigeonDeepEquals(self.mapMap, other.mapMap) && FLTPigeonDeepEquals(self.recursiveClassMap, other.recursiveClassMap); + return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && + FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && + FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && + FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && + FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && + FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && + FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && + FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && + FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && + FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && + FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && + FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && + FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.recursiveClassList, other.recursiveClassList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap) && + FLTPigeonDeepEquals(self.recursiveClassMap, other.recursiveClassMap); } - (NSUInteger)hash { @@ -559,35 +621,37 @@ - (NSUInteger)hash { @end @implementation FLTAllNullableTypesWithoutRecursion -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id )aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap { - FLTAllNullableTypesWithoutRecursion* pigeonResult = [[FLTAllNullableTypesWithoutRecursion alloc] init]; ++ (instancetype) + makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap { + FLTAllNullableTypesWithoutRecursion *pigeonResult = + [[FLTAllNullableTypesWithoutRecursion alloc] init]; pigeonResult.aNullableBool = aNullableBool; pigeonResult.aNullableInt = aNullableInt; pigeonResult.aNullableInt64 = aNullableInt64; @@ -619,7 +683,8 @@ + (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool return pigeonResult; } + (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { - FLTAllNullableTypesWithoutRecursion *pigeonResult = [[FLTAllNullableTypesWithoutRecursion alloc] init]; + FLTAllNullableTypesWithoutRecursion *pigeonResult = + [[FLTAllNullableTypesWithoutRecursion alloc] init]; pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); @@ -693,7 +758,34 @@ - (BOOL)isEqual:(id)object { return NO; } FLTAllNullableTypesWithoutRecursion *other = (FLTAllNullableTypesWithoutRecursion *)object; - return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && FLTPigeonDeepEquals(self.list, other.list) && FLTPigeonDeepEquals(self.stringList, other.stringList) && FLTPigeonDeepEquals(self.intList, other.intList) && FLTPigeonDeepEquals(self.doubleList, other.doubleList) && FLTPigeonDeepEquals(self.boolList, other.boolList) && FLTPigeonDeepEquals(self.enumList, other.enumList) && FLTPigeonDeepEquals(self.objectList, other.objectList) && FLTPigeonDeepEquals(self.listList, other.listList) && FLTPigeonDeepEquals(self.mapList, other.mapList) && FLTPigeonDeepEquals(self.map, other.map) && FLTPigeonDeepEquals(self.stringMap, other.stringMap) && FLTPigeonDeepEquals(self.intMap, other.intMap) && FLTPigeonDeepEquals(self.enumMap, other.enumMap) && FLTPigeonDeepEquals(self.objectMap, other.objectMap) && FLTPigeonDeepEquals(self.listMap, other.listMap) && FLTPigeonDeepEquals(self.mapMap, other.mapMap); + return FLTPigeonDeepEquals(self.aNullableBool, other.aNullableBool) && + FLTPigeonDeepEquals(self.aNullableInt, other.aNullableInt) && + FLTPigeonDeepEquals(self.aNullableInt64, other.aNullableInt64) && + FLTPigeonDeepEquals(self.aNullableDouble, other.aNullableDouble) && + FLTPigeonDeepEquals(self.aNullableByteArray, other.aNullableByteArray) && + FLTPigeonDeepEquals(self.aNullable4ByteArray, other.aNullable4ByteArray) && + FLTPigeonDeepEquals(self.aNullable8ByteArray, other.aNullable8ByteArray) && + FLTPigeonDeepEquals(self.aNullableFloatArray, other.aNullableFloatArray) && + FLTPigeonDeepEquals(self.aNullableEnum, other.aNullableEnum) && + FLTPigeonDeepEquals(self.anotherNullableEnum, other.anotherNullableEnum) && + FLTPigeonDeepEquals(self.aNullableString, other.aNullableString) && + FLTPigeonDeepEquals(self.aNullableObject, other.aNullableObject) && + FLTPigeonDeepEquals(self.list, other.list) && + FLTPigeonDeepEquals(self.stringList, other.stringList) && + FLTPigeonDeepEquals(self.intList, other.intList) && + FLTPigeonDeepEquals(self.doubleList, other.doubleList) && + FLTPigeonDeepEquals(self.boolList, other.boolList) && + FLTPigeonDeepEquals(self.enumList, other.enumList) && + FLTPigeonDeepEquals(self.objectList, other.objectList) && + FLTPigeonDeepEquals(self.listList, other.listList) && + FLTPigeonDeepEquals(self.mapList, other.mapList) && + FLTPigeonDeepEquals(self.map, other.map) && + FLTPigeonDeepEquals(self.stringMap, other.stringMap) && + FLTPigeonDeepEquals(self.intMap, other.intMap) && + FLTPigeonDeepEquals(self.enumMap, other.enumMap) && + FLTPigeonDeepEquals(self.objectMap, other.objectMap) && + FLTPigeonDeepEquals(self.listMap, other.listMap) && + FLTPigeonDeepEquals(self.mapMap, other.mapMap); } - (NSUInteger)hash { @@ -731,14 +823,19 @@ - (NSUInteger)hash { @end @implementation FLTAllClassesWrapper -+ (instancetype)makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable FLTAllTypes *)allTypes - classList:(NSArray *)classList - nullableClassList:(nullable NSArray *)nullableClassList - classMap:(NSDictionary *)classMap - nullableClassMap:(nullable NSDictionary *)nullableClassMap { - FLTAllClassesWrapper* pigeonResult = [[FLTAllClassesWrapper alloc] init]; ++ (instancetype) + makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion: + (nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable FLTAllTypes *)allTypes + classList:(NSArray *)classList + nullableClassList: + (nullable NSArray *)nullableClassList + classMap:(NSDictionary *)classMap + nullableClassMap: + (nullable NSDictionary *) + nullableClassMap { + FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; pigeonResult.allNullableTypes = allNullableTypes; pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; pigeonResult.allTypes = allTypes; @@ -781,7 +878,14 @@ - (BOOL)isEqual:(id)object { return NO; } FLTAllClassesWrapper *other = (FLTAllClassesWrapper *)object; - return FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && FLTPigeonDeepEquals(self.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && FLTPigeonDeepEquals(self.allTypes, other.allTypes) && FLTPigeonDeepEquals(self.classList, other.classList) && FLTPigeonDeepEquals(self.nullableClassList, other.nullableClassList) && FLTPigeonDeepEquals(self.classMap, other.classMap) && FLTPigeonDeepEquals(self.nullableClassMap, other.nullableClassMap); + return FLTPigeonDeepEquals(self.allNullableTypes, other.allNullableTypes) && + FLTPigeonDeepEquals(self.allNullableTypesWithoutRecursion, + other.allNullableTypesWithoutRecursion) && + FLTPigeonDeepEquals(self.allTypes, other.allTypes) && + FLTPigeonDeepEquals(self.classList, other.classList) && + FLTPigeonDeepEquals(self.nullableClassList, other.nullableClassList) && + FLTPigeonDeepEquals(self.classMap, other.classMap) && + FLTPigeonDeepEquals(self.nullableClassMap, other.nullableClassMap); } - (NSUInteger)hash { @@ -799,7 +903,7 @@ - (NSUInteger)hash { @implementation FLTTestMessage + (instancetype)makeWithTestList:(nullable NSArray *)testList { - FLTTestMessage* pigeonResult = [[FLTTestMessage alloc] init]; + FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; pigeonResult.testList = testList; return pigeonResult; } @@ -841,23 +945,26 @@ - (nullable id)readValueOfType:(UInt8)type { switch (type) { case 129: { NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + return enumAsNumber == nil ? nil + : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; } case 130: { NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil : [[FLTAnotherEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + return enumAsNumber == nil + ? nil + : [[FLTAnotherEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; } - case 131: + case 131: return [FLTUnusedClass fromList:[self readValue]]; - case 132: + case 132: return [FLTAllTypes fromList:[self readValue]]; - case 133: + case 133: return [FLTAllNullableTypes fromList:[self readValue]]; - case 134: + case 134: return [FLTAllNullableTypesWithoutRecursion fromList:[self readValue]]; - case 135: + case 135: return [FLTAllClassesWrapper fromList:[self readValue]]; - case 136: + case 136: return [FLTTestMessage fromList:[self readValue]]; default: return [super readValueOfType:type]; @@ -916,32 +1023,42 @@ - (FlutterStandardReader *)readerWithData:(NSData *)data { static FlutterStandardMessageCodec *sSharedObject = nil; static dispatch_once_t sPred = 0; dispatch_once(&sPred, ^{ - FLTCoreTestsPigeonCodecReaderWriter *readerWriter = [[FLTCoreTestsPigeonCodecReaderWriter alloc] init]; + FLTCoreTestsPigeonCodecReaderWriter *readerWriter = + [[FLTCoreTestsPigeonCodecReaderWriter alloc] init]; sSharedObject = [FlutterStandardMessageCodec codecWithReaderWriter:readerWriter]; }); return sSharedObject; } -void SetUpFLTHostIntegrationCoreApi(id binaryMessenger, NSObject *api) { +void SetUpFLTHostIntegrationCoreApi(id binaryMessenger, + NSObject *api) { SetUpFLTHostIntegrationCoreApiWithSuffix(binaryMessenger, api, @""); } -void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryMessenger, NSObject *api, NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 ? [NSString stringWithFormat: @".%@", messageChannelSuffix] : @""; - #if TARGET_OS_IOS - NSObject *taskQueue = [binaryMessenger makeBackgroundTaskQueue]; - #else - NSObject *taskQueue = nil; - #endif +void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryMessenger, + NSObject *api, + NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 + ? [NSString stringWithFormat:@".%@", messageChannelSuffix] + : @""; +#if TARGET_OS_IOS + NSObject *taskQueue = [binaryMessenger makeBackgroundTaskQueue]; +#else + NSObject *taskQueue = nil; +#endif /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.noop", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(noopWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(noopWithError:)", api); + NSCAssert([api respondsToSelector:@selector(noopWithError:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(noopWithError:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; [api noopWithError:&error]; @@ -953,13 +1070,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAllTypes", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAllTypes:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllTypes:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoAllTypes:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllTypes:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); @@ -973,13 +1095,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns an error, to test error handling. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.throwError", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwErrorWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwErrorWithError:)", api); + NSCAssert( + [api respondsToSelector:@selector(throwErrorWithError:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwErrorWithError:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; id output = [api throwErrorWithError:&error]; @@ -991,13 +1118,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns an error from a void function, to test error handling. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.throwErrorFromVoid", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwErrorFromVoidWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwErrorFromVoidWithError:)", api); + NSCAssert([api respondsToSelector:@selector(throwErrorFromVoidWithError:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwErrorFromVoidWithError:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; [api throwErrorFromVoidWithError:&error]; @@ -1009,13 +1141,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns a Flutter error, to test error handling. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.throwFlutterError", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwFlutterErrorWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwFlutterErrorWithError:)", api); + NSCAssert([api respondsToSelector:@selector(throwFlutterErrorWithError:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwFlutterErrorWithError:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; id output = [api throwFlutterErrorWithError:&error]; @@ -1027,13 +1164,17 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoInt", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoInt:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoInt:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoInt:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoInt:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; @@ -1047,13 +1188,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoDouble", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoDouble:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoDouble:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoDouble:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoDouble:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; @@ -1067,13 +1213,17 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in boolean. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoBool", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoBool:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoBool:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoBool:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoBool:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; @@ -1087,13 +1237,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in string. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoString:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoString:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoString:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); @@ -1107,13 +1262,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in Uint8List. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoUint8List", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoUint8List:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoUint8List:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoUint8List:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoUint8List:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); @@ -1127,13 +1287,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in generic Object. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoObject", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoObject:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoObject:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoObject:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoObject:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; id arg_anObject = GetNullableObjectAtIndex(args, 0); @@ -1147,13 +1312,17 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoList:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); @@ -1167,13 +1336,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoEnumList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumList:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoEnumList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); @@ -1187,13 +1361,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoClassList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassList:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoClassList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); @@ -1207,13 +1386,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNonNullEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullEnumList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullEnumList:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNonNullEnumList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullEnumList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); @@ -1227,18 +1411,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNonNullClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullClassList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullClassList:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNonNullClassList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullClassList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSArray *output = [api echoNonNullClassList:arg_classList error:&error]; + NSArray *output = [api echoNonNullClassList:arg_classList + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1247,13 +1437,17 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); @@ -1267,18 +1461,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoStringMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoStringMap:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoStringMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoStringMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoStringMap:arg_stringMap error:&error]; + NSDictionary *output = [api echoStringMap:arg_stringMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1287,13 +1487,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoIntMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoIntMap:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoIntMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoIntMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); @@ -1307,18 +1512,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoEnumMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumMap:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoEnumMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnumMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoEnumMap:arg_enumMap error:&error]; + NSDictionary *output = [api echoEnumMap:arg_enumMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1327,18 +1539,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoClassMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassMap:error:)", api); + NSCAssert( + [api respondsToSelector:@selector(echoClassMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoClassMap:arg_classMap error:&error]; + NSDictionary *output = [api echoClassMap:arg_classMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1347,18 +1566,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNonNullStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullStringMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullStringMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNonNullStringMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullStringMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNonNullStringMap:arg_stringMap error:&error]; + NSDictionary *output = [api echoNonNullStringMap:arg_stringMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1367,18 +1592,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNonNullIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullIntMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullIntMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNonNullIntMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullIntMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNonNullIntMap:arg_intMap error:&error]; + NSDictionary *output = [api echoNonNullIntMap:arg_intMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1387,18 +1618,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNonNullEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullEnumMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullEnumMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNonNullEnumMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullEnumMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNonNullEnumMap:arg_enumMap error:&error]; + NSDictionary *output = [api echoNonNullEnumMap:arg_enumMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1407,18 +1645,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNonNullClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNonNullClassMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNonNullClassMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNonNullClassMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNonNullClassMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNonNullClassMap:arg_classMap error:&error]; + NSDictionary *output = + [api echoNonNullClassMap:arg_classMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1427,13 +1672,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed class to test nested class serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoClassWrapper", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoClassWrapper:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoClassWrapper:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoClassWrapper:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoClassWrapper:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllClassesWrapper *arg_wrapper = GetNullableObjectAtIndex(args, 0); @@ -1447,19 +1697,23 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoEnum:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnum:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoEnum:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoEnum:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; FlutterError *error; - FLTAnEnumBox * output = [api echoEnum:arg_anEnum error:&error]; + FLTAnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1468,19 +1722,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherEnum:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherEnum:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoAnotherEnum:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherEnum:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; FlutterError *error; - FLTAnotherEnumBox * output = [api echoAnotherEnum:arg_anotherEnum error:&error]; + FLTAnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1489,13 +1748,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the default string. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNamedDefaultString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNamedDefaultString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNamedDefaultString:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNamedDefaultString:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNamedDefaultString:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); @@ -1509,13 +1773,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoOptionalDefaultDouble", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoOptionalDefaultDouble:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoOptionalDefaultDouble:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoOptionalDefaultDouble:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoOptionalDefaultDouble:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; @@ -1529,13 +1799,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoRequiredInt", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoRequiredInt:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoRequiredInt:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoRequiredInt:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoRequiredInt:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; @@ -1549,13 +1824,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the result of platform-side equality check. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.areAllNullableTypesEqual", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(areAllNullableTypesEqualA:b:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(areAllNullableTypesEqualA:b:error:)", api); + NSCAssert([api respondsToSelector:@selector(areAllNullableTypesEqualA:b:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(areAllNullableTypesEqualA:b:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypes *arg_a = GetNullableObjectAtIndex(args, 0); @@ -1570,13 +1851,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the platform-side hash code for the given object. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.getAllNullableTypesHash", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(getAllNullableTypesHashValue:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(getAllNullableTypesHashValue:error:)", api); + NSCAssert([api respondsToSelector:@selector(getAllNullableTypesHashValue:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(getAllNullableTypesHashValue:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypes *arg_value = GetNullableObjectAtIndex(args, 0); @@ -1590,13 +1877,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAllNullableTypes", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAllNullableTypes:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllNullableTypes:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoAllNullableTypes:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAllNullableTypes:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); @@ -1610,18 +1902,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAllNullableTypesWithoutRecursion:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAllNullableTypesWithoutRecursion:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoAllNullableTypesWithoutRecursion:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAllNullableTypesWithoutRecursion:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FLTAllNullableTypesWithoutRecursion *output = [api echoAllNullableTypesWithoutRecursion:arg_everything error:&error]; + FLTAllNullableTypesWithoutRecursion *output = + [api echoAllNullableTypesWithoutRecursion:arg_everything error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1631,13 +1931,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.extractNestedNullableString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(extractNestedNullableStringFrom:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(extractNestedNullableStringFrom:error:)", api); + NSCAssert([api respondsToSelector:@selector(extractNestedNullableStringFrom:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(extractNestedNullableStringFrom:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllClassesWrapper *arg_wrapper = GetNullableObjectAtIndex(args, 0); @@ -1652,18 +1958,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.createNestedNullableString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(createNestedObjectWithNullableString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(createNestedObjectWithNullableString:error:)", api); + NSCAssert([api respondsToSelector:@selector(createNestedObjectWithNullableString:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(createNestedObjectWithNullableString:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_nullableString = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FLTAllClassesWrapper *output = [api createNestedObjectWithNullableString:arg_nullableString error:&error]; + FLTAllClassesWrapper *output = [api createNestedObjectWithNullableString:arg_nullableString + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1672,20 +1985,30 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in arguments of multiple types. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.sendMultipleNullableTypes", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(sendMultipleNullableTypesABool:anInt:aString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(sendMultipleNullableTypesABool:anInt:aString:error:)", api); + NSCAssert([api respondsToSelector:@selector(sendMultipleNullableTypesABool: + anInt:aString:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(sendMultipleNullableTypesABool:anInt:aString:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); FlutterError *error; - FLTAllNullableTypes *output = [api sendMultipleNullableTypesABool:arg_aNullableBool anInt:arg_aNullableInt aString:arg_aNullableString error:&error]; + FLTAllNullableTypes *output = [api sendMultipleNullableTypesABool:arg_aNullableBool + anInt:arg_aNullableInt + aString:arg_aNullableString + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1694,20 +2017,32 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in arguments of multiple types. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)", api); + NSCAssert([api respondsToSelector:@selector + (sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(sendMultipleNullableTypesWithoutRecursionABool:anInt:aString:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); FlutterError *error; - FLTAllNullableTypesWithoutRecursion *output = [api sendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool anInt:arg_aNullableInt aString:arg_aNullableString error:&error]; + FLTAllNullableTypesWithoutRecursion *output = + [api sendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool + anInt:arg_aNullableInt + aString:arg_aNullableString + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1716,13 +2051,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableInt", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableInt:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableInt:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableInt:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableInt:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 0); @@ -1736,13 +2076,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableDouble", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableDouble:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableDouble:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableDouble:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableDouble:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableDouble = GetNullableObjectAtIndex(args, 0); @@ -1756,13 +2101,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in boolean. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableBool", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableBool:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableBool:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableBool:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableBool:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); @@ -1776,13 +2126,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in string. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableString:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableString:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableString:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 0); @@ -1796,18 +2151,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in Uint8List. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableUint8List", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableUint8List:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableUint8List:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableUint8List:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableUint8List:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_aNullableUint8List = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FlutterStandardTypedData *output = [api echoNullableUint8List:arg_aNullableUint8List error:&error]; + FlutterStandardTypedData *output = [api echoNullableUint8List:arg_aNullableUint8List + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1816,13 +2177,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in generic Object. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableObject", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableObject:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableObject:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableObject:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableObject:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; id arg_aNullableObject = GetNullableObjectAtIndex(args, 0); @@ -1836,13 +2202,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableList:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_aNullableList = GetNullableObjectAtIndex(args, 0); @@ -1856,13 +2227,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableEnumList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableEnumList:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableEnumList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableEnumList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); @@ -1876,18 +2252,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableClassList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableClassList:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableClassList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableClassList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSArray *output = [api echoNullableClassList:arg_classList error:&error]; + NSArray *output = [api echoNullableClassList:arg_classList + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1896,18 +2278,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableNonNullEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullEnumList:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullEnumList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSArray *output = [api echoNullableNonNullEnumList:arg_enumList error:&error]; + NSArray *output = [api echoNullableNonNullEnumList:arg_enumList + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1916,18 +2305,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableNonNullClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassList:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullClassList:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassList:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullClassList:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSArray *output = [api echoNullableNonNullClassList:arg_classList error:&error]; + NSArray *output = [api echoNullableNonNullClassList:arg_classList + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1936,13 +2332,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); @@ -1956,18 +2357,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableStringMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableStringMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableStringMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableStringMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableStringMap:arg_stringMap error:&error]; + NSDictionary *output = [api echoNullableStringMap:arg_stringMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1976,18 +2383,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableIntMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableIntMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableIntMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableIntMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableIntMap:arg_intMap error:&error]; + NSDictionary *output = [api echoNullableIntMap:arg_intMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -1996,18 +2409,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableEnumMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableEnumMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableEnumMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableEnumMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableEnumMap:arg_enumMap error:&error]; + NSDictionary *output = [api echoNullableEnumMap:arg_enumMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2016,18 +2436,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableClassMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableClassMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableClassMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableClassMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableClassMap:arg_classMap error:&error]; + NSDictionary *output = + [api echoNullableClassMap:arg_classMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2036,18 +2463,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableNonNullStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullStringMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullStringMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullStringMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullStringMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableNonNullStringMap:arg_stringMap error:&error]; + NSDictionary *output = + [api echoNullableNonNullStringMap:arg_stringMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2056,18 +2490,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableNonNullIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullIntMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullIntMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullIntMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullIntMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableNonNullIntMap:arg_intMap error:&error]; + NSDictionary *output = [api echoNullableNonNullIntMap:arg_intMap + error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2076,18 +2517,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableNonNullEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullEnumMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullEnumMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullEnumMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableNonNullEnumMap:arg_enumMap error:&error]; + NSDictionary *output = + [api echoNullableNonNullEnumMap:arg_enumMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2096,18 +2545,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableNonNullClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassMap:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableNonNullClassMap:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableNonNullClassMap:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableNonNullClassMap:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); FlutterError *error; - NSDictionary *output = [api echoNullableNonNullClassMap:arg_classMap error:&error]; + NSDictionary *output = + [api echoNullableNonNullClassMap:arg_classMap error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2115,18 +2572,23 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNullableEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNullableEnum:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNullableEnum:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNullableEnum:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNullableEnum:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FLTAnEnumBox * output = [api echoNullableEnum:arg_anEnum error:&error]; + FLTAnEnumBox *output = [api echoNullableEnum:arg_anEnum error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2134,18 +2596,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherNullableEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherNullableEnum:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherNullableEnum:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoAnotherNullableEnum:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherNullableEnum:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); FlutterError *error; - FLTAnotherEnumBox * output = [api echoAnotherNullableEnum:arg_anotherEnum error:&error]; + FLTAnotherEnumBox *output = [api echoAnotherNullableEnum:arg_anotherEnum error:&error]; callback(wrapResult(output, error)); }]; } else { @@ -2154,13 +2622,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoOptionalNullableInt", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoOptionalNullableInt:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoOptionalNullableInt:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoOptionalNullableInt:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoOptionalNullableInt:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 0); @@ -2174,13 +2648,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in string. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoNamedNullableString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoNamedNullableString:error:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoNamedNullableString:error:)", api); + NSCAssert([api respondsToSelector:@selector(echoNamedNullableString:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoNamedNullableString:error:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 0); @@ -2195,13 +2675,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.noopAsync", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(noopAsyncWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(noopAsyncWithCompletion:)", api); + NSCAssert([api respondsToSelector:@selector(noopAsyncWithCompletion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(noopAsyncWithCompletion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api noopAsyncWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -2213,19 +2698,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncInt", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncInt:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncInt:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncInt:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncInt:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; - [api echoAsyncInt:arg_anInt completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncInt:arg_anInt + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2233,19 +2724,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncDouble", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncDouble:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncDouble:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncDouble:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncDouble:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; - [api echoAsyncDouble:arg_aDouble completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncDouble:arg_aDouble + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2253,19 +2750,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in boolean asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncBool", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncBool:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncBool:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncBool:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncBool:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; - [api echoAsyncBool:arg_aBool completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncBool:arg_aBool + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2273,19 +2776,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed string asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncString:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncString:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncString:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoAsyncString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncString:arg_aString + completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2293,19 +2802,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in Uint8List asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncUint8List", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncUint8List:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncUint8List:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncUint8List:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncUint8List:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); - [api echoAsyncUint8List:arg_aUint8List completion:^(FlutterStandardTypedData *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncUint8List:arg_aUint8List + completion:^(FlutterStandardTypedData *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2313,19 +2829,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in generic Object asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncObject", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncObject:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncObject:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncObject:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncObject:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; id arg_anObject = GetNullableObjectAtIndex(args, 0); - [api echoAsyncObject:arg_anObject completion:^(id _Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncObject:arg_anObject + completion:^(id _Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2333,19 +2855,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api echoAsyncList:arg_list completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncList:arg_list + completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2353,19 +2881,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncEnumList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncEnumList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncEnumList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2373,19 +2908,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncClassList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncClassList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncClassList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2393,19 +2935,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api echoAsyncMap:arg_map completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncMap:arg_map + completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2413,19 +2961,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncStringMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncStringMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncStringMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncStringMap:arg_stringMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2433,19 +2988,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncIntMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncIntMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncIntMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2453,19 +3015,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncEnumMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncEnumMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncEnumMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); + [api echoAsyncEnumMap:arg_enumMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2473,19 +3043,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncClassMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncClassMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncClassMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api echoAsyncClassMap:arg_classMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2493,20 +3071,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncEnum:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncEnum:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; - [api echoAsyncEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncEnum:arg_anEnum + completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2514,20 +3098,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherAsyncEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherAsyncEnum:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherAsyncEnum:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; - [api echoAnotherAsyncEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAnotherAsyncEnum:arg_anotherEnum + completion:^(FLTAnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2535,13 +3126,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Responds with an error from an async function returning a value. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.throwAsyncError", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncErrorWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwAsyncErrorWithCompletion:)", api); + NSCAssert([api respondsToSelector:@selector(throwAsyncErrorWithCompletion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwAsyncErrorWithCompletion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api throwAsyncErrorWithCompletion:^(id _Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -2553,13 +3149,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Responds with an error from an async void function. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.throwAsyncErrorFromVoid", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncErrorFromVoidWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwAsyncErrorFromVoidWithCompletion:)", api); + NSCAssert([api respondsToSelector:@selector(throwAsyncErrorFromVoidWithCompletion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwAsyncErrorFromVoidWithCompletion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api throwAsyncErrorFromVoidWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -2571,15 +3173,21 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Responds with a Flutter error from an async function returning a value. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.throwAsyncFlutterError", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(throwAsyncFlutterErrorWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(throwAsyncFlutterErrorWithCompletion:)", api); + NSCAssert([api respondsToSelector:@selector(throwAsyncFlutterErrorWithCompletion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(throwAsyncFlutterErrorWithCompletion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api throwAsyncFlutterErrorWithCompletion:^(id _Nullable output, FlutterError *_Nullable error) { + [api throwAsyncFlutterErrorWithCompletion:^(id _Nullable output, + FlutterError *_Nullable error) { callback(wrapResult(output, error)); }]; }]; @@ -2589,19 +3197,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test async serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncAllTypes", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncAllTypes:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncAllTypes:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncAllTypes:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncAllTypes:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncAllTypes:arg_everything completion:^(FLTAllTypes *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncAllTypes:arg_everything + completion:^(FLTAllTypes *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2609,19 +3223,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableAllNullableTypes:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableAllNullableTypes:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableAllNullableTypes:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableAllNullableTypes:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableAllNullableTypes:arg_everything completion:^(FLTAllNullableTypes *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableAllNullableTypes:arg_everything + completion:^(FLTAllNullableTypes *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2629,19 +3251,30 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed object, to test serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi." + @"echoAsyncNullableAllNullableTypesWithoutRecursion", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)", api); + NSCAssert([api respondsToSelector:@selector + (echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableAllNullableTypesWithoutRecursion:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableAllNullableTypesWithoutRecursion:arg_everything completion:^(FLTAllNullableTypesWithoutRecursion *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableAllNullableTypesWithoutRecursion:arg_everything + completion:^(FLTAllNullableTypesWithoutRecursion + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2649,19 +3282,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in int asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableInt", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableInt:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableInt:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableInt:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableInt:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_anInt = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableInt:arg_anInt completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableInt:arg_anInt + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2669,19 +3308,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns passed in double asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableDouble", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableDouble:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableDouble:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableDouble:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableDouble:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aDouble = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableDouble:arg_aDouble completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableDouble:arg_aDouble + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2689,19 +3335,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in boolean asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableBool", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableBool:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableBool:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableBool:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableBool:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aBool = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableBool:arg_aBool completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableBool:arg_aBool + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2709,19 +3361,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed string asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableString:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableString:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableString:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableString:arg_aString + completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2729,19 +3388,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in Uint8List asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableUint8List", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableUint8List:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableUint8List:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableUint8List:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableUint8List:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_aUint8List = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableUint8List:arg_aUint8List completion:^(FlutterStandardTypedData *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableUint8List:arg_aUint8List + completion:^(FlutterStandardTypedData *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2749,19 +3416,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed in generic Object asynchronously. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableObject", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableObject:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableObject:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableObject:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableObject:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; id arg_anObject = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableObject:arg_anObject completion:^(id _Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableObject:arg_anObject + completion:^(id _Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2769,19 +3443,25 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableList:arg_list completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableList:arg_list + completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2789,19 +3469,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableEnumList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableEnumList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2809,19 +3497,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed list, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableClassList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableClassList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2829,19 +3525,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableMap:arg_map completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableMap:arg_map + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2849,19 +3552,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableStringMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableStringMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableStringMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableStringMap:arg_stringMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2869,19 +3580,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableIntMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableIntMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableIntMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAsyncNullableIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2889,19 +3608,29 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableEnumMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnumMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableEnumMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableEnumMap:arg_enumMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2909,19 +3638,29 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed map, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableClassMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableClassMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableClassMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api echoAsyncNullableClassMap:arg_classMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2929,19 +3668,26 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAsyncNullableEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAsyncNullableEnum:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAsyncNullableEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAsyncNullableEnum:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); - [api echoAsyncNullableEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api + echoAsyncNullableEnum:arg_anEnum + completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2949,19 +3695,27 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } /// Returns the passed enum, to test asynchronous serialization and deserialization. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherAsyncNullableEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncNullableEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherAsyncNullableEnum:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncNullableEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherAsyncNullableEnum:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); - [api echoAnotherAsyncNullableEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoAnotherAsyncNullableEnum:arg_anotherEnum + completion:^(FLTAnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -2970,13 +3724,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.defaultIsMainThread", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(defaultIsMainThreadWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(defaultIsMainThreadWithError:)", api); + NSCAssert([api respondsToSelector:@selector(defaultIsMainThreadWithError:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(defaultIsMainThreadWithError:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; NSNumber *output = [api defaultIsMainThreadWithError:&error]; @@ -2989,18 +3748,24 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM /// Returns true if the handler is run on a non-main thread, which should be /// true for any platform with TaskQueue support. { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.taskQueueIsBackgroundThread", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec() - #ifdef TARGET_OS_IOS - taskQueue:taskQueue - #endif - ]; + codec:FLTGetCoreTestsCodec() +#ifdef TARGET_OS_IOS + taskQueue:taskQueue +#endif + ]; if (api) { - NSCAssert([api respondsToSelector:@selector(taskQueueIsBackgroundThreadWithError:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(taskQueueIsBackgroundThreadWithError:)", api); + NSCAssert([api respondsToSelector:@selector(taskQueueIsBackgroundThreadWithError:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(taskQueueIsBackgroundThreadWithError:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; NSNumber *output = [api taskQueueIsBackgroundThreadWithError:&error]; @@ -3011,13 +3776,18 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterNoop", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterNoopWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterNoopWithCompletion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterNoopWithCompletion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterNoopWithCompletion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api callFlutterNoopWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -3028,15 +3798,21 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterThrowError", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterThrowErrorWithCompletion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorWithCompletion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterThrowErrorWithCompletion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { - [api callFlutterThrowErrorWithCompletion:^(id _Nullable output, FlutterError *_Nullable error) { + [api callFlutterThrowErrorWithCompletion:^(id _Nullable output, + FlutterError *_Nullable error) { callback(wrapResult(output, error)); }]; }]; @@ -3045,13 +3821,19 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterThrowErrorFromVoid", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorFromVoidWithCompletion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterThrowErrorFromVoidWithCompletion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterThrowErrorFromVoidWithCompletion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterThrowErrorFromVoidWithCompletion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api callFlutterThrowErrorFromVoidWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -3062,918 +3844,1338 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoAllTypes", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllTypes:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAllTypes:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllTypes:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAllTypes:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllTypes:arg_everything completion:^(FLTAllTypes *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAllTypes:arg_everything + completion:^(FLTAllTypes *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoAllNullableTypes", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllNullableTypes:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAllNullableTypes:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllNullableTypes:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAllNullableTypes:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypes *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllNullableTypes:arg_everything completion:^(FLTAllNullableTypes *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAllNullableTypes:arg_everything + completion:^(FLTAllNullableTypes *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)", api); + NSCAssert([api respondsToSelector:@selector + (callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterSendMultipleNullableTypesABool:anInt:aString:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); - [api callFlutterSendMultipleNullableTypesABool:arg_aNullableBool anInt:arg_aNullableInt aString:arg_aNullableString completion:^(FLTAllNullableTypes *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterSendMultipleNullableTypesABool:arg_aNullableBool + anInt:arg_aNullableInt + aString:arg_aNullableString + completion:^(FLTAllNullableTypes *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi." + @"callFlutterEchoAllNullableTypesWithoutRecursion", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAllNullableTypesWithoutRecursion:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAllNullableTypesWithoutRecursion:completion:)", api); + NSCAssert([api respondsToSelector:@selector + (callFlutterEchoAllNullableTypesWithoutRecursion:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAllNullableTypesWithoutRecursion:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAllNullableTypesWithoutRecursion *arg_everything = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAllNullableTypesWithoutRecursion:arg_everything completion:^(FLTAllNullableTypesWithoutRecursion *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAllNullableTypesWithoutRecursion:arg_everything + completion:^(FLTAllNullableTypesWithoutRecursion + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + @"callFlutterSendMultipleNullableTypesWithoutRecursion", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterSendMultipleNullableTypesWithoutRecursionABool:anInt:aString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterSendMultipleNullableTypesWithoutRecursionABool:anInt:aString:completion:)", api); + NSCAssert( + [api respondsToSelector:@selector + (callFlutterSendMultipleNullableTypesWithoutRecursionABool: + anInt:aString:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterSendMultipleNullableTypesWithoutRecursionABool:anInt:aString:" + @"completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aNullableBool = GetNullableObjectAtIndex(args, 0); NSNumber *arg_aNullableInt = GetNullableObjectAtIndex(args, 1); NSString *arg_aNullableString = GetNullableObjectAtIndex(args, 2); - [api callFlutterSendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool anInt:arg_aNullableInt aString:arg_aNullableString completion:^(FLTAllNullableTypesWithoutRecursion *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterSendMultipleNullableTypesWithoutRecursionABool:arg_aNullableBool + anInt:arg_aNullableInt + aString:arg_aNullableString + completion:^( + FLTAllNullableTypesWithoutRecursion + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoBool", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoBool:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoBool:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoBool:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoBool:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; BOOL arg_aBool = [GetNullableObjectAtIndex(args, 0) boolValue]; - [api callFlutterEchoBool:arg_aBool completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoBool:arg_aBool + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoInt", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoInt:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoInt:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoInt:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoInt:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSInteger arg_anInt = [GetNullableObjectAtIndex(args, 0) integerValue]; - [api callFlutterEchoInt:arg_anInt completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoInt:arg_anInt + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoDouble", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoDouble:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoDouble:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoDouble:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoDouble:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; double arg_aDouble = [GetNullableObjectAtIndex(args, 0) doubleValue]; - [api callFlutterEchoDouble:arg_aDouble completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoDouble:arg_aDouble + completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoString:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoString:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoString:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoString:arg_aString + completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoUint8List", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoUint8List:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoUint8List:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoUint8List:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoUint8List:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoUint8List:arg_list completion:^(FlutterStandardTypedData *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoUint8List:arg_list + completion:^(FlutterStandardTypedData *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoList:arg_list completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoList:arg_list + completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoEnumList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoEnumList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoClassList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoClassList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNonNullEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullEnumList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullEnumList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNonNullEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNonNullClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullClassList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullClassList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNonNullClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoMap:arg_map completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoMap:arg_map + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoStringMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoStringMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoStringMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoStringMap:arg_stringMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoIntMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoIntMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoIntMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoEnumMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnumMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoEnumMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); + [api + callFlutterEchoEnumMap:arg_enumMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoClassMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoClassMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoClassMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoClassMap:arg_classMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNonNullStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullStringMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullStringMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullStringMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNonNullStringMap:arg_stringMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNonNullIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullIntMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullIntMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullIntMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNonNullIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullEnumMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullEnumMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullEnumMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullEnumMap:arg_enumMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNonNullClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNonNullClassMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNonNullClassMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNonNullClassMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNonNullClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNonNullClassMap:arg_classMap + completion:^(NSDictionary + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoEnum:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoEnum:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; - [api callFlutterEchoEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoEnum:arg_anEnum + completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoAnotherEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAnotherEnum:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAnotherEnum:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; - [api callFlutterEchoAnotherEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAnotherEnum:arg_anotherEnum + completion:^(FLTAnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableBool", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableBool:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableBool:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableBool:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableBool:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aBool = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableBool:arg_aBool completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableBool:arg_aBool + completion:^(NSNumber *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableInt", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableInt:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableInt:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableInt:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableInt:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_anInt = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableInt:arg_anInt completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableInt:arg_anInt + completion:^(NSNumber *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableDouble", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableDouble:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableDouble:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableDouble:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableDouble:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSNumber *arg_aDouble = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableDouble:arg_aDouble completion:^(NSNumber *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableDouble:arg_aDouble + completion:^(NSNumber *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableString:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableString:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableString:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableString:arg_aString + completion:^(NSString *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableUint8List", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableUint8List:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableUint8List:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableUint8List:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableUint8List:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FlutterStandardTypedData *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableUint8List:arg_list completion:^(FlutterStandardTypedData *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableUint8List:arg_list + completion:^(FlutterStandardTypedData *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_list = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableList:arg_list completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableList:arg_list + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableEnumList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableEnumList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableClassList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassList:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableClassList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableClassList:arg_classList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullEnumList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumList: + completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullEnumList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_enumList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullEnumList:arg_enumList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableNonNullEnumList:arg_enumList + completion:^(NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassList:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullClassList:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassList: + completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullClassList:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSArray *arg_classList = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullClassList:arg_classList completion:^(NSArray *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableNonNullClassList:arg_classList + completion:^( + NSArray *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_map = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableMap:arg_map completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableMap:arg_map + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableStringMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableStringMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableStringMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableStringMap:arg_stringMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableIntMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableIntMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableIntMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableIntMap:arg_intMap + completion:^(NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableEnumMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnumMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableEnumMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableEnumMap:arg_enumMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableClassMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableClassMap:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableClassMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableClassMap:arg_classMap + completion:^(NSDictionary + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullStringMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullStringMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullStringMap: + completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullStringMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_stringMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullStringMap:arg_stringMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api + callFlutterEchoNullableNonNullStringMap:arg_stringMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullIntMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullIntMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullIntMap: + completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullIntMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSDictionary *arg_intMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullIntMap:arg_intMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableNonNullIntMap:arg_intMap + completion:^( + NSDictionary *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullEnumMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullEnumMap: + completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullEnumMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_enumMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullEnumMap:arg_enumMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_enumMap = + GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoNullableNonNullEnumMap:arg_enumMap + completion:^(NSDictionary + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassMap:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableNonNullClassMap:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableNonNullClassMap: + completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableNonNullClassMap:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - NSDictionary *arg_classMap = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableNonNullClassMap:arg_classMap completion:^(NSDictionary *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + NSDictionary *arg_classMap = + GetNullableObjectAtIndex(args, 0); + [api + callFlutterEchoNullableNonNullClassMap:arg_classMap + completion:^(NSDictionary + *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoNullableEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoNullableEnum:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoNullableEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoNullableEnum:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *arg_anEnum = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoNullableEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoNullableEnum:arg_anEnum + completion:^(FLTAnEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherNullableEnum:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterEchoAnotherNullableEnum:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherNullableEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAnotherNullableEnum:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); - [api callFlutterEchoAnotherNullableEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterEchoAnotherNullableEnum:arg_anotherEnum + completion:^(FLTAnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName: + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterSmallApiEchoString", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(callFlutterSmallApiEchoString:completion:)], @"FLTHostIntegrationCoreApi api (%@) doesn't respond to @selector(callFlutterSmallApiEchoString:completion:)", api); + NSCAssert([api respondsToSelector:@selector(callFlutterSmallApiEchoString:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterSmallApiEchoString:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api callFlutterSmallApiEchoString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api callFlutterSmallApiEchoString:arg_aString + completion:^(NSString *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; @@ -3990,1067 +5192,1510 @@ @implementation FLTFlutterIntegrationCoreApi - (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { return [self initWithBinaryMessenger:binaryMessenger messageChannelSuffix:@""]; } -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger messageChannelSuffix:(nullable NSString*)messageChannelSuffix{ +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger + messageChannelSuffix:(nullable NSString *)messageChannelSuffix { self = [self init]; if (self) { _binaryMessenger = binaryMessenger; - _messageChannelSuffix = [messageChannelSuffix length] == 0 ? @"" : [NSString stringWithFormat: @".%@", messageChannelSuffix]; + _messageChannelSuffix = [messageChannelSuffix length] == 0 + ? @"" + : [NSString stringWithFormat:@".%@", messageChannelSuffix]; } return self; } - (void)noopWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop", _messageChannelSuffix]; + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:nil reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:nil + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; } - (void)throwErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError", _messageChannelSuffix]; + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:nil reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - id output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:nil + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + id output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } - (void)throwErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid", _messageChannelSuffix]; + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.throwErrorFromVoid", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:nil reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:nil + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; } -- (void)echoAllTypes:(FLTAllTypes *)arg_everything completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes", _messageChannelSuffix]; +- (void)echoAllTypes:(FLTAllTypes *)arg_everything + completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_everything ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAllTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_everything ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAllTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoAllNullableTypes:(nullable FLTAllNullableTypes *)arg_everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes", _messageChannelSuffix]; +- (void)echoAllNullableTypes:(nullable FLTAllNullableTypes *)arg_everything + completion:(void (^)(FLTAllNullableTypes *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoAllNullableTypes", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_everything ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_everything ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)arg_aNullableBool anInt:(nullable NSNumber *)arg_aNullableInt aString:(nullable NSString *)arg_aNullableString completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes", _messageChannelSuffix]; +- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)arg_aNullableBool + anInt:(nullable NSNumber *)arg_aNullableInt + aString:(nullable NSString *)arg_aNullableString + completion:(void (^)(FLTAllNullableTypes *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.sendMultipleNullableTypes", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], arg_aNullableString ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ + arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], + arg_aNullableString ?: [NSNull null] + ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAllNullableTypes *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)arg_everything completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion", _messageChannelSuffix]; +- (void)echoAllNullableTypesWithoutRecursion: + (nullable FLTAllNullableTypesWithoutRecursion *)arg_everything + completion: + (void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_everything ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAllNullableTypesWithoutRecursion *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_everything ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAllNullableTypesWithoutRecursion *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)arg_aNullableBool anInt:(nullable NSNumber *)arg_aNullableInt aString:(nullable NSString *)arg_aNullableString completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion", _messageChannelSuffix]; +- (void)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)arg_aNullableBool + anInt:(nullable NSNumber *)arg_aNullableInt + aString:(nullable NSString *)arg_aNullableString + completion: + (void (^)( + FLTAllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + @"sendMultipleNullableTypesWithoutRecursion", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], arg_aNullableString ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAllNullableTypesWithoutRecursion *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ + arg_aNullableBool ?: [NSNull null], arg_aNullableInt ?: [NSNull null], + arg_aNullableString ?: [NSNull null] + ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAllNullableTypesWithoutRecursion *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoBool:(BOOL)arg_aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool", _messageChannelSuffix]; +- (void)echoBool:(BOOL)arg_aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[@(arg_aBool)] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ @(arg_aBool) ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoInt:(NSInteger)arg_anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt", _messageChannelSuffix]; +- (void)echoInt:(NSInteger)arg_anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[@(arg_anInt)] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ @(arg_anInt) ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoDouble:(double)arg_aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble", _messageChannelSuffix]; +- (void)echoDouble:(double)arg_aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[@(arg_aDouble)] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ @(arg_aDouble) ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoString:(NSString *)arg_aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString", _messageChannelSuffix]; +- (void)echoString:(NSString *)arg_aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_aString ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aString ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoUint8List:(FlutterStandardTypedData *)arg_list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List", _messageChannelSuffix]; +- (void)echoUint8List:(FlutterStandardTypedData *)arg_list + completion: + (void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_list ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FlutterStandardTypedData *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_list ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FlutterStandardTypedData *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoList:(NSArray *)arg_list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList", _messageChannelSuffix]; +- (void)echoList:(NSArray *)arg_list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_list ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_list ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoEnumList:(NSArray *)arg_enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList", _messageChannelSuffix]; +- (void)echoEnumList:(NSArray *)arg_enumList + completion: + (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_enumList ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoClassList:(NSArray *)arg_classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList", _messageChannelSuffix]; +- (void)echoClassList:(NSArray *)arg_classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_classList ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullEnumList:(NSArray *)arg_enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList", _messageChannelSuffix]; +- (void)echoNonNullEnumList:(NSArray *)arg_enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNonNullEnumList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_enumList ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullClassList:(NSArray *)arg_classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList", _messageChannelSuffix]; +- (void)echoNonNullClassList:(NSArray *)arg_classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNonNullClassList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_classList ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoMap:(NSDictionary *)arg_map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap", _messageChannelSuffix]; +- (void)echoMap:(NSDictionary *)arg_map + completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_map ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_map ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoStringMap:(NSDictionary *)arg_stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap", _messageChannelSuffix]; +- (void)echoStringMap:(NSDictionary *)arg_stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_stringMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoIntMap:(NSDictionary *)arg_intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap", _messageChannelSuffix]; +- (void)echoIntMap:(NSDictionary *)arg_intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_intMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoEnumMap:(NSDictionary *)arg_enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap", _messageChannelSuffix]; +- (void)echoEnumMap:(NSDictionary *)arg_enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_enumMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoClassMap:(NSDictionary *)arg_classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap", _messageChannelSuffix]; +- (void)echoClassMap:(NSDictionary *)arg_classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_classMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullStringMap:(NSDictionary *)arg_stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap", _messageChannelSuffix]; +- (void)echoNonNullStringMap:(NSDictionary *)arg_stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNonNullStringMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_stringMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullIntMap:(NSDictionary *)arg_intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap", _messageChannelSuffix]; +- (void)echoNonNullIntMap:(NSDictionary *)arg_intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNonNullIntMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_intMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullEnumMap:(NSDictionary *)arg_enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap", _messageChannelSuffix]; +- (void)echoNonNullEnumMap:(NSDictionary *)arg_enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNonNullEnumMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_enumMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNonNullClassMap:(NSDictionary *)arg_classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap", _messageChannelSuffix]; +- (void)echoNonNullClassMap:(NSDictionary *)arg_classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNonNullClassMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_classMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoEnum:(FLTAnEnum)arg_anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum", _messageChannelSuffix]; +- (void)echoEnum:(FLTAnEnum)arg_anEnum + completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[[[FLTAnEnumBox alloc] initWithValue:arg_anEnum]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ [[FLTAnEnumBox alloc] initWithValue:arg_anEnum] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoAnotherEnum:(FLTAnotherEnum)arg_anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum", _messageChannelSuffix]; +- (void)echoAnotherEnum:(FLTAnotherEnum)arg_anotherEnum + completion: + (void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[[[FLTAnotherEnumBox alloc] initWithValue:arg_anotherEnum]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ [[FLTAnotherEnumBox alloc] initWithValue:arg_anotherEnum] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableBool:(nullable NSNumber *)arg_aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool", _messageChannelSuffix]; +- (void)echoNullableBool:(nullable NSNumber *)arg_aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_aBool ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aBool ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableInt:(nullable NSNumber *)arg_anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt", _messageChannelSuffix]; +- (void)echoNullableInt:(nullable NSNumber *)arg_anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_anInt ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_anInt ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableDouble:(nullable NSNumber *)arg_aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble", _messageChannelSuffix]; +- (void)echoNullableDouble:(nullable NSNumber *)arg_aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableDouble", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_aDouble ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aDouble ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSNumber *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableString:(nullable NSString *)arg_aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString", _messageChannelSuffix]; +- (void)echoNullableString:(nullable NSString *)arg_aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableString", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_aString ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aString ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)arg_list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List", _messageChannelSuffix]; +- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)arg_list + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableUint8List", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_list ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FlutterStandardTypedData *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_list ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FlutterStandardTypedData *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableList:(nullable NSArray *)arg_list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList", _messageChannelSuffix]; +- (void)echoNullableList:(nullable NSArray *)arg_list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_list ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_list ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableEnumList:(nullable NSArray *)arg_enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList", _messageChannelSuffix]; +- (void)echoNullableEnumList:(nullable NSArray *)arg_enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableEnumList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_enumList ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableClassList:(nullable NSArray *)arg_classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList", _messageChannelSuffix]; +- (void)echoNullableClassList:(nullable NSArray *)arg_classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableClassList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_classList ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullEnumList:(nullable NSArray *)arg_enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList", _messageChannelSuffix]; +- (void)echoNullableNonNullEnumList:(nullable NSArray *)arg_enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableNonNullEnumList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_enumList ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullClassList:(nullable NSArray *)arg_classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList", _messageChannelSuffix]; +- (void)echoNullableNonNullClassList:(nullable NSArray *)arg_classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableNonNullClassList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_classList ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSArray *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classList ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSArray *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableMap:(nullable NSDictionary *)arg_map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap", _messageChannelSuffix]; +- (void)echoNullableMap:(nullable NSDictionary *)arg_map + completion: + (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_map ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_map ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableStringMap:(nullable NSDictionary *)arg_stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap", _messageChannelSuffix]; +- (void)echoNullableStringMap:(nullable NSDictionary *)arg_stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableStringMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_stringMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableIntMap:(nullable NSDictionary *)arg_intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap", _messageChannelSuffix]; +- (void)echoNullableIntMap:(nullable NSDictionary *)arg_intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableIntMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_intMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableEnumMap:(nullable NSDictionary *)arg_enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap", _messageChannelSuffix]; +- (void)echoNullableEnumMap:(nullable NSDictionary *)arg_enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableEnumMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_enumMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableClassMap:(nullable NSDictionary *)arg_classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap", _messageChannelSuffix]; +- (void)echoNullableClassMap: + (nullable NSDictionary *)arg_classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableClassMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_classMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)arg_stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap", _messageChannelSuffix]; +- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)arg_stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableNonNullStringMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_stringMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_stringMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)arg_intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap", _messageChannelSuffix]; +- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)arg_intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableNonNullIntMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_intMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_intMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)arg_enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap", _messageChannelSuffix]; +- (void) + echoNullableNonNullEnumMap:(nullable NSDictionary *)arg_enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableNonNullEnumMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_enumMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_enumMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableNonNullClassMap:(nullable NSDictionary *)arg_classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap", _messageChannelSuffix]; +- (void)echoNullableNonNullClassMap: + (nullable NSDictionary *)arg_classMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoNullableNonNullClassMap", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_classMap ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSDictionary *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_classMap ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSDictionary *output = + reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoNullableEnum:(nullable FLTAnEnumBox *)arg_anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum", _messageChannelSuffix]; +- (void)echoNullableEnum:(nullable FLTAnEnumBox *)arg_anEnum + completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_anEnum == nil ? [NSNull null] : arg_anEnum] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_anEnum == nil ? [NSNull null] : arg_anEnum ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAnEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)arg_anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum", _messageChannelSuffix]; +- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)arg_anotherEnum + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoAnotherNullableEnum", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_anotherEnum == nil ? [NSNull null] : arg_anotherEnum] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_anotherEnum == nil ? [NSNull null] : arg_anotherEnum ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync", _messageChannelSuffix]; + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:nil reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion([FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - completion(nil); - } - } else { - completion(createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:nil + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion([FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + completion(nil); + } + } else { + completion(createConnectionError(channelName)); + } + }]; } -- (void)echoAsyncString:(NSString *)arg_aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString", _messageChannelSuffix]; +- (void)echoAsyncString:(NSString *)arg_aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_aString ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aString ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } @end -void SetUpFLTHostTrivialApi(id binaryMessenger, NSObject *api) { +void SetUpFLTHostTrivialApi(id binaryMessenger, + NSObject *api) { SetUpFLTHostTrivialApiWithSuffix(binaryMessenger, api, @""); } -void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger, NSObject *api, NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 ? [NSString stringWithFormat: @".%@", messageChannelSuffix] : @""; +void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger, + NSObject *api, + NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 + ? [NSString stringWithFormat:@".%@", messageChannelSuffix] + : @""; { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(noopWithError:)], @"FLTHostTrivialApi api (%@) doesn't respond to @selector(noopWithError:)", api); + NSCAssert([api respondsToSelector:@selector(noopWithError:)], + @"FLTHostTrivialApi api (%@) doesn't respond to @selector(noopWithError:)", api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { FlutterError *error; [api noopWithError:&error]; @@ -5061,39 +6706,54 @@ void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger } } } -void SetUpFLTHostSmallApi(id binaryMessenger, NSObject *api) { +void SetUpFLTHostSmallApi(id binaryMessenger, + NSObject *api) { SetUpFLTHostSmallApiWithSuffix(binaryMessenger, api, @""); } -void SetUpFLTHostSmallApiWithSuffix(id binaryMessenger, NSObject *api, NSString *messageChannelSuffix) { - messageChannelSuffix = messageChannelSuffix.length > 0 ? [NSString stringWithFormat: @".%@", messageChannelSuffix] : @""; +void SetUpFLTHostSmallApiWithSuffix(id binaryMessenger, + NSObject *api, + NSString *messageChannelSuffix) { + messageChannelSuffix = messageChannelSuffix.length > 0 + ? [NSString stringWithFormat:@".%@", messageChannelSuffix] + : @""; { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(echoString:completion:)], @"FLTHostSmallApi api (%@) doesn't respond to @selector(echoString:completion:)", api); + NSCAssert([api respondsToSelector:@selector(echoString:completion:)], + @"FLTHostSmallApi api (%@) doesn't respond to @selector(echoString:completion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; NSString *arg_aString = GetNullableObjectAtIndex(args, 0); - [api echoString:arg_aString completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { - callback(wrapResult(output, error)); - }]; + [api echoString:arg_aString + completion:^(NSString *_Nullable output, FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; }]; } else { [channel setMessageHandler:nil]; } } { - FlutterBasicMessageChannel *channel = - [[FlutterBasicMessageChannel alloc] - initWithName:[NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid", messageChannelSuffix] + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostSmallApi.voidVoid", + messageChannelSuffix] binaryMessenger:binaryMessenger - codec:FLTGetCoreTestsCodec()]; + codec:FLTGetCoreTestsCodec()]; if (api) { - NSCAssert([api respondsToSelector:@selector(voidVoidWithCompletion:)], @"FLTHostSmallApi api (%@) doesn't respond to @selector(voidVoidWithCompletion:)", api); + NSCAssert([api respondsToSelector:@selector(voidVoidWithCompletion:)], + @"FLTHostSmallApi api (%@) doesn't respond to @selector(voidVoidWithCompletion:)", + api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { [api voidVoidWithCompletion:^(FlutterError *_Nullable error) { callback(wrapResult(nil, error)); @@ -5114,53 +6774,67 @@ @implementation FLTFlutterSmallApi - (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger { return [self initWithBinaryMessenger:binaryMessenger messageChannelSuffix:@""]; } -- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger messageChannelSuffix:(nullable NSString*)messageChannelSuffix{ +- (instancetype)initWithBinaryMessenger:(NSObject *)binaryMessenger + messageChannelSuffix:(nullable NSString *)messageChannelSuffix { self = [self init]; if (self) { _binaryMessenger = binaryMessenger; - _messageChannelSuffix = [messageChannelSuffix length] == 0 ? @"" : [NSString stringWithFormat: @".%@", messageChannelSuffix]; + _messageChannelSuffix = [messageChannelSuffix length] == 0 + ? @"" + : [NSString stringWithFormat:@".%@", messageChannelSuffix]; } return self; } -- (void)echoWrappedList:(FLTTestMessage *)arg_msg completion:(void (^)(FLTTestMessage *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList", _messageChannelSuffix]; +- (void)echoWrappedList:(FLTTestMessage *)arg_msg + completion:(void (^)(FLTTestMessage *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_msg ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - FLTTestMessage *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_msg ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTTestMessage *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } -- (void)echoString:(NSString *)arg_aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { - NSString *channelName = [NSString stringWithFormat:@"%@%@", @"dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString", _messageChannelSuffix]; +- (void)echoString:(NSString *)arg_aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString", + _messageChannelSuffix]; FlutterBasicMessageChannel *channel = - [FlutterBasicMessageChannel - messageChannelWithName:channelName - binaryMessenger:self.binaryMessenger - codec:FLTGetCoreTestsCodec()]; - [channel sendMessage:@[arg_aString ?: [NSNull null]] reply:^(NSArray *reply) { - if (reply != nil) { - if (reply.count > 1) { - completion(nil, [FlutterError errorWithCode:reply[0] message:reply[1] details:reply[2]]); - } else { - NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; - completion(output, nil); - } - } else { - completion(nil, createConnectionError(channelName)); - } - }]; + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_aString ?: [NSNull null] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + NSString *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; } @end - diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h index 7dc733641802..6704a1a4b3be 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h @@ -46,8 +46,8 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @class FLTTestMessage; @interface FLTUnusedClass : NSObject -+ (instancetype)makeWithAField:(nullable id )aField; -@property(nonatomic, strong, nullable) id aField; ++ (instancetype)makeWithAField:(nullable id)aField; +@property(nonatomic, strong, nullable) id aField; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -56,130 +56,133 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @interface FLTAllTypes : NSObject /// `init` unavailable to enforce nonnull fields, see the `make` class method. - (instancetype)init NS_UNAVAILABLE; -+ (instancetype)makeWithABool:(BOOL )aBool - anInt:(NSInteger )anInt - anInt64:(NSInteger )anInt64 - aDouble:(double )aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(FLTAnEnum)anEnum - anotherEnum:(FLTAnotherEnum)anotherEnum - aString:(NSString *)aString - anObject:(id )anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - enumList:(NSArray *)enumList - objectList:(NSArray *)objectList - listList:(NSArray *> *)listList - mapList:(NSArray *> *)mapList - map:(NSDictionary *)map - stringMap:(NSDictionary *)stringMap - intMap:(NSDictionary *)intMap - enumMap:(NSDictionary *)enumMap - objectMap:(NSDictionary *)objectMap - listMap:(NSDictionary *> *)listMap - mapMap:(NSDictionary *> *)mapMap; -@property(nonatomic, assign) BOOL aBool; -@property(nonatomic, assign) NSInteger anInt; -@property(nonatomic, assign) NSInteger anInt64; -@property(nonatomic, assign) double aDouble; -@property(nonatomic, strong) FlutterStandardTypedData * aByteArray; -@property(nonatomic, strong) FlutterStandardTypedData * a4ByteArray; -@property(nonatomic, strong) FlutterStandardTypedData * a8ByteArray; -@property(nonatomic, strong) FlutterStandardTypedData * aFloatArray; ++ (instancetype)makeWithABool:(BOOL)aBool + anInt:(NSInteger)anInt + anInt64:(NSInteger)anInt64 + aDouble:(double)aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(FLTAnEnum)anEnum + anotherEnum:(FLTAnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id)anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + enumList:(NSArray *)enumList + objectList:(NSArray *)objectList + listList:(NSArray *> *)listList + mapList:(NSArray *> *)mapList + map:(NSDictionary *)map + stringMap:(NSDictionary *)stringMap + intMap:(NSDictionary *)intMap + enumMap:(NSDictionary *)enumMap + objectMap:(NSDictionary *)objectMap + listMap:(NSDictionary *> *)listMap + mapMap:(NSDictionary *> *)mapMap; +@property(nonatomic, assign) BOOL aBool; +@property(nonatomic, assign) NSInteger anInt; +@property(nonatomic, assign) NSInteger anInt64; +@property(nonatomic, assign) double aDouble; +@property(nonatomic, strong) FlutterStandardTypedData *aByteArray; +@property(nonatomic, strong) FlutterStandardTypedData *a4ByteArray; +@property(nonatomic, strong) FlutterStandardTypedData *a8ByteArray; +@property(nonatomic, strong) FlutterStandardTypedData *aFloatArray; @property(nonatomic, assign) FLTAnEnum anEnum; @property(nonatomic, assign) FLTAnotherEnum anotherEnum; -@property(nonatomic, copy) NSString * aString; -@property(nonatomic, strong) id anObject; -@property(nonatomic, copy) NSArray * list; -@property(nonatomic, copy) NSArray * stringList; -@property(nonatomic, copy) NSArray * intList; -@property(nonatomic, copy) NSArray * doubleList; -@property(nonatomic, copy) NSArray * boolList; -@property(nonatomic, copy) NSArray * enumList; -@property(nonatomic, copy) NSArray * objectList; -@property(nonatomic, copy) NSArray *> * listList; -@property(nonatomic, copy) NSArray *> * mapList; -@property(nonatomic, copy) NSDictionary * map; -@property(nonatomic, copy) NSDictionary * stringMap; -@property(nonatomic, copy) NSDictionary * intMap; -@property(nonatomic, copy) NSDictionary * enumMap; -@property(nonatomic, copy) NSDictionary * objectMap; -@property(nonatomic, copy) NSDictionary *> * listMap; -@property(nonatomic, copy) NSDictionary *> * mapMap; +@property(nonatomic, copy) NSString *aString; +@property(nonatomic, strong) id anObject; +@property(nonatomic, copy) NSArray *list; +@property(nonatomic, copy) NSArray *stringList; +@property(nonatomic, copy) NSArray *intList; +@property(nonatomic, copy) NSArray *doubleList; +@property(nonatomic, copy) NSArray *boolList; +@property(nonatomic, copy) NSArray *enumList; +@property(nonatomic, copy) NSArray *objectList; +@property(nonatomic, copy) NSArray *> *listList; +@property(nonatomic, copy) NSArray *> *mapList; +@property(nonatomic, copy) NSDictionary *map; +@property(nonatomic, copy) NSDictionary *stringMap; +@property(nonatomic, copy) NSDictionary *intMap; +@property(nonatomic, copy) NSDictionary *enumMap; +@property(nonatomic, copy) NSDictionary *objectMap; +@property(nonatomic, copy) NSDictionary *> *listMap; +@property(nonatomic, copy) NSDictionary *> *mapMap; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end /// A class containing all supported nullable types. @interface FLTAllNullableTypes : NSObject -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id )aNullableObject - allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - recursiveClassList:(nullable NSArray *)recursiveClassList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap - recursiveClassMap:(nullable NSDictionary *)recursiveClassMap; -@property(nonatomic, strong, nullable) NSNumber * aNullableBool; -@property(nonatomic, strong, nullable) NSNumber * aNullableInt; -@property(nonatomic, strong, nullable) NSNumber * aNullableInt64; -@property(nonatomic, strong, nullable) NSNumber * aNullableDouble; -@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullableByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullable4ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullable8ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullableFloatArray; -@property(nonatomic, strong, nullable) FLTAnEnumBox * aNullableEnum; -@property(nonatomic, strong, nullable) FLTAnotherEnumBox * anotherNullableEnum; -@property(nonatomic, copy, nullable) NSString * aNullableString; -@property(nonatomic, strong, nullable) id aNullableObject; -@property(nonatomic, strong, nullable) FLTAllNullableTypes * allNullableTypes; -@property(nonatomic, copy, nullable) NSArray * list; -@property(nonatomic, copy, nullable) NSArray * stringList; -@property(nonatomic, copy, nullable) NSArray * intList; -@property(nonatomic, copy, nullable) NSArray * doubleList; -@property(nonatomic, copy, nullable) NSArray * boolList; -@property(nonatomic, copy, nullable) NSArray * enumList; -@property(nonatomic, copy, nullable) NSArray * objectList; -@property(nonatomic, copy, nullable) NSArray *> * listList; -@property(nonatomic, copy, nullable) NSArray *> * mapList; -@property(nonatomic, copy, nullable) NSArray * recursiveClassList; -@property(nonatomic, copy, nullable) NSDictionary * map; -@property(nonatomic, copy, nullable) NSDictionary * stringMap; -@property(nonatomic, copy, nullable) NSDictionary * intMap; -@property(nonatomic, copy, nullable) NSDictionary * enumMap; -@property(nonatomic, copy, nullable) NSDictionary * objectMap; -@property(nonatomic, copy, nullable) NSDictionary *> * listMap; -@property(nonatomic, copy, nullable) NSDictionary *> * mapMap; -@property(nonatomic, copy, nullable) NSDictionary * recursiveClassMap; ++ (instancetype) + makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + recursiveClassList:(nullable NSArray *)recursiveClassList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap + recursiveClassMap: + (nullable NSDictionary *)recursiveClassMap; +@property(nonatomic, strong, nullable) NSNumber *aNullableBool; +@property(nonatomic, strong, nullable) NSNumber *aNullableInt; +@property(nonatomic, strong, nullable) NSNumber *aNullableInt64; +@property(nonatomic, strong, nullable) NSNumber *aNullableDouble; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable4ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable8ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableFloatArray; +@property(nonatomic, strong, nullable) FLTAnEnumBox *aNullableEnum; +@property(nonatomic, strong, nullable) FLTAnotherEnumBox *anotherNullableEnum; +@property(nonatomic, copy, nullable) NSString *aNullableString; +@property(nonatomic, strong, nullable) id aNullableObject; +@property(nonatomic, strong, nullable) FLTAllNullableTypes *allNullableTypes; +@property(nonatomic, copy, nullable) NSArray *list; +@property(nonatomic, copy, nullable) NSArray *stringList; +@property(nonatomic, copy, nullable) NSArray *intList; +@property(nonatomic, copy, nullable) NSArray *doubleList; +@property(nonatomic, copy, nullable) NSArray *boolList; +@property(nonatomic, copy, nullable) NSArray *enumList; +@property(nonatomic, copy, nullable) NSArray *objectList; +@property(nonatomic, copy, nullable) NSArray *> *listList; +@property(nonatomic, copy, nullable) NSArray *> *mapList; +@property(nonatomic, copy, nullable) NSArray *recursiveClassList; +@property(nonatomic, copy, nullable) NSDictionary *map; +@property(nonatomic, copy, nullable) NSDictionary *stringMap; +@property(nonatomic, copy, nullable) NSDictionary *intMap; +@property(nonatomic, copy, nullable) NSDictionary *enumMap; +@property(nonatomic, copy, nullable) NSDictionary *objectMap; +@property(nonatomic, copy, nullable) NSDictionary *> *listMap; +@property(nonatomic, copy, nullable) NSDictionary *> *mapMap; +@property(nonatomic, copy, nullable) + NSDictionary *recursiveClassMap; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -188,62 +191,63 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { /// with nullable items, as the primary [AllNullableTypes] class is being used to /// test Swift classes. @interface FLTAllNullableTypesWithoutRecursion : NSObject -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id )aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - enumList:(nullable NSArray *)enumList - objectList:(nullable NSArray *)objectList - listList:(nullable NSArray *> *)listList - mapList:(nullable NSArray *> *)mapList - map:(nullable NSDictionary *)map - stringMap:(nullable NSDictionary *)stringMap - intMap:(nullable NSDictionary *)intMap - enumMap:(nullable NSDictionary *)enumMap - objectMap:(nullable NSDictionary *)objectMap - listMap:(nullable NSDictionary *> *)listMap - mapMap:(nullable NSDictionary *> *)mapMap; -@property(nonatomic, strong, nullable) NSNumber * aNullableBool; -@property(nonatomic, strong, nullable) NSNumber * aNullableInt; -@property(nonatomic, strong, nullable) NSNumber * aNullableInt64; -@property(nonatomic, strong, nullable) NSNumber * aNullableDouble; -@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullableByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullable4ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullable8ByteArray; -@property(nonatomic, strong, nullable) FlutterStandardTypedData * aNullableFloatArray; -@property(nonatomic, strong, nullable) FLTAnEnumBox * aNullableEnum; -@property(nonatomic, strong, nullable) FLTAnotherEnumBox * anotherNullableEnum; -@property(nonatomic, copy, nullable) NSString * aNullableString; -@property(nonatomic, strong, nullable) id aNullableObject; -@property(nonatomic, copy, nullable) NSArray * list; -@property(nonatomic, copy, nullable) NSArray * stringList; -@property(nonatomic, copy, nullable) NSArray * intList; -@property(nonatomic, copy, nullable) NSArray * doubleList; -@property(nonatomic, copy, nullable) NSArray * boolList; -@property(nonatomic, copy, nullable) NSArray * enumList; -@property(nonatomic, copy, nullable) NSArray * objectList; -@property(nonatomic, copy, nullable) NSArray *> * listList; -@property(nonatomic, copy, nullable) NSArray *> * mapList; -@property(nonatomic, copy, nullable) NSDictionary * map; -@property(nonatomic, copy, nullable) NSDictionary * stringMap; -@property(nonatomic, copy, nullable) NSDictionary * intMap; -@property(nonatomic, copy, nullable) NSDictionary * enumMap; -@property(nonatomic, copy, nullable) NSDictionary * objectMap; -@property(nonatomic, copy, nullable) NSDictionary *> * listMap; -@property(nonatomic, copy, nullable) NSDictionary *> * mapMap; ++ (instancetype) + makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + enumList:(nullable NSArray *)enumList + objectList:(nullable NSArray *)objectList + listList:(nullable NSArray *> *)listList + mapList:(nullable NSArray *> *)mapList + map:(nullable NSDictionary *)map + stringMap:(nullable NSDictionary *)stringMap + intMap:(nullable NSDictionary *)intMap + enumMap:(nullable NSDictionary *)enumMap + objectMap:(nullable NSDictionary *)objectMap + listMap:(nullable NSDictionary *> *)listMap + mapMap:(nullable NSDictionary *> *)mapMap; +@property(nonatomic, strong, nullable) NSNumber *aNullableBool; +@property(nonatomic, strong, nullable) NSNumber *aNullableInt; +@property(nonatomic, strong, nullable) NSNumber *aNullableInt64; +@property(nonatomic, strong, nullable) NSNumber *aNullableDouble; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable4ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullable8ByteArray; +@property(nonatomic, strong, nullable) FlutterStandardTypedData *aNullableFloatArray; +@property(nonatomic, strong, nullable) FLTAnEnumBox *aNullableEnum; +@property(nonatomic, strong, nullable) FLTAnotherEnumBox *anotherNullableEnum; +@property(nonatomic, copy, nullable) NSString *aNullableString; +@property(nonatomic, strong, nullable) id aNullableObject; +@property(nonatomic, copy, nullable) NSArray *list; +@property(nonatomic, copy, nullable) NSArray *stringList; +@property(nonatomic, copy, nullable) NSArray *intList; +@property(nonatomic, copy, nullable) NSArray *doubleList; +@property(nonatomic, copy, nullable) NSArray *boolList; +@property(nonatomic, copy, nullable) NSArray *enumList; +@property(nonatomic, copy, nullable) NSArray *objectList; +@property(nonatomic, copy, nullable) NSArray *> *listList; +@property(nonatomic, copy, nullable) NSArray *> *mapList; +@property(nonatomic, copy, nullable) NSDictionary *map; +@property(nonatomic, copy, nullable) NSDictionary *stringMap; +@property(nonatomic, copy, nullable) NSDictionary *intMap; +@property(nonatomic, copy, nullable) NSDictionary *enumMap; +@property(nonatomic, copy, nullable) NSDictionary *objectMap; +@property(nonatomic, copy, nullable) NSDictionary *> *listMap; +@property(nonatomic, copy, nullable) NSDictionary *> *mapMap; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -256,20 +260,28 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @interface FLTAllClassesWrapper : NSObject /// `init` unavailable to enforce nonnull fields, see the `make` class method. - (instancetype)init NS_UNAVAILABLE; -+ (instancetype)makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable FLTAllTypes *)allTypes - classList:(NSArray *)classList - nullableClassList:(nullable NSArray *)nullableClassList - classMap:(NSDictionary *)classMap - nullableClassMap:(nullable NSDictionary *)nullableClassMap; -@property(nonatomic, strong) FLTAllNullableTypes * allNullableTypes; -@property(nonatomic, strong, nullable) FLTAllNullableTypesWithoutRecursion * allNullableTypesWithoutRecursion; -@property(nonatomic, strong, nullable) FLTAllTypes * allTypes; -@property(nonatomic, copy) NSArray * classList; -@property(nonatomic, copy, nullable) NSArray * nullableClassList; -@property(nonatomic, copy) NSDictionary * classMap; -@property(nonatomic, copy, nullable) NSDictionary * nullableClassMap; ++ (instancetype) + makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion: + (nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable FLTAllTypes *)allTypes + classList:(NSArray *)classList + nullableClassList: + (nullable NSArray *)nullableClassList + classMap:(NSDictionary *)classMap + nullableClassMap: + (nullable NSDictionary *) + nullableClassMap; +@property(nonatomic, strong) FLTAllNullableTypes *allNullableTypes; +@property(nonatomic, strong, nullable) + FLTAllNullableTypesWithoutRecursion *allNullableTypesWithoutRecursion; +@property(nonatomic, strong, nullable) FLTAllTypes *allTypes; +@property(nonatomic, copy) NSArray *classList; +@property(nonatomic, copy, nullable) + NSArray *nullableClassList; +@property(nonatomic, copy) NSDictionary *classMap; +@property(nonatomic, copy, nullable) + NSDictionary *nullableClassMap; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -277,7 +289,7 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { /// A data class containing a List, used in unit tests. @interface FLTTestMessage : NSObject + (instancetype)makeWithTestList:(nullable NSArray *)testList; -@property(nonatomic, copy, nullable) NSArray * testList; +@property(nonatomic, copy, nullable) NSArray *testList; - (BOOL)isEqual:(id)object; - (NSUInteger)hash; @end @@ -294,7 +306,8 @@ NSObject *FLTGetCoreTestsCodec(void); /// Returns the passed object, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllTypes *)echoAllTypes:(FLTAllTypes *)everything error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllTypes *)echoAllTypes:(FLTAllTypes *)everything + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns an error, to test error handling. - (nullable id)throwErrorWithError:(FlutterError *_Nullable *_Nonnull)error; /// Returns an error from a void function, to test error handling. @@ -316,11 +329,13 @@ NSObject *FLTGetCoreTestsCodec(void); /// Returns the passed in string. /// /// @return `nil` only when `error != nil`. -- (nullable NSString *)echoString:(NSString *)aString error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)echoString:(NSString *)aString + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in Uint8List. /// /// @return `nil` only when `error != nil`. -- (nullable FlutterStandardTypedData *)echoUint8List:(FlutterStandardTypedData *)aUint8List error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FlutterStandardTypedData *)echoUint8List:(FlutterStandardTypedData *)aUint8List + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in generic Object. /// /// @return `nil` only when `error != nil`. @@ -328,236 +343,381 @@ NSObject *FLTGetCoreTestsCodec(void); /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoList:(NSArray *)list error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoList:(NSArray *)list + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoEnumList:(NSArray *)enumList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoEnumList:(NSArray *)enumList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoClassList:(NSArray *)classList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoClassList: + (NSArray *)classList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoNonNullEnumList:(NSArray *)enumList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNonNullEnumList:(NSArray *)enumList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSArray *)echoNonNullClassList:(NSArray *)classList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *) + echoNonNullClassList:(NSArray *)classList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoMap:(NSDictionary *)map error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoMap:(NSDictionary *)map + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoStringMap:(NSDictionary *)stringMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoStringMap:(NSDictionary *)stringMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoIntMap:(NSDictionary *)intMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoIntMap:(NSDictionary *)intMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoEnumMap:(NSDictionary *)enumMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoEnumMap:(NSDictionary *)enumMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoClassMap:(NSDictionary *)classMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoClassMap:(NSDictionary *)classMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoNonNullStringMap:(NSDictionary *)stringMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNonNullStringMap:(NSDictionary *)stringMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoNonNullIntMap:(NSDictionary *)intMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNonNullIntMap:(NSDictionary *)intMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoNonNullEnumMap:(NSDictionary *)enumMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNonNullEnumMap:(NSDictionary *)enumMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable NSDictionary *)echoNonNullClassMap:(NSDictionary *)classMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNonNullClassMap:(NSDictionary *)classMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed class to test nested class serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllClassesWrapper *)echoClassWrapper:(FLTAllClassesWrapper *)wrapper error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllClassesWrapper *)echoClassWrapper:(FLTAllClassesWrapper *)wrapper + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed enum to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (FLTAnEnumBox *_Nullable)echoEnum:(FLTAnEnum)anEnum error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnEnumBox *_Nullable)echoEnum:(FLTAnEnum)anEnum + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed enum to test serialization and deserialization. /// /// @return `nil` only when `error != nil`. -- (FLTAnotherEnumBox *_Nullable)echoAnotherEnum:(FLTAnotherEnum)anotherEnum error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnotherEnumBox *_Nullable)echoAnotherEnum:(FLTAnotherEnum)anotherEnum + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the default string. /// /// @return `nil` only when `error != nil`. -- (nullable NSString *)echoNamedDefaultString:(NSString *)aString error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)echoNamedDefaultString:(NSString *)aString + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in double. /// /// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoOptionalDefaultDouble:(double)aDouble error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoOptionalDefaultDouble:(double)aDouble + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in int. /// /// @return `nil` only when `error != nil`. -- (nullable NSNumber *)echoRequiredInt:(NSInteger)anInt error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoRequiredInt:(NSInteger)anInt + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the result of platform-side equality check. /// /// @return `nil` only when `error != nil`. -- (nullable NSNumber *)areAllNullableTypesEqualA:(FLTAllNullableTypes *)a b:(FLTAllNullableTypes *)b error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)areAllNullableTypesEqualA:(FLTAllNullableTypes *)a + b:(FLTAllNullableTypes *)b + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the platform-side hash code for the given object. /// /// @return `nil` only when `error != nil`. -- (nullable NSNumber *)getAllNullableTypesHashValue:(FLTAllNullableTypes *)value error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)getAllNullableTypesHashValue:(FLTAllNullableTypes *)value + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed object, to test serialization and deserialization. -- (nullable FLTAllNullableTypes *)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllNullableTypes *)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed object, to test serialization and deserialization. -- (nullable FLTAllNullableTypesWithoutRecursion *)echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllNullableTypesWithoutRecursion *) + echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. -- (nullable NSString *)extractNestedNullableStringFrom:(FLTAllClassesWrapper *)wrapper error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)extractNestedNullableStringFrom:(FLTAllClassesWrapper *)wrapper + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllClassesWrapper *)createNestedObjectWithNullableString:(nullable NSString *)nullableString error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllClassesWrapper *) + createNestedObjectWithNullableString:(nullable NSString *)nullableString + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in arguments of multiple types. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllNullableTypes *)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllNullableTypes *) + sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in arguments of multiple types. /// /// @return `nil` only when `error != nil`. -- (nullable FLTAllNullableTypesWithoutRecursion *)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FLTAllNullableTypesWithoutRecursion *) + sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in int. -- (nullable NSNumber *)echoNullableInt:(nullable NSNumber *)aNullableInt error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoNullableInt:(nullable NSNumber *)aNullableInt + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in double. -- (nullable NSNumber *)echoNullableDouble:(nullable NSNumber *)aNullableDouble error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoNullableDouble:(nullable NSNumber *)aNullableDouble + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in boolean. -- (nullable NSNumber *)echoNullableBool:(nullable NSNumber *)aNullableBool error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoNullableBool:(nullable NSNumber *)aNullableBool + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in string. -- (nullable NSString *)echoNullableString:(nullable NSString *)aNullableString error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)echoNullableString:(nullable NSString *)aNullableString + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in Uint8List. -- (nullable FlutterStandardTypedData *)echoNullableUint8List:(nullable FlutterStandardTypedData *)aNullableUint8List error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable FlutterStandardTypedData *) + echoNullableUint8List:(nullable FlutterStandardTypedData *)aNullableUint8List + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in generic Object. -- (nullable id)echoNullableObject:(nullable id)aNullableObject error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable id)echoNullableObject:(nullable id)aNullableObject + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableList:(nullable NSArray *)aNullableList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNullableList:(nullable NSArray *)aNullableList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableEnumList:(nullable NSArray *)enumList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *)echoNullableEnumList: + (nullable NSArray *)enumList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableClassList:(nullable NSArray *)classList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *) + echoNullableClassList:(nullable NSArray *)classList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableNonNullEnumList:(nullable NSArray *)enumList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *) + echoNullableNonNullEnumList:(nullable NSArray *)enumList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed list, to test serialization and deserialization. -- (nullable NSArray *)echoNullableNonNullClassList:(nullable NSArray *)classList error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSArray *) + echoNullableNonNullClassList:(nullable NSArray *)classList + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableMap:(nullable NSDictionary *)map error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *)echoNullableMap:(nullable NSDictionary *)map + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableStringMap:(nullable NSDictionary *)stringMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNullableStringMap:(nullable NSDictionary *)stringMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableIntMap:(nullable NSDictionary *)intMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNullableIntMap:(nullable NSDictionary *)intMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableEnumMap:(nullable NSDictionary *)enumMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNullableEnumMap:(nullable NSDictionary *)enumMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableClassMap:(nullable NSDictionary *)classMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNullableClassMap:(nullable NSDictionary *)classMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableNonNullIntMap:(nullable NSDictionary *)intMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNullableNonNullIntMap:(nullable NSDictionary *)intMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed map, to test serialization and deserialization. -- (nullable NSDictionary *)echoNullableNonNullClassMap:(nullable NSDictionary *)classMap error:(FlutterError *_Nullable *_Nonnull)error; -- (FLTAnEnumBox *_Nullable)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed error:(FlutterError *_Nullable *_Nonnull)error; -- (FLTAnotherEnumBox *_Nullable)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSDictionary *) + echoNullableNonNullClassMap:(nullable NSDictionary *)classMap + error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnEnumBox *_Nullable)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed + error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnotherEnumBox *_Nullable)echoAnotherNullableEnum: + (nullable FLTAnotherEnumBox *)anotherEnumBoxed + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in int. -- (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed in string. -- (nullable NSString *)echoNamedNullableString:(nullable NSString *)aNullableString error:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSString *)echoNamedNullableString:(nullable NSString *)aNullableString + error:(FlutterError *_Nullable *_Nonnull)error; /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; /// Returns passed in int asynchronously. -- (void)echoAsyncInt:(NSInteger)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncInt:(NSInteger)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns passed in double asynchronously. -- (void)echoAsyncDouble:(double)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncDouble:(double)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in boolean asynchronously. -- (void)echoAsyncBool:(BOOL)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncBool:(BOOL)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed string asynchronously. -- (void)echoAsyncString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in Uint8List asynchronously. -- (void)echoAsyncUint8List:(FlutterStandardTypedData *)aUint8List completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncUint8List:(FlutterStandardTypedData *)aUint8List + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed in generic Object asynchronously. -- (void)echoAsyncObject:(id)anObject completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncObject:(id)anObject + completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncList:(NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncList:(NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncEnumList:(NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncMap:(NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncMap:(NSDictionary *)map + completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncClassMap:(NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAsyncEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncEnum:(FLTAnEnum)anEnum + completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAnotherAsyncEnum:(FLTAnotherEnum)anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAnotherAsyncEnum:(FLTAnotherEnum)anotherEnum + completion: + (void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Responds with an error from an async function returning a value. - (void)throwAsyncErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Responds with an error from an async void function. - (void)throwAsyncErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; /// Responds with a Flutter error from an async function returning a value. -- (void)throwAsyncFlutterErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +- (void)throwAsyncFlutterErrorWithCompletion:(void (^)(id _Nullable, + FlutterError *_Nullable))completion; /// Returns the passed object, to test async serialization and deserialization. -- (void)echoAsyncAllTypes:(FLTAllTypes *)everything completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncAllTypes:(FLTAllTypes *)everything + completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAsyncNullableAllNullableTypes:(nullable FLTAllNullableTypes *)everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableAllNullableTypes:(nullable FLTAllNullableTypes *)everything + completion:(void (^)(FLTAllNullableTypes *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAsyncNullableAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableAllNullableTypesWithoutRecursion: + (nullable FLTAllNullableTypesWithoutRecursion *)everything + completion: + (void (^)(FLTAllNullableTypesWithoutRecursion + *_Nullable, + FlutterError *_Nullable))completion; /// Returns passed in int asynchronously. -- (void)echoAsyncNullableInt:(nullable NSNumber *)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableInt:(nullable NSNumber *)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns passed in double asynchronously. -- (void)echoAsyncNullableDouble:(nullable NSNumber *)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableDouble:(nullable NSNumber *)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in boolean asynchronously. -- (void)echoAsyncNullableBool:(nullable NSNumber *)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableBool:(nullable NSNumber *)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed string asynchronously. -- (void)echoAsyncNullableString:(nullable NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableString:(nullable NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed in Uint8List asynchronously. -- (void)echoAsyncNullableUint8List:(nullable FlutterStandardTypedData *)aUint8List completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableUint8List:(nullable FlutterStandardTypedData *)aUint8List + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed in generic Object asynchronously. -- (void)echoAsyncNullableObject:(nullable id)anObject completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableObject:(nullable id)anObject + completion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableList:(nullable NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableList:(nullable NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed list, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableMap:(nullable NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableMap:(nullable NSDictionary *)map + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableStringMap:(nullable NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableIntMap:(nullable NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableEnumMap:(nullable NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void) + echoAsyncNullableClassMap:(nullable NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAsyncNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed + completion: + (void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum, to test asynchronous serialization and deserialization. -- (void)echoAnotherAsyncNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAnotherAsyncNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. /// @@ -567,70 +727,194 @@ NSObject *FLTGetCoreTestsCodec(void); /// true for any platform with TaskQueue support. /// /// @return `nil` only when `error != nil`. -- (nullable NSNumber *)taskQueueIsBackgroundThreadWithError:(FlutterError *_Nullable *_Nonnull)error; +- (nullable NSNumber *)taskQueueIsBackgroundThreadWithError: + (FlutterError *_Nullable *_Nonnull)error; - (void)callFlutterNoopWithCompletion:(void (^)(FlutterError *_Nullable))completion; -- (void)callFlutterThrowErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterThrowErrorWithCompletion:(void (^)(id _Nullable, + FlutterError *_Nullable))completion; - (void)callFlutterThrowErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; -- (void)callFlutterEchoAllTypes:(FLTAllTypes *)everything completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAllNullableTypes:(nullable FLTAllNullableTypes *)everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterSendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterSendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoBool:(BOOL)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoInt:(NSInteger)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoDouble:(double)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoUint8List:(FlutterStandardTypedData *)list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoList:(NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoMap:(NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNonNullClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAnotherEnum:(FLTAnotherEnum)anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableBool:(nullable NSNumber *)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableInt:(nullable NSNumber *)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableDouble:(nullable NSNumber *)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableString:(nullable NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableUint8List:(nullable FlutterStandardTypedData *)list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableList:(nullable NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableMap:(nullable NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableNonNullClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterEchoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; -- (void)callFlutterSmallApiEchoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAllTypes:(FLTAllTypes *)everything + completion: + (void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAllNullableTypes:(nullable FLTAllNullableTypes *)everything + completion:(void (^)(FLTAllNullableTypes *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterSendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + completion:(void (^)(FLTAllNullableTypes *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoAllNullableTypesWithoutRecursion: + (nullable FLTAllNullableTypesWithoutRecursion *)everything + completion: + (void (^)( + FLTAllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion; +- (void) + callFlutterSendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + completion: + (void (^)(FLTAllNullableTypesWithoutRecursion + *_Nullable, + FlutterError *_Nullable)) + completion; +- (void)callFlutterEchoBool:(BOOL)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoInt:(NSInteger)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoDouble:(double)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoUint8List:(FlutterStandardTypedData *)list + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoList:(NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnumList:(NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullEnumList:(NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoMap:(NSDictionary *)map + completion: + (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoClassMap:(NSDictionary *)classMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNonNullEnumMap:(NSDictionary *)enumMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void) + callFlutterEchoNonNullClassMap:(NSDictionary *)classMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoEnum:(FLTAnEnum)anEnum + completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherEnum:(FLTAnotherEnum)anotherEnum + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableBool:(nullable NSNumber *)aBool + completion: + (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableInt:(nullable NSNumber *)anInt + completion: + (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableDouble:(nullable NSNumber *)aDouble + completion: + (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableString:(nullable NSString *)aString + completion: + (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableUint8List:(nullable FlutterStandardTypedData *)list + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableList:(nullable NSArray *)list + completion: + (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableMap:(nullable NSDictionary *)map + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableStringMap:(nullable NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableIntMap:(nullable NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnumMap: + (nullable NSDictionary *)enumMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void) + callFlutterEchoNullableClassMap: + (nullable NSDictionary *)classMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullStringMap: + (nullable NSDictionary *)stringMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullIntMap:(nullable NSDictionary *)intMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullEnumMap: + (nullable NSDictionary *)enumMap + completion: + (void (^)( + NSDictionary *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableNonNullClassMap: + (nullable NSDictionary *)classMap + completion: + (void (^)(NSDictionary + *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterEchoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed + completion: + (void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; +- (void)callFlutterSmallApiEchoString:(NSString *)aString + completion: + (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; @end -extern void SetUpFLTHostIntegrationCoreApi(id binaryMessenger, NSObject *_Nullable api); - -extern void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryMessenger, NSObject *_Nullable api, NSString *messageChannelSuffix); +extern void SetUpFLTHostIntegrationCoreApi(id binaryMessenger, + NSObject *_Nullable api); +extern void SetUpFLTHostIntegrationCoreApiWithSuffix( + id binaryMessenger, NSObject *_Nullable api, + NSString *messageChannelSuffix); /// The core interface that the Dart platform_test code implements for host /// integration tests to call into. @interface FLTFlutterIntegrationCoreApi : NSObject - (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger messageChannelSuffix:(nullable NSString *)messageChannelSuffix; +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger + messageChannelSuffix:(nullable NSString *)messageChannelSuffix; /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - (void)noopWithCompletion:(void (^)(FlutterError *_Nullable))completion; @@ -639,138 +923,235 @@ extern void SetUpFLTHostIntegrationCoreApiWithSuffix(id /// Responds with an error from an async void function. - (void)throwErrorFromVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAllTypes:(FLTAllTypes *)everything completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAllTypes:(FLTAllTypes *)everything + completion:(void (^)(FLTAllTypes *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything + completion: + (void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. -- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion; +- (void)sendMultipleNullableTypesABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + completion:(void (^)(FLTAllNullableTypes *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed object, to test serialization and deserialization. -- (void)echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; +- (void) + echoAllNullableTypesWithoutRecursion:(nullable FLTAllNullableTypesWithoutRecursion *)everything + completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion; /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. -- (void)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool anInt:(nullable NSNumber *)aNullableInt aString:(nullable NSString *)aNullableString completion:(void (^)(FLTAllNullableTypesWithoutRecursion *_Nullable, FlutterError *_Nullable))completion; +- (void)sendMultipleNullableTypesWithoutRecursionABool:(nullable NSNumber *)aNullableBool + anInt:(nullable NSNumber *)aNullableInt + aString:(nullable NSString *)aNullableString + completion: + (void (^)( + FLTAllNullableTypesWithoutRecursion *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed boolean, to test serialization and deserialization. -- (void)echoBool:(BOOL)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoBool:(BOOL)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed int, to test serialization and deserialization. -- (void)echoInt:(NSInteger)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoInt:(NSInteger)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed double, to test serialization and deserialization. -- (void)echoDouble:(double)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoDouble:(double)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed string, to test serialization and deserialization. -- (void)echoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed byte list, to test serialization and deserialization. -- (void)echoUint8List:(FlutterStandardTypedData *)list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; +- (void)echoUint8List:(FlutterStandardTypedData *)list + completion: + (void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoList:(NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoList:(NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoEnumList:(NSArray *)enumList + completion: + (void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNonNullEnumList:(NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNonNullEnumList:(NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNonNullClassList:(NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNonNullClassList:(NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoMap:(NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoMap:(NSDictionary *)map + completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoClassMap:(NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullStringMap:(NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNonNullStringMap:(NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullIntMap:(NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNonNullIntMap:(NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullEnumMap:(NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNonNullEnumMap:(NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNonNullClassMap:(NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNonNullClassMap:(NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed enum to test serialization and deserialization. -- (void)echoEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoEnum:(FLTAnEnum)anEnum + completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum to test serialization and deserialization. -- (void)echoAnotherEnum:(FLTAnotherEnum)anotherEnum completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAnotherEnum:(FLTAnotherEnum)anotherEnum + completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed boolean, to test serialization and deserialization. -- (void)echoNullableBool:(nullable NSNumber *)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableBool:(nullable NSNumber *)aBool + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed int, to test serialization and deserialization. -- (void)echoNullableInt:(nullable NSNumber *)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableInt:(nullable NSNumber *)anInt + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed double, to test serialization and deserialization. -- (void)echoNullableDouble:(nullable NSNumber *)aDouble completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableDouble:(nullable NSNumber *)aDouble + completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed string, to test serialization and deserialization. -- (void)echoNullableString:(nullable NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableString:(nullable NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed byte list, to test serialization and deserialization. -- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)list completion:(void (^)(FlutterStandardTypedData *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableUint8List:(nullable FlutterStandardTypedData *)list + completion:(void (^)(FlutterStandardTypedData *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableList:(nullable NSArray *)list completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableList:(nullable NSArray *)list + completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableNonNullEnumList:(nullable NSArray *)enumList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableNonNullEnumList:(nullable NSArray *)enumList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed list, to test serialization and deserialization. -- (void)echoNullableNonNullClassList:(nullable NSArray *)classList completion:(void (^)(NSArray *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableNonNullClassList:(nullable NSArray *)classList + completion:(void (^)(NSArray *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableMap:(nullable NSDictionary *)map completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableMap:(nullable NSDictionary *)map + completion: + (void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableStringMap:(nullable NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableIntMap:(nullable NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableEnumMap:(nullable NSDictionary *)enumMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableClassMap:(nullable NSDictionary *)classMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableNonNullStringMap:(nullable NSDictionary *)stringMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)intMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableNonNullIntMap:(nullable NSDictionary *)intMap + completion:(void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableNonNullEnumMap:(nullable NSDictionary *)enumMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed map, to test serialization and deserialization. -- (void)echoNullableNonNullClassMap:(nullable NSDictionary *)classMap completion:(void (^)(NSDictionary *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableNonNullClassMap: + (nullable NSDictionary *)classMap + completion: + (void (^)(NSDictionary *_Nullable, + FlutterError *_Nullable))completion; /// Returns the passed enum to test serialization and deserialization. -- (void)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed + completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed enum to test serialization and deserialization. -- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; /// Returns the passed in generic Object asynchronously. -- (void)echoAsyncString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoAsyncString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; @end - /// An API that can be implemented for minimal, compile-only tests. @protocol FLTHostTrivialApi - (void)noopWithError:(FlutterError *_Nullable *_Nonnull)error; @end -extern void SetUpFLTHostTrivialApi(id binaryMessenger, NSObject *_Nullable api); - -extern void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger, NSObject *_Nullable api, NSString *messageChannelSuffix); +extern void SetUpFLTHostTrivialApi(id binaryMessenger, + NSObject *_Nullable api); +extern void SetUpFLTHostTrivialApiWithSuffix(id binaryMessenger, + NSObject *_Nullable api, + NSString *messageChannelSuffix); /// A simple API implemented in some unit tests. @protocol FLTHostSmallApi -- (void)echoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (void)echoString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; - (void)voidVoidWithCompletion:(void (^)(FlutterError *_Nullable))completion; @end -extern void SetUpFLTHostSmallApi(id binaryMessenger, NSObject *_Nullable api); - -extern void SetUpFLTHostSmallApiWithSuffix(id binaryMessenger, NSObject *_Nullable api, NSString *messageChannelSuffix); +extern void SetUpFLTHostSmallApi(id binaryMessenger, + NSObject *_Nullable api); +extern void SetUpFLTHostSmallApiWithSuffix(id binaryMessenger, + NSObject *_Nullable api, + NSString *messageChannelSuffix); /// A simple API called in some unit tests. @interface FLTFlutterSmallApi : NSObject - (instancetype)initWithBinaryMessenger:(id)binaryMessenger; -- (instancetype)initWithBinaryMessenger:(id)binaryMessenger messageChannelSuffix:(nullable NSString *)messageChannelSuffix; -- (void)echoWrappedList:(FLTTestMessage *)msg completion:(void (^)(FLTTestMessage *_Nullable, FlutterError *_Nullable))completion; -- (void)echoString:(NSString *)aString completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; +- (instancetype)initWithBinaryMessenger:(id)binaryMessenger + messageChannelSuffix:(nullable NSString *)messageChannelSuffix; +- (void)echoWrappedList:(FLTTestMessage *)msg + completion:(void (^)(FLTTestMessage *_Nullable, FlutterError *_Nullable))completion; +- (void)echoString:(NSString *)aString + completion:(void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; @end NS_ASSUME_NONNULL_END diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart index 7ea0c00dd683..29cca1e99298 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart @@ -1052,6 +1052,51 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final int hashB = await api.getAllNullableTypesHash(b); expect(hashA, hashB, reason: 'Hash codes for two NaNs should be equal'); }); + + testWidgets('Collection equality with signed zero and NaN', ( + WidgetTester _, + ) async { + final api = HostIntegrationCoreApi(); + + final a = AllNullableTypes( + doubleList: [0.0, double.nan], + stringMap: {'k': 'v', 'n': null}, + ); + final b = AllNullableTypes( + doubleList: [-0.0, double.nan], + stringMap: {'n': null, 'k': 'v'}, + ); + + expect(await api.areAllNullableTypesEqual(a, b), isTrue); + expect( + await api.getAllNullableTypesHash(a), + await api.getAllNullableTypesHash(b), + ); + }); + + testWidgets('Map equality with null values and different keys', ( + WidgetTester _, + ) async { + final api = HostIntegrationCoreApi(); + + final a = AllNullableTypes(intMap: {1: null}); + final b = AllNullableTypes(intMap: {2: null}); + + expect(await api.areAllNullableTypesEqual(a, b), isFalse); + }); + + testWidgets('Deeply nested equality', (WidgetTester _) async { + final api = HostIntegrationCoreApi(); + + final a = AllNullableTypes( + allNullableTypes: AllNullableTypes(aNullableDouble: 0.0), + ); + final b = AllNullableTypes( + allNullableTypes: AllNullableTypes(aNullableDouble: -0.0), + ); + + expect(await api.areAllNullableTypesEqual(a, b), isTrue); + }); }); group('Host async API tests', () { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart index f7f8a2508e0c..6046050341d3 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -47,6 +50,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -58,8 +62,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -98,7 +103,6 @@ int _deepHash(Object? value) { return value.hashCode; } - /// This comment is to test enum documentation comments. /// /// This comment also tests multiple line comments. @@ -106,21 +110,13 @@ int _deepHash(Object? value) { /// //////////////////////// /// This comment also tests comments that start with '/' /// //////////////////////// -enum MessageRequestState { - pending, - success, - failure, -} +enum MessageRequestState { pending, success, failure } /// This comment is to test class documentation comments. /// /// This comment also tests multiple line comments. class MessageSearchRequest { - MessageSearchRequest({ - this.query, - this.anInt, - this.aBool, - }); + MessageSearchRequest({this.query, this.anInt, this.aBool}); /// This comment is to test field documentation comments. String? query; @@ -132,15 +128,12 @@ class MessageSearchRequest { bool? aBool; List _toList() { - return [ - query, - anInt, - aBool, - ]; + return [query, anInt, aBool]; } Object encode() { - return _toList(); } + return _toList(); + } static MessageSearchRequest decode(Object result) { result as List; @@ -160,7 +153,9 @@ class MessageSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(query, other.query) && _deepEquals(anInt, other.anInt) && _deepEquals(aBool, other.aBool); + return _deepEquals(query, other.query) && + _deepEquals(anInt, other.anInt) && + _deepEquals(aBool, other.aBool); } @override @@ -170,11 +165,7 @@ class MessageSearchRequest { /// This comment is to test class documentation comments. class MessageSearchReply { - MessageSearchReply({ - this.result, - this.error, - this.state, - }); + MessageSearchReply({this.result, this.error, this.state}); /// This comment is to test field documentation comments. /// @@ -188,15 +179,12 @@ class MessageSearchReply { MessageRequestState? state; List _toList() { - return [ - result, - error, - state, - ]; + return [result, error, state]; } Object encode() { - return _toList(); } + return _toList(); + } static MessageSearchReply decode(Object result) { result as List; @@ -216,7 +204,9 @@ class MessageSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(result, other.result) && _deepEquals(error, other.error) && _deepEquals(state, other.state); + return _deepEquals(result, other.result) && + _deepEquals(error, other.error) && + _deepEquals(state, other.state); } @override @@ -226,27 +216,22 @@ class MessageSearchReply { /// This comment is to test class documentation comments. class MessageNested { - MessageNested({ - this.request, - }); + MessageNested({this.request}); /// This comment is to test field documentation comments. MessageSearchRequest? request; List _toList() { - return [ - request, - ]; + return [request]; } Object encode() { - return _toList(); } + return _toList(); + } static MessageNested decode(Object result) { result as List; - return MessageNested( - request: result[0] as MessageSearchRequest?, - ); + return MessageNested(request: result[0] as MessageSearchRequest?); } @override @@ -266,7 +251,6 @@ class MessageNested { int get hashCode => _deepHash([runtimeType, ..._toList()]); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -274,16 +258,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MessageRequestState) { + } else if (value is MessageRequestState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageNested) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -316,9 +300,13 @@ class MessageApi { /// Constructor for [MessageApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MessageApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + MessageApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -329,7 +317,8 @@ class MessageApi { /// /// This comment also tests multiple line comments. Future initialize() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -339,30 +328,31 @@ class MessageApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// This comment is to test method documentation comments. Future search(MessageSearchRequest request) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [request], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as MessageSearchReply; } } @@ -372,9 +362,13 @@ class MessageNestedApi { /// Constructor for [MessageNestedApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MessageNestedApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + MessageNestedApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -385,21 +379,23 @@ class MessageNestedApi { /// /// This comment also tests multiple line comments. Future search(MessageNested nested) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([nested]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [nested], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as MessageSearchReply; } } @@ -411,29 +407,44 @@ abstract class MessageFlutterSearchApi { /// This comment is to test method documentation comments. MessageSearchReply search(MessageSearchRequest request); - static void setUp(MessageFlutterSearchApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + MessageFlutterSearchApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null.', + ); final List args = (message as List?)!; - final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.'); + final MessageSearchRequest? arg_request = + (args[0] as MessageSearchRequest?); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.', + ); try { final MessageSearchReply output = api.search(arg_request!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index c0829a9fe8f3..48d200ee5ae9 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -47,6 +50,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -58,8 +62,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -98,40 +103,26 @@ int _deepHash(Object? value) { return value.hashCode; } +enum AnEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } -enum AnEnum { - one, - two, - three, - fortyTwo, - fourHundredTwentyTwo, -} - -enum AnotherEnum { - justInCase, -} +enum AnotherEnum { justInCase } class UnusedClass { - UnusedClass({ - this.aField, - }); + UnusedClass({this.aField}); Object? aField; List _toList() { - return [ - aField, - ]; + return [aField]; } Object encode() { - return _toList(); } + return _toList(); + } static UnusedClass decode(Object result) { result as List; - return UnusedClass( - aField: result[0], - ); + return UnusedClass(aField: result[0]); } @override @@ -274,7 +265,8 @@ class AllTypes { } Object encode() { - return _toList(); } + return _toList(); + } static AllTypes decode(Object result) { result as List; @@ -305,8 +297,10 @@ class AllTypes { intMap: (result[23] as Map?)!.cast(), enumMap: (result[24] as Map?)!.cast(), objectMap: (result[25] as Map?)!.cast(), - listMap: (result[26] as Map?)!.cast>(), - mapMap: (result[27] as Map?)!.cast>(), + listMap: (result[26] as Map?)! + .cast>(), + mapMap: (result[27] as Map?)! + .cast>(), ); } @@ -319,7 +313,34 @@ class AllTypes { if (identical(this, other)) { return true; } - return _deepEquals(aBool, other.aBool) && _deepEquals(anInt, other.anInt) && _deepEquals(anInt64, other.anInt64) && _deepEquals(aDouble, other.aDouble) && _deepEquals(aByteArray, other.aByteArray) && _deepEquals(a4ByteArray, other.a4ByteArray) && _deepEquals(a8ByteArray, other.a8ByteArray) && _deepEquals(aFloatArray, other.aFloatArray) && _deepEquals(anEnum, other.anEnum) && _deepEquals(anotherEnum, other.anotherEnum) && _deepEquals(aString, other.aString) && _deepEquals(anObject, other.anObject) && _deepEquals(list, other.list) && _deepEquals(stringList, other.stringList) && _deepEquals(intList, other.intList) && _deepEquals(doubleList, other.doubleList) && _deepEquals(boolList, other.boolList) && _deepEquals(enumList, other.enumList) && _deepEquals(objectList, other.objectList) && _deepEquals(listList, other.listList) && _deepEquals(mapList, other.mapList) && _deepEquals(map, other.map) && _deepEquals(stringMap, other.stringMap) && _deepEquals(intMap, other.intMap) && _deepEquals(enumMap, other.enumMap) && _deepEquals(objectMap, other.objectMap) && _deepEquals(listMap, other.listMap) && _deepEquals(mapMap, other.mapMap); + return _deepEquals(aBool, other.aBool) && + _deepEquals(anInt, other.anInt) && + _deepEquals(anInt64, other.anInt64) && + _deepEquals(aDouble, other.aDouble) && + _deepEquals(aByteArray, other.aByteArray) && + _deepEquals(a4ByteArray, other.a4ByteArray) && + _deepEquals(a8ByteArray, other.a8ByteArray) && + _deepEquals(aFloatArray, other.aFloatArray) && + _deepEquals(anEnum, other.anEnum) && + _deepEquals(anotherEnum, other.anotherEnum) && + _deepEquals(aString, other.aString) && + _deepEquals(anObject, other.anObject) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap); } @override @@ -462,7 +483,8 @@ class AllNullableTypes { } Object encode() { - return _toList(); } + return _toList(); + } static AllNullableTypes decode(Object result) { result as List; @@ -489,15 +511,21 @@ class AllNullableTypes { objectList: (result[19] as List?)?.cast(), listList: (result[20] as List?)?.cast?>(), mapList: (result[21] as List?)?.cast?>(), - recursiveClassList: (result[22] as List?)?.cast(), + recursiveClassList: (result[22] as List?) + ?.cast(), map: result[23] as Map?, - stringMap: (result[24] as Map?)?.cast(), + stringMap: (result[24] as Map?) + ?.cast(), intMap: (result[25] as Map?)?.cast(), enumMap: (result[26] as Map?)?.cast(), - objectMap: (result[27] as Map?)?.cast(), - listMap: (result[28] as Map?)?.cast?>(), - mapMap: (result[29] as Map?)?.cast?>(), - recursiveClassMap: (result[30] as Map?)?.cast(), + objectMap: (result[27] as Map?) + ?.cast(), + listMap: (result[28] as Map?) + ?.cast?>(), + mapMap: (result[29] as Map?) + ?.cast?>(), + recursiveClassMap: (result[30] as Map?) + ?.cast(), ); } @@ -510,7 +538,37 @@ class AllNullableTypes { if (identical(this, other)) { return true; } - return _deepEquals(aNullableBool, other.aNullableBool) && _deepEquals(aNullableInt, other.aNullableInt) && _deepEquals(aNullableInt64, other.aNullableInt64) && _deepEquals(aNullableDouble, other.aNullableDouble) && _deepEquals(aNullableByteArray, other.aNullableByteArray) && _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && _deepEquals(aNullableEnum, other.aNullableEnum) && _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && _deepEquals(aNullableString, other.aNullableString) && _deepEquals(aNullableObject, other.aNullableObject) && _deepEquals(allNullableTypes, other.allNullableTypes) && _deepEquals(list, other.list) && _deepEquals(stringList, other.stringList) && _deepEquals(intList, other.intList) && _deepEquals(doubleList, other.doubleList) && _deepEquals(boolList, other.boolList) && _deepEquals(enumList, other.enumList) && _deepEquals(objectList, other.objectList) && _deepEquals(listList, other.listList) && _deepEquals(mapList, other.mapList) && _deepEquals(recursiveClassList, other.recursiveClassList) && _deepEquals(map, other.map) && _deepEquals(stringMap, other.stringMap) && _deepEquals(intMap, other.intMap) && _deepEquals(enumMap, other.enumMap) && _deepEquals(objectMap, other.objectMap) && _deepEquals(listMap, other.listMap) && _deepEquals(mapMap, other.mapMap) && _deepEquals(recursiveClassMap, other.recursiveClassMap); + return _deepEquals(aNullableBool, other.aNullableBool) && + _deepEquals(aNullableInt, other.aNullableInt) && + _deepEquals(aNullableInt64, other.aNullableInt64) && + _deepEquals(aNullableDouble, other.aNullableDouble) && + _deepEquals(aNullableByteArray, other.aNullableByteArray) && + _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && + _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && + _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && + _deepEquals(aNullableEnum, other.aNullableEnum) && + _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && + _deepEquals(aNullableString, other.aNullableString) && + _deepEquals(aNullableObject, other.aNullableObject) && + _deepEquals(allNullableTypes, other.allNullableTypes) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(recursiveClassList, other.recursiveClassList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap) && + _deepEquals(recursiveClassMap, other.recursiveClassMap); } @override @@ -643,7 +701,8 @@ class AllNullableTypesWithoutRecursion { } Object encode() { - return _toList(); } + return _toList(); + } static AllNullableTypesWithoutRecursion decode(Object result) { result as List; @@ -670,25 +729,57 @@ class AllNullableTypesWithoutRecursion { listList: (result[19] as List?)?.cast?>(), mapList: (result[20] as List?)?.cast?>(), map: result[21] as Map?, - stringMap: (result[22] as Map?)?.cast(), + stringMap: (result[22] as Map?) + ?.cast(), intMap: (result[23] as Map?)?.cast(), enumMap: (result[24] as Map?)?.cast(), - objectMap: (result[25] as Map?)?.cast(), - listMap: (result[26] as Map?)?.cast?>(), - mapMap: (result[27] as Map?)?.cast?>(), + objectMap: (result[25] as Map?) + ?.cast(), + listMap: (result[26] as Map?) + ?.cast?>(), + mapMap: (result[27] as Map?) + ?.cast?>(), ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! AllNullableTypesWithoutRecursion || other.runtimeType != runtimeType) { + if (other is! AllNullableTypesWithoutRecursion || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { return true; } - return _deepEquals(aNullableBool, other.aNullableBool) && _deepEquals(aNullableInt, other.aNullableInt) && _deepEquals(aNullableInt64, other.aNullableInt64) && _deepEquals(aNullableDouble, other.aNullableDouble) && _deepEquals(aNullableByteArray, other.aNullableByteArray) && _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && _deepEquals(aNullableEnum, other.aNullableEnum) && _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && _deepEquals(aNullableString, other.aNullableString) && _deepEquals(aNullableObject, other.aNullableObject) && _deepEquals(list, other.list) && _deepEquals(stringList, other.stringList) && _deepEquals(intList, other.intList) && _deepEquals(doubleList, other.doubleList) && _deepEquals(boolList, other.boolList) && _deepEquals(enumList, other.enumList) && _deepEquals(objectList, other.objectList) && _deepEquals(listList, other.listList) && _deepEquals(mapList, other.mapList) && _deepEquals(map, other.map) && _deepEquals(stringMap, other.stringMap) && _deepEquals(intMap, other.intMap) && _deepEquals(enumMap, other.enumMap) && _deepEquals(objectMap, other.objectMap) && _deepEquals(listMap, other.listMap) && _deepEquals(mapMap, other.mapMap); + return _deepEquals(aNullableBool, other.aNullableBool) && + _deepEquals(aNullableInt, other.aNullableInt) && + _deepEquals(aNullableInt64, other.aNullableInt64) && + _deepEquals(aNullableDouble, other.aNullableDouble) && + _deepEquals(aNullableByteArray, other.aNullableByteArray) && + _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && + _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && + _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && + _deepEquals(aNullableEnum, other.aNullableEnum) && + _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && + _deepEquals(aNullableString, other.aNullableString) && + _deepEquals(aNullableObject, other.aNullableObject) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap); } @override @@ -739,18 +830,22 @@ class AllClassesWrapper { } Object encode() { - return _toList(); } + return _toList(); + } static AllClassesWrapper decode(Object result) { result as List; return AllClassesWrapper( allNullableTypes: result[0]! as AllNullableTypes, - allNullableTypesWithoutRecursion: result[1] as AllNullableTypesWithoutRecursion?, + allNullableTypesWithoutRecursion: + result[1] as AllNullableTypesWithoutRecursion?, allTypes: result[2] as AllTypes?, classList: (result[3] as List?)!.cast(), - nullableClassList: (result[4] as List?)?.cast(), + nullableClassList: (result[4] as List?) + ?.cast(), classMap: (result[5] as Map?)!.cast(), - nullableClassMap: (result[6] as Map?)?.cast(), + nullableClassMap: (result[6] as Map?) + ?.cast(), ); } @@ -763,7 +858,16 @@ class AllClassesWrapper { if (identical(this, other)) { return true; } - return _deepEquals(allNullableTypes, other.allNullableTypes) && _deepEquals(allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && _deepEquals(allTypes, other.allTypes) && _deepEquals(classList, other.classList) && _deepEquals(nullableClassList, other.nullableClassList) && _deepEquals(classMap, other.classMap) && _deepEquals(nullableClassMap, other.nullableClassMap); + return _deepEquals(allNullableTypes, other.allNullableTypes) && + _deepEquals( + allNullableTypesWithoutRecursion, + other.allNullableTypesWithoutRecursion, + ) && + _deepEquals(allTypes, other.allTypes) && + _deepEquals(classList, other.classList) && + _deepEquals(nullableClassList, other.nullableClassList) && + _deepEquals(classMap, other.classMap) && + _deepEquals(nullableClassMap, other.nullableClassMap); } @override @@ -773,26 +877,21 @@ class AllClassesWrapper { /// A data class containing a List, used in unit tests. class TestMessage { - TestMessage({ - this.testList, - }); + TestMessage({this.testList}); List? testList; List _toList() { - return [ - testList, - ]; + return [testList]; } Object encode() { - return _toList(); } + return _toList(); + } static TestMessage decode(Object result) { result as List; - return TestMessage( - testList: result[0] as List?, - ); + return TestMessage(testList: result[0] as List?); } @override @@ -812,7 +911,6 @@ class TestMessage { int get hashCode => _deepHash([runtimeType, ..._toList()]); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -820,28 +918,28 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is AnEnum) { + } else if (value is AnEnum) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is AnotherEnum) { + } else if (value is AnotherEnum) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is UnusedClass) { + } else if (value is UnusedClass) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is AllTypes) { + } else if (value is AllTypes) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is AllNullableTypes) { + } else if (value is AllNullableTypes) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is AllNullableTypesWithoutRecursion) { + } else if (value is AllNullableTypesWithoutRecursion) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is AllClassesWrapper) { + } else if (value is AllClassesWrapper) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is TestMessage) { + } else if (value is TestMessage) { buffer.putUint8(136); writeValue(buffer, value.encode()); } else { @@ -882,9 +980,13 @@ class HostIntegrationCoreApi { /// Constructor for [HostIntegrationCoreApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - HostIntegrationCoreApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + HostIntegrationCoreApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -894,7 +996,8 @@ class HostIntegrationCoreApi { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. Future noop() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -904,36 +1007,38 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Returns the passed object, to test serialization and deserialization. Future echoAllTypes(AllTypes everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllTypes; } /// Returns an error, to test error handling. Future throwError() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -943,17 +1048,17 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue; } /// Returns an error from a void function, to test error handling. Future throwErrorFromVoid() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -963,16 +1068,16 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Returns a Flutter error, to test error handling. Future throwFlutterError() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -982,1178 +1087,1367 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue; } /// Returns passed in int. Future echoInt(int anInt) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } /// Returns passed in double. Future echoDouble(double aDouble) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as double; } /// Returns the passed in boolean. Future echoBool(bool aBool) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as bool; } /// Returns the passed in string. Future echoString(String aString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as String; } /// Returns the passed in Uint8List. Future echoUint8List(Uint8List aUint8List) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as Uint8List; } /// Returns the passed in generic Object. Future echoObject(Object anObject) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anObject]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anObject], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue; } /// Returns the passed list, to test serialization and deserialization. Future> echoList(List list) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test serialization and deserialization. Future> echoEnumList(List enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test serialization and deserialization. - Future> echoClassList(List classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$pigeonVar_messageChannelSuffix'; + Future> echoClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test serialization and deserialization. Future> echoNonNullEnumList(List enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test serialization and deserialization. - Future> echoNonNullClassList(List classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$pigeonVar_messageChannelSuffix'; + Future> echoNonNullClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed map, to test serialization and deserialization. Future> echoMap(Map map) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoStringMap(Map stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$pigeonVar_messageChannelSuffix'; + Future> echoStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test serialization and deserialization. Future> echoIntMap(Map intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoEnumMap(Map enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$pigeonVar_messageChannelSuffix'; + Future> echoEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoClassMap(Map classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$pigeonVar_messageChannelSuffix'; + Future> echoClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullStringMap(Map stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$pigeonVar_messageChannelSuffix'; + Future> echoNonNullStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test serialization and deserialization. Future> echoNonNullIntMap(Map intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullEnumMap(Map enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$pigeonVar_messageChannelSuffix'; + Future> echoNonNullEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test serialization and deserialization. - Future> echoNonNullClassMap(Map classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$pigeonVar_messageChannelSuffix'; + Future> echoNonNullClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed class to test nested class serialization and deserialization. Future echoClassWrapper(AllClassesWrapper wrapper) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([wrapper]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [wrapper], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllClassesWrapper; } /// Returns the passed enum to test serialization and deserialization. Future echoEnum(AnEnum anEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AnEnum; } /// Returns the passed enum to test serialization and deserialization. Future echoAnotherEnum(AnotherEnum anotherEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AnotherEnum; } /// Returns the default string. Future echoNamedDefaultString({String aString = 'default'}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as String; } /// Returns passed in double. Future echoOptionalDefaultDouble([double aDouble = 3.14]) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as double; } /// Returns passed in int. Future echoRequiredInt({required int anInt}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } /// Returns the result of platform-side equality check. - Future areAllNullableTypesEqual(AllNullableTypes a, AllNullableTypes b) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual$pigeonVar_messageChannelSuffix'; + Future areAllNullableTypesEqual( + AllNullableTypes a, + AllNullableTypes b, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([a, b]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [a, b], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as bool; } /// Returns the platform-side hash code for the given object. Future getAllNullableTypesHash(AllNullableTypes value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } /// Returns the passed object, to test serialization and deserialization. - Future echoAllNullableTypes(AllNullableTypes? everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; + Future echoAllNullableTypes( + AllNullableTypes? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AllNullableTypes?; } /// Returns the passed object, to test serialization and deserialization. - Future echoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future + echoAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AllNullableTypesWithoutRecursion?; } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. Future extractNestedNullableString(AllClassesWrapper wrapper) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([wrapper]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [wrapper], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as String?; } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - Future createNestedNullableString(String? nullableString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; + Future createNestedNullableString( + String? nullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([nullableString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [nullableString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllClassesWrapper; } /// Returns passed in arguments of multiple types. - Future sendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + Future sendMultipleNullableTypes( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool, aNullableInt, aNullableString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllNullableTypes; } /// Returns passed in arguments of multiple types. - Future sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future + sendMultipleNullableTypesWithoutRecursion( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool, aNullableInt, aNullableString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllNullableTypesWithoutRecursion; } /// Returns passed in int. Future echoNullableInt(int? aNullableInt) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as int?; } /// Returns passed in double. Future echoNullableDouble(double? aNullableDouble) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as double?; } /// Returns the passed in boolean. Future echoNullableBool(bool? aNullableBool) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as bool?; } /// Returns the passed in string. Future echoNullableString(String? aNullableString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as String?; } /// Returns the passed in Uint8List. - Future echoNullableUint8List(Uint8List? aNullableUint8List) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; + Future echoNullableUint8List( + Uint8List? aNullableUint8List, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as Uint8List?; } /// Returns the passed in generic Object. Future echoNullableObject(Object? aNullableObject) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableObject]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableObject], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue; } /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableList(List? aNullableList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableEnumList(List? enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableClassList(List? classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$pigeonVar_messageChannelSuffix'; + Future?> echoNullableClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableNonNullEnumList(List? enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullEnumList( + List? enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test serialization and deserialization. - Future?> echoNullableNonNullClassList(List? classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableMap(Map? map) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableMap( + Map? map, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableStringMap(Map? stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test serialization and deserialization. Future?> echoNullableIntMap(Map? intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableEnumMap(Map? enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableClassMap(Map? classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullStringMap(Map? stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullIntMap(Map? intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullIntMap( + Map? intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullEnumMap(Map? enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test serialization and deserialization. - Future?> echoNullableNonNullClassMap(Map? classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; + Future?> echoNullableNonNullClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } Future echoNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AnEnum?; } Future echoAnotherNullableEnum(AnotherEnum? anotherEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AnotherEnum?; } /// Returns passed in int. Future echoOptionalNullableInt([int? aNullableInt]) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as int?; } /// Returns the passed in string. Future echoNamedNullableString({String? aNullableString}) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as String?; } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. Future noopAsync() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2163,336 +2457,380 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Returns passed in int asynchronously. Future echoAsyncInt(int anInt) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } /// Returns passed in double asynchronously. Future echoAsyncDouble(double aDouble) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as double; } /// Returns the passed in boolean asynchronously. Future echoAsyncBool(bool aBool) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as bool; } /// Returns the passed string asynchronously. Future echoAsyncString(String aString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as String; } /// Returns the passed in Uint8List asynchronously. Future echoAsyncUint8List(Uint8List aUint8List) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as Uint8List; } /// Returns the passed in generic Object asynchronously. Future echoAsyncObject(Object anObject) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anObject]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anObject], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue; } /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncList(List list) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncEnumList(List enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future> echoAsyncClassList(List classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$pigeonVar_messageChannelSuffix'; + Future> echoAsyncClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncMap(Map map) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncStringMap(Map stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$pigeonVar_messageChannelSuffix'; + Future> echoAsyncStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncIntMap(Map intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as Map).cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncEnumMap(Map enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$pigeonVar_messageChannelSuffix'; + Future> echoAsyncEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future> echoAsyncClassMap(Map classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$pigeonVar_messageChannelSuffix'; + Future> echoAsyncClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncEnum(AnEnum anEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AnEnum; } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAnotherAsyncEnum(AnotherEnum anotherEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AnotherEnum; } /// Responds with an error from an async function returning a value. Future throwAsyncError() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2502,17 +2840,17 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue; } /// Responds with an error from an async void function. Future throwAsyncErrorFromVoid() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2522,16 +2860,16 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// Responds with a Flutter error from an async function returning a value. Future throwAsyncFlutterError() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2541,398 +2879,461 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue; } /// Returns the passed object, to test async serialization and deserialization. Future echoAsyncAllTypes(AllTypes everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllTypes; } /// Returns the passed object, to test serialization and deserialization. - Future echoAsyncNullableAllNullableTypes(AllNullableTypes? everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; + Future echoAsyncNullableAllNullableTypes( + AllNullableTypes? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AllNullableTypes?; } /// Returns the passed object, to test serialization and deserialization. - Future echoAsyncNullableAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future + echoAsyncNullableAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AllNullableTypesWithoutRecursion?; } /// Returns passed in int asynchronously. Future echoAsyncNullableInt(int? anInt) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as int?; } /// Returns passed in double asynchronously. Future echoAsyncNullableDouble(double? aDouble) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as double?; } /// Returns the passed in boolean asynchronously. Future echoAsyncNullableBool(bool? aBool) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as bool?; } /// Returns the passed string asynchronously. Future echoAsyncNullableString(String? aString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as String?; } /// Returns the passed in Uint8List asynchronously. Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as Uint8List?; } /// Returns the passed in generic Object asynchronously. Future echoAsyncNullableObject(Object? anObject) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anObject]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anObject], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue; } /// Returns the passed list, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableList(List? list) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableEnumList(List? enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableEnumList( + List? enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed list, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableClassList(List? classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableMap(Map? map) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableMap( + Map? map, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableStringMap(Map? stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableIntMap(Map? intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableIntMap( + Map? intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as Map?)?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableEnumMap(Map? enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed map, to test asynchronous serialization and deserialization. - Future?> echoAsyncNullableClassMap(Map? classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$pigeonVar_messageChannelSuffix'; + Future?> echoAsyncNullableClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AnEnum?; } /// Returns the passed enum, to test asynchronous serialization and deserialization. - Future echoAnotherAsyncNullableEnum(AnotherEnum? anotherEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + Future echoAnotherAsyncNullableEnum( + AnotherEnum? anotherEnum, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AnotherEnum?; } /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. Future defaultIsMainThread() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2942,18 +3343,18 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as bool; } /// Returns true if the handler is run on a non-main thread, which should be /// true for any platform with TaskQueue support. Future taskQueueIsBackgroundThread() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2963,16 +3364,16 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as bool; } Future callFlutterNoop() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -2982,15 +3383,15 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future callFlutterThrowError() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -3000,16 +3401,16 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue; } Future callFlutterThrowErrorFromVoid() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -3019,922 +3420,1099 @@ class HostIntegrationCoreApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } Future callFlutterEchoAllTypes(AllTypes everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllTypes; } - Future callFlutterEchoAllNullableTypes(AllNullableTypes? everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; + Future callFlutterEchoAllNullableTypes( + AllNullableTypes? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AllNullableTypes?; } - Future callFlutterSendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + Future callFlutterSendMultipleNullableTypes( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool, aNullableInt, aNullableString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllNullableTypes; } - Future callFlutterEchoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future + callFlutterEchoAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? everything, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([everything]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [everything], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AllNullableTypesWithoutRecursion?; } - Future callFlutterSendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + Future + callFlutterSendMultipleNullableTypesWithoutRecursion( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aNullableBool, aNullableInt, aNullableString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aNullableBool, aNullableInt, aNullableString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AllNullableTypesWithoutRecursion; } Future callFlutterEchoBool(bool aBool) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as bool; } Future callFlutterEchoInt(int anInt) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } Future callFlutterEchoDouble(double aDouble) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as double; } Future callFlutterEchoString(String aString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as String; } Future callFlutterEchoUint8List(Uint8List list) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as Uint8List; } Future> callFlutterEchoList(List list) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } Future> callFlutterEchoEnumList(List enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } - Future> callFlutterEchoClassList(List classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } - Future> callFlutterEchoNonNullEnumList(List enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullEnumList( + List enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } - Future> callFlutterEchoNonNullClassList(List classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullClassList( + List classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } - Future> callFlutterEchoMap(Map map) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoMap( + Map map, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } - Future> callFlutterEchoStringMap(Map stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } Future> callFlutterEchoIntMap(Map intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoEnumMap(Map enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } - Future> callFlutterEchoClassMap(Map classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } - Future> callFlutterEchoNonNullStringMap(Map stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullStringMap( + Map stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } - Future> callFlutterEchoNonNullIntMap(Map intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullIntMap( + Map intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as Map).cast(); } - Future> callFlutterEchoNonNullEnumMap(Map enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullEnumMap( + Map enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } - Future> callFlutterEchoNonNullClassMap(Map classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$pigeonVar_messageChannelSuffix'; + Future> callFlutterEchoNonNullClassMap( + Map classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } Future callFlutterEchoEnum(AnEnum anEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AnEnum; } - Future callFlutterEchoAnotherEnum(AnotherEnum anotherEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; + Future callFlutterEchoAnotherEnum( + AnotherEnum anotherEnum, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as AnotherEnum; } Future callFlutterEchoNullableBool(bool? aBool) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as bool?; } Future callFlutterEchoNullableInt(int? anInt) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as int?; } Future callFlutterEchoNullableDouble(double? aDouble) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as double?; } Future callFlutterEchoNullableString(String? aString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as String?; } Future callFlutterEchoNullableUint8List(Uint8List? list) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as Uint8List?; } - Future?> callFlutterEchoNullableList(List? list) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableList( + List? list, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([list]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [list], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableEnumList(List? enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableEnumList( + List? enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableClassList(List? classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableNonNullEnumList(List? enumList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullEnumList( + List? enumList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableNonNullClassList(List? classList) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullClassList( + List? classList, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } - Future?> callFlutterEchoNullableMap(Map? map) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableMap( + Map? map, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([map]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [map], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } - Future?> callFlutterEchoNullableStringMap(Map? stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } - Future?> callFlutterEchoNullableIntMap(Map? intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableIntMap( + Map? intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableEnumMap(Map? enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } - Future?> callFlutterEchoNullableClassMap(Map? classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } - Future?> callFlutterEchoNullableNonNullStringMap(Map? stringMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullStringMap( + Map? stringMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([stringMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [stringMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } - Future?> callFlutterEchoNullableNonNullIntMap(Map? intMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullIntMap( + Map? intMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([intMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [intMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as Map?)?.cast(); } - Future?> callFlutterEchoNullableNonNullEnumMap(Map? enumMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullEnumMap( + Map? enumMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enumMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enumMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } - Future?> callFlutterEchoNullableNonNullClassMap(Map? classMap) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; + Future?> callFlutterEchoNullableNonNullClassMap( + Map? classMap, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([classMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [classMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; - return (pigeonVar_replyValue as Map?)?.cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + return (pigeonVar_replyValue as Map?) + ?.cast(); } Future callFlutterEchoNullableEnum(AnEnum? anEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AnEnum?; } - Future callFlutterEchoAnotherNullableEnum(AnotherEnum? anotherEnum) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + Future callFlutterEchoAnotherNullableEnum( + AnotherEnum? anotherEnum, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([anotherEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [anotherEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as AnotherEnum?; } Future callFlutterSmallApiEchoString(String aString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as String; } } @@ -3963,15 +4541,25 @@ abstract class FlutterIntegrationCoreApi { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - AllNullableTypes sendMultipleNullableTypes(bool? aNullableBool, int? aNullableInt, String? aNullableString); + AllNullableTypes sendMultipleNullableTypes( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ); /// Returns the passed object, to test serialization and deserialization. - AllNullableTypesWithoutRecursion? echoAllNullableTypesWithoutRecursion(AllNullableTypesWithoutRecursion? everything); + AllNullableTypesWithoutRecursion? echoAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? everything, + ); /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString); + AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( + bool? aNullableBool, + int? aNullableInt, + String? aNullableString, + ); /// Returns the passed boolean, to test serialization and deserialization. bool echoBool(bool aBool); @@ -4016,7 +4604,9 @@ abstract class FlutterIntegrationCoreApi { Map echoEnumMap(Map enumMap); /// Returns the passed map, to test serialization and deserialization. - Map echoClassMap(Map classMap); + Map echoClassMap( + Map classMap, + ); /// Returns the passed map, to test serialization and deserialization. Map echoNonNullStringMap(Map stringMap); @@ -4028,7 +4618,9 @@ abstract class FlutterIntegrationCoreApi { Map echoNonNullEnumMap(Map enumMap); /// Returns the passed map, to test serialization and deserialization. - Map echoNonNullClassMap(Map classMap); + Map echoNonNullClassMap( + Map classMap, + ); /// Returns the passed enum to test serialization and deserialization. AnEnum echoEnum(AnEnum anEnum); @@ -4058,19 +4650,25 @@ abstract class FlutterIntegrationCoreApi { List? echoNullableEnumList(List? enumList); /// Returns the passed list, to test serialization and deserialization. - List? echoNullableClassList(List? classList); + List? echoNullableClassList( + List? classList, + ); /// Returns the passed list, to test serialization and deserialization. List? echoNullableNonNullEnumList(List? enumList); /// Returns the passed list, to test serialization and deserialization. - List? echoNullableNonNullClassList(List? classList); + List? echoNullableNonNullClassList( + List? classList, + ); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableMap(Map? map); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableStringMap(Map? stringMap); + Map? echoNullableStringMap( + Map? stringMap, + ); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableIntMap(Map? intMap); @@ -4079,10 +4677,14 @@ abstract class FlutterIntegrationCoreApi { Map? echoNullableEnumMap(Map? enumMap); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableClassMap(Map? classMap); + Map? echoNullableClassMap( + Map? classMap, + ); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullStringMap(Map? stringMap); + Map? echoNullableNonNullStringMap( + Map? stringMap, + ); /// Returns the passed map, to test serialization and deserialization. Map? echoNullableNonNullIntMap(Map? intMap); @@ -4091,7 +4693,9 @@ abstract class FlutterIntegrationCoreApi { Map? echoNullableNonNullEnumMap(Map? enumMap); /// Returns the passed map, to test serialization and deserialization. - Map? echoNullableNonNullClassMap(Map? classMap); + Map? echoNullableNonNullClassMap( + Map? classMap, + ); /// Returns the passed enum to test serialization and deserialization. AnEnum? echoNullableEnum(AnEnum? anEnum); @@ -4106,12 +4710,20 @@ abstract class FlutterIntegrationCoreApi { /// Returns the passed in generic Object asynchronously. Future echoAsyncString(String aString); - static void setUp(FlutterIntegrationCoreApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + FlutterIntegrationCoreApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -4121,16 +4733,20 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -4140,16 +4756,20 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -4159,668 +4779,918 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null.', + ); final List args = (message as List?)!; final AllTypes? arg_everything = (args[0] as AllTypes?); - assert(arg_everything != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null, expected non-null AllTypes.'); + assert( + arg_everything != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null, expected non-null AllTypes.', + ); try { final AllTypes output = api.echoAllTypes(arg_everything!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes was null.', + ); final List args = (message as List?)!; - final AllNullableTypes? arg_everything = (args[0] as AllNullableTypes?); + final AllNullableTypes? arg_everything = + (args[0] as AllNullableTypes?); try { - final AllNullableTypes? output = api.echoAllNullableTypes(arg_everything); + final AllNullableTypes? output = api.echoAllNullableTypes( + arg_everything, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.', + ); final List args = (message as List?)!; final bool? arg_aNullableBool = (args[0] as bool?); final int? arg_aNullableInt = (args[1] as int?); final String? arg_aNullableString = (args[2] as String?); try { - final AllNullableTypes output = api.sendMultipleNullableTypes(arg_aNullableBool, arg_aNullableInt, arg_aNullableString); + final AllNullableTypes output = api.sendMultipleNullableTypes( + arg_aNullableBool, + arg_aNullableInt, + arg_aNullableString, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.', + ); final List args = (message as List?)!; - final AllNullableTypesWithoutRecursion? arg_everything = (args[0] as AllNullableTypesWithoutRecursion?); + final AllNullableTypesWithoutRecursion? arg_everything = + (args[0] as AllNullableTypesWithoutRecursion?); try { - final AllNullableTypesWithoutRecursion? output = api.echoAllNullableTypesWithoutRecursion(arg_everything); + final AllNullableTypesWithoutRecursion? output = api + .echoAllNullableTypesWithoutRecursion(arg_everything); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.', + ); final List args = (message as List?)!; final bool? arg_aNullableBool = (args[0] as bool?); final int? arg_aNullableInt = (args[1] as int?); final String? arg_aNullableString = (args[2] as String?); try { - final AllNullableTypesWithoutRecursion output = api.sendMultipleNullableTypesWithoutRecursion(arg_aNullableBool, arg_aNullableInt, arg_aNullableString); + final AllNullableTypesWithoutRecursion output = api + .sendMultipleNullableTypesWithoutRecursion( + arg_aNullableBool, + arg_aNullableInt, + arg_aNullableString, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null.', + ); final List args = (message as List?)!; final bool? arg_aBool = (args[0] as bool?); - assert(arg_aBool != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null, expected non-null bool.'); + assert( + arg_aBool != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null, expected non-null bool.', + ); try { final bool output = api.echoBool(arg_aBool!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null.', + ); final List args = (message as List?)!; final int? arg_anInt = (args[0] as int?); - assert(arg_anInt != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null, expected non-null int.'); + assert( + arg_anInt != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null, expected non-null int.', + ); try { final int output = api.echoInt(arg_anInt!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null.', + ); final List args = (message as List?)!; final double? arg_aDouble = (args[0] as double?); - assert(arg_aDouble != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null, expected non-null double.'); + assert( + arg_aDouble != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null, expected non-null double.', + ); try { final double output = api.echoDouble(arg_aDouble!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null.', + ); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); - assert(arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null, expected non-null String.'); + assert( + arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null, expected non-null String.', + ); try { final String output = api.echoString(arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null.', + ); final List args = (message as List?)!; final Uint8List? arg_list = (args[0] as Uint8List?); - assert(arg_list != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null, expected non-null Uint8List.'); + assert( + arg_list != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null, expected non-null Uint8List.', + ); try { final Uint8List output = api.echoUint8List(arg_list!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null.', + ); final List args = (message as List?)!; - final List? arg_list = (args[0] as List?)?.cast(); - assert(arg_list != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null, expected non-null List.'); + final List? arg_list = (args[0] as List?) + ?.cast(); + assert( + arg_list != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null, expected non-null List.', + ); try { final List output = api.echoList(arg_list!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null.', + ); final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?)?.cast(); - assert(arg_enumList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null, expected non-null List.'); + final List? arg_enumList = (args[0] as List?) + ?.cast(); + assert( + arg_enumList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList was null, expected non-null List.', + ); try { final List output = api.echoEnumList(arg_enumList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null.', + ); final List args = (message as List?)!; - final List? arg_classList = (args[0] as List?)?.cast(); - assert(arg_classList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null, expected non-null List.'); + final List? arg_classList = + (args[0] as List?)?.cast(); + assert( + arg_classList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList was null, expected non-null List.', + ); try { - final List output = api.echoClassList(arg_classList!); + final List output = api.echoClassList( + arg_classList!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null.', + ); final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?)?.cast(); - assert(arg_enumList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null, expected non-null List.'); + final List? arg_enumList = (args[0] as List?) + ?.cast(); + assert( + arg_enumList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList was null, expected non-null List.', + ); try { final List output = api.echoNonNullEnumList(arg_enumList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null.', + ); final List args = (message as List?)!; - final List? arg_classList = (args[0] as List?)?.cast(); - assert(arg_classList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null, expected non-null List.'); + final List? arg_classList = + (args[0] as List?)?.cast(); + assert( + arg_classList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList was null, expected non-null List.', + ); try { - final List output = api.echoNonNullClassList(arg_classList!); + final List output = api.echoNonNullClassList( + arg_classList!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null.', + ); final List args = (message as List?)!; - final Map? arg_map = (args[0] as Map?)?.cast(); - assert(arg_map != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null, expected non-null Map.'); + final Map? arg_map = + (args[0] as Map?)?.cast(); + assert( + arg_map != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null, expected non-null Map.', + ); try { final Map output = api.echoMap(arg_map!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null.', + ); final List args = (message as List?)!; - final Map? arg_stringMap = (args[0] as Map?)?.cast(); - assert(arg_stringMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null, expected non-null Map.'); + final Map? arg_stringMap = + (args[0] as Map?)?.cast(); + assert( + arg_stringMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap was null, expected non-null Map.', + ); try { - final Map output = api.echoStringMap(arg_stringMap!); + final Map output = api.echoStringMap( + arg_stringMap!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null.', + ); final List args = (message as List?)!; - final Map? arg_intMap = (args[0] as Map?)?.cast(); - assert(arg_intMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null, expected non-null Map.'); + final Map? arg_intMap = + (args[0] as Map?)?.cast(); + assert( + arg_intMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap was null, expected non-null Map.', + ); try { final Map output = api.echoIntMap(arg_intMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null.', + ); final List args = (message as List?)!; - final Map? arg_enumMap = (args[0] as Map?)?.cast(); - assert(arg_enumMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null, expected non-null Map.'); + final Map? arg_enumMap = + (args[0] as Map?)?.cast(); + assert( + arg_enumMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap was null, expected non-null Map.', + ); try { final Map output = api.echoEnumMap(arg_enumMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null.', + ); final List args = (message as List?)!; - final Map? arg_classMap = (args[0] as Map?)?.cast(); - assert(arg_classMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null, expected non-null Map.'); + final Map? arg_classMap = + (args[0] as Map?) + ?.cast(); + assert( + arg_classMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap was null, expected non-null Map.', + ); try { - final Map output = api.echoClassMap(arg_classMap!); + final Map output = api.echoClassMap( + arg_classMap!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null.', + ); final List args = (message as List?)!; - final Map? arg_stringMap = (args[0] as Map?)?.cast(); - assert(arg_stringMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null, expected non-null Map.'); + final Map? arg_stringMap = + (args[0] as Map?)?.cast(); + assert( + arg_stringMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap was null, expected non-null Map.', + ); try { - final Map output = api.echoNonNullStringMap(arg_stringMap!); + final Map output = api.echoNonNullStringMap( + arg_stringMap!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null.', + ); final List args = (message as List?)!; - final Map? arg_intMap = (args[0] as Map?)?.cast(); - assert(arg_intMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null, expected non-null Map.'); + final Map? arg_intMap = (args[0] as Map?) + ?.cast(); + assert( + arg_intMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap was null, expected non-null Map.', + ); try { final Map output = api.echoNonNullIntMap(arg_intMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null.', + ); final List args = (message as List?)!; - final Map? arg_enumMap = (args[0] as Map?)?.cast(); - assert(arg_enumMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null, expected non-null Map.'); + final Map? arg_enumMap = + (args[0] as Map?)?.cast(); + assert( + arg_enumMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap was null, expected non-null Map.', + ); try { - final Map output = api.echoNonNullEnumMap(arg_enumMap!); + final Map output = api.echoNonNullEnumMap( + arg_enumMap!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null.', + ); final List args = (message as List?)!; - final Map? arg_classMap = (args[0] as Map?)?.cast(); - assert(arg_classMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null, expected non-null Map.'); + final Map? arg_classMap = + (args[0] as Map?) + ?.cast(); + assert( + arg_classMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap was null, expected non-null Map.', + ); try { - final Map output = api.echoNonNullClassMap(arg_classMap!); + final Map output = api.echoNonNullClassMap( + arg_classMap!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null.', + ); final List args = (message as List?)!; final AnEnum? arg_anEnum = (args[0] as AnEnum?); - assert(arg_anEnum != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null, expected non-null AnEnum.'); + assert( + arg_anEnum != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null, expected non-null AnEnum.', + ); try { final AnEnum output = api.echoEnum(arg_anEnum!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.', + ); final List args = (message as List?)!; final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); - assert(arg_anotherEnum != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null, expected non-null AnotherEnum.'); + assert( + arg_anotherEnum != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null, expected non-null AnotherEnum.', + ); try { final AnotherEnum output = api.echoAnotherEnum(arg_anotherEnum!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool was null.', + ); final List args = (message as List?)!; final bool? arg_aBool = (args[0] as bool?); try { @@ -4828,22 +5698,28 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt was null.', + ); final List args = (message as List?)!; final int? arg_anInt = (args[0] as int?); try { @@ -4851,22 +5727,28 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble was null.', + ); final List args = (message as List?)!; final double? arg_aDouble = (args[0] as double?); try { @@ -4874,22 +5756,28 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString was null.', + ); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); try { @@ -4897,22 +5785,28 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List was null.', + ); final List args = (message as List?)!; final Uint8List? arg_list = (args[0] as Uint8List?); try { @@ -4920,344 +5814,468 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList was null.', + ); final List args = (message as List?)!; - final List? arg_list = (args[0] as List?)?.cast(); + final List? arg_list = (args[0] as List?) + ?.cast(); try { final List? output = api.echoNullableList(arg_list); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList was null.', + ); final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?)?.cast(); + final List? arg_enumList = (args[0] as List?) + ?.cast(); try { - final List? output = api.echoNullableEnumList(arg_enumList); + final List? output = api.echoNullableEnumList( + arg_enumList, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList was null.', + ); final List args = (message as List?)!; - final List? arg_classList = (args[0] as List?)?.cast(); + final List? arg_classList = + (args[0] as List?)?.cast(); try { - final List? output = api.echoNullableClassList(arg_classList); + final List? output = api.echoNullableClassList( + arg_classList, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList was null.', + ); final List args = (message as List?)!; - final List? arg_enumList = (args[0] as List?)?.cast(); + final List? arg_enumList = (args[0] as List?) + ?.cast(); try { - final List? output = api.echoNullableNonNullEnumList(arg_enumList); + final List? output = api.echoNullableNonNullEnumList( + arg_enumList, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList was null.', + ); final List args = (message as List?)!; - final List? arg_classList = (args[0] as List?)?.cast(); + final List? arg_classList = + (args[0] as List?)?.cast(); try { - final List? output = api.echoNullableNonNullClassList(arg_classList); + final List? output = api + .echoNullableNonNullClassList(arg_classList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap was null.', + ); final List args = (message as List?)!; - final Map? arg_map = (args[0] as Map?)?.cast(); + final Map? arg_map = + (args[0] as Map?)?.cast(); try { final Map? output = api.echoNullableMap(arg_map); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap was null.', + ); final List args = (message as List?)!; - final Map? arg_stringMap = (args[0] as Map?)?.cast(); + final Map? arg_stringMap = + (args[0] as Map?)?.cast(); try { - final Map? output = api.echoNullableStringMap(arg_stringMap); + final Map? output = api.echoNullableStringMap( + arg_stringMap, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap was null.', + ); final List args = (message as List?)!; - final Map? arg_intMap = (args[0] as Map?)?.cast(); + final Map? arg_intMap = + (args[0] as Map?)?.cast(); try { final Map? output = api.echoNullableIntMap(arg_intMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap was null.', + ); final List args = (message as List?)!; - final Map? arg_enumMap = (args[0] as Map?)?.cast(); + final Map? arg_enumMap = + (args[0] as Map?)?.cast(); try { - final Map? output = api.echoNullableEnumMap(arg_enumMap); + final Map? output = api.echoNullableEnumMap( + arg_enumMap, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap was null.', + ); final List args = (message as List?)!; - final Map? arg_classMap = (args[0] as Map?)?.cast(); + final Map? arg_classMap = + (args[0] as Map?) + ?.cast(); try { - final Map? output = api.echoNullableClassMap(arg_classMap); + final Map? output = api + .echoNullableClassMap(arg_classMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap was null.', + ); final List args = (message as List?)!; - final Map? arg_stringMap = (args[0] as Map?)?.cast(); + final Map? arg_stringMap = + (args[0] as Map?)?.cast(); try { - final Map? output = api.echoNullableNonNullStringMap(arg_stringMap); + final Map? output = api + .echoNullableNonNullStringMap(arg_stringMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap was null.', + ); final List args = (message as List?)!; - final Map? arg_intMap = (args[0] as Map?)?.cast(); + final Map? arg_intMap = (args[0] as Map?) + ?.cast(); try { - final Map? output = api.echoNullableNonNullIntMap(arg_intMap); + final Map? output = api.echoNullableNonNullIntMap( + arg_intMap, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap was null.', + ); final List args = (message as List?)!; - final Map? arg_enumMap = (args[0] as Map?)?.cast(); + final Map? arg_enumMap = + (args[0] as Map?)?.cast(); try { - final Map? output = api.echoNullableNonNullEnumMap(arg_enumMap); + final Map? output = api.echoNullableNonNullEnumMap( + arg_enumMap, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap was null.', + ); final List args = (message as List?)!; - final Map? arg_classMap = (args[0] as Map?)?.cast(); + final Map? arg_classMap = + (args[0] as Map?) + ?.cast(); try { - final Map? output = api.echoNullableNonNullClassMap(arg_classMap); + final Map? output = api + .echoNullableNonNullClassMap(arg_classMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum was null.', + ); final List args = (message as List?)!; final AnEnum? arg_anEnum = (args[0] as AnEnum?); try { @@ -5265,39 +6283,51 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.', + ); final List args = (message as List?)!; final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); try { - final AnotherEnum? output = api.echoAnotherNullableEnum(arg_anotherEnum); + final AnotherEnum? output = api.echoAnotherNullableEnum( + arg_anotherEnum, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -5307,33 +6337,43 @@ abstract class FlutterIntegrationCoreApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null.', + ); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); - assert(arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null, expected non-null String.'); + assert( + arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null, expected non-null String.', + ); try { final String output = await api.echoAsyncString(arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -5346,9 +6386,13 @@ class HostTrivialApi { /// Constructor for [HostTrivialApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - HostTrivialApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + HostTrivialApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -5356,7 +6400,8 @@ class HostTrivialApi { final String pigeonVar_messageChannelSuffix; Future noop() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -5366,11 +6411,10 @@ class HostTrivialApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -5379,9 +6423,13 @@ class HostSmallApi { /// Constructor for [HostSmallApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - HostSmallApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + HostSmallApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -5389,26 +6437,29 @@ class HostSmallApi { final String pigeonVar_messageChannelSuffix; Future echo(String aString) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as String; } Future voidVoid() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -5418,11 +6469,10 @@ class HostSmallApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } } @@ -5434,54 +6484,76 @@ abstract class FlutterSmallApi { String echoString(String aString); - static void setUp(FlutterSmallApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + FlutterSmallApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null.', + ); final List args = (message as List?)!; final TestMessage? arg_msg = (args[0] as TestMessage?); - assert(arg_msg != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null, expected non-null TestMessage.'); + assert( + arg_msg != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null, expected non-null TestMessage.', + ); try { final TestMessage output = api.echoWrappedList(arg_msg!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null.', + ); final List args = (message as List?)!; final String? arg_aString = (args[0] as String?); - assert(arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null, expected non-null String.'); + assert( + arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null, expected non-null String.', + ); try { final String output = api.echoString(arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index bca289b6be8a..8adf6a98cd65 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -47,6 +50,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -58,8 +62,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -98,42 +103,39 @@ int _deepHash(Object? value) { return value.hashCode; } - /// This comment is to test enum documentation comments. enum EnumState { /// This comment is to test enum member (Pending) documentation comments. Pending, + /// This comment is to test enum member (Success) documentation comments. Success, + /// This comment is to test enum member (Error) documentation comments. Error, + /// This comment is to test enum member (SnakeCase) documentation comments. SnakeCase, } /// This comment is to test class documentation comments. class DataWithEnum { - DataWithEnum({ - this.state, - }); + DataWithEnum({this.state}); /// This comment is to test field documentation comments. EnumState? state; List _toList() { - return [ - state, - ]; + return [state]; } Object encode() { - return _toList(); } + return _toList(); + } static DataWithEnum decode(Object result) { result as List; - return DataWithEnum( - state: result[0] as EnumState?, - ); + return DataWithEnum(state: result[0] as EnumState?); } @override @@ -153,7 +155,6 @@ class DataWithEnum { int get hashCode => _deepHash([runtimeType, ..._toList()]); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -161,10 +162,10 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is EnumState) { + } else if (value is EnumState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is DataWithEnum) { + } else if (value is DataWithEnum) { buffer.putUint8(130); writeValue(buffer, value.encode()); } else { @@ -191,9 +192,13 @@ class EnumApi2Host { /// Constructor for [EnumApi2Host]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - EnumApi2Host({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + EnumApi2Host({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -202,21 +207,23 @@ class EnumApi2Host { /// This comment is to test method documentation comments. Future echo(DataWithEnum data) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([data]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [data], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as DataWithEnum; } } @@ -228,29 +235,43 @@ abstract class EnumApi2Flutter { /// This comment is to test method documentation comments. DataWithEnum echo(DataWithEnum data); - static void setUp(EnumApi2Flutter? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + EnumApi2Flutter? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null.', + ); final List args = (message as List?)!; final DataWithEnum? arg_data = (args[0] as DataWithEnum?); - assert(arg_data != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null, expected non-null DataWithEnum.'); + assert( + arg_data != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null, expected non-null DataWithEnum.', + ); try { final DataWithEnum output = api.echo(arg_data!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index c8511be29704..bc669efdf893 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -11,6 +11,7 @@ import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -22,8 +23,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -62,18 +64,9 @@ int _deepHash(Object? value) { return value.hashCode; } +enum EventEnum { one, two, three, fortyTwo, fourHundredTwentyTwo } -enum EventEnum { - one, - two, - three, - fortyTwo, - fourHundredTwentyTwo, -} - -enum AnotherEventEnum { - justInCase, -} +enum AnotherEventEnum { justInCase } /// A class containing all supported nullable types. class EventAllNullableTypes { @@ -210,7 +203,8 @@ class EventAllNullableTypes { } Object encode() { - return _toList(); } + return _toList(); + } static EventAllNullableTypes decode(Object result) { result as List; @@ -237,15 +231,22 @@ class EventAllNullableTypes { objectList: (result[19] as List?)?.cast(), listList: (result[20] as List?)?.cast?>(), mapList: (result[21] as List?)?.cast?>(), - recursiveClassList: (result[22] as List?)?.cast(), + recursiveClassList: (result[22] as List?) + ?.cast(), map: result[23] as Map?, - stringMap: (result[24] as Map?)?.cast(), + stringMap: (result[24] as Map?) + ?.cast(), intMap: (result[25] as Map?)?.cast(), - enumMap: (result[26] as Map?)?.cast(), - objectMap: (result[27] as Map?)?.cast(), - listMap: (result[28] as Map?)?.cast?>(), - mapMap: (result[29] as Map?)?.cast?>(), - recursiveClassMap: (result[30] as Map?)?.cast(), + enumMap: (result[26] as Map?) + ?.cast(), + objectMap: (result[27] as Map?) + ?.cast(), + listMap: (result[28] as Map?) + ?.cast?>(), + mapMap: (result[29] as Map?) + ?.cast?>(), + recursiveClassMap: (result[30] as Map?) + ?.cast(), ); } @@ -258,7 +259,37 @@ class EventAllNullableTypes { if (identical(this, other)) { return true; } - return _deepEquals(aNullableBool, other.aNullableBool) && _deepEquals(aNullableInt, other.aNullableInt) && _deepEquals(aNullableInt64, other.aNullableInt64) && _deepEquals(aNullableDouble, other.aNullableDouble) && _deepEquals(aNullableByteArray, other.aNullableByteArray) && _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && _deepEquals(aNullableEnum, other.aNullableEnum) && _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && _deepEquals(aNullableString, other.aNullableString) && _deepEquals(aNullableObject, other.aNullableObject) && _deepEquals(allNullableTypes, other.allNullableTypes) && _deepEquals(list, other.list) && _deepEquals(stringList, other.stringList) && _deepEquals(intList, other.intList) && _deepEquals(doubleList, other.doubleList) && _deepEquals(boolList, other.boolList) && _deepEquals(enumList, other.enumList) && _deepEquals(objectList, other.objectList) && _deepEquals(listList, other.listList) && _deepEquals(mapList, other.mapList) && _deepEquals(recursiveClassList, other.recursiveClassList) && _deepEquals(map, other.map) && _deepEquals(stringMap, other.stringMap) && _deepEquals(intMap, other.intMap) && _deepEquals(enumMap, other.enumMap) && _deepEquals(objectMap, other.objectMap) && _deepEquals(listMap, other.listMap) && _deepEquals(mapMap, other.mapMap) && _deepEquals(recursiveClassMap, other.recursiveClassMap); + return _deepEquals(aNullableBool, other.aNullableBool) && + _deepEquals(aNullableInt, other.aNullableInt) && + _deepEquals(aNullableInt64, other.aNullableInt64) && + _deepEquals(aNullableDouble, other.aNullableDouble) && + _deepEquals(aNullableByteArray, other.aNullableByteArray) && + _deepEquals(aNullable4ByteArray, other.aNullable4ByteArray) && + _deepEquals(aNullable8ByteArray, other.aNullable8ByteArray) && + _deepEquals(aNullableFloatArray, other.aNullableFloatArray) && + _deepEquals(aNullableEnum, other.aNullableEnum) && + _deepEquals(anotherNullableEnum, other.anotherNullableEnum) && + _deepEquals(aNullableString, other.aNullableString) && + _deepEquals(aNullableObject, other.aNullableObject) && + _deepEquals(allNullableTypes, other.allNullableTypes) && + _deepEquals(list, other.list) && + _deepEquals(stringList, other.stringList) && + _deepEquals(intList, other.intList) && + _deepEquals(doubleList, other.doubleList) && + _deepEquals(boolList, other.boolList) && + _deepEquals(enumList, other.enumList) && + _deepEquals(objectList, other.objectList) && + _deepEquals(listList, other.listList) && + _deepEquals(mapList, other.mapList) && + _deepEquals(recursiveClassList, other.recursiveClassList) && + _deepEquals(map, other.map) && + _deepEquals(stringMap, other.stringMap) && + _deepEquals(intMap, other.intMap) && + _deepEquals(enumMap, other.enumMap) && + _deepEquals(objectMap, other.objectMap) && + _deepEquals(listMap, other.listMap) && + _deepEquals(mapMap, other.mapMap) && + _deepEquals(recursiveClassMap, other.recursiveClassMap); } @override @@ -266,30 +297,24 @@ class EventAllNullableTypes { int get hashCode => _deepHash([runtimeType, ..._toList()]); } -sealed class PlatformEvent { -} +sealed class PlatformEvent {} class IntEvent extends PlatformEvent { - IntEvent({ - required this.value, - }); + IntEvent({required this.value}); int value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static IntEvent decode(Object result) { result as List; - return IntEvent( - value: result[0]! as int, - ); + return IntEvent(value: result[0]! as int); } @override @@ -310,26 +335,21 @@ class IntEvent extends PlatformEvent { } class StringEvent extends PlatformEvent { - StringEvent({ - required this.value, - }); + StringEvent({required this.value}); String value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static StringEvent decode(Object result) { result as List; - return StringEvent( - value: result[0]! as String, - ); + return StringEvent(value: result[0]! as String); } @override @@ -350,26 +370,21 @@ class StringEvent extends PlatformEvent { } class BoolEvent extends PlatformEvent { - BoolEvent({ - required this.value, - }); + BoolEvent({required this.value}); bool value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static BoolEvent decode(Object result) { result as List; - return BoolEvent( - value: result[0]! as bool, - ); + return BoolEvent(value: result[0]! as bool); } @override @@ -390,26 +405,21 @@ class BoolEvent extends PlatformEvent { } class DoubleEvent extends PlatformEvent { - DoubleEvent({ - required this.value, - }); + DoubleEvent({required this.value}); double value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static DoubleEvent decode(Object result) { result as List; - return DoubleEvent( - value: result[0]! as double, - ); + return DoubleEvent(value: result[0]! as double); } @override @@ -430,26 +440,21 @@ class DoubleEvent extends PlatformEvent { } class ObjectsEvent extends PlatformEvent { - ObjectsEvent({ - required this.value, - }); + ObjectsEvent({required this.value}); Object value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static ObjectsEvent decode(Object result) { result as List; - return ObjectsEvent( - value: result[0]!, - ); + return ObjectsEvent(value: result[0]!); } @override @@ -470,26 +475,21 @@ class ObjectsEvent extends PlatformEvent { } class EnumEvent extends PlatformEvent { - EnumEvent({ - required this.value, - }); + EnumEvent({required this.value}); EventEnum value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static EnumEvent decode(Object result) { result as List; - return EnumEvent( - value: result[0]! as EventEnum, - ); + return EnumEvent(value: result[0]! as EventEnum); } @override @@ -510,26 +510,21 @@ class EnumEvent extends PlatformEvent { } class ClassEvent extends PlatformEvent { - ClassEvent({ - required this.value, - }); + ClassEvent({required this.value}); EventAllNullableTypes value; List _toList() { - return [ - value, - ]; + return [value]; } Object encode() { - return _toList(); } + return _toList(); + } static ClassEvent decode(Object result) { result as List; - return ClassEvent( - value: result[0]! as EventAllNullableTypes, - ); + return ClassEvent(value: result[0]! as EventAllNullableTypes); } @override @@ -549,7 +544,6 @@ class ClassEvent extends PlatformEvent { int get hashCode => _deepHash([runtimeType, ..._toList()]); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -557,34 +551,34 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is EventEnum) { + } else if (value is EventEnum) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is AnotherEventEnum) { + } else if (value is AnotherEventEnum) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is EventAllNullableTypes) { + } else if (value is EventAllNullableTypes) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is IntEvent) { + } else if (value is IntEvent) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is StringEvent) { + } else if (value is StringEvent) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is BoolEvent) { + } else if (value is BoolEvent) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is DoubleEvent) { + } else if (value is DoubleEvent) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is ObjectsEvent) { + } else if (value is ObjectsEvent) { buffer.putUint8(136); writeValue(buffer, value.encode()); - } else if (value is EnumEvent) { + } else if (value is EnumEvent) { buffer.putUint8(137); writeValue(buffer, value.encode()); - } else if (value is ClassEvent) { + } else if (value is ClassEvent) { buffer.putUint8(138); writeValue(buffer, value.encode()); } else { @@ -623,38 +617,47 @@ class _PigeonCodec extends StandardMessageCodec { } } -const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec(_PigeonCodec()); +const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec( + _PigeonCodec(), +); -Stream streamInts( {String instanceName = ''}) { +Stream streamInts({String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - final EventChannel streamIntsChannel = - EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts$instanceName', pigeonMethodCodec); + final EventChannel streamIntsChannel = EventChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts$instanceName', + pigeonMethodCodec, + ); return streamIntsChannel.receiveBroadcastStream().map((dynamic event) { return event as int; }); } - -Stream streamEvents( {String instanceName = ''}) { + +Stream streamEvents({String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - final EventChannel streamEventsChannel = - EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents$instanceName', pigeonMethodCodec); + final EventChannel streamEventsChannel = EventChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents$instanceName', + pigeonMethodCodec, + ); return streamEventsChannel.receiveBroadcastStream().map((dynamic event) { return event as PlatformEvent; }); } - -Stream streamConsistentNumbers( {String instanceName = ''}) { + +Stream streamConsistentNumbers({String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - final EventChannel streamConsistentNumbersChannel = - EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers$instanceName', pigeonMethodCodec); - return streamConsistentNumbersChannel.receiveBroadcastStream().map((dynamic event) { + final EventChannel streamConsistentNumbersChannel = EventChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers$instanceName', + pigeonMethodCodec, + ); + return streamConsistentNumbersChannel.receiveBroadcastStream().map(( + dynamic event, + ) { return event as int; }); } - diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_without_classes_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_without_classes_tests.gen.dart index f2d8037526c2..6e58cd7c26db 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_without_classes_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_without_classes_tests.gen.dart @@ -12,7 +12,6 @@ import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -34,16 +33,19 @@ class _PigeonCodec extends StandardMessageCodec { } } -const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec(_PigeonCodec()); +const StandardMethodCodec pigeonMethodCodec = StandardMethodCodec( + _PigeonCodec(), +); -Stream streamIntsAgain( {String instanceName = ''}) { +Stream streamIntsAgain({String instanceName = ''}) { if (instanceName.isNotEmpty) { instanceName = '.$instanceName'; } - final EventChannel streamIntsAgainChannel = - EventChannel('dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamIntsAgain$instanceName', pigeonMethodCodec); + final EventChannel streamIntsAgainChannel = EventChannel( + 'dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamIntsAgain$instanceName', + pigeonMethodCodec, + ); return streamIntsAgainChannel.receiveBroadcastStream().map((dynamic event) { return event as int; }); } - diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index 99c4a56e5050..a7b6f9b6c719 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -48,8 +48,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -88,28 +89,22 @@ int _deepHash(Object? value) { return value.hashCode; } - class FlutterSearchRequest { - FlutterSearchRequest({ - this.query, - }); + FlutterSearchRequest({this.query}); String? query; List _toList() { - return [ - query, - ]; + return [query]; } Object encode() { - return _toList(); } + return _toList(); + } static FlutterSearchRequest decode(Object result) { result as List; - return FlutterSearchRequest( - query: result[0] as String?, - ); + return FlutterSearchRequest(query: result[0] as String?); } @override @@ -130,24 +125,19 @@ class FlutterSearchRequest { } class FlutterSearchReply { - FlutterSearchReply({ - this.result, - this.error, - }); + FlutterSearchReply({this.result, this.error}); String? result; String? error; List _toList() { - return [ - result, - error, - ]; + return [result, error]; } Object encode() { - return _toList(); } + return _toList(); + } static FlutterSearchReply decode(Object result) { result as List; @@ -175,26 +165,21 @@ class FlutterSearchReply { } class FlutterSearchRequests { - FlutterSearchRequests({ - this.requests, - }); + FlutterSearchRequests({this.requests}); List? requests; List _toList() { - return [ - requests, - ]; + return [requests]; } Object encode() { - return _toList(); } + return _toList(); + } static FlutterSearchRequests decode(Object result) { result as List; - return FlutterSearchRequests( - requests: result[0] as List?, - ); + return FlutterSearchRequests(requests: result[0] as List?); } @override @@ -215,26 +200,21 @@ class FlutterSearchRequests { } class FlutterSearchReplies { - FlutterSearchReplies({ - this.replies, - }); + FlutterSearchReplies({this.replies}); List? replies; List _toList() { - return [ - replies, - ]; + return [replies]; } Object encode() { - return _toList(); } + return _toList(); + } static FlutterSearchReplies decode(Object result) { result as List; - return FlutterSearchReplies( - replies: result[0] as List?, - ); + return FlutterSearchReplies(replies: result[0] as List?); } @override @@ -254,7 +234,6 @@ class FlutterSearchReplies { int get hashCode => _deepHash([runtimeType, ..._toList()]); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -262,16 +241,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is FlutterSearchRequest) { + } else if (value is FlutterSearchRequest) { buffer.putUint8(129); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchReply) { + } else if (value is FlutterSearchReply) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchRequests) { + } else if (value is FlutterSearchRequests) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is FlutterSearchReplies) { + } else if (value is FlutterSearchReplies) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -301,8 +280,10 @@ class Api { /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. Api({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -310,78 +291,86 @@ class Api { final String pigeonVar_messageChannelSuffix; Future search(FlutterSearchRequest request) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [request], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as FlutterSearchReply; } Future doSearches(FlutterSearchRequests request) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [request], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as FlutterSearchReplies; } Future echo(FlutterSearchRequests requests) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([requests]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [requests], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as FlutterSearchRequests; } Future anInt(int value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index a3a767838798..b5140ace826c 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -47,6 +50,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -58,8 +62,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -98,7 +103,6 @@ int _deepHash(Object? value) { return value.hashCode; } - /// This comment is to test enum documentation comments. /// /// This comment also tests multiple line comments. @@ -106,21 +110,13 @@ int _deepHash(Object? value) { /// //////////////////////// /// This comment also tests comments that start with '/' /// //////////////////////// -enum MessageRequestState { - pending, - success, - failure, -} +enum MessageRequestState { pending, success, failure } /// This comment is to test class documentation comments. /// /// This comment also tests multiple line comments. class MessageSearchRequest { - MessageSearchRequest({ - this.query, - this.anInt, - this.aBool, - }); + MessageSearchRequest({this.query, this.anInt, this.aBool}); /// This comment is to test field documentation comments. String? query; @@ -132,15 +128,12 @@ class MessageSearchRequest { bool? aBool; List _toList() { - return [ - query, - anInt, - aBool, - ]; + return [query, anInt, aBool]; } Object encode() { - return _toList(); } + return _toList(); + } static MessageSearchRequest decode(Object result) { result as List; @@ -160,7 +153,9 @@ class MessageSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(query, other.query) && _deepEquals(anInt, other.anInt) && _deepEquals(aBool, other.aBool); + return _deepEquals(query, other.query) && + _deepEquals(anInt, other.anInt) && + _deepEquals(aBool, other.aBool); } @override @@ -170,11 +165,7 @@ class MessageSearchRequest { /// This comment is to test class documentation comments. class MessageSearchReply { - MessageSearchReply({ - this.result, - this.error, - this.state, - }); + MessageSearchReply({this.result, this.error, this.state}); /// This comment is to test field documentation comments. /// @@ -188,15 +179,12 @@ class MessageSearchReply { MessageRequestState? state; List _toList() { - return [ - result, - error, - state, - ]; + return [result, error, state]; } Object encode() { - return _toList(); } + return _toList(); + } static MessageSearchReply decode(Object result) { result as List; @@ -216,7 +204,9 @@ class MessageSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(result, other.result) && _deepEquals(error, other.error) && _deepEquals(state, other.state); + return _deepEquals(result, other.result) && + _deepEquals(error, other.error) && + _deepEquals(state, other.state); } @override @@ -226,27 +216,22 @@ class MessageSearchReply { /// This comment is to test class documentation comments. class MessageNested { - MessageNested({ - this.request, - }); + MessageNested({this.request}); /// This comment is to test field documentation comments. MessageSearchRequest? request; List _toList() { - return [ - request, - ]; + return [request]; } Object encode() { - return _toList(); } + return _toList(); + } static MessageNested decode(Object result) { result as List; - return MessageNested( - request: result[0] as MessageSearchRequest?, - ); + return MessageNested(request: result[0] as MessageSearchRequest?); } @override @@ -266,7 +251,6 @@ class MessageNested { int get hashCode => _deepHash([runtimeType, ..._toList()]); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -274,16 +258,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MessageRequestState) { + } else if (value is MessageRequestState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageNested) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -316,9 +300,13 @@ class MessageApi { /// Constructor for [MessageApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MessageApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + MessageApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -329,7 +317,8 @@ class MessageApi { /// /// This comment also tests multiple line comments. Future initialize() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -339,30 +328,31 @@ class MessageApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); } /// This comment is to test method documentation comments. Future search(MessageSearchRequest request) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([request]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [request], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as MessageSearchReply; } } @@ -372,9 +362,13 @@ class MessageNestedApi { /// Constructor for [MessageNestedApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MessageNestedApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + MessageNestedApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -385,21 +379,23 @@ class MessageNestedApi { /// /// This comment also tests multiple line comments. Future search(MessageNested nested) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([nested]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [nested], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as MessageSearchReply; } } @@ -411,29 +407,44 @@ abstract class MessageFlutterSearchApi { /// This comment is to test method documentation comments. MessageSearchReply search(MessageSearchRequest request); - static void setUp(MessageFlutterSearchApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + MessageFlutterSearchApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null.', + ); final List args = (message as List?)!; - final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.'); + final MessageSearchRequest? arg_request = + (args[0] as MessageSearchRequest?); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.', + ); try { final MessageSearchReply output = api.search(arg_request!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart index 884e3b09d2d8..5b62e1baac51 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -48,7 +51,6 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -74,9 +76,13 @@ class MultipleArityHostApi { /// Constructor for [MultipleArityHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MultipleArityHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + MultipleArityHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -84,21 +90,23 @@ class MultipleArityHostApi { final String pigeonVar_messageChannelSuffix; Future subtract(int x, int y) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([x, y]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [x, y], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } } @@ -108,32 +116,48 @@ abstract class MultipleArityFlutterApi { int subtract(int x, int y); - static void setUp(MultipleArityFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + MultipleArityFlutterApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null.', + ); final List args = (message as List?)!; final int? arg_x = (args[0] as int?); - assert(arg_x != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null, expected non-null int.'); + assert( + arg_x != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null, expected non-null int.', + ); final int? arg_y = (args[1] as int?); - assert(arg_y != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null, expected non-null int.'); + assert( + arg_y != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null, expected non-null int.', + ); try { final int output = api.subtract(arg_x!, arg_y!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index f294370e51bc..27a73701fdfd 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -47,6 +50,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -58,8 +62,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -98,39 +103,31 @@ int _deepHash(Object? value) { return value.hashCode; } - -enum ReplyType { - success, - error, -} +enum ReplyType { success, error } class NonNullFieldSearchRequest { - NonNullFieldSearchRequest({ - required this.query, - }); + NonNullFieldSearchRequest({required this.query}); String query; List _toList() { - return [ - query, - ]; + return [query]; } Object encode() { - return _toList(); } + return _toList(); + } static NonNullFieldSearchRequest decode(Object result) { result as List; - return NonNullFieldSearchRequest( - query: result[0]! as String, - ); + return NonNullFieldSearchRequest(query: result[0]! as String); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NonNullFieldSearchRequest || other.runtimeType != runtimeType) { + if (other is! NonNullFieldSearchRequest || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -145,24 +142,19 @@ class NonNullFieldSearchRequest { } class ExtraData { - ExtraData({ - required this.detailA, - required this.detailB, - }); + ExtraData({required this.detailA, required this.detailB}); String detailA; String detailB; List _toList() { - return [ - detailA, - detailB, - ]; + return [detailA, detailB]; } Object encode() { - return _toList(); } + return _toList(); + } static ExtraData decode(Object result) { result as List; @@ -181,7 +173,8 @@ class ExtraData { if (identical(this, other)) { return true; } - return _deepEquals(detailA, other.detailA) && _deepEquals(detailB, other.detailB); + return _deepEquals(detailA, other.detailA) && + _deepEquals(detailB, other.detailB); } @override @@ -209,17 +202,12 @@ class NonNullFieldSearchReply { ReplyType type; List _toList() { - return [ - result, - error, - indices, - extraData, - type, - ]; + return [result, error, indices, extraData, type]; } Object encode() { - return _toList(); } + return _toList(); + } static NonNullFieldSearchReply decode(Object result) { result as List; @@ -241,7 +229,11 @@ class NonNullFieldSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(result, other.result) && _deepEquals(error, other.error) && _deepEquals(indices, other.indices) && _deepEquals(extraData, other.extraData) && _deepEquals(type, other.type); + return _deepEquals(result, other.result) && + _deepEquals(error, other.error) && + _deepEquals(indices, other.indices) && + _deepEquals(extraData, other.extraData) && + _deepEquals(type, other.type); } @override @@ -249,7 +241,6 @@ class NonNullFieldSearchReply { int get hashCode => _deepHash([runtimeType, ..._toList()]); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -257,16 +248,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is ReplyType) { + } else if (value is ReplyType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NonNullFieldSearchRequest) { + } else if (value is NonNullFieldSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is ExtraData) { + } else if (value is ExtraData) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is NonNullFieldSearchReply) { + } else if (value is NonNullFieldSearchReply) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -296,31 +287,39 @@ class NonNullFieldHostApi { /// Constructor for [NonNullFieldHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NonNullFieldHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NonNullFieldHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future search(NonNullFieldSearchRequest nested) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeonVar_messageChannelSuffix'; + Future search( + NonNullFieldSearchRequest nested, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([nested]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [nested], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as NonNullFieldSearchReply; } } @@ -330,29 +329,44 @@ abstract class NonNullFieldFlutterApi { NonNullFieldSearchReply search(NonNullFieldSearchRequest request); - static void setUp(NonNullFieldFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + NonNullFieldFlutterApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null.', + ); final List args = (message as List?)!; - final NonNullFieldSearchRequest? arg_request = (args[0] as NonNullFieldSearchRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null, expected non-null NonNullFieldSearchRequest.'); + final NonNullFieldSearchRequest? arg_request = + (args[0] as NonNullFieldSearchRequest?); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null, expected non-null NonNullFieldSearchRequest.', + ); try { final NonNullFieldSearchReply output = api.search(arg_request!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 96eb9f6e222d..cf317e6c1646 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -47,6 +50,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (identical(a, b)) { return true; @@ -58,8 +62,9 @@ bool _deepEquals(Object? a, Object? b) { } if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { if (a.length != b.length) { @@ -98,31 +103,22 @@ int _deepHash(Object? value) { return value.hashCode; } - -enum NullFieldsSearchReplyType { - success, - failure, -} +enum NullFieldsSearchReplyType { success, failure } class NullFieldsSearchRequest { - NullFieldsSearchRequest({ - this.query, - required this.identifier, - }); + NullFieldsSearchRequest({this.query, required this.identifier}); String? query; int identifier; List _toList() { - return [ - query, - identifier, - ]; + return [query, identifier]; } Object encode() { - return _toList(); } + return _toList(); + } static NullFieldsSearchRequest decode(Object result) { result as List; @@ -141,7 +137,8 @@ class NullFieldsSearchRequest { if (identical(this, other)) { return true; } - return _deepEquals(query, other.query) && _deepEquals(identifier, other.identifier); + return _deepEquals(query, other.query) && + _deepEquals(identifier, other.identifier); } @override @@ -169,17 +166,12 @@ class NullFieldsSearchReply { NullFieldsSearchReplyType? type; List _toList() { - return [ - result, - error, - indices, - request, - type, - ]; + return [result, error, indices, request, type]; } Object encode() { - return _toList(); } + return _toList(); + } static NullFieldsSearchReply decode(Object result) { result as List; @@ -201,7 +193,11 @@ class NullFieldsSearchReply { if (identical(this, other)) { return true; } - return _deepEquals(result, other.result) && _deepEquals(error, other.error) && _deepEquals(indices, other.indices) && _deepEquals(request, other.request) && _deepEquals(type, other.type); + return _deepEquals(result, other.result) && + _deepEquals(error, other.error) && + _deepEquals(indices, other.indices) && + _deepEquals(request, other.request) && + _deepEquals(type, other.type); } @override @@ -209,7 +205,6 @@ class NullFieldsSearchReply { int get hashCode => _deepHash([runtimeType, ..._toList()]); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -217,13 +212,13 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is NullFieldsSearchReplyType) { + } else if (value is NullFieldsSearchReplyType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NullFieldsSearchRequest) { + } else if (value is NullFieldsSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is NullFieldsSearchReply) { + } else if (value is NullFieldsSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); } else { @@ -251,9 +246,13 @@ class NullFieldsHostApi { /// Constructor for [NullFieldsHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullFieldsHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NullFieldsHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -261,21 +260,23 @@ class NullFieldsHostApi { final String pigeonVar_messageChannelSuffix; Future search(NullFieldsSearchRequest nested) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([nested]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [nested], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as NullFieldsSearchReply; } } @@ -285,29 +286,44 @@ abstract class NullFieldsFlutterApi { NullFieldsSearchReply search(NullFieldsSearchRequest request); - static void setUp(NullFieldsFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + NullFieldsFlutterApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null.', + ); final List args = (message as List?)!; - final NullFieldsSearchRequest? arg_request = (args[0] as NullFieldsSearchRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null, expected non-null NullFieldsSearchRequest.'); + final NullFieldsSearchRequest? arg_request = + (args[0] as NullFieldsSearchRequest?); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null, expected non-null NullFieldsSearchRequest.', + ); try { final NullFieldsSearchReply output = api.search(arg_request!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart index 32b6435c4c39..b41ddd61dba0 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -48,7 +51,6 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -74,9 +76,13 @@ class NullableReturnHostApi { /// Constructor for [NullableReturnHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullableReturnHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NullableReturnHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -84,7 +90,8 @@ class NullableReturnHostApi { final String pigeonVar_messageChannelSuffix; Future doit() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -94,11 +101,10 @@ class NullableReturnHostApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return pigeonVar_replyValue as int?; } } @@ -108,12 +114,20 @@ abstract class NullableReturnFlutterApi { int? doit(); - static void setUp(NullableReturnFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + NullableReturnFlutterApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnFlutterApi.doit$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -123,8 +137,10 @@ abstract class NullableReturnFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -136,9 +152,13 @@ class NullableArgHostApi { /// Constructor for [NullableArgHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullableArgHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NullableArgHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -146,21 +166,23 @@ class NullableArgHostApi { final String pigeonVar_messageChannelSuffix; Future doit(int? x) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([x]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [x], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } } @@ -170,18 +192,28 @@ abstract class NullableArgFlutterApi { int? doit(int? x); - static void setUp(NullableArgFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + NullableArgFlutterApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit was null.', + ); final List args = (message as List?)!; final int? arg_x = (args[0] as int?); try { @@ -189,8 +221,10 @@ abstract class NullableArgFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -202,9 +236,13 @@ class NullableCollectionReturnHostApi { /// Constructor for [NullableCollectionReturnHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullableCollectionReturnHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NullableCollectionReturnHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -212,7 +250,8 @@ class NullableCollectionReturnHostApi { final String pigeonVar_messageChannelSuffix; Future?> doit() async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, @@ -222,11 +261,10 @@ class NullableCollectionReturnHostApi { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ) - ; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); return (pigeonVar_replyValue as List?)?.cast(); } } @@ -236,12 +274,20 @@ abstract class NullableCollectionReturnFlutterApi { List? doit(); - static void setUp(NullableCollectionReturnFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + NullableCollectionReturnFlutterApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnFlutterApi.doit$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -251,8 +297,10 @@ abstract class NullableCollectionReturnFlutterApi { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -264,9 +312,13 @@ class NullableCollectionArgHostApi { /// Constructor for [NullableCollectionArgHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NullableCollectionArgHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NullableCollectionArgHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -274,21 +326,23 @@ class NullableCollectionArgHostApi { final String pigeonVar_messageChannelSuffix; Future> doit(List? x) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([x]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [x], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } } @@ -298,27 +352,40 @@ abstract class NullableCollectionArgFlutterApi { List doit(List? x); - static void setUp(NullableCollectionArgFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + NullableCollectionArgFlutterApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit was null.', + ); final List args = (message as List?)!; - final List? arg_x = (args[0] as List?)?.cast(); + final List? arg_x = (args[0] as List?) + ?.cast(); try { final List output = api.doit(arg_x); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart index 3bc3112e0ccd..d1a8fef75d5c 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart @@ -13,9 +13,9 @@ import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; import 'package:flutter/services.dart'; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -37,8 +37,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -48,7 +51,6 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -74,9 +76,13 @@ class PrimitiveHostApi { /// Constructor for [PrimitiveHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - PrimitiveHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + PrimitiveHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -84,174 +90,193 @@ class PrimitiveHostApi { final String pigeonVar_messageChannelSuffix; Future anInt(int value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as int; } Future aBool(bool value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as bool; } Future aString(String value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as String; } Future aDouble(double value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as double; } Future> aMap(Map value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as Map; } Future> aList(List value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as List; } Future anInt32List(Int32List value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return pigeonVar_replyValue as Int32List; } Future> aBoolList(List value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; return (pigeonVar_replyValue as List).cast(); } Future> aStringIntMap(Map value) async { - final pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeonVar_messageChannelSuffix'; + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeonVar_messageChannelSuffix'; final pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([value]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - ) - !; - return (pigeonVar_replyValue as Map).cast(); + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return (pigeonVar_replyValue as Map) + .cast(); } } @@ -276,229 +301,310 @@ abstract class PrimitiveFlutterApi { Map aStringIntMap(Map value); - static void setUp(PrimitiveFlutterApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + PrimitiveFlutterApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null.', + ); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null, expected non-null int.'); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null, expected non-null int.', + ); try { final int output = api.anInt(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null.', + ); final List args = (message as List?)!; final bool? arg_value = (args[0] as bool?); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null, expected non-null bool.'); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null, expected non-null bool.', + ); try { final bool output = api.aBool(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null.', + ); final List args = (message as List?)!; final String? arg_value = (args[0] as String?); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null, expected non-null String.'); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null, expected non-null String.', + ); try { final String output = api.aString(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null.', + ); final List args = (message as List?)!; final double? arg_value = (args[0] as double?); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null, expected non-null double.'); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null, expected non-null double.', + ); try { final double output = api.aDouble(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null.', + ); final List args = (message as List?)!; - final Map? arg_value = (args[0] as Map?); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null, expected non-null Map.'); + final Map? arg_value = + (args[0] as Map?); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null, expected non-null Map.', + ); try { final Map output = api.aMap(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null.', + ); final List args = (message as List?)!; final List? arg_value = (args[0] as List?); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null, expected non-null List.'); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null, expected non-null List.', + ); try { final List output = api.aList(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null.', + ); final List args = (message as List?)!; final Int32List? arg_value = (args[0] as Int32List?); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null, expected non-null Int32List.'); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null, expected non-null Int32List.', + ); try { final Int32List output = api.anInt32List(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null.', + ); final List args = (message as List?)!; - final List? arg_value = (args[0] as List?)?.cast(); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null, expected non-null List.'); + final List? arg_value = (args[0] as List?) + ?.cast(); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null, expected non-null List.', + ); try { final List output = api.aBoolList(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null.', + ); final List args = (message as List?)!; - final Map? arg_value = (args[0] as Map?)?.cast(); - assert(arg_value != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null, expected non-null Map.'); + final Map? arg_value = + (args[0] as Map?)?.cast(); + assert( + arg_value != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null, expected non-null Map.', + ); try { final Map output = api.aStringIntMap(arg_value!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart index 0312b6c626f6..b645e66dca32 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart @@ -10,14 +10,15 @@ import 'dart:async'; import 'dart:io' show Platform; import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; -import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer, immutable, protected, visibleForTesting; +import 'package:flutter/foundation.dart' + show ReadBuffer, WriteBuffer, immutable, protected, visibleForTesting; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart' show WidgetsFlutterBinding; Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, + List? replyList, + String channelName, { + required bool isNullValid, }) { if (replyList == null) { throw PlatformException( @@ -39,8 +40,11 @@ Object? _extractReplyValueOrThrow( return replyList.firstOrNull; } - -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -49,6 +53,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + /// Provides overrides for the constructors and static members of each /// Dart proxy class. /// @@ -69,54 +74,54 @@ class PigeonOverrides { required Map aMap, required ProxyApiTestEnum anEnum, required ProxyApiSuperClass aProxyApi, - required bool Function( - ProxyApiTestClass pigeon_instance, - bool aBool, - ) flutterEchoBool, - required int Function( - ProxyApiTestClass pigeon_instance, - int anInt, - ) flutterEchoInt, - required double Function( - ProxyApiTestClass pigeon_instance, - double aDouble, - ) flutterEchoDouble, - required String Function( - ProxyApiTestClass pigeon_instance, - String aString, - ) flutterEchoString, + required bool Function(ProxyApiTestClass pigeon_instance, bool aBool) + flutterEchoBool, + required int Function(ProxyApiTestClass pigeon_instance, int anInt) + flutterEchoInt, + required double Function(ProxyApiTestClass pigeon_instance, double aDouble) + flutterEchoDouble, + required String Function(ProxyApiTestClass pigeon_instance, String aString) + flutterEchoString, required Uint8List Function( ProxyApiTestClass pigeon_instance, Uint8List aList, - ) flutterEchoUint8List, + ) + flutterEchoUint8List, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoList, + ) + flutterEchoList, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoProxyApiList, + ) + flutterEchoProxyApiList, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoMap, + ) + flutterEchoMap, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoProxyApiMap, + ) + flutterEchoProxyApiMap, required ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) flutterEchoEnum, + ) + flutterEchoEnum, required ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) flutterEchoProxyApi, + ) + flutterEchoProxyApi, required Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) flutterEchoAsyncString, + ) + flutterEchoAsyncString, required bool boolParam, required int intParam, required double doubleParam, @@ -139,42 +144,36 @@ class PigeonOverrides { void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - bool? Function( - ProxyApiTestClass pigeon_instance, - bool? aBool, - )? flutterEchoNullableBool, - int? Function( - ProxyApiTestClass pigeon_instance, - int? anInt, - )? flutterEchoNullableInt, - double? Function( - ProxyApiTestClass pigeon_instance, - double? aDouble, - )? flutterEchoNullableDouble, - String? Function( - ProxyApiTestClass pigeon_instance, - String? aString, - )? flutterEchoNullableString, - Uint8List? Function( - ProxyApiTestClass pigeon_instance, - Uint8List? aList, - )? flutterEchoNullableUint8List, + bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? + flutterEchoNullableBool, + int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? + flutterEchoNullableInt, + double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? + flutterEchoNullableDouble, + String? Function(ProxyApiTestClass pigeon_instance, String? aString)? + flutterEchoNullableString, + Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? + flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? flutterEchoNullableList, + )? + flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? flutterEchoNullableMap, + )? + flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? flutterEchoNullableEnum, + )? + flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? flutterEchoNullableProxyApi, + )? + flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, bool? nullableBoolParam, int? nullableIntParam, @@ -185,7 +184,8 @@ class PigeonOverrides { Map? nullableMapParam, ProxyApiTestEnum? nullableEnumParam, ProxyApiSuperClass? nullableProxyApiParam, - })? proxyApiTestClass_new; + })? + proxyApiTestClass_new; /// Overrides [ProxyApiTestClass.namedConstructor]. static ProxyApiTestClass Function({ @@ -198,54 +198,54 @@ class PigeonOverrides { required Map aMap, required ProxyApiTestEnum anEnum, required ProxyApiSuperClass aProxyApi, - required bool Function( - ProxyApiTestClass pigeon_instance, - bool aBool, - ) flutterEchoBool, - required int Function( - ProxyApiTestClass pigeon_instance, - int anInt, - ) flutterEchoInt, - required double Function( - ProxyApiTestClass pigeon_instance, - double aDouble, - ) flutterEchoDouble, - required String Function( - ProxyApiTestClass pigeon_instance, - String aString, - ) flutterEchoString, + required bool Function(ProxyApiTestClass pigeon_instance, bool aBool) + flutterEchoBool, + required int Function(ProxyApiTestClass pigeon_instance, int anInt) + flutterEchoInt, + required double Function(ProxyApiTestClass pigeon_instance, double aDouble) + flutterEchoDouble, + required String Function(ProxyApiTestClass pigeon_instance, String aString) + flutterEchoString, required Uint8List Function( ProxyApiTestClass pigeon_instance, Uint8List aList, - ) flutterEchoUint8List, + ) + flutterEchoUint8List, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoList, + ) + flutterEchoList, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoProxyApiList, + ) + flutterEchoProxyApiList, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoMap, + ) + flutterEchoMap, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoProxyApiMap, + ) + flutterEchoProxyApiMap, required ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) flutterEchoEnum, + ) + flutterEchoEnum, required ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) flutterEchoProxyApi, + ) + flutterEchoProxyApi, required Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) flutterEchoAsyncString, + ) + flutterEchoAsyncString, bool? aNullableBool, int? aNullableInt, double? aNullableDouble, @@ -259,44 +259,39 @@ class PigeonOverrides { void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - bool? Function( - ProxyApiTestClass pigeon_instance, - bool? aBool, - )? flutterEchoNullableBool, - int? Function( - ProxyApiTestClass pigeon_instance, - int? anInt, - )? flutterEchoNullableInt, - double? Function( - ProxyApiTestClass pigeon_instance, - double? aDouble, - )? flutterEchoNullableDouble, - String? Function( - ProxyApiTestClass pigeon_instance, - String? aString, - )? flutterEchoNullableString, - Uint8List? Function( - ProxyApiTestClass pigeon_instance, - Uint8List? aList, - )? flutterEchoNullableUint8List, + bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? + flutterEchoNullableBool, + int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? + flutterEchoNullableInt, + double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? + flutterEchoNullableDouble, + String? Function(ProxyApiTestClass pigeon_instance, String? aString)? + flutterEchoNullableString, + Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? + flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? flutterEchoNullableList, + )? + flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? flutterEchoNullableMap, + )? + flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? flutterEchoNullableEnum, + )? + flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? flutterEchoNullableProxyApi, + )? + flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, - })? proxyApiTestClass_namedConstructor; + })? + proxyApiTestClass_namedConstructor; /// Overrides [ProxyApiSuperClass.new]. static ProxyApiSuperClass Function()? proxyApiSuperClass_new; @@ -341,7 +336,7 @@ abstract class PigeonInternalProxyApiBaseClass { this.pigeon_binaryMessenger, PigeonInstanceManager? pigeon_instanceManager, }) : pigeon_instanceManager = - pigeon_instanceManager ?? PigeonInstanceManager.instance; + pigeon_instanceManager ?? PigeonInstanceManager.instance; /// Sends and receives binary data across the Flutter platform barrier. /// @@ -411,9 +406,10 @@ class PigeonInstanceManager { // by calling instanceManager.getIdentifier() inside of `==` while this was a // HashMap). final Expando _identifiers = Expando(); - final Map> _weakInstances = - >{}; - final Map _strongInstances = {}; + final Map> + _weakInstances = >{}; + final Map _strongInstances = + {}; late final Finalizer _finalizer; int _nextIdentifier = 0; @@ -426,7 +422,8 @@ class PigeonInstanceManager { return PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); } WidgetsFlutterBinding.ensureInitialized(); - final _PigeonInternalInstanceManagerApi api = _PigeonInternalInstanceManagerApi(); + final _PigeonInternalInstanceManagerApi api = + _PigeonInternalInstanceManagerApi(); // Clears the native `PigeonInstanceManager` on the initial use of the Dart one. api.clear(); final PigeonInstanceManager instanceManager = PigeonInstanceManager( @@ -434,11 +431,21 @@ class PigeonInstanceManager { api.removeStrongReference(identifier); }, ); - _PigeonInternalInstanceManagerApi.setUpMessageHandlers(instanceManager: instanceManager); - ProxyApiTestClass.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); - ProxyApiSuperClass.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); - ProxyApiInterface.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); - ClassWithApiRequirement.pigeon_setUpMessageHandlers(pigeon_instanceManager: instanceManager); + _PigeonInternalInstanceManagerApi.setUpMessageHandlers( + instanceManager: instanceManager, + ); + ProxyApiTestClass.pigeon_setUpMessageHandlers( + pigeon_instanceManager: instanceManager, + ); + ProxyApiSuperClass.pigeon_setUpMessageHandlers( + pigeon_instanceManager: instanceManager, + ); + ProxyApiInterface.pigeon_setUpMessageHandlers( + pigeon_instanceManager: instanceManager, + ); + ClassWithApiRequirement.pigeon_setUpMessageHandlers( + pigeon_instanceManager: instanceManager, + ); return instanceManager; } @@ -455,8 +462,9 @@ class PigeonInstanceManager { final int identifier = _nextUniqueIdentifier(); _identifiers[instance] = identifier; - _weakInstances[identifier] = - WeakReference(instance); + _weakInstances[identifier] = WeakReference( + instance, + ); _finalizer.attach(instance, identifier, detach: instance); final PigeonInternalProxyApiBaseClass copy = instance.pigeon_copy(); @@ -517,15 +525,21 @@ class PigeonInstanceManager { /// /// This method also expects the host `InstanceManager` to have a strong /// reference to the instance the identifier is associated with. - T? getInstanceWithWeakReference(int identifier) { - final PigeonInternalProxyApiBaseClass? weakInstance = _weakInstances[identifier]?.target; + T? getInstanceWithWeakReference( + int identifier, + ) { + final PigeonInternalProxyApiBaseClass? weakInstance = + _weakInstances[identifier]?.target; if (weakInstance == null) { - final PigeonInternalProxyApiBaseClass? strongInstance = _strongInstances[identifier]; + final PigeonInternalProxyApiBaseClass? strongInstance = + _strongInstances[identifier]; if (strongInstance != null) { - final PigeonInternalProxyApiBaseClass copy = strongInstance.pigeon_copy(); + final PigeonInternalProxyApiBaseClass copy = strongInstance + .pigeon_copy(); _identifiers[copy] = identifier; - _weakInstances[identifier] = WeakReference(copy); + _weakInstances[identifier] = + WeakReference(copy); _finalizer.attach(copy, identifier, detach: copy); return copy as T; } @@ -547,7 +561,10 @@ class PigeonInstanceManager { /// /// Throws assertion error if the instance or its identifier has already been /// added. - void addHostCreatedInstance(PigeonInternalProxyApiBaseClass instance, int identifier) { + void addHostCreatedInstance( + PigeonInternalProxyApiBaseClass instance, + int identifier, + ) { assert(!containsIdentifier(identifier)); assert(getIdentifier(instance) == null); assert(identifier >= 0); @@ -576,7 +593,7 @@ class PigeonInstanceManager { class _PigeonInternalInstanceManagerApi { /// Constructor for [_PigeonInternalInstanceManagerApi]. _PigeonInternalInstanceManagerApi({BinaryMessenger? binaryMessenger}) - : pigeonVar_binaryMessenger = binaryMessenger; + : pigeonVar_binaryMessenger = binaryMessenger; final BinaryMessenger? pigeonVar_binaryMessenger; @@ -589,28 +606,35 @@ class _PigeonInternalInstanceManagerApi { }) { { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference was null.', + ); final List args = (message as List?)!; final int? arg_identifier = (args[0] as int?); - assert(arg_identifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference was null, expected non-null int.'); + assert( + arg_identifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference was null, expected non-null int.', + ); try { - (instanceManager ?? PigeonInstanceManager.instance) - .remove(arg_identifier!); + (instanceManager ?? PigeonInstanceManager.instance).remove( + arg_identifier!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -625,8 +649,9 @@ class _PigeonInternalInstanceManagerApi { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([identifier]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [identifier], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -659,36 +684,32 @@ class _PigeonInternalInstanceManagerApi { } class _PigeonInternalProxyApiBaseCodec extends _PigeonCodec { - const _PigeonInternalProxyApiBaseCodec(this.instanceManager); - final PigeonInstanceManager instanceManager; - @override - void writeValue(WriteBuffer buffer, Object? value) { - if (value is PigeonInternalProxyApiBaseClass) { - buffer.putUint8(128); - writeValue(buffer, instanceManager.getIdentifier(value)); - } else { - super.writeValue(buffer, value); - } - } - @override - Object? readValueOfType(int type, ReadBuffer buffer) { - switch (type) { - case 128: - return instanceManager - .getInstanceWithWeakReference(readValue(buffer)! as int); - default: - return super.readValueOfType(type, buffer); - } - } -} - + const _PigeonInternalProxyApiBaseCodec(this.instanceManager); + final PigeonInstanceManager instanceManager; + @override + void writeValue(WriteBuffer buffer, Object? value) { + if (value is PigeonInternalProxyApiBaseClass) { + buffer.putUint8(128); + writeValue(buffer, instanceManager.getIdentifier(value)); + } else { + super.writeValue(buffer, value); + } + } -enum ProxyApiTestEnum { - one, - two, - three, + @override + Object? readValueOfType(int type, ReadBuffer buffer) { + switch (type) { + case 128: + return instanceManager.getInstanceWithWeakReference( + readValue(buffer)! as int, + ); + default: + return super.readValueOfType(type, buffer); + } + } } +enum ProxyApiTestEnum { one, two, three } class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @@ -697,7 +718,7 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is ProxyApiTestEnum) { + } else if (value is ProxyApiTestEnum) { buffer.putUint8(129); writeValue(buffer, value.index); } else { @@ -716,6 +737,7 @@ class _PigeonCodec extends StandardMessageCodec { } } } + /// The core ProxyApi test class that each supported host language must /// implement in platform_tests integration tests. class ProxyApiTestClass extends ProxyApiSuperClass @@ -745,91 +767,85 @@ class ProxyApiTestClass extends ProxyApiSuperClass void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - required bool Function( - ProxyApiTestClass pigeon_instance, - bool aBool, - ) flutterEchoBool, - required int Function( - ProxyApiTestClass pigeon_instance, - int anInt, - ) flutterEchoInt, - required double Function( - ProxyApiTestClass pigeon_instance, - double aDouble, - ) flutterEchoDouble, - required String Function( - ProxyApiTestClass pigeon_instance, - String aString, - ) flutterEchoString, + required bool Function(ProxyApiTestClass pigeon_instance, bool aBool) + flutterEchoBool, + required int Function(ProxyApiTestClass pigeon_instance, int anInt) + flutterEchoInt, + required double Function(ProxyApiTestClass pigeon_instance, double aDouble) + flutterEchoDouble, + required String Function(ProxyApiTestClass pigeon_instance, String aString) + flutterEchoString, required Uint8List Function( ProxyApiTestClass pigeon_instance, Uint8List aList, - ) flutterEchoUint8List, + ) + flutterEchoUint8List, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoList, + ) + flutterEchoList, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoProxyApiList, + ) + flutterEchoProxyApiList, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoMap, + ) + flutterEchoMap, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoProxyApiMap, + ) + flutterEchoProxyApiMap, required ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) flutterEchoEnum, + ) + flutterEchoEnum, required ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) flutterEchoProxyApi, - bool? Function( - ProxyApiTestClass pigeon_instance, - bool? aBool, - )? flutterEchoNullableBool, - int? Function( - ProxyApiTestClass pigeon_instance, - int? anInt, - )? flutterEchoNullableInt, - double? Function( - ProxyApiTestClass pigeon_instance, - double? aDouble, - )? flutterEchoNullableDouble, - String? Function( - ProxyApiTestClass pigeon_instance, - String? aString, - )? flutterEchoNullableString, - Uint8List? Function( - ProxyApiTestClass pigeon_instance, - Uint8List? aList, - )? flutterEchoNullableUint8List, + ) + flutterEchoProxyApi, + bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? + flutterEchoNullableBool, + int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? + flutterEchoNullableInt, + double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? + flutterEchoNullableDouble, + String? Function(ProxyApiTestClass pigeon_instance, String? aString)? + flutterEchoNullableString, + Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? + flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? flutterEchoNullableList, + )? + flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? flutterEchoNullableMap, + )? + flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? flutterEchoNullableEnum, + )? + flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? flutterEchoNullableProxyApi, + )? + flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, required Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) flutterEchoAsyncString, + ) + flutterEchoAsyncString, required bool boolParam, required int intParam, required double doubleParam, @@ -1050,8 +1066,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass ProxyApiTestEnum? nullableEnumParam, ProxyApiSuperClass? nullableProxyApiParam, }) : super.pigeon_detached() { - final int pigeonVar_instanceIdentifier = - pigeon_instanceManager.addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = pigeon_instanceManager + .addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -1062,46 +1078,46 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([ - pigeonVar_instanceIdentifier, - aBool, - anInt, - aDouble, - aString, - aUint8List, - aList, - aMap, - anEnum, - aProxyApi, - aNullableBool, - aNullableInt, - aNullableDouble, - aNullableString, - aNullableUint8List, - aNullableList, - aNullableMap, - aNullableEnum, - aNullableProxyApi, - boolParam, - intParam, - doubleParam, - stringParam, - aUint8ListParam, - listParam, - mapParam, - enumParam, - proxyApiParam, - nullableBoolParam, - nullableIntParam, - nullableDoubleParam, - nullableStringParam, - nullableUint8ListParam, - nullableListParam, - nullableMapParam, - nullableEnumParam, - nullableProxyApiParam - ]); + final Future pigeonVar_sendFuture = pigeonVar_channel + .send([ + pigeonVar_instanceIdentifier, + aBool, + anInt, + aDouble, + aString, + aUint8List, + aList, + aMap, + anEnum, + aProxyApi, + aNullableBool, + aNullableInt, + aNullableDouble, + aNullableString, + aNullableUint8List, + aNullableList, + aNullableMap, + aNullableEnum, + aNullableProxyApi, + boolParam, + intParam, + doubleParam, + stringParam, + aUint8ListParam, + listParam, + mapParam, + enumParam, + proxyApiParam, + nullableBoolParam, + nullableIntParam, + nullableDoubleParam, + nullableStringParam, + nullableUint8ListParam, + nullableListParam, + nullableMapParam, + nullableEnumParam, + nullableProxyApiParam, + ]); () async { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -1138,91 +1154,85 @@ class ProxyApiTestClass extends ProxyApiSuperClass void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - required bool Function( - ProxyApiTestClass pigeon_instance, - bool aBool, - ) flutterEchoBool, - required int Function( - ProxyApiTestClass pigeon_instance, - int anInt, - ) flutterEchoInt, - required double Function( - ProxyApiTestClass pigeon_instance, - double aDouble, - ) flutterEchoDouble, - required String Function( - ProxyApiTestClass pigeon_instance, - String aString, - ) flutterEchoString, + required bool Function(ProxyApiTestClass pigeon_instance, bool aBool) + flutterEchoBool, + required int Function(ProxyApiTestClass pigeon_instance, int anInt) + flutterEchoInt, + required double Function(ProxyApiTestClass pigeon_instance, double aDouble) + flutterEchoDouble, + required String Function(ProxyApiTestClass pigeon_instance, String aString) + flutterEchoString, required Uint8List Function( ProxyApiTestClass pigeon_instance, Uint8List aList, - ) flutterEchoUint8List, + ) + flutterEchoUint8List, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoList, + ) + flutterEchoList, required List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoProxyApiList, + ) + flutterEchoProxyApiList, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoMap, + ) + flutterEchoMap, required Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoProxyApiMap, + ) + flutterEchoProxyApiMap, required ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) flutterEchoEnum, + ) + flutterEchoEnum, required ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) flutterEchoProxyApi, - bool? Function( - ProxyApiTestClass pigeon_instance, - bool? aBool, - )? flutterEchoNullableBool, - int? Function( - ProxyApiTestClass pigeon_instance, - int? anInt, - )? flutterEchoNullableInt, - double? Function( - ProxyApiTestClass pigeon_instance, - double? aDouble, - )? flutterEchoNullableDouble, - String? Function( - ProxyApiTestClass pigeon_instance, - String? aString, - )? flutterEchoNullableString, - Uint8List? Function( - ProxyApiTestClass pigeon_instance, - Uint8List? aList, - )? flutterEchoNullableUint8List, + ) + flutterEchoProxyApi, + bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? + flutterEchoNullableBool, + int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? + flutterEchoNullableInt, + double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? + flutterEchoNullableDouble, + String? Function(ProxyApiTestClass pigeon_instance, String? aString)? + flutterEchoNullableString, + Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? + flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? flutterEchoNullableList, + )? + flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? flutterEchoNullableMap, + )? + flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? flutterEchoNullableEnum, + )? + flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? flutterEchoNullableProxyApi, + )? + flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, required Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) flutterEchoAsyncString, + ) + flutterEchoAsyncString, }) { if (PigeonOverrides.proxyApiTestClass_namedConstructor != null) { return PigeonOverrides.proxyApiTestClass_namedConstructor!( @@ -1371,8 +1381,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass this.flutterNoopAsync, required this.flutterEchoAsyncString, }) : super.pigeon_detached() { - final int pigeonVar_instanceIdentifier = - pigeon_instanceManager.addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = pigeon_instanceManager + .addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -1383,28 +1393,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([ - pigeonVar_instanceIdentifier, - aBool, - anInt, - aDouble, - aString, - aUint8List, - aList, - aMap, - anEnum, - aProxyApi, - aNullableBool, - aNullableInt, - aNullableDouble, - aNullableString, - aNullableUint8List, - aNullableList, - aNullableMap, - aNullableEnum, - aNullableProxyApi - ]); + final Future pigeonVar_sendFuture = pigeonVar_channel + .send([ + pigeonVar_instanceIdentifier, + aBool, + anInt, + aDouble, + aString, + aUint8List, + aList, + aMap, + anEnum, + aProxyApi, + aNullableBool, + aNullableInt, + aNullableDouble, + aNullableString, + aNullableUint8List, + aNullableList, + aNullableMap, + aNullableEnum, + aNullableProxyApi, + ]); () async { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -1471,8 +1481,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass }) : super.pigeon_detached(); late final _PigeonInternalProxyApiBaseCodec - _pigeonVar_codecProxyApiTestClass = - _PigeonInternalProxyApiBaseCodec(pigeon_instanceManager); + _pigeonVar_codecProxyApiTestClass = _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager, + ); final bool aBool; @@ -1573,7 +1584,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final void Function(ProxyApiTestClass pigeon_instance)? - flutterThrowErrorFromVoid; + flutterThrowErrorFromVoid; /// Returns the passed boolean, to test serialization and deserialization. /// @@ -1594,10 +1605,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final bool Function( - ProxyApiTestClass pigeon_instance, - bool aBool, - ) flutterEchoBool; + final bool Function(ProxyApiTestClass pigeon_instance, bool aBool) + flutterEchoBool; /// Returns the passed int, to test serialization and deserialization. /// @@ -1618,10 +1627,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final int Function( - ProxyApiTestClass pigeon_instance, - int anInt, - ) flutterEchoInt; + final int Function(ProxyApiTestClass pigeon_instance, int anInt) + flutterEchoInt; /// Returns the passed double, to test serialization and deserialization. /// @@ -1642,10 +1649,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final double Function( - ProxyApiTestClass pigeon_instance, - double aDouble, - ) flutterEchoDouble; + final double Function(ProxyApiTestClass pigeon_instance, double aDouble) + flutterEchoDouble; /// Returns the passed string, to test serialization and deserialization. /// @@ -1666,10 +1671,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final String Function( - ProxyApiTestClass pigeon_instance, - String aString, - ) flutterEchoString; + final String Function(ProxyApiTestClass pigeon_instance, String aString) + flutterEchoString; /// Returns the passed byte list, to test serialization and deserialization. /// @@ -1690,10 +1693,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final Uint8List Function( - ProxyApiTestClass pigeon_instance, - Uint8List aList, - ) flutterEchoUint8List; + final Uint8List Function(ProxyApiTestClass pigeon_instance, Uint8List aList) + flutterEchoUint8List; /// Returns the passed list, to test serialization and deserialization. /// @@ -1717,7 +1718,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoList; + ) + flutterEchoList; /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. @@ -1742,7 +1744,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final List Function( ProxyApiTestClass pigeon_instance, List aList, - ) flutterEchoProxyApiList; + ) + flutterEchoProxyApiList; /// Returns the passed map, to test serialization and deserialization. /// @@ -1766,7 +1769,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoMap; + ) + flutterEchoMap; /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. @@ -1791,7 +1795,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - ) flutterEchoProxyApiMap; + ) + flutterEchoProxyApiMap; /// Returns the passed enum to test serialization and deserialization. /// @@ -1815,7 +1820,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - ) flutterEchoEnum; + ) + flutterEchoEnum; /// Returns the passed ProxyApi to test serialization and deserialization. /// @@ -1839,7 +1845,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - ) flutterEchoProxyApi; + ) + flutterEchoProxyApi; /// Returns the passed boolean, to test serialization and deserialization. /// @@ -1860,10 +1867,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final bool? Function( - ProxyApiTestClass pigeon_instance, - bool? aBool, - )? flutterEchoNullableBool; + final bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? + flutterEchoNullableBool; /// Returns the passed int, to test serialization and deserialization. /// @@ -1884,10 +1889,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final int? Function( - ProxyApiTestClass pigeon_instance, - int? anInt, - )? flutterEchoNullableInt; + final int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? + flutterEchoNullableInt; /// Returns the passed double, to test serialization and deserialization. /// @@ -1908,10 +1911,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final double? Function( - ProxyApiTestClass pigeon_instance, - double? aDouble, - )? flutterEchoNullableDouble; + final double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? + flutterEchoNullableDouble; /// Returns the passed string, to test serialization and deserialization. /// @@ -1932,10 +1933,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final String? Function( - ProxyApiTestClass pigeon_instance, - String? aString, - )? flutterEchoNullableString; + final String? Function(ProxyApiTestClass pigeon_instance, String? aString)? + flutterEchoNullableString; /// Returns the passed byte list, to test serialization and deserialization. /// @@ -1959,7 +1958,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Uint8List? Function( ProxyApiTestClass pigeon_instance, Uint8List? aList, - )? flutterEchoNullableUint8List; + )? + flutterEchoNullableUint8List; /// Returns the passed list, to test serialization and deserialization. /// @@ -1983,7 +1983,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? flutterEchoNullableList; + )? + flutterEchoNullableList; /// Returns the passed map, to test serialization and deserialization. /// @@ -2007,7 +2008,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? flutterEchoNullableMap; + )? + flutterEchoNullableMap; /// Returns the passed enum to test serialization and deserialization. /// @@ -2031,7 +2033,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? flutterEchoNullableEnum; + )? + flutterEchoNullableEnum; /// Returns the passed ProxyApi to test serialization and deserialization. /// @@ -2055,7 +2058,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? flutterEchoNullableProxyApi; + )? + flutterEchoNullableProxyApi; /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. @@ -2078,7 +2082,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Future Function(ProxyApiTestClass pigeon_instance)? - flutterNoopAsync; + flutterNoopAsync; /// Returns the passed in generic Object asynchronously. /// @@ -2102,7 +2106,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass final Future Function( ProxyApiTestClass pigeon_instance, String aString, - ) flutterEchoAsyncString; + ) + flutterEchoAsyncString; @override final void Function(ProxyApiInterface pigeon_instance)? anInterfaceMethod; @@ -2123,121 +2128,116 @@ class ProxyApiTestClass extends ProxyApiSuperClass void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, - bool Function( - ProxyApiTestClass pigeon_instance, - bool aBool, - )? flutterEchoBool, - int Function( - ProxyApiTestClass pigeon_instance, - int anInt, - )? flutterEchoInt, - double Function( - ProxyApiTestClass pigeon_instance, - double aDouble, - )? flutterEchoDouble, - String Function( - ProxyApiTestClass pigeon_instance, - String aString, - )? flutterEchoString, - Uint8List Function( - ProxyApiTestClass pigeon_instance, - Uint8List aList, - )? flutterEchoUint8List, + bool Function(ProxyApiTestClass pigeon_instance, bool aBool)? + flutterEchoBool, + int Function(ProxyApiTestClass pigeon_instance, int anInt)? flutterEchoInt, + double Function(ProxyApiTestClass pigeon_instance, double aDouble)? + flutterEchoDouble, + String Function(ProxyApiTestClass pigeon_instance, String aString)? + flutterEchoString, + Uint8List Function(ProxyApiTestClass pigeon_instance, Uint8List aList)? + flutterEchoUint8List, List Function( ProxyApiTestClass pigeon_instance, List aList, - )? flutterEchoList, + )? + flutterEchoList, List Function( ProxyApiTestClass pigeon_instance, List aList, - )? flutterEchoProxyApiList, + )? + flutterEchoProxyApiList, Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - )? flutterEchoMap, + )? + flutterEchoMap, Map Function( ProxyApiTestClass pigeon_instance, Map aMap, - )? flutterEchoProxyApiMap, + )? + flutterEchoProxyApiMap, ProxyApiTestEnum Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, - )? flutterEchoEnum, + )? + flutterEchoEnum, ProxyApiSuperClass Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, - )? flutterEchoProxyApi, - bool? Function( - ProxyApiTestClass pigeon_instance, - bool? aBool, - )? flutterEchoNullableBool, - int? Function( - ProxyApiTestClass pigeon_instance, - int? anInt, - )? flutterEchoNullableInt, - double? Function( - ProxyApiTestClass pigeon_instance, - double? aDouble, - )? flutterEchoNullableDouble, - String? Function( - ProxyApiTestClass pigeon_instance, - String? aString, - )? flutterEchoNullableString, - Uint8List? Function( - ProxyApiTestClass pigeon_instance, - Uint8List? aList, - )? flutterEchoNullableUint8List, + )? + flutterEchoProxyApi, + bool? Function(ProxyApiTestClass pigeon_instance, bool? aBool)? + flutterEchoNullableBool, + int? Function(ProxyApiTestClass pigeon_instance, int? anInt)? + flutterEchoNullableInt, + double? Function(ProxyApiTestClass pigeon_instance, double? aDouble)? + flutterEchoNullableDouble, + String? Function(ProxyApiTestClass pigeon_instance, String? aString)? + flutterEchoNullableString, + Uint8List? Function(ProxyApiTestClass pigeon_instance, Uint8List? aList)? + flutterEchoNullableUint8List, List? Function( ProxyApiTestClass pigeon_instance, List? aList, - )? flutterEchoNullableList, + )? + flutterEchoNullableList, Map? Function( ProxyApiTestClass pigeon_instance, Map? aMap, - )? flutterEchoNullableMap, + )? + flutterEchoNullableMap, ProxyApiTestEnum? Function( ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, - )? flutterEchoNullableEnum, + )? + flutterEchoNullableEnum, ProxyApiSuperClass? Function( ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, - )? flutterEchoNullableProxyApi, + )? + flutterEchoNullableProxyApi, Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, - Future Function( - ProxyApiTestClass pigeon_instance, - String aString, - )? flutterEchoAsyncString, + Future Function(ProxyApiTestClass pigeon_instance, String aString)? + flutterEchoAsyncString, }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); + pigeon_instanceManager ?? PigeonInstanceManager.instance, + ); final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null, expected non-null ProxyApiTestClass.', + ); try { - (flutterNoop ?? arg_pigeon_instance!.flutterNoop) - ?.call(arg_pigeon_instance!); + (flutterNoop ?? arg_pigeon_instance!.flutterNoop)?.call( + arg_pigeon_instance!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2245,20 +2245,25 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null, expected non-null ProxyApiTestClass.', + ); try { final Object? output = (flutterThrowError ?? arg_pigeon_instance!.flutterThrowError) @@ -2268,7 +2273,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2276,20 +2282,25 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null, expected non-null ProxyApiTestClass.', + ); try { (flutterThrowErrorFromVoid ?? arg_pigeon_instance!.flutterThrowErrorFromVoid) @@ -2299,7 +2310,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2307,33 +2319,43 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null ProxyApiTestClass.', + ); final bool? arg_aBool = (args[1] as bool?); - assert(arg_aBool != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null bool.'); + assert( + arg_aBool != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null bool.', + ); try { final bool output = - (flutterEchoBool ?? arg_pigeon_instance!.flutterEchoBool) - .call(arg_pigeon_instance!, arg_aBool!); + (flutterEchoBool ?? arg_pigeon_instance!.flutterEchoBool).call( + arg_pigeon_instance!, + arg_aBool!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2341,33 +2363,43 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null ProxyApiTestClass.', + ); final int? arg_anInt = (args[1] as int?); - assert(arg_anInt != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null int.'); + assert( + arg_anInt != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null int.', + ); try { final int output = - (flutterEchoInt ?? arg_pigeon_instance!.flutterEchoInt) - .call(arg_pigeon_instance!, arg_anInt!); + (flutterEchoInt ?? arg_pigeon_instance!.flutterEchoInt).call( + arg_pigeon_instance!, + arg_anInt!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2375,23 +2407,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null ProxyApiTestClass.', + ); final double? arg_aDouble = (args[1] as double?); - assert(arg_aDouble != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null double.'); + assert( + arg_aDouble != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null double.', + ); try { final double output = (flutterEchoDouble ?? arg_pigeon_instance!.flutterEchoDouble) @@ -2401,7 +2440,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2409,23 +2449,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null ProxyApiTestClass.', + ); final String? arg_aString = (args[1] as String?); - assert(arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null String.'); + assert( + arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null String.', + ); try { final String output = (flutterEchoString ?? arg_pigeon_instance!.flutterEchoString) @@ -2435,7 +2482,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2443,33 +2491,42 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null ProxyApiTestClass.', + ); final Uint8List? arg_aList = (args[1] as Uint8List?); - assert(arg_aList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null Uint8List.'); + assert( + arg_aList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null Uint8List.', + ); try { - final Uint8List output = (flutterEchoUint8List ?? - arg_pigeon_instance!.flutterEchoUint8List) - .call(arg_pigeon_instance!, arg_aList!); + final Uint8List output = + (flutterEchoUint8List ?? + arg_pigeon_instance!.flutterEchoUint8List) + .call(arg_pigeon_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2477,34 +2534,44 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null ProxyApiTestClass.'); - final List? arg_aList = - (args[1] as List?)?.cast(); - assert(arg_aList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null List.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null ProxyApiTestClass.', + ); + final List? arg_aList = (args[1] as List?) + ?.cast(); + assert( + arg_aList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null List.', + ); try { final List output = - (flutterEchoList ?? arg_pigeon_instance!.flutterEchoList) - .call(arg_pigeon_instance!, arg_aList!); + (flutterEchoList ?? arg_pigeon_instance!.flutterEchoList).call( + arg_pigeon_instance!, + arg_aList!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2512,34 +2579,43 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null ProxyApiTestClass.', + ); final List? arg_aList = (args[1] as List?)?.cast(); - assert(arg_aList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null List.'); + assert( + arg_aList != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null List.', + ); try { - final List output = (flutterEchoProxyApiList ?? - arg_pigeon_instance!.flutterEchoProxyApiList) - .call(arg_pigeon_instance!, arg_aList!); + final List output = + (flutterEchoProxyApiList ?? + arg_pigeon_instance!.flutterEchoProxyApiList) + .call(arg_pigeon_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2547,34 +2623,44 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null ProxyApiTestClass.', + ); final Map? arg_aMap = (args[1] as Map?)?.cast(); - assert(arg_aMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null Map.'); + assert( + arg_aMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null Map.', + ); try { final Map output = - (flutterEchoMap ?? arg_pigeon_instance!.flutterEchoMap) - .call(arg_pigeon_instance!, arg_aMap!); + (flutterEchoMap ?? arg_pigeon_instance!.flutterEchoMap).call( + arg_pigeon_instance!, + arg_aMap!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2582,25 +2668,32 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null ProxyApiTestClass.', + ); final Map? arg_aMap = (args[1] as Map?) ?.cast(); - assert(arg_aMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null Map.'); + assert( + arg_aMap != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null Map.', + ); try { final Map output = (flutterEchoProxyApiMap ?? @@ -2611,7 +2704,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2619,33 +2713,43 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestClass.', + ); final ProxyApiTestEnum? arg_anEnum = (args[1] as ProxyApiTestEnum?); - assert(arg_anEnum != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestEnum.'); + assert( + arg_anEnum != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestEnum.', + ); try { final ProxyApiTestEnum output = - (flutterEchoEnum ?? arg_pigeon_instance!.flutterEchoEnum) - .call(arg_pigeon_instance!, arg_anEnum!); + (flutterEchoEnum ?? arg_pigeon_instance!.flutterEchoEnum).call( + arg_pigeon_instance!, + arg_anEnum!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2653,34 +2757,43 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiTestClass.', + ); final ProxyApiSuperClass? arg_aProxyApi = (args[1] as ProxyApiSuperClass?); - assert(arg_aProxyApi != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiSuperClass.'); + assert( + arg_aProxyApi != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiSuperClass.', + ); try { - final ProxyApiSuperClass output = (flutterEchoProxyApi ?? - arg_pigeon_instance!.flutterEchoProxyApi) - .call(arg_pigeon_instance!, arg_aProxyApi!); + final ProxyApiSuperClass output = + (flutterEchoProxyApi ?? + arg_pigeon_instance!.flutterEchoProxyApi) + .call(arg_pigeon_instance!, arg_aProxyApi!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2688,31 +2801,38 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null, expected non-null ProxyApiTestClass.', + ); final bool? arg_aBool = (args[1] as bool?); try { - final bool? output = (flutterEchoNullableBool ?? - arg_pigeon_instance!.flutterEchoNullableBool) - ?.call(arg_pigeon_instance!, arg_aBool); + final bool? output = + (flutterEchoNullableBool ?? + arg_pigeon_instance!.flutterEchoNullableBool) + ?.call(arg_pigeon_instance!, arg_aBool); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2720,31 +2840,38 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null, expected non-null ProxyApiTestClass.', + ); final int? arg_anInt = (args[1] as int?); try { - final int? output = (flutterEchoNullableInt ?? - arg_pigeon_instance!.flutterEchoNullableInt) - ?.call(arg_pigeon_instance!, arg_anInt); + final int? output = + (flutterEchoNullableInt ?? + arg_pigeon_instance!.flutterEchoNullableInt) + ?.call(arg_pigeon_instance!, arg_anInt); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2752,31 +2879,38 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null, expected non-null ProxyApiTestClass.', + ); final double? arg_aDouble = (args[1] as double?); try { - final double? output = (flutterEchoNullableDouble ?? - arg_pigeon_instance!.flutterEchoNullableDouble) - ?.call(arg_pigeon_instance!, arg_aDouble); + final double? output = + (flutterEchoNullableDouble ?? + arg_pigeon_instance!.flutterEchoNullableDouble) + ?.call(arg_pigeon_instance!, arg_aDouble); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2784,31 +2918,38 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null, expected non-null ProxyApiTestClass.', + ); final String? arg_aString = (args[1] as String?); try { - final String? output = (flutterEchoNullableString ?? - arg_pigeon_instance!.flutterEchoNullableString) - ?.call(arg_pigeon_instance!, arg_aString); + final String? output = + (flutterEchoNullableString ?? + arg_pigeon_instance!.flutterEchoNullableString) + ?.call(arg_pigeon_instance!, arg_aString); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2816,31 +2957,38 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null, expected non-null ProxyApiTestClass.', + ); final Uint8List? arg_aList = (args[1] as Uint8List?); try { - final Uint8List? output = (flutterEchoNullableUint8List ?? - arg_pigeon_instance!.flutterEchoNullableUint8List) - ?.call(arg_pigeon_instance!, arg_aList); + final Uint8List? output = + (flutterEchoNullableUint8List ?? + arg_pigeon_instance!.flutterEchoNullableUint8List) + ?.call(arg_pigeon_instance!, arg_aList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2848,32 +2996,39 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null, expected non-null ProxyApiTestClass.'); - final List? arg_aList = - (args[1] as List?)?.cast(); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null, expected non-null ProxyApiTestClass.', + ); + final List? arg_aList = (args[1] as List?) + ?.cast(); try { - final List? output = (flutterEchoNullableList ?? - arg_pigeon_instance!.flutterEchoNullableList) - ?.call(arg_pigeon_instance!, arg_aList); + final List? output = + (flutterEchoNullableList ?? + arg_pigeon_instance!.flutterEchoNullableList) + ?.call(arg_pigeon_instance!, arg_aList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2881,32 +3036,39 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null, expected non-null ProxyApiTestClass.', + ); final Map? arg_aMap = (args[1] as Map?)?.cast(); try { - final Map? output = (flutterEchoNullableMap ?? - arg_pigeon_instance!.flutterEchoNullableMap) - ?.call(arg_pigeon_instance!, arg_aMap); + final Map? output = + (flutterEchoNullableMap ?? + arg_pigeon_instance!.flutterEchoNullableMap) + ?.call(arg_pigeon_instance!, arg_aMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2914,31 +3076,38 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null, expected non-null ProxyApiTestClass.', + ); final ProxyApiTestEnum? arg_anEnum = (args[1] as ProxyApiTestEnum?); try { - final ProxyApiTestEnum? output = (flutterEchoNullableEnum ?? - arg_pigeon_instance!.flutterEchoNullableEnum) - ?.call(arg_pigeon_instance!, arg_anEnum); + final ProxyApiTestEnum? output = + (flutterEchoNullableEnum ?? + arg_pigeon_instance!.flutterEchoNullableEnum) + ?.call(arg_pigeon_instance!, arg_anEnum); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2946,32 +3115,39 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null, expected non-null ProxyApiTestClass.', + ); final ProxyApiSuperClass? arg_aProxyApi = (args[1] as ProxyApiSuperClass?); try { - final ProxyApiSuperClass? output = (flutterEchoNullableProxyApi ?? - arg_pigeon_instance!.flutterEchoNullableProxyApi) - ?.call(arg_pigeon_instance!, arg_aProxyApi); + final ProxyApiSuperClass? output = + (flutterEchoNullableProxyApi ?? + arg_pigeon_instance!.flutterEchoNullableProxyApi) + ?.call(arg_pigeon_instance!, arg_aProxyApi); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -2979,20 +3155,25 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null, expected non-null ProxyApiTestClass.', + ); try { await (flutterNoopAsync ?? arg_pigeon_instance!.flutterNoopAsync) ?.call(arg_pigeon_instance!); @@ -3001,7 +3182,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -3009,33 +3191,42 @@ class ProxyApiTestClass extends ProxyApiSuperClass { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null.', + ); final List args = (message as List?)!; final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null ProxyApiTestClass.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null ProxyApiTestClass.', + ); final String? arg_aString = (args[1] as String?); - assert(arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null String.'); + assert( + arg_aString != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null String.', + ); try { - final String output = await (flutterEchoAsyncString ?? - arg_pigeon_instance!.flutterEchoAsyncString) - .call(arg_pigeon_instance!, arg_aString!); + final String output = + await (flutterEchoAsyncString ?? + arg_pigeon_instance!.flutterEchoAsyncString) + .call(arg_pigeon_instance!, arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -3045,14 +3236,14 @@ class ProxyApiTestClass extends ProxyApiSuperClass ProxyApiSuperClass pigeonVar_attachedField() { final ProxyApiSuperClass pigeonVar_instance = ProxyApiSuperClass.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, - ); + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + ); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; - final int pigeonVar_instanceIdentifier = - pigeon_instanceManager.addDartCreatedInstance(pigeonVar_instance); + final int pigeonVar_instanceIdentifier = pigeon_instanceManager + .addDartCreatedInstance(pigeonVar_instance); () async { const pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField'; @@ -3061,8 +3252,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, pigeonVar_instanceIdentifier]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, pigeonVar_instanceIdentifier], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3091,8 +3283,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([pigeonVar_instanceIdentifier]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [pigeonVar_instanceIdentifier], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3117,8 +3310,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3140,8 +3334,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3164,8 +3359,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3187,8 +3383,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3211,8 +3408,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3235,8 +3433,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3259,8 +3458,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3283,8 +3483,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3307,8 +3508,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3331,8 +3533,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anObject]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anObject], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3355,8 +3558,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3370,7 +3574,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. Future> echoProxyApiList( - List aList) async { + List aList, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3381,8 +3586,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3405,8 +3611,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3421,7 +3628,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. Future> echoProxyApiMap( - Map aMap) async { + Map aMap, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3432,8 +3640,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3457,8 +3666,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3481,8 +3691,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aProxyApi]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aProxyApi], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3505,8 +3716,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3529,8 +3741,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3553,8 +3766,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3577,8 +3791,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3591,7 +3806,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed in Uint8List. Future echoNullableUint8List( - Uint8List? aNullableUint8List) async { + Uint8List? aNullableUint8List, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3602,8 +3818,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3626,8 +3843,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableObject]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableObject], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3650,8 +3868,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3664,7 +3883,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed map, to test serialization and deserialization. Future?> echoNullableMap( - Map? aNullableMap) async { + Map? aNullableMap, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3675,8 +3895,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3689,7 +3910,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future echoNullableEnum( - ProxyApiTestEnum? aNullableEnum) async { + ProxyApiTestEnum? aNullableEnum, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3700,8 +3922,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3714,7 +3937,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed ProxyApi to test serialization and deserialization. Future echoNullableProxyApi( - ProxyApiSuperClass? aNullableProxyApi) async { + ProxyApiSuperClass? aNullableProxyApi, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -3725,8 +3949,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aNullableProxyApi]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aNullableProxyApi], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3750,8 +3975,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -3773,8 +3999,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3797,8 +4024,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3821,8 +4049,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3845,8 +4074,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3869,8 +4099,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3893,8 +4124,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anObject]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anObject], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3917,8 +4149,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3941,8 +4174,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3966,8 +4200,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -3990,8 +4225,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4014,8 +4250,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -4037,8 +4274,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4061,8 +4299,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4085,8 +4324,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4109,8 +4349,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4133,8 +4374,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4157,8 +4399,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4181,8 +4424,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anObject]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anObject], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4205,8 +4449,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4219,7 +4464,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed map, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableMap( - Map? aMap) async { + Map? aMap, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4230,8 +4476,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4245,7 +4492,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncNullableEnum( - ProxyApiTestEnum? anEnum) async { + ProxyApiTestEnum? anEnum, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4256,8 +4504,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4277,7 +4526,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); + pigeon_instanceManager ?? PigeonInstanceManager.instance, + ); final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; const pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop'; @@ -4306,7 +4556,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); + pigeon_instanceManager ?? PigeonInstanceManager.instance, + ); final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; const pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString'; @@ -4315,8 +4566,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4336,7 +4588,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); + pigeon_instanceManager ?? PigeonInstanceManager.instance, + ); final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; const pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop'; @@ -4366,8 +4619,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -4388,8 +4642,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4411,8 +4666,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -4433,8 +4689,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4456,8 +4713,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4479,8 +4737,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4502,8 +4761,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4525,8 +4785,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4548,8 +4809,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4561,7 +4823,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future> callFlutterEchoProxyApiList( - List aList) async { + List aList, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4572,8 +4835,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4585,7 +4849,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future> callFlutterEchoMap( - Map aMap) async { + Map aMap, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4596,8 +4861,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4610,7 +4876,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future> callFlutterEchoProxyApiMap( - Map aMap) async { + Map aMap, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4621,8 +4888,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4645,8 +4913,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4658,7 +4927,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoProxyApi( - ProxyApiSuperClass aProxyApi) async { + ProxyApiSuperClass aProxyApi, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4669,8 +4939,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aProxyApi]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aProxyApi], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4692,8 +4963,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aBool]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aBool], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4715,8 +4987,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anInt]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anInt], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4738,8 +5011,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aDouble]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aDouble], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4761,8 +5035,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4774,7 +5049,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoNullableUint8List( - Uint8List? aUint8List) async { + Uint8List? aUint8List, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4785,8 +5061,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aUint8List]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aUint8List], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4798,7 +5075,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future?> callFlutterEchoNullableList( - List? aList) async { + List? aList, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4809,8 +5087,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aList]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aList], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4822,7 +5101,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future?> callFlutterEchoNullableMap( - Map? aMap) async { + Map? aMap, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4833,8 +5113,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aMap]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aMap], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4847,7 +5128,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoNullableEnum( - ProxyApiTestEnum? anEnum) async { + ProxyApiTestEnum? anEnum, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4858,8 +5140,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, anEnum]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, anEnum], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4871,7 +5154,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoNullableProxyApi( - ProxyApiSuperClass? aProxyApi) async { + ProxyApiSuperClass? aProxyApi, + ) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiTestClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -4882,8 +5166,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aProxyApi]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aProxyApi], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object? pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -4905,8 +5190,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -4927,8 +5213,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this, aString]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this, aString], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; final Object pigeonVar_replyValue = _extractReplyValueOrThrow( @@ -5012,8 +5299,8 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { super.pigeon_binaryMessenger, super.pigeon_instanceManager, }) { - final int pigeonVar_instanceIdentifier = - pigeon_instanceManager.addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = pigeon_instanceManager + .addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecProxyApiSuperClass; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5024,8 +5311,9 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([pigeonVar_instanceIdentifier]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [pigeonVar_instanceIdentifier], + ); () async { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -5048,8 +5336,9 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { }); late final _PigeonInternalProxyApiBaseCodec - _pigeonVar_codecProxyApiSuperClass = - _PigeonInternalProxyApiBaseCodec(pigeon_instanceManager); + _pigeonVar_codecProxyApiSuperClass = _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager, + ); static void pigeon_setUpMessageHandlers({ bool pigeon_clearHandlers = false, @@ -5059,39 +5348,46 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); + pigeon_instanceManager ?? PigeonInstanceManager.instance, + ); final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null.', + ); final List args = (message as List?)!; final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert(arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null, expected non-null int.'); + assert( + arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null, expected non-null int.', + ); try { (pigeon_instanceManager ?? PigeonInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call() ?? - ProxyApiSuperClass.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, - ), - arg_pigeon_instanceIdentifier!, - ); + pigeon_newInstance?.call() ?? + ProxyApiSuperClass.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + ), + arg_pigeon_instanceIdentifier!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -5109,8 +5405,9 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -5172,39 +5469,46 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); + pigeon_instanceManager ?? PigeonInstanceManager.instance, + ); final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null.', + ); final List args = (message as List?)!; final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert(arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null, expected non-null int.'); + assert( + arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null, expected non-null int.', + ); try { (pigeon_instanceManager ?? PigeonInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call() ?? - ProxyApiInterface.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, - ), - arg_pigeon_instanceIdentifier!, - ); + pigeon_newInstance?.call() ?? + ProxyApiInterface.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + ), + arg_pigeon_instanceIdentifier!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -5212,29 +5516,36 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null.', + ); final List args = (message as List?)!; final ProxyApiInterface? arg_pigeon_instance = (args[0] as ProxyApiInterface?); - assert(arg_pigeon_instance != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null, expected non-null ProxyApiInterface.'); + assert( + arg_pigeon_instance != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null, expected non-null ProxyApiInterface.', + ); try { - (anInterfaceMethod ?? arg_pigeon_instance!.anInterfaceMethod) - ?.call(arg_pigeon_instance!); + (anInterfaceMethod ?? arg_pigeon_instance!.anInterfaceMethod)?.call( + arg_pigeon_instance!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -5270,8 +5581,8 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { super.pigeon_binaryMessenger, super.pigeon_instanceManager, }) { - final int pigeonVar_instanceIdentifier = - pigeon_instanceManager.addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = pigeon_instanceManager + .addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecClassWithApiRequirement; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5282,8 +5593,9 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([pigeonVar_instanceIdentifier]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [pigeonVar_instanceIdentifier], + ); () async { final pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -5306,8 +5618,9 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { }); late final _PigeonInternalProxyApiBaseCodec - _pigeonVar_codecClassWithApiRequirement = - _PigeonInternalProxyApiBaseCodec(pigeon_instanceManager); + _pigeonVar_codecClassWithApiRequirement = _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager, + ); static void pigeon_setUpMessageHandlers({ bool pigeon_clearHandlers = false, @@ -5317,39 +5630,46 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); + pigeon_instanceManager ?? PigeonInstanceManager.instance, + ); final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (pigeon_clearHandlers) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance was null.', + ); final List args = (message as List?)!; final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert(arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance was null, expected non-null int.'); + assert( + arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance was null, expected non-null int.', + ); try { (pigeon_instanceManager ?? PigeonInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call() ?? - ClassWithApiRequirement.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, - ), - arg_pigeon_instanceIdentifier!, - ); + pigeon_newInstance?.call() ?? + ClassWithApiRequirement.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + ), + arg_pigeon_instanceIdentifier!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -5367,8 +5687,9 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = - pigeonVar_channel.send([this]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [this], + ); final pigeonVar_replyList = await pigeonVar_sendFuture as List?; _extractReplyValueOrThrow( @@ -5386,4 +5707,3 @@ class ClassWithApiRequirement extends PigeonInternalProxyApiBaseClass { ); } } - diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart index 63d409cc043a..d15373e49000 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart @@ -14,7 +14,6 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:shared_test_plugin_code/message.gen.dart'; - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -22,16 +21,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MessageRequestState) { + } else if (value is MessageRequestState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageNested) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -61,7 +60,8 @@ class _PigeonCodec extends StandardMessageCodec { /// /// This comment also tests multiple line comments. abstract class TestHostApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); /// This comment is to test documentation comments. @@ -72,50 +72,83 @@ abstract class TestHostApi { /// This comment is to test method documentation comments. MessageSearchReply search(MessageSearchRequest request); - static void setUp(TestHostApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + TestHostApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.initialize(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.initialize(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null.'); - final List args = (message as List?)!; - final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null, expected non-null MessageSearchRequest.'); - try { - final MessageSearchReply output = api.search(arg_request!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null.', + ); + final List args = (message as List?)!; + final MessageSearchRequest? arg_request = + (args[0] as MessageSearchRequest?); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null, expected non-null MessageSearchRequest.', + ); + try { + final MessageSearchReply output = api.search(arg_request!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); } } } @@ -123,7 +156,8 @@ abstract class TestHostApi { /// This comment is to test api documentation comments. abstract class TestNestedApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); /// This comment is to test method documentation comments. @@ -131,31 +165,52 @@ abstract class TestNestedApi { /// This comment also tests multiple line comments. MessageSearchReply search(MessageNested nested); - static void setUp(TestNestedApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + TestNestedApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null.'); - final List args = (message as List?)!; - final MessageNested? arg_nested = (args[0] as MessageNested?); - assert(arg_nested != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null, expected non-null MessageNested.'); - try { - final MessageSearchReply output = api.search(arg_nested!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null.', + ); + final List args = (message as List?)!; + final MessageNested? arg_nested = (args[0] as MessageNested?); + assert( + arg_nested != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null, expected non-null MessageNested.', + ); + try { + final MessageSearchReply output = api.search(arg_nested!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); } } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart index 4b7d6a970740..c60370dc5b97 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart @@ -14,7 +14,6 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:shared_test_plugin_code/src/generated/message.gen.dart'; - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -22,16 +21,16 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MessageRequestState) { + } else if (value is MessageRequestState) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageNested) { buffer.putUint8(132); writeValue(buffer, value.encode()); } else { @@ -61,7 +60,8 @@ class _PigeonCodec extends StandardMessageCodec { /// /// This comment also tests multiple line comments. abstract class TestHostApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); /// This comment is to test documentation comments. @@ -72,50 +72,83 @@ abstract class TestHostApi { /// This comment is to test method documentation comments. MessageSearchReply search(MessageSearchRequest request); - static void setUp(TestHostApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + TestHostApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.initialize(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.initialize(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); } } { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null.'); - final List args = (message as List?)!; - final MessageSearchRequest? arg_request = (args[0] as MessageSearchRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null, expected non-null MessageSearchRequest.'); - try { - final MessageSearchReply output = api.search(arg_request!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null.', + ); + final List args = (message as List?)!; + final MessageSearchRequest? arg_request = + (args[0] as MessageSearchRequest?); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null, expected non-null MessageSearchRequest.', + ); + try { + final MessageSearchReply output = api.search(arg_request!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); } } } @@ -123,7 +156,8 @@ abstract class TestHostApi { /// This comment is to test api documentation comments. abstract class TestNestedApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); /// This comment is to test method documentation comments. @@ -131,31 +165,52 @@ abstract class TestNestedApi { /// This comment also tests multiple line comments. MessageSearchReply search(MessageNested nested); - static void setUp(TestNestedApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + TestNestedApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null.'); - final List args = (message as List?)!; - final MessageNested? arg_nested = (args[0] as MessageNested?); - assert(arg_nested != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null, expected non-null MessageNested.'); - try { - final MessageSearchReply output = api.search(arg_nested!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null.', + ); + final List args = (message as List?)!; + final MessageNested? arg_nested = (args[0] as MessageNested?); + assert( + arg_nested != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null, expected non-null MessageNested.', + ); + try { + final MessageSearchReply output = api.search(arg_nested!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); } } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index 6974d11f43d5..e3428d58d2d1 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -11,16 +11,17 @@ package com.example.test_plugin import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger -import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec -import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer + private object CoreTestsPigeonUtils { fun createConnectionError(channelName: String): FlutterError { - return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } + return FlutterError( + "channel-error", "Unable to establish connection on channel: '$channelName'.", "") + } fun wrapResult(result: Any?): List { return listOf(result) @@ -28,19 +29,15 @@ private object CoreTestsPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is FlutterError) { - listOf( - exception.code, - exception.message, - exception.details - ) + listOf(exception.code, exception.message, exception.details) } else { listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) - ) + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception)) } } + fun deepEquals(a: Any?, b: Any?): Boolean { if (a === b) { return true @@ -72,20 +69,18 @@ private object CoreTestsPigeonUtils { return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { - return a.size == b.size && - a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && a.all { - (b as Map).contains(it.key) && - deepEquals(it.value, b[it.key]) - } + return a.size == b.size && + a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } } if (a is Double && b is Double) { return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) } if (a is Float && b is Float) { - return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || + (a.isNaN() && b.isNaN()) } return a == b } @@ -137,19 +132,19 @@ private object CoreTestsPigeonUtils { else -> value.hashCode() } } - } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. + * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError ( - val code: String, - override val message: String? = null, - val details: Any? = null +class FlutterError( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() enum class AnEnum(val raw: Int) { @@ -177,21 +172,20 @@ enum class AnotherEnum(val raw: Int) { } /** Generated class from Pigeon that represents data sent in messages. */ -data class UnusedClass ( - val aField: Any? = null -) - { +data class UnusedClass(val aField: Any? = null) { companion object { fun fromList(pigeonVar_list: List): UnusedClass { val aField = pigeonVar_list[0] return UnusedClass(aField) } } + fun toList(): List { return listOf( - aField, + aField, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -215,37 +209,36 @@ data class UnusedClass ( * * Generated class from Pigeon that represents data sent in messages. */ -data class AllTypes ( - val aBool: Boolean, - val anInt: Long, - val anInt64: Long, - val aDouble: Double, - val aByteArray: ByteArray, - val a4ByteArray: IntArray, - val a8ByteArray: LongArray, - val aFloatArray: DoubleArray, - val anEnum: AnEnum, - val anotherEnum: AnotherEnum, - val aString: String, - val anObject: Any, - val list: List, - val stringList: List, - val intList: List, - val doubleList: List, - val boolList: List, - val enumList: List, - val objectList: List, - val listList: List>, - val mapList: List>, - val map: Map, - val stringMap: Map, - val intMap: Map, - val enumMap: Map, - val objectMap: Map, - val listMap: Map>, - val mapMap: Map> -) - { +data class AllTypes( + val aBool: Boolean, + val anInt: Long, + val anInt64: Long, + val aDouble: Double, + val aByteArray: ByteArray, + val a4ByteArray: IntArray, + val a8ByteArray: LongArray, + val aFloatArray: DoubleArray, + val anEnum: AnEnum, + val anotherEnum: AnotherEnum, + val aString: String, + val anObject: Any, + val list: List, + val stringList: List, + val intList: List, + val doubleList: List, + val boolList: List, + val enumList: List, + val objectList: List, + val listList: List>, + val mapList: List>, + val map: Map, + val stringMap: Map, + val intMap: Map, + val enumMap: Map, + val objectMap: Map, + val listMap: Map>, + val mapMap: Map> +) { companion object { fun fromList(pigeonVar_list: List): AllTypes { val aBool = pigeonVar_list[0] as Boolean @@ -276,41 +269,71 @@ data class AllTypes ( val objectMap = pigeonVar_list[25] as Map val listMap = pigeonVar_list[26] as Map> val mapMap = pigeonVar_list[27] as Map> - return AllTypes(aBool, anInt, anInt64, aDouble, aByteArray, a4ByteArray, a8ByteArray, aFloatArray, anEnum, anotherEnum, aString, anObject, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap) + return AllTypes( + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap) } } + fun toList(): List { return listOf( - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -319,7 +342,34 @@ data class AllTypes ( return true } val other = other as AllTypes - return CoreTestsPigeonUtils.deepEquals(this.aBool, other.aBool) && CoreTestsPigeonUtils.deepEquals(this.anInt, other.anInt) && CoreTestsPigeonUtils.deepEquals(this.anInt64, other.anInt64) && CoreTestsPigeonUtils.deepEquals(this.aDouble, other.aDouble) && CoreTestsPigeonUtils.deepEquals(this.aByteArray, other.aByteArray) && CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, other.a4ByteArray) && CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, other.a8ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aFloatArray, other.aFloatArray) && CoreTestsPigeonUtils.deepEquals(this.anEnum, other.anEnum) && CoreTestsPigeonUtils.deepEquals(this.anotherEnum, other.anotherEnum) && CoreTestsPigeonUtils.deepEquals(this.aString, other.aString) && CoreTestsPigeonUtils.deepEquals(this.anObject, other.anObject) && CoreTestsPigeonUtils.deepEquals(this.list, other.list) && CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && CoreTestsPigeonUtils.deepEquals(this.map, other.map) && CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) + return CoreTestsPigeonUtils.deepEquals(this.aBool, other.aBool) && + CoreTestsPigeonUtils.deepEquals(this.anInt, other.anInt) && + CoreTestsPigeonUtils.deepEquals(this.anInt64, other.anInt64) && + CoreTestsPigeonUtils.deepEquals(this.aDouble, other.aDouble) && + CoreTestsPigeonUtils.deepEquals(this.aByteArray, other.aByteArray) && + CoreTestsPigeonUtils.deepEquals(this.a4ByteArray, other.a4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.a8ByteArray, other.a8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aFloatArray, other.aFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.anEnum, other.anEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherEnum, other.anotherEnum) && + CoreTestsPigeonUtils.deepEquals(this.aString, other.aString) && + CoreTestsPigeonUtils.deepEquals(this.anObject, other.anObject) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) } override fun hashCode(): Int { @@ -361,40 +411,39 @@ data class AllTypes ( * * Generated class from Pigeon that represents data sent in messages. */ -data class AllNullableTypes ( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val aNullableEnum: AnEnum? = null, - val anotherNullableEnum: AnotherEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val allNullableTypes: AllNullableTypes? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val enumList: List? = null, - val objectList: List? = null, - val listList: List?>? = null, - val mapList: List?>? = null, - val recursiveClassList: List? = null, - val map: Map? = null, - val stringMap: Map? = null, - val intMap: Map? = null, - val enumMap: Map? = null, - val objectMap: Map? = null, - val listMap: Map?>? = null, - val mapMap: Map?>? = null, - val recursiveClassMap: Map? = null -) - { +data class AllNullableTypes( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val aNullableEnum: AnEnum? = null, + val anotherNullableEnum: AnotherEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val allNullableTypes: AllNullableTypes? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val enumList: List? = null, + val objectList: List? = null, + val listList: List?>? = null, + val mapList: List?>? = null, + val recursiveClassList: List? = null, + val map: Map? = null, + val stringMap: Map? = null, + val intMap: Map? = null, + val enumMap: Map? = null, + val objectMap: Map? = null, + val listMap: Map?>? = null, + val mapMap: Map?>? = null, + val recursiveClassMap: Map? = null +) { companion object { fun fromList(pigeonVar_list: List): AllNullableTypes { val aNullableBool = pigeonVar_list[0] as Boolean? @@ -428,44 +477,77 @@ data class AllNullableTypes ( val listMap = pigeonVar_list[28] as Map?>? val mapMap = pigeonVar_list[29] as Map?>? val recursiveClassMap = pigeonVar_list[30] as Map? - return AllNullableTypes(aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, recursiveClassList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap, recursiveClassMap) + return AllNullableTypes( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap) } } + fun toList(): List { return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap, + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -474,7 +556,37 @@ data class AllNullableTypes ( return true } val other = other as AllNullableTypes - return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && CoreTestsPigeonUtils.deepEquals(this.list, other.list) && CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && CoreTestsPigeonUtils.deepEquals(this.map, other.map) && CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && + CoreTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) } override fun hashCode(): Int { @@ -515,43 +627,41 @@ data class AllNullableTypes ( } /** - * The primary purpose for this class is to ensure coverage of Swift structs - * with nullable items, as the primary [AllNullableTypes] class is being used to - * test Swift classes. + * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, as + * the primary [AllNullableTypes] class is being used to test Swift classes. * * Generated class from Pigeon that represents data sent in messages. */ -data class AllNullableTypesWithoutRecursion ( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val aNullableEnum: AnEnum? = null, - val anotherNullableEnum: AnotherEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val enumList: List? = null, - val objectList: List? = null, - val listList: List?>? = null, - val mapList: List?>? = null, - val map: Map? = null, - val stringMap: Map? = null, - val intMap: Map? = null, - val enumMap: Map? = null, - val objectMap: Map? = null, - val listMap: Map?>? = null, - val mapMap: Map?>? = null -) - { +data class AllNullableTypesWithoutRecursion( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val aNullableEnum: AnEnum? = null, + val anotherNullableEnum: AnotherEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val enumList: List? = null, + val objectList: List? = null, + val listList: List?>? = null, + val mapList: List?>? = null, + val map: Map? = null, + val stringMap: Map? = null, + val intMap: Map? = null, + val enumMap: Map? = null, + val objectMap: Map? = null, + val listMap: Map?>? = null, + val mapMap: Map?>? = null +) { companion object { fun fromList(pigeonVar_list: List): AllNullableTypesWithoutRecursion { val aNullableBool = pigeonVar_list[0] as Boolean? @@ -582,41 +692,71 @@ data class AllNullableTypesWithoutRecursion ( val objectMap = pigeonVar_list[25] as Map? val listMap = pigeonVar_list[26] as Map?>? val mapMap = pigeonVar_list[27] as Map?>? - return AllNullableTypesWithoutRecursion(aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap) + return AllNullableTypesWithoutRecursion( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap) } } + fun toList(): List { return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -625,7 +765,34 @@ data class AllNullableTypesWithoutRecursion ( return true } val other = other as AllNullableTypesWithoutRecursion - return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && CoreTestsPigeonUtils.deepEquals(this.list, other.list) && CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && CoreTestsPigeonUtils.deepEquals(this.map, other.map) && CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) + return CoreTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + CoreTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + CoreTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + CoreTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && + CoreTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && + CoreTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + CoreTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + CoreTestsPigeonUtils.deepEquals(this.list, other.list) && + CoreTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + CoreTestsPigeonUtils.deepEquals(this.intList, other.intList) && + CoreTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + CoreTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + CoreTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + CoreTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + CoreTestsPigeonUtils.deepEquals(this.listList, other.listList) && + CoreTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + CoreTestsPigeonUtils.deepEquals(this.map, other.map) && + CoreTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + CoreTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + CoreTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + CoreTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + CoreTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + CoreTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) } override fun hashCode(): Int { @@ -665,22 +832,21 @@ data class AllNullableTypesWithoutRecursion ( /** * A class for testing nested class handling. * - * This is needed to test nested nullable and non-nullable classes, - * `AllNullableTypes` is non-nullable here as it is easier to instantiate - * than `AllTypes` when testing doesn't require both (ie. testing null classes). + * This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is + * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require + * both (ie. testing null classes). * * Generated class from Pigeon that represents data sent in messages. */ -data class AllClassesWrapper ( - val allNullableTypes: AllNullableTypes, - val allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = null, - val allTypes: AllTypes? = null, - val classList: List, - val nullableClassList: List? = null, - val classMap: Map, - val nullableClassMap: Map? = null -) - { +data class AllClassesWrapper( + val allNullableTypes: AllNullableTypes, + val allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = null, + val allTypes: AllTypes? = null, + val classList: List, + val nullableClassList: List? = null, + val classMap: Map, + val nullableClassMap: Map? = null +) { companion object { fun fromList(pigeonVar_list: List): AllClassesWrapper { val allNullableTypes = pigeonVar_list[0] as AllNullableTypes @@ -690,20 +856,29 @@ data class AllClassesWrapper ( val nullableClassList = pigeonVar_list[4] as List? val classMap = pigeonVar_list[5] as Map val nullableClassMap = pigeonVar_list[6] as Map? - return AllClassesWrapper(allNullableTypes, allNullableTypesWithoutRecursion, allTypes, classList, nullableClassList, classMap, nullableClassMap) + return AllClassesWrapper( + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + classList, + nullableClassList, + classMap, + nullableClassMap) } } + fun toList(): List { return listOf( - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - classList, - nullableClassList, - classMap, - nullableClassMap, + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + classList, + nullableClassList, + classMap, + nullableClassMap, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -712,7 +887,14 @@ data class AllClassesWrapper ( return true } val other = other as AllClassesWrapper - return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && CoreTestsPigeonUtils.deepEquals(this.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && CoreTestsPigeonUtils.deepEquals(this.allTypes, other.allTypes) && CoreTestsPigeonUtils.deepEquals(this.classList, other.classList) && CoreTestsPigeonUtils.deepEquals(this.nullableClassList, other.nullableClassList) && CoreTestsPigeonUtils.deepEquals(this.classMap, other.classMap) && CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, other.nullableClassMap) + return CoreTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + CoreTestsPigeonUtils.deepEquals( + this.allNullableTypesWithoutRecursion, other.allNullableTypesWithoutRecursion) && + CoreTestsPigeonUtils.deepEquals(this.allTypes, other.allTypes) && + CoreTestsPigeonUtils.deepEquals(this.classList, other.classList) && + CoreTestsPigeonUtils.deepEquals(this.nullableClassList, other.nullableClassList) && + CoreTestsPigeonUtils.deepEquals(this.classMap, other.classMap) && + CoreTestsPigeonUtils.deepEquals(this.nullableClassMap, other.nullableClassMap) } override fun hashCode(): Int { @@ -733,21 +915,20 @@ data class AllClassesWrapper ( * * Generated class from Pigeon that represents data sent in messages. */ -data class TestMessage ( - val testList: List? = null -) - { +data class TestMessage(val testList: List? = null) { companion object { fun fromList(pigeonVar_list: List): TestMessage { val testList = pigeonVar_list[0] as List? return TestMessage(testList) } } + fun toList(): List { return listOf( - testList, + testList, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -765,33 +946,24 @@ data class TestMessage ( return result } } + private open class CoreTestsPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AnEnum.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AnEnum.ofRaw(it.toInt()) } } 130.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AnotherEnum.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AnotherEnum.ofRaw(it.toInt()) } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { - UnusedClass.fromList(it) - } + return (readValue(buffer) as? List)?.let { UnusedClass.fromList(it) } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - AllTypes.fromList(it) - } + return (readValue(buffer) as? List)?.let { AllTypes.fromList(it) } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - AllNullableTypes.fromList(it) - } + return (readValue(buffer) as? List)?.let { AllNullableTypes.fromList(it) } } 134.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -799,19 +971,16 @@ private open class CoreTestsPigeonCodec : StandardMessageCodec() { } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - AllClassesWrapper.fromList(it) - } + return (readValue(buffer) as? List)?.let { AllClassesWrapper.fromList(it) } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { - TestMessage.fromList(it) - } + return (readValue(buffer) as? List)?.let { TestMessage.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is AnEnum -> { stream.write(129) @@ -850,18 +1019,14 @@ private open class CoreTestsPigeonCodec : StandardMessageCodec() { } } - /** - * The core interface that each host language plugin must implement in - * platform_test integration tests. + * The core interface that each host language plugin must implement in platform_test integration + * tests. * * Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface HostIntegrationCoreApi { - /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic calling. - */ + /** A no-op function taking no arguments and returning no value, to sanity test basic calling. */ fun noop() /** Returns the passed object, to test serialization and deserialization. */ fun echoAllTypes(everything: AllTypes): AllTypes @@ -930,21 +1095,29 @@ interface HostIntegrationCoreApi { /** Returns the passed object, to test serialization and deserialization. */ fun echoAllNullableTypes(everything: AllNullableTypes?): AllNullableTypes? /** Returns the passed object, to test serialization and deserialization. */ - fun echoAllNullableTypesWithoutRecursion(everything: AllNullableTypesWithoutRecursion?): AllNullableTypesWithoutRecursion? + fun echoAllNullableTypesWithoutRecursion( + everything: AllNullableTypesWithoutRecursion? + ): AllNullableTypesWithoutRecursion? /** - * Returns the inner `aString` value from the wrapped object, to test - * sending of nested objects. + * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. */ fun extractNestedNullableString(wrapper: AllClassesWrapper): String? /** - * Returns the inner `aString` value from the wrapped object, to test - * sending of nested objects. + * Returns the inner `aString` value from the wrapped object, to test sending of nested objects. */ fun createNestedNullableString(nullableString: String?): AllClassesWrapper /** Returns passed in arguments of multiple types. */ - fun sendMultipleNullableTypes(aNullableBool: Boolean?, aNullableInt: Long?, aNullableString: String?): AllNullableTypes + fun sendMultipleNullableTypes( + aNullableBool: Boolean?, + aNullableInt: Long?, + aNullableString: String? + ): AllNullableTypes /** Returns passed in arguments of multiple types. */ - fun sendMultipleNullableTypesWithoutRecursion(aNullableBool: Boolean?, aNullableInt: Long?, aNullableString: String?): AllNullableTypesWithoutRecursion + fun sendMultipleNullableTypesWithoutRecursion( + aNullableBool: Boolean?, + aNullableInt: Long?, + aNullableString: String? + ): AllNullableTypesWithoutRecursion /** Returns passed in int. */ fun echoNullableInt(aNullableInt: Long?): Long? /** Returns passed in double. */ @@ -984,16 +1157,20 @@ interface HostIntegrationCoreApi { /** Returns the passed map, to test serialization and deserialization. */ fun echoNullableNonNullEnumMap(enumMap: Map?): Map? /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullClassMap(classMap: Map?): Map? + fun echoNullableNonNullClassMap( + classMap: Map? + ): Map? + fun echoNullableEnum(anEnum: AnEnum?): AnEnum? + fun echoAnotherNullableEnum(anotherEnum: AnotherEnum?): AnotherEnum? /** Returns passed in int. */ fun echoOptionalNullableInt(aNullableInt: Long?): Long? /** Returns the passed in string. */ fun echoNamedNullableString(aNullableString: String?): String? /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic asynchronous calling. + * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous + * calling. */ fun noopAsync(callback: (Result) -> Unit) /** Returns passed in int asynchronously. */ @@ -1013,17 +1190,29 @@ interface HostIntegrationCoreApi { /** Returns the passed list, to test asynchronous serialization and deserialization. */ fun echoAsyncEnumList(enumList: List, callback: (Result>) -> Unit) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - fun echoAsyncClassList(classList: List, callback: (Result>) -> Unit) + fun echoAsyncClassList( + classList: List, + callback: (Result>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ fun echoAsyncMap(map: Map, callback: (Result>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncStringMap(stringMap: Map, callback: (Result>) -> Unit) + fun echoAsyncStringMap( + stringMap: Map, + callback: (Result>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ fun echoAsyncIntMap(intMap: Map, callback: (Result>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncEnumMap(enumMap: Map, callback: (Result>) -> Unit) + fun echoAsyncEnumMap( + enumMap: Map, + callback: (Result>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncClassMap(classMap: Map, callback: (Result>) -> Unit) + fun echoAsyncClassMap( + classMap: Map, + callback: (Result>) -> Unit + ) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ fun echoAsyncEnum(anEnum: AnEnum, callback: (Result) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ @@ -1037,9 +1226,15 @@ interface HostIntegrationCoreApi { /** Returns the passed object, to test async serialization and deserialization. */ fun echoAsyncAllTypes(everything: AllTypes, callback: (Result) -> Unit) /** Returns the passed object, to test serialization and deserialization. */ - fun echoAsyncNullableAllNullableTypes(everything: AllNullableTypes?, callback: (Result) -> Unit) + fun echoAsyncNullableAllNullableTypes( + everything: AllNullableTypes?, + callback: (Result) -> Unit + ) /** Returns the passed object, to test serialization and deserialization. */ - fun echoAsyncNullableAllNullableTypesWithoutRecursion(everything: AllNullableTypesWithoutRecursion?, callback: (Result) -> Unit) + fun echoAsyncNullableAllNullableTypesWithoutRecursion( + everything: AllNullableTypesWithoutRecursion?, + callback: (Result) -> Unit + ) /** Returns passed in int asynchronously. */ fun echoAsyncNullableInt(anInt: Long?, callback: (Result) -> Unit) /** Returns passed in double asynchronously. */ @@ -1055,105 +1250,279 @@ interface HostIntegrationCoreApi { /** Returns the passed list, to test asynchronous serialization and deserialization. */ fun echoAsyncNullableList(list: List?, callback: (Result?>) -> Unit) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableEnumList(enumList: List?, callback: (Result?>) -> Unit) + fun echoAsyncNullableEnumList( + enumList: List?, + callback: (Result?>) -> Unit + ) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableClassList(classList: List?, callback: (Result?>) -> Unit) + fun echoAsyncNullableClassList( + classList: List?, + callback: (Result?>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ fun echoAsyncNullableMap(map: Map?, callback: (Result?>) -> Unit) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableStringMap(stringMap: Map?, callback: (Result?>) -> Unit) + fun echoAsyncNullableStringMap( + stringMap: Map?, + callback: (Result?>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableIntMap(intMap: Map?, callback: (Result?>) -> Unit) + fun echoAsyncNullableIntMap( + intMap: Map?, + callback: (Result?>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableEnumMap(enumMap: Map?, callback: (Result?>) -> Unit) + fun echoAsyncNullableEnumMap( + enumMap: Map?, + callback: (Result?>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - fun echoAsyncNullableClassMap(classMap: Map?, callback: (Result?>) -> Unit) + fun echoAsyncNullableClassMap( + classMap: Map?, + callback: (Result?>) -> Unit + ) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ fun echoAsyncNullableEnum(anEnum: AnEnum?, callback: (Result) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - fun echoAnotherAsyncNullableEnum(anotherEnum: AnotherEnum?, callback: (Result) -> Unit) + fun echoAnotherAsyncNullableEnum( + anotherEnum: AnotherEnum?, + callback: (Result) -> Unit + ) /** - * Returns true if the handler is run on a main thread, which should be - * true since there is no TaskQueue annotation. + * Returns true if the handler is run on a main thread, which should be true since there is no + * TaskQueue annotation. */ fun defaultIsMainThread(): Boolean /** - * Returns true if the handler is run on a non-main thread, which should be - * true for any platform with TaskQueue support. + * Returns true if the handler is run on a non-main thread, which should be true for any platform + * with TaskQueue support. */ fun taskQueueIsBackgroundThread(): Boolean + fun callFlutterNoop(callback: (Result) -> Unit) + fun callFlutterThrowError(callback: (Result) -> Unit) + fun callFlutterThrowErrorFromVoid(callback: (Result) -> Unit) + fun callFlutterEchoAllTypes(everything: AllTypes, callback: (Result) -> Unit) - fun callFlutterEchoAllNullableTypes(everything: AllNullableTypes?, callback: (Result) -> Unit) - fun callFlutterSendMultipleNullableTypes(aNullableBool: Boolean?, aNullableInt: Long?, aNullableString: String?, callback: (Result) -> Unit) - fun callFlutterEchoAllNullableTypesWithoutRecursion(everything: AllNullableTypesWithoutRecursion?, callback: (Result) -> Unit) - fun callFlutterSendMultipleNullableTypesWithoutRecursion(aNullableBool: Boolean?, aNullableInt: Long?, aNullableString: String?, callback: (Result) -> Unit) + + fun callFlutterEchoAllNullableTypes( + everything: AllNullableTypes?, + callback: (Result) -> Unit + ) + + fun callFlutterSendMultipleNullableTypes( + aNullableBool: Boolean?, + aNullableInt: Long?, + aNullableString: String?, + callback: (Result) -> Unit + ) + + fun callFlutterEchoAllNullableTypesWithoutRecursion( + everything: AllNullableTypesWithoutRecursion?, + callback: (Result) -> Unit + ) + + fun callFlutterSendMultipleNullableTypesWithoutRecursion( + aNullableBool: Boolean?, + aNullableInt: Long?, + aNullableString: String?, + callback: (Result) -> Unit + ) + fun callFlutterEchoBool(aBool: Boolean, callback: (Result) -> Unit) + fun callFlutterEchoInt(anInt: Long, callback: (Result) -> Unit) + fun callFlutterEchoDouble(aDouble: Double, callback: (Result) -> Unit) + fun callFlutterEchoString(aString: String, callback: (Result) -> Unit) + fun callFlutterEchoUint8List(list: ByteArray, callback: (Result) -> Unit) + fun callFlutterEchoList(list: List, callback: (Result>) -> Unit) + fun callFlutterEchoEnumList(enumList: List, callback: (Result>) -> Unit) - fun callFlutterEchoClassList(classList: List, callback: (Result>) -> Unit) - fun callFlutterEchoNonNullEnumList(enumList: List, callback: (Result>) -> Unit) - fun callFlutterEchoNonNullClassList(classList: List, callback: (Result>) -> Unit) + + fun callFlutterEchoClassList( + classList: List, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoNonNullEnumList( + enumList: List, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoNonNullClassList( + classList: List, + callback: (Result>) -> Unit + ) + fun callFlutterEchoMap(map: Map, callback: (Result>) -> Unit) - fun callFlutterEchoStringMap(stringMap: Map, callback: (Result>) -> Unit) - fun callFlutterEchoIntMap(intMap: Map, callback: (Result>) -> Unit) - fun callFlutterEchoEnumMap(enumMap: Map, callback: (Result>) -> Unit) - fun callFlutterEchoClassMap(classMap: Map, callback: (Result>) -> Unit) - fun callFlutterEchoNonNullStringMap(stringMap: Map, callback: (Result>) -> Unit) - fun callFlutterEchoNonNullIntMap(intMap: Map, callback: (Result>) -> Unit) - fun callFlutterEchoNonNullEnumMap(enumMap: Map, callback: (Result>) -> Unit) - fun callFlutterEchoNonNullClassMap(classMap: Map, callback: (Result>) -> Unit) + + fun callFlutterEchoStringMap( + stringMap: Map, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoIntMap( + intMap: Map, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoEnumMap( + enumMap: Map, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoClassMap( + classMap: Map, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoNonNullStringMap( + stringMap: Map, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoNonNullIntMap( + intMap: Map, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoNonNullEnumMap( + enumMap: Map, + callback: (Result>) -> Unit + ) + + fun callFlutterEchoNonNullClassMap( + classMap: Map, + callback: (Result>) -> Unit + ) + fun callFlutterEchoEnum(anEnum: AnEnum, callback: (Result) -> Unit) + fun callFlutterEchoAnotherEnum(anotherEnum: AnotherEnum, callback: (Result) -> Unit) + fun callFlutterEchoNullableBool(aBool: Boolean?, callback: (Result) -> Unit) + fun callFlutterEchoNullableInt(anInt: Long?, callback: (Result) -> Unit) + fun callFlutterEchoNullableDouble(aDouble: Double?, callback: (Result) -> Unit) + fun callFlutterEchoNullableString(aString: String?, callback: (Result) -> Unit) + fun callFlutterEchoNullableUint8List(list: ByteArray?, callback: (Result) -> Unit) + fun callFlutterEchoNullableList(list: List?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableEnumList(enumList: List?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableClassList(classList: List?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableNonNullEnumList(enumList: List?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableNonNullClassList(classList: List?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableMap(map: Map?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableStringMap(stringMap: Map?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableIntMap(intMap: Map?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableEnumMap(enumMap: Map?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableClassMap(classMap: Map?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableNonNullStringMap(stringMap: Map?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableNonNullIntMap(intMap: Map?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableNonNullEnumMap(enumMap: Map?, callback: (Result?>) -> Unit) - fun callFlutterEchoNullableNonNullClassMap(classMap: Map?, callback: (Result?>) -> Unit) + + fun callFlutterEchoNullableEnumList( + enumList: List?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableClassList( + classList: List?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableNonNullEnumList( + enumList: List?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableNonNullClassList( + classList: List?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableMap( + map: Map?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableStringMap( + stringMap: Map?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableIntMap( + intMap: Map?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableEnumMap( + enumMap: Map?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableClassMap( + classMap: Map?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableNonNullStringMap( + stringMap: Map?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableNonNullIntMap( + intMap: Map?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableNonNullEnumMap( + enumMap: Map?, + callback: (Result?>) -> Unit + ) + + fun callFlutterEchoNullableNonNullClassMap( + classMap: Map?, + callback: (Result?>) -> Unit + ) + fun callFlutterEchoNullableEnum(anEnum: AnEnum?, callback: (Result) -> Unit) - fun callFlutterEchoAnotherNullableEnum(anotherEnum: AnotherEnum?, callback: (Result) -> Unit) + + fun callFlutterEchoAnotherNullableEnum( + anotherEnum: AnotherEnum?, + callback: (Result) -> Unit + ) + fun callFlutterSmallApiEchoString(aString: String, callback: (Result) -> Unit) companion object { /** The codec used by HostIntegrationCoreApi. */ - val codec: MessageCodec by lazy { - CoreTestsPigeonCodec() - } - /** Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } + /** + * Sets up an instance of `HostIntegrationCoreApi` to handle messages through the + * `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: HostIntegrationCoreApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: HostIntegrationCoreApi?, + messageChannelSuffix: String = "" + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" val taskQueue = binaryMessenger.makeBackgroundTaskQueue() run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.noop() - listOf(null) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.noop() + listOf(null) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1161,16 +1530,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllTypes - val wrapped: List = try { - listOf(api.echoAllTypes(everythingArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoAllTypes(everythingArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1178,14 +1552,19 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.throwError()) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.throwError()) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1193,15 +1572,20 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.throwErrorFromVoid() - listOf(null) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.throwErrorFromVoid() + listOf(null) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1209,14 +1593,19 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.throwFlutterError()) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.throwFlutterError()) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1224,16 +1613,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anIntArg = args[0] as Long - val wrapped: List = try { - listOf(api.echoInt(anIntArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoInt(anIntArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1241,16 +1635,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aDoubleArg = args[0] as Double - val wrapped: List = try { - listOf(api.echoDouble(aDoubleArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoDouble(aDoubleArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1258,16 +1657,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aBoolArg = args[0] as Boolean - val wrapped: List = try { - listOf(api.echoBool(aBoolArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoBool(aBoolArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1275,16 +1679,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aStringArg = args[0] as String - val wrapped: List = try { - listOf(api.echoString(aStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoString(aStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1292,16 +1701,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aUint8ListArg = args[0] as ByteArray - val wrapped: List = try { - listOf(api.echoUint8List(aUint8ListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoUint8List(aUint8ListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1309,16 +1723,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anObjectArg = args[0] as Any - val wrapped: List = try { - listOf(api.echoObject(anObjectArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoObject(anObjectArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1326,16 +1745,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val listArg = args[0] as List - val wrapped: List = try { - listOf(api.echoList(listArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoList(listArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1343,16 +1767,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List - val wrapped: List = try { - listOf(api.echoEnumList(enumListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoEnumList(enumListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1360,16 +1789,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List - val wrapped: List = try { - listOf(api.echoClassList(classListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoClassList(classListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1377,16 +1811,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List - val wrapped: List = try { - listOf(api.echoNonNullEnumList(enumListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNonNullEnumList(enumListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1394,16 +1833,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List - val wrapped: List = try { - listOf(api.echoNonNullClassList(classListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNonNullClassList(classListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1411,16 +1855,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoMap(mapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoMap(mapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1428,16 +1877,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoStringMap(stringMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoStringMap(stringMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1445,16 +1899,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoIntMap(intMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoIntMap(intMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1462,16 +1921,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoEnumMap(enumMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoEnumMap(enumMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1479,16 +1943,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoClassMap(classMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoClassMap(classMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1496,16 +1965,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoNonNullStringMap(stringMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNonNullStringMap(stringMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1513,16 +1987,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoNonNullIntMap(intMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNonNullIntMap(intMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1530,16 +2009,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoNonNullEnumMap(enumMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNonNullEnumMap(enumMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1547,16 +2031,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map - val wrapped: List = try { - listOf(api.echoNonNullClassMap(classMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNonNullClassMap(classMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1564,16 +2053,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val wrapperArg = args[0] as AllClassesWrapper - val wrapped: List = try { - listOf(api.echoClassWrapper(wrapperArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoClassWrapper(wrapperArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1581,16 +2075,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anEnumArg = args[0] as AnEnum - val wrapped: List = try { - listOf(api.echoEnum(anEnumArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoEnum(anEnumArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1598,16 +2097,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anotherEnumArg = args[0] as AnotherEnum - val wrapped: List = try { - listOf(api.echoAnotherEnum(anotherEnumArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoAnotherEnum(anotherEnumArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1615,16 +2119,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aStringArg = args[0] as String - val wrapped: List = try { - listOf(api.echoNamedDefaultString(aStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNamedDefaultString(aStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1632,16 +2141,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aDoubleArg = args[0] as Double - val wrapped: List = try { - listOf(api.echoOptionalDefaultDouble(aDoubleArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoOptionalDefaultDouble(aDoubleArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1649,16 +2163,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anIntArg = args[0] as Long - val wrapped: List = try { - listOf(api.echoRequiredInt(anIntArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoRequiredInt(anIntArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1666,17 +2185,22 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aArg = args[0] as AllNullableTypes val bArg = args[1] as AllNullableTypes - val wrapped: List = try { - listOf(api.areAllNullableTypesEqual(aArg, bArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.areAllNullableTypesEqual(aArg, bArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1684,16 +2208,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val valueArg = args[0] as AllNullableTypes - val wrapped: List = try { - listOf(api.getAllNullableTypesHash(valueArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getAllNullableTypesHash(valueArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1701,16 +2230,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypes? - val wrapped: List = try { - listOf(api.echoAllNullableTypes(everythingArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoAllNullableTypes(everythingArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1718,16 +2252,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypesWithoutRecursion? - val wrapped: List = try { - listOf(api.echoAllNullableTypesWithoutRecursion(everythingArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoAllNullableTypesWithoutRecursion(everythingArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1735,16 +2274,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val wrapperArg = args[0] as AllClassesWrapper - val wrapped: List = try { - listOf(api.extractNestedNullableString(wrapperArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.extractNestedNullableString(wrapperArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1752,16 +2296,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val nullableStringArg = args[0] as String? - val wrapped: List = try { - listOf(api.createNestedNullableString(nullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.createNestedNullableString(nullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1769,18 +2318,25 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? val aNullableIntArg = args[1] as Long? val aNullableStringArg = args[2] as String? - val wrapped: List = try { - listOf(api.sendMultipleNullableTypes(aNullableBoolArg, aNullableIntArg, aNullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf( + api.sendMultipleNullableTypes( + aNullableBoolArg, aNullableIntArg, aNullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1788,18 +2344,25 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? val aNullableIntArg = args[1] as Long? val aNullableStringArg = args[2] as String? - val wrapped: List = try { - listOf(api.sendMultipleNullableTypesWithoutRecursion(aNullableBoolArg, aNullableIntArg, aNullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf( + api.sendMultipleNullableTypesWithoutRecursion( + aNullableBoolArg, aNullableIntArg, aNullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1807,16 +2370,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableIntArg = args[0] as Long? - val wrapped: List = try { - listOf(api.echoNullableInt(aNullableIntArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableInt(aNullableIntArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1824,16 +2392,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableDoubleArg = args[0] as Double? - val wrapped: List = try { - listOf(api.echoNullableDouble(aNullableDoubleArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableDouble(aNullableDoubleArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1841,16 +2414,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? - val wrapped: List = try { - listOf(api.echoNullableBool(aNullableBoolArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableBool(aNullableBoolArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1858,16 +2436,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableStringArg = args[0] as String? - val wrapped: List = try { - listOf(api.echoNullableString(aNullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableString(aNullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1875,16 +2458,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableUint8ListArg = args[0] as ByteArray? - val wrapped: List = try { - listOf(api.echoNullableUint8List(aNullableUint8ListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableUint8List(aNullableUint8ListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1892,16 +2480,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableObjectArg = args[0] - val wrapped: List = try { - listOf(api.echoNullableObject(aNullableObjectArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableObject(aNullableObjectArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1909,16 +2502,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableListArg = args[0] as List? - val wrapped: List = try { - listOf(api.echoNullableList(aNullableListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableList(aNullableListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1926,16 +2524,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List? - val wrapped: List = try { - listOf(api.echoNullableEnumList(enumListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableEnumList(enumListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1943,16 +2546,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - val wrapped: List = try { - listOf(api.echoNullableClassList(classListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableClassList(classListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1960,16 +2568,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List? - val wrapped: List = try { - listOf(api.echoNullableNonNullEnumList(enumListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableNonNullEnumList(enumListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1977,16 +2590,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - val wrapped: List = try { - listOf(api.echoNullableNonNullClassList(classListArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableNonNullClassList(classListArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1994,16 +2612,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableMap(mapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableMap(mapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2011,16 +2634,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableStringMap(stringMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableStringMap(stringMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2028,16 +2656,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableIntMap(intMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableIntMap(intMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2045,16 +2678,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableEnumMap(enumMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableEnumMap(enumMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2062,16 +2700,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableClassMap(classMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableClassMap(classMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2079,16 +2722,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableNonNullStringMap(stringMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableNonNullStringMap(stringMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2096,16 +2744,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableNonNullIntMap(intMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableNonNullIntMap(intMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2113,16 +2766,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableNonNullEnumMap(enumMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableNonNullEnumMap(enumMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2130,16 +2788,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - val wrapped: List = try { - listOf(api.echoNullableNonNullClassMap(classMapArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableNonNullClassMap(classMapArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2147,16 +2810,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anEnumArg = args[0] as AnEnum? - val wrapped: List = try { - listOf(api.echoNullableEnum(anEnumArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableEnum(anEnumArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2164,16 +2832,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val anotherEnumArg = args[0] as AnotherEnum? - val wrapped: List = try { - listOf(api.echoAnotherNullableEnum(anotherEnumArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoAnotherNullableEnum(anotherEnumArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2181,16 +2854,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableIntArg = args[0] as Long? - val wrapped: List = try { - listOf(api.echoOptionalNullableInt(aNullableIntArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoOptionalNullableInt(aNullableIntArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2198,16 +2876,21 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableStringArg = args[0] as String? - val wrapped: List = try { - listOf(api.echoNamedNullableString(aNullableStringArg)) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNamedNullableString(aNullableStringArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -2215,10 +2898,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.noopAsync{ result: Result -> + api.noopAsync { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2232,7 +2919,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2252,7 +2943,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2272,7 +2967,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2292,7 +2991,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2312,7 +3015,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2332,7 +3039,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2352,7 +3063,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2372,7 +3087,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2392,7 +3111,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2412,7 +3135,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2432,7 +3159,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2452,7 +3183,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2472,7 +3207,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2492,7 +3231,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2512,7 +3255,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2532,7 +3279,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2552,10 +3303,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.throwAsyncError{ result: Result -> + api.throwAsyncError { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2570,10 +3325,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.throwAsyncErrorFromVoid{ result: Result -> + api.throwAsyncErrorFromVoid { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2587,10 +3346,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.throwAsyncFlutterError{ result: Result -> + api.throwAsyncFlutterError { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2605,7 +3368,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2625,12 +3392,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypes? - api.echoAsyncNullableAllNullableTypes(everythingArg) { result: Result -> + api.echoAsyncNullableAllNullableTypes(everythingArg) { result: Result + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2645,12 +3417,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypesWithoutRecursion? - api.echoAsyncNullableAllNullableTypesWithoutRecursion(everythingArg) { result: Result -> + api.echoAsyncNullableAllNullableTypesWithoutRecursion(everythingArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2665,7 +3442,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2685,7 +3466,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2705,7 +3490,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2725,7 +3514,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2745,7 +3538,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2765,7 +3562,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2785,7 +3586,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2805,7 +3610,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2825,12 +3634,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - api.echoAsyncNullableClassList(classListArg) { result: Result?> -> + api.echoAsyncNullableClassList(classListArg) { result: Result?> + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2845,7 +3659,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2865,7 +3683,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2885,7 +3707,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2905,7 +3731,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2925,12 +3755,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - api.echoAsyncNullableClassMap(classMapArg) { result: Result?> -> + api.echoAsyncNullableClassMap(classMapArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -2945,7 +3780,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2965,7 +3804,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2985,14 +3828,19 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.defaultIsMainThread()) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.defaultIsMainThread()) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3000,14 +3848,20 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread$separatedMessageChannelSuffix", codec, taskQueue) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread$separatedMessageChannelSuffix", + codec, + taskQueue) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.taskQueueIsBackgroundThread()) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.taskQueueIsBackgroundThread()) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3015,10 +3869,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.callFlutterNoop{ result: Result -> + api.callFlutterNoop { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3032,10 +3890,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.callFlutterThrowError{ result: Result -> + api.callFlutterThrowError { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3050,10 +3912,14 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.callFlutterThrowErrorFromVoid{ result: Result -> + api.callFlutterThrowErrorFromVoid { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3067,7 +3933,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3087,12 +3957,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypes? - api.callFlutterEchoAllNullableTypes(everythingArg) { result: Result -> + api.callFlutterEchoAllNullableTypes(everythingArg) { result: Result + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3107,34 +3982,45 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? val aNullableIntArg = args[1] as Long? val aNullableStringArg = args[2] as String? - api.callFlutterSendMultipleNullableTypes(aNullableBoolArg, aNullableIntArg, aNullableStringArg) { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(CoreTestsPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(CoreTestsPigeonUtils.wrapResult(data)) - } - } + api.callFlutterSendMultipleNullableTypes( + aNullableBoolArg, aNullableIntArg, aNullableStringArg) { + result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(CoreTestsPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(CoreTestsPigeonUtils.wrapResult(data)) + } + } } } else { channel.setMessageHandler(null) } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val everythingArg = args[0] as AllNullableTypesWithoutRecursion? - api.callFlutterEchoAllNullableTypesWithoutRecursion(everythingArg) { result: Result -> + api.callFlutterEchoAllNullableTypesWithoutRecursion(everythingArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3149,29 +4035,39 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aNullableBoolArg = args[0] as Boolean? val aNullableIntArg = args[1] as Long? val aNullableStringArg = args[2] as String? - api.callFlutterSendMultipleNullableTypesWithoutRecursion(aNullableBoolArg, aNullableIntArg, aNullableStringArg) { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(CoreTestsPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(CoreTestsPigeonUtils.wrapResult(data)) - } - } + api.callFlutterSendMultipleNullableTypesWithoutRecursion( + aNullableBoolArg, aNullableIntArg, aNullableStringArg) { + result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(CoreTestsPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(CoreTestsPigeonUtils.wrapResult(data)) + } + } } } else { channel.setMessageHandler(null) } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3191,7 +4087,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3211,7 +4111,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3231,7 +4135,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3251,7 +4159,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3271,7 +4183,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3291,7 +4207,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3311,7 +4231,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3331,7 +4255,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3351,12 +4279,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List - api.callFlutterEchoNonNullClassList(classListArg) { result: Result> -> + api.callFlutterEchoNonNullClassList(classListArg) { + result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3371,7 +4304,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3391,7 +4328,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3411,7 +4352,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3431,7 +4376,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3451,12 +4400,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map - api.callFlutterEchoClassMap(classMapArg) { result: Result> -> + api.callFlutterEchoClassMap(classMapArg) { result: Result> + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3471,12 +4425,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map - api.callFlutterEchoNonNullStringMap(stringMapArg) { result: Result> -> + api.callFlutterEchoNonNullStringMap(stringMapArg) { result: Result> + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3491,7 +4450,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3511,7 +4474,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3531,12 +4498,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map - api.callFlutterEchoNonNullClassMap(classMapArg) { result: Result> -> + api.callFlutterEchoNonNullClassMap(classMapArg) { + result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3551,7 +4523,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3571,7 +4547,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3591,7 +4571,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3611,7 +4595,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3631,7 +4619,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3651,7 +4643,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3671,7 +4667,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3691,7 +4691,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3711,7 +4715,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3731,12 +4739,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - api.callFlutterEchoNullableClassList(classListArg) { result: Result?> -> + api.callFlutterEchoNullableClassList(classListArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3751,12 +4764,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumListArg = args[0] as List? - api.callFlutterEchoNullableNonNullEnumList(enumListArg) { result: Result?> -> + api.callFlutterEchoNullableNonNullEnumList(enumListArg) { result: Result?> + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3771,12 +4789,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classListArg = args[0] as List? - api.callFlutterEchoNullableNonNullClassList(classListArg) { result: Result?> -> + api.callFlutterEchoNullableNonNullClassList(classListArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3791,7 +4814,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3811,12 +4838,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map? - api.callFlutterEchoNullableStringMap(stringMapArg) { result: Result?> -> + api.callFlutterEchoNullableStringMap(stringMapArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3831,7 +4863,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3851,12 +4887,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map? - api.callFlutterEchoNullableEnumMap(enumMapArg) { result: Result?> -> + api.callFlutterEchoNullableEnumMap(enumMapArg) { result: Result?> + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3871,12 +4912,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - api.callFlutterEchoNullableClassMap(classMapArg) { result: Result?> -> + api.callFlutterEchoNullableClassMap(classMapArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3891,12 +4937,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val stringMapArg = args[0] as Map? - api.callFlutterEchoNullableNonNullStringMap(stringMapArg) { result: Result?> -> + api.callFlutterEchoNullableNonNullStringMap(stringMapArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3911,12 +4962,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val intMapArg = args[0] as Map? - api.callFlutterEchoNullableNonNullIntMap(intMapArg) { result: Result?> -> + api.callFlutterEchoNullableNonNullIntMap(intMapArg) { result: Result?> + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3931,12 +4987,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enumMapArg = args[0] as Map? - api.callFlutterEchoNullableNonNullEnumMap(enumMapArg) { result: Result?> -> + api.callFlutterEchoNullableNonNullEnumMap(enumMapArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3951,12 +5012,17 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val classMapArg = args[0] as Map? - api.callFlutterEchoNullableNonNullClassMap(classMapArg) { result: Result?> -> + api.callFlutterEchoNullableNonNullClassMap(classMapArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -3971,7 +5037,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3991,7 +5061,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4011,7 +5085,11 @@ interface HostIntegrationCoreApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4034,26 +5112,25 @@ interface HostIntegrationCoreApi { } } /** - * The core interface that the Dart platform_test code implements for host - * integration tests to call into. + * The core interface that the Dart platform_test code implements for host integration tests to call + * into. * * Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class FlutterIntegrationCoreApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "" +) { companion object { /** The codec used by FlutterIntegrationCoreApi. */ - val codec: MessageCodec by lazy { - CoreTestsPigeonCodec() - } + val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } } - /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic calling. - */ - fun noop(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$separatedMessageChannelSuffix" + /** A no-op function taking no arguments and returning no value, to sanity test basic calling. */ + fun noop(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -4064,14 +5141,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Responds with an error from an async function returning a value. */ - fun throwError(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$separatedMessageChannelSuffix" + fun throwError(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -4083,14 +5161,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Responds with an error from an async void function. */ - fun throwErrorFromVoid(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$separatedMessageChannelSuffix" + fun throwErrorFromVoid(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -4101,35 +5180,45 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed object, to test serialization and deserialization. */ - fun echoAllTypes(everythingArg: AllTypes, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$separatedMessageChannelSuffix" + fun echoAllTypes(everythingArg: AllTypes, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(everythingArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as AllTypes callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed object, to test serialization and deserialization. */ - fun echoAllNullableTypes(everythingArg: AllNullableTypes?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$separatedMessageChannelSuffix" + fun echoAllNullableTypes( + everythingArg: AllNullableTypes?, + callback: (Result) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(everythingArg)) { if (it is List<*>) { @@ -4141,7 +5230,7 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** @@ -4149,31 +5238,46 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr * * Tests multiple-arity FlutterApi handling. */ - fun sendMultipleNullableTypes(aNullableBoolArg: Boolean?, aNullableIntArg: Long?, aNullableStringArg: String?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$separatedMessageChannelSuffix" + fun sendMultipleNullableTypes( + aNullableBoolArg: Boolean?, + aNullableIntArg: Long?, + aNullableStringArg: String?, + callback: (Result) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aNullableBoolArg, aNullableIntArg, aNullableStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as AllNullableTypes callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed object, to test serialization and deserialization. */ - fun echoAllNullableTypesWithoutRecursion(everythingArg: AllNullableTypesWithoutRecursion?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix" + fun echoAllNullableTypesWithoutRecursion( + everythingArg: AllNullableTypesWithoutRecursion?, + callback: (Result) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(everythingArg)) { if (it is List<*>) { @@ -4185,7 +5289,7 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** @@ -4193,472 +5297,634 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr * * Tests multiple-arity FlutterApi handling. */ - fun sendMultipleNullableTypesWithoutRecursion(aNullableBoolArg: Boolean?, aNullableIntArg: Long?, aNullableStringArg: String?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix" + fun sendMultipleNullableTypesWithoutRecursion( + aNullableBoolArg: Boolean?, + aNullableIntArg: Long?, + aNullableStringArg: String?, + callback: (Result) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aNullableBoolArg, aNullableIntArg, aNullableStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as AllNullableTypesWithoutRecursion callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed boolean, to test serialization and deserialization. */ - fun echoBool(aBoolArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$separatedMessageChannelSuffix" + fun echoBool(aBoolArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aBoolArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Boolean callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed int, to test serialization and deserialization. */ - fun echoInt(anIntArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$separatedMessageChannelSuffix" + fun echoInt(anIntArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anIntArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Long callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed double, to test serialization and deserialization. */ - fun echoDouble(aDoubleArg: Double, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$separatedMessageChannelSuffix" + fun echoDouble(aDoubleArg: Double, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aDoubleArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Double callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed string, to test serialization and deserialization. */ - fun echoString(aStringArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$separatedMessageChannelSuffix" + fun echoString(aStringArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed byte list, to test serialization and deserialization. */ - fun echoUint8List(listArg: ByteArray, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$separatedMessageChannelSuffix" + fun echoUint8List(listArg: ByteArray, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(listArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as ByteArray callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoList(listArg: List, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$separatedMessageChannelSuffix" + fun echoList(listArg: List, callback: (Result>) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(listArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoEnumList(enumListArg: List, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$separatedMessageChannelSuffix" + fun echoEnumList(enumListArg: List, callback: (Result>) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumListArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoClassList(classListArg: List, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$separatedMessageChannelSuffix" + fun echoClassList( + classListArg: List, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classListArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNonNullEnumList(enumListArg: List, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$separatedMessageChannelSuffix" + fun echoNonNullEnumList(enumListArg: List, callback: (Result>) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumListArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNonNullClassList(classListArg: List, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$separatedMessageChannelSuffix" + fun echoNonNullClassList( + classListArg: List, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classListArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoMap(mapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$separatedMessageChannelSuffix" + fun echoMap(mapArg: Map, callback: (Result>) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(mapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoStringMap(stringMapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$separatedMessageChannelSuffix" + fun echoStringMap( + stringMapArg: Map, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(stringMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoIntMap(intMapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$separatedMessageChannelSuffix" + fun echoIntMap(intMapArg: Map, callback: (Result>) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(intMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoEnumMap(enumMapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$separatedMessageChannelSuffix" + fun echoEnumMap( + enumMapArg: Map, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoClassMap(classMapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$separatedMessageChannelSuffix" + fun echoClassMap( + classMapArg: Map, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNonNullStringMap(stringMapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$separatedMessageChannelSuffix" + fun echoNonNullStringMap( + stringMapArg: Map, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(stringMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNonNullIntMap(intMapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$separatedMessageChannelSuffix" + fun echoNonNullIntMap(intMapArg: Map, callback: (Result>) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(intMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNonNullEnumMap(enumMapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$separatedMessageChannelSuffix" + fun echoNonNullEnumMap( + enumMapArg: Map, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNonNullClassMap(classMapArg: Map, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$separatedMessageChannelSuffix" + fun echoNonNullClassMap( + classMapArg: Map, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classMapArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun echoEnum(anEnumArg: AnEnum, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$separatedMessageChannelSuffix" + fun echoEnum(anEnumArg: AnEnum, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anEnumArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as AnEnum callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun echoAnotherEnum(anotherEnumArg: AnotherEnum, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix" + fun echoAnotherEnum(anotherEnumArg: AnotherEnum, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anotherEnumArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as AnotherEnum callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed boolean, to test serialization and deserialization. */ - fun echoNullableBool(aBoolArg: Boolean?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$separatedMessageChannelSuffix" + fun echoNullableBool(aBoolArg: Boolean?, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aBoolArg)) { if (it is List<*>) { @@ -4670,14 +5936,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed int, to test serialization and deserialization. */ - fun echoNullableInt(anIntArg: Long?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$separatedMessageChannelSuffix" + fun echoNullableInt(anIntArg: Long?, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anIntArg)) { if (it is List<*>) { @@ -4689,14 +5956,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed double, to test serialization and deserialization. */ - fun echoNullableDouble(aDoubleArg: Double?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$separatedMessageChannelSuffix" + fun echoNullableDouble(aDoubleArg: Double?, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aDoubleArg)) { if (it is List<*>) { @@ -4708,14 +5976,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed string, to test serialization and deserialization. */ - fun echoNullableString(aStringArg: String?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$separatedMessageChannelSuffix" + fun echoNullableString(aStringArg: String?, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { @@ -4727,14 +5996,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed byte list, to test serialization and deserialization. */ - fun echoNullableUint8List(listArg: ByteArray?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$separatedMessageChannelSuffix" + fun echoNullableUint8List(listArg: ByteArray?, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(listArg)) { if (it is List<*>) { @@ -4746,14 +6016,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableList(listArg: List?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$separatedMessageChannelSuffix" + fun echoNullableList(listArg: List?, callback: (Result?>) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(listArg)) { if (it is List<*>) { @@ -4765,14 +6036,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableEnumList(enumListArg: List?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$separatedMessageChannelSuffix" + fun echoNullableEnumList( + enumListArg: List?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumListArg)) { if (it is List<*>) { @@ -4784,14 +6059,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableClassList(classListArg: List?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$separatedMessageChannelSuffix" + fun echoNullableClassList( + classListArg: List?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classListArg)) { if (it is List<*>) { @@ -4803,14 +6082,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableNonNullEnumList(enumListArg: List?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$separatedMessageChannelSuffix" + fun echoNullableNonNullEnumList( + enumListArg: List?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumListArg)) { if (it is List<*>) { @@ -4822,14 +6105,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun echoNullableNonNullClassList(classListArg: List?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$separatedMessageChannelSuffix" + fun echoNullableNonNullClassList( + classListArg: List?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classListArg)) { if (it is List<*>) { @@ -4841,14 +6128,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableMap(mapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$separatedMessageChannelSuffix" + fun echoNullableMap(mapArg: Map?, callback: (Result?>) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(mapArg)) { if (it is List<*>) { @@ -4860,14 +6148,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableStringMap(stringMapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$separatedMessageChannelSuffix" + fun echoNullableStringMap( + stringMapArg: Map?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(stringMapArg)) { if (it is List<*>) { @@ -4879,14 +6171,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableIntMap(intMapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$separatedMessageChannelSuffix" + fun echoNullableIntMap( + intMapArg: Map?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(intMapArg)) { if (it is List<*>) { @@ -4898,14 +6194,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableEnumMap(enumMapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$separatedMessageChannelSuffix" + fun echoNullableEnumMap( + enumMapArg: Map?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumMapArg)) { if (it is List<*>) { @@ -4917,14 +6217,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableClassMap(classMapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$separatedMessageChannelSuffix" + fun echoNullableClassMap( + classMapArg: Map?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classMapArg)) { if (it is List<*>) { @@ -4936,14 +6240,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullStringMap(stringMapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$separatedMessageChannelSuffix" + fun echoNullableNonNullStringMap( + stringMapArg: Map?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(stringMapArg)) { if (it is List<*>) { @@ -4955,14 +6263,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullIntMap(intMapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$separatedMessageChannelSuffix" + fun echoNullableNonNullIntMap( + intMapArg: Map?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(intMapArg)) { if (it is List<*>) { @@ -4974,14 +6286,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullEnumMap(enumMapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$separatedMessageChannelSuffix" + fun echoNullableNonNullEnumMap( + enumMapArg: Map?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(enumMapArg)) { if (it is List<*>) { @@ -4993,14 +6309,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun echoNullableNonNullClassMap(classMapArg: Map?, callback: (Result?>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$separatedMessageChannelSuffix" + fun echoNullableNonNullClassMap( + classMapArg: Map?, + callback: (Result?>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(classMapArg)) { if (it is List<*>) { @@ -5012,14 +6332,15 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun echoNullableEnum(anEnumArg: AnEnum?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$separatedMessageChannelSuffix" + fun echoNullableEnum(anEnumArg: AnEnum?, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anEnumArg)) { if (it is List<*>) { @@ -5031,14 +6352,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun echoAnotherNullableEnum(anotherEnumArg: AnotherEnum?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix" + fun echoAnotherNullableEnum( + anotherEnumArg: AnotherEnum?, + callback: (Result) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(anotherEnumArg)) { if (it is List<*>) { @@ -5050,17 +6375,18 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic asynchronous calling. + * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous + * calling. */ - fun noopAsync(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$separatedMessageChannelSuffix" + fun noopAsync(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -5071,28 +6397,34 @@ class FlutterIntegrationCoreApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed in generic Object asynchronously. */ - fun echoAsyncString(aStringArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$separatedMessageChannelSuffix" + fun echoAsyncString(aStringArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } @@ -5106,23 +6438,31 @@ interface HostTrivialApi { companion object { /** The codec used by HostTrivialApi. */ - val codec: MessageCodec by lazy { - CoreTestsPigeonCodec() - } + val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } /** Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$separatedMessageChannelSuffix", codec) + fun setUp( + binaryMessenger: BinaryMessenger, + api: HostTrivialApi?, + messageChannelSuffix: String = "" + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.noop() - listOf(null) - } catch (exception: Throwable) { - CoreTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.noop() + listOf(null) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5139,19 +6479,27 @@ interface HostTrivialApi { */ interface HostSmallApi { fun echo(aString: String, callback: (Result) -> Unit) + fun voidVoid(callback: (Result) -> Unit) companion object { /** The codec used by HostSmallApi. */ - val codec: MessageCodec by lazy { - CoreTestsPigeonCodec() - } + val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } /** Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: HostSmallApi?, + messageChannelSuffix: String = "" + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5171,10 +6519,14 @@ interface HostSmallApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$separatedMessageChannelSuffix", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.voidVoid{ result: Result -> + api.voidVoid { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(CoreTestsPigeonUtils.wrapError(error)) @@ -5195,51 +6547,66 @@ interface HostSmallApi { * * Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class FlutterSmallApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class FlutterSmallApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "" +) { companion object { /** The codec used by FlutterSmallApi. */ - val codec: MessageCodec by lazy { - CoreTestsPigeonCodec() - } + val codec: MessageCodec by lazy { CoreTestsPigeonCodec() } } - fun echoWrappedList(msgArg: TestMessage, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$separatedMessageChannelSuffix" + + fun echoWrappedList(msgArg: TestMessage, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as TestMessage callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } - fun echoString(aStringArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$separatedMessageChannelSuffix" + + fun echoString(aStringArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(aStringArg)) { if (it is List<*>) { if (it.size > 1) { callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(CoreTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt index 8a4e7fa97b96..6302a8f998c1 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt @@ -8,15 +8,13 @@ package com.example.test_plugin -import android.util.Log -import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger import io.flutter.plugin.common.EventChannel -import io.flutter.plugin.common.MessageCodec -import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec +import io.flutter.plugin.common.StandardMethodCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer + private object EventChannelTestsPigeonUtils { fun deepEquals(a: Any?, b: Any?): Boolean { if (a === b) { @@ -49,20 +47,18 @@ private object EventChannelTestsPigeonUtils { return a.contentDeepEquals(b) } if (a is List<*> && b is List<*>) { - return a.size == b.size && - a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && a.all { - (b as Map).contains(it.key) && - deepEquals(it.value, b[it.key]) - } + return a.size == b.size && + a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } } if (a is Double && b is Double) { return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) } if (a is Float && b is Float) { - return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || + (a.isNaN() && b.isNaN()) } return a == b } @@ -114,19 +110,19 @@ private object EventChannelTestsPigeonUtils { else -> value.hashCode() } } - } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. + * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class EventChannelTestsError ( - val code: String, - override val message: String? = null, - val details: Any? = null +class EventChannelTestsError( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() enum class EventEnum(val raw: Int) { @@ -158,40 +154,39 @@ enum class AnotherEventEnum(val raw: Int) { * * Generated class from Pigeon that represents data sent in messages. */ -data class EventAllNullableTypes ( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val aNullableEnum: EventEnum? = null, - val anotherNullableEnum: AnotherEventEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val allNullableTypes: EventAllNullableTypes? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val enumList: List? = null, - val objectList: List? = null, - val listList: List?>? = null, - val mapList: List?>? = null, - val recursiveClassList: List? = null, - val map: Map? = null, - val stringMap: Map? = null, - val intMap: Map? = null, - val enumMap: Map? = null, - val objectMap: Map? = null, - val listMap: Map?>? = null, - val mapMap: Map?>? = null, - val recursiveClassMap: Map? = null -) - { +data class EventAllNullableTypes( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val aNullableEnum: EventEnum? = null, + val anotherNullableEnum: AnotherEventEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val allNullableTypes: EventAllNullableTypes? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val enumList: List? = null, + val objectList: List? = null, + val listList: List?>? = null, + val mapList: List?>? = null, + val recursiveClassList: List? = null, + val map: Map? = null, + val stringMap: Map? = null, + val intMap: Map? = null, + val enumMap: Map? = null, + val objectMap: Map? = null, + val listMap: Map?>? = null, + val mapMap: Map?>? = null, + val recursiveClassMap: Map? = null +) { companion object { fun fromList(pigeonVar_list: List): EventAllNullableTypes { val aNullableBool = pigeonVar_list[0] as Boolean? @@ -225,44 +220,77 @@ data class EventAllNullableTypes ( val listMap = pigeonVar_list[28] as Map?>? val mapMap = pigeonVar_list[29] as Map?>? val recursiveClassMap = pigeonVar_list[30] as Map? - return EventAllNullableTypes(aNullableBool, aNullableInt, aNullableInt64, aNullableDouble, aNullableByteArray, aNullable4ByteArray, aNullable8ByteArray, aNullableFloatArray, aNullableEnum, anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, list, stringList, intList, doubleList, boolList, enumList, objectList, listList, mapList, recursiveClassList, map, stringMap, intMap, enumMap, objectMap, listMap, mapMap, recursiveClassMap) + return EventAllNullableTypes( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap) } } + fun toList(): List { return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - enumList, - objectList, - listList, - mapList, - recursiveClassList, - map, - stringMap, - intMap, - enumMap, - objectMap, - listMap, - mapMap, - recursiveClassMap, + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + enumList, + objectList, + listList, + mapList, + recursiveClassList, + map, + stringMap, + intMap, + enumMap, + objectMap, + listMap, + mapMap, + recursiveClassMap, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -271,7 +299,43 @@ data class EventAllNullableTypes ( return true } val other = other as EventAllNullableTypes - return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableByteArray, other.aNullableByteArray) && EventChannelTestsPigeonUtils.deepEquals(this.aNullable4ByteArray, other.aNullable4ByteArray) && EventChannelTestsPigeonUtils.deepEquals(this.aNullable8ByteArray, other.aNullable8ByteArray) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableFloatArray, other.aNullableFloatArray) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && EventChannelTestsPigeonUtils.deepEquals(this.anotherNullableEnum, other.anotherNullableEnum) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && EventChannelTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && EventChannelTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && EventChannelTestsPigeonUtils.deepEquals(this.list, other.list) && EventChannelTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && EventChannelTestsPigeonUtils.deepEquals(this.intList, other.intList) && EventChannelTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && EventChannelTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && EventChannelTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && EventChannelTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && EventChannelTestsPigeonUtils.deepEquals(this.listList, other.listList) && EventChannelTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassList, other.recursiveClassList) && EventChannelTestsPigeonUtils.deepEquals(this.map, other.map) && EventChannelTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && EventChannelTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && EventChannelTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && EventChannelTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && EventChannelTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && EventChannelTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) + return EventChannelTestsPigeonUtils.deepEquals(this.aNullableBool, other.aNullableBool) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt, other.aNullableInt) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableInt64, other.aNullableInt64) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableDouble, other.aNullableDouble) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullableByteArray, other.aNullableByteArray) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullable4ByteArray, other.aNullable4ByteArray) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullable8ByteArray, other.aNullable8ByteArray) && + EventChannelTestsPigeonUtils.deepEquals( + this.aNullableFloatArray, other.aNullableFloatArray) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableEnum, other.aNullableEnum) && + EventChannelTestsPigeonUtils.deepEquals( + this.anotherNullableEnum, other.anotherNullableEnum) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableString, other.aNullableString) && + EventChannelTestsPigeonUtils.deepEquals(this.aNullableObject, other.aNullableObject) && + EventChannelTestsPigeonUtils.deepEquals(this.allNullableTypes, other.allNullableTypes) && + EventChannelTestsPigeonUtils.deepEquals(this.list, other.list) && + EventChannelTestsPigeonUtils.deepEquals(this.stringList, other.stringList) && + EventChannelTestsPigeonUtils.deepEquals(this.intList, other.intList) && + EventChannelTestsPigeonUtils.deepEquals(this.doubleList, other.doubleList) && + EventChannelTestsPigeonUtils.deepEquals(this.boolList, other.boolList) && + EventChannelTestsPigeonUtils.deepEquals(this.enumList, other.enumList) && + EventChannelTestsPigeonUtils.deepEquals(this.objectList, other.objectList) && + EventChannelTestsPigeonUtils.deepEquals(this.listList, other.listList) && + EventChannelTestsPigeonUtils.deepEquals(this.mapList, other.mapList) && + EventChannelTestsPigeonUtils.deepEquals( + this.recursiveClassList, other.recursiveClassList) && + EventChannelTestsPigeonUtils.deepEquals(this.map, other.map) && + EventChannelTestsPigeonUtils.deepEquals(this.stringMap, other.stringMap) && + EventChannelTestsPigeonUtils.deepEquals(this.intMap, other.intMap) && + EventChannelTestsPigeonUtils.deepEquals(this.enumMap, other.enumMap) && + EventChannelTestsPigeonUtils.deepEquals(this.objectMap, other.objectMap) && + EventChannelTestsPigeonUtils.deepEquals(this.listMap, other.listMap) && + EventChannelTestsPigeonUtils.deepEquals(this.mapMap, other.mapMap) && + EventChannelTestsPigeonUtils.deepEquals(this.recursiveClassMap, other.recursiveClassMap) } override fun hashCode(): Int { @@ -312,26 +376,25 @@ data class EventAllNullableTypes ( } /** - * Generated class from Pigeon that represents data sent in messages. - * This class should not be extended by any user class outside of the generated file. + * Generated class from Pigeon that represents data sent in messages. This class should not be + * extended by any user class outside of the generated file. */ -sealed class PlatformEvent +sealed class PlatformEvent /** Generated class from Pigeon that represents data sent in messages. */ -data class IntEvent ( - val value: Long -) : PlatformEvent() - { +data class IntEvent(val value: Long) : PlatformEvent() { companion object { fun fromList(pigeonVar_list: List): IntEvent { val value = pigeonVar_list[0] as Long return IntEvent(value) } } + fun toList(): List { return listOf( - value, + value, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -351,21 +414,20 @@ data class IntEvent ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class StringEvent ( - val value: String -) : PlatformEvent() - { +data class StringEvent(val value: String) : PlatformEvent() { companion object { fun fromList(pigeonVar_list: List): StringEvent { val value = pigeonVar_list[0] as String return StringEvent(value) } } + fun toList(): List { return listOf( - value, + value, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -385,21 +447,20 @@ data class StringEvent ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class BoolEvent ( - val value: Boolean -) : PlatformEvent() - { +data class BoolEvent(val value: Boolean) : PlatformEvent() { companion object { fun fromList(pigeonVar_list: List): BoolEvent { val value = pigeonVar_list[0] as Boolean return BoolEvent(value) } } + fun toList(): List { return listOf( - value, + value, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -419,21 +480,20 @@ data class BoolEvent ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class DoubleEvent ( - val value: Double -) : PlatformEvent() - { +data class DoubleEvent(val value: Double) : PlatformEvent() { companion object { fun fromList(pigeonVar_list: List): DoubleEvent { val value = pigeonVar_list[0] as Double return DoubleEvent(value) } } + fun toList(): List { return listOf( - value, + value, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -453,21 +513,20 @@ data class DoubleEvent ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class ObjectsEvent ( - val value: Any -) : PlatformEvent() - { +data class ObjectsEvent(val value: Any) : PlatformEvent() { companion object { fun fromList(pigeonVar_list: List): ObjectsEvent { val value = pigeonVar_list[0] as Any return ObjectsEvent(value) } } + fun toList(): List { return listOf( - value, + value, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -487,21 +546,20 @@ data class ObjectsEvent ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class EnumEvent ( - val value: EventEnum -) : PlatformEvent() - { +data class EnumEvent(val value: EventEnum) : PlatformEvent() { companion object { fun fromList(pigeonVar_list: List): EnumEvent { val value = pigeonVar_list[0] as EventEnum return EnumEvent(value) } } + fun toList(): List { return listOf( - value, + value, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -521,21 +579,20 @@ data class EnumEvent ( } /** Generated class from Pigeon that represents data sent in messages. */ -data class ClassEvent ( - val value: EventAllNullableTypes -) : PlatformEvent() - { +data class ClassEvent(val value: EventAllNullableTypes) : PlatformEvent() { companion object { fun fromList(pigeonVar_list: List): ClassEvent { val value = pigeonVar_list[0] as EventAllNullableTypes return ClassEvent(value) } } + fun toList(): List { return listOf( - value, + value, ) } + override fun equals(other: Any?): Boolean { if (other == null || other.javaClass != javaClass) { return false @@ -553,63 +610,45 @@ data class ClassEvent ( return result } } + private open class EventChannelTestsPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - EventEnum.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { EventEnum.ofRaw(it.toInt()) } } 130.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AnotherEventEnum.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AnotherEventEnum.ofRaw(it.toInt()) } } 131.toByte() -> { - return (readValue(buffer) as? List)?.let { - EventAllNullableTypes.fromList(it) - } + return (readValue(buffer) as? List)?.let { EventAllNullableTypes.fromList(it) } } 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - IntEvent.fromList(it) - } + return (readValue(buffer) as? List)?.let { IntEvent.fromList(it) } } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - StringEvent.fromList(it) - } + return (readValue(buffer) as? List)?.let { StringEvent.fromList(it) } } 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - BoolEvent.fromList(it) - } + return (readValue(buffer) as? List)?.let { BoolEvent.fromList(it) } } 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - DoubleEvent.fromList(it) - } + return (readValue(buffer) as? List)?.let { DoubleEvent.fromList(it) } } 136.toByte() -> { - return (readValue(buffer) as? List)?.let { - ObjectsEvent.fromList(it) - } + return (readValue(buffer) as? List)?.let { ObjectsEvent.fromList(it) } } 137.toByte() -> { - return (readValue(buffer) as? List)?.let { - EnumEvent.fromList(it) - } + return (readValue(buffer) as? List)?.let { EnumEvent.fromList(it) } } 138.toByte() -> { - return (readValue(buffer) as? List)?.let { - ClassEvent.fromList(it) - } + return (readValue(buffer) as? List)?.let { ClassEvent.fromList(it) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is EventEnum -> { stream.write(129) @@ -658,7 +697,6 @@ private open class EventChannelTestsPigeonCodec : StandardMessageCodec() { val EventChannelTestsPigeonMethodCodec = StandardMethodCodec(EventChannelTestsPigeonCodec()) - private class EventChannelTestsPigeonStreamHandler( val wrapper: EventChannelTestsPigeonEventChannelWrapper ) : EventChannel.StreamHandler { @@ -694,55 +732,74 @@ class PigeonEventSink(private val sink: EventChannel.EventSink) { sink.endOfStream() } } - + abstract class StreamIntsStreamHandler : EventChannelTestsPigeonEventChannelWrapper { companion object { - fun register(messenger: BinaryMessenger, streamHandler: StreamIntsStreamHandler, instanceName: String = "") { - var channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts" + fun register( + messenger: BinaryMessenger, + streamHandler: StreamIntsStreamHandler, + instanceName: String = "" + ) { + var channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts" if (instanceName.isNotEmpty()) { channelName += ".$instanceName" } val internalStreamHandler = EventChannelTestsPigeonStreamHandler(streamHandler) - EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec).setStreamHandler(internalStreamHandler) + EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec) + .setStreamHandler(internalStreamHandler) } } -// Implement methods from EventChannelTestsPigeonEventChannelWrapper -override fun onListen(p0: Any?, sink: PigeonEventSink) {} + // Implement methods from EventChannelTestsPigeonEventChannelWrapper + override fun onListen(p0: Any?, sink: PigeonEventSink) {} -override fun onCancel(p0: Any?) {} + override fun onCancel(p0: Any?) {} } - -abstract class StreamEventsStreamHandler : EventChannelTestsPigeonEventChannelWrapper { + +abstract class StreamEventsStreamHandler : + EventChannelTestsPigeonEventChannelWrapper { companion object { - fun register(messenger: BinaryMessenger, streamHandler: StreamEventsStreamHandler, instanceName: String = "") { - var channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents" + fun register( + messenger: BinaryMessenger, + streamHandler: StreamEventsStreamHandler, + instanceName: String = "" + ) { + var channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents" if (instanceName.isNotEmpty()) { channelName += ".$instanceName" } val internalStreamHandler = EventChannelTestsPigeonStreamHandler(streamHandler) - EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec).setStreamHandler(internalStreamHandler) + EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec) + .setStreamHandler(internalStreamHandler) } } -// Implement methods from EventChannelTestsPigeonEventChannelWrapper -override fun onListen(p0: Any?, sink: PigeonEventSink) {} + // Implement methods from EventChannelTestsPigeonEventChannelWrapper + override fun onListen(p0: Any?, sink: PigeonEventSink) {} -override fun onCancel(p0: Any?) {} + override fun onCancel(p0: Any?) {} } - -abstract class StreamConsistentNumbersStreamHandler : EventChannelTestsPigeonEventChannelWrapper { + +abstract class StreamConsistentNumbersStreamHandler : + EventChannelTestsPigeonEventChannelWrapper { companion object { - fun register(messenger: BinaryMessenger, streamHandler: StreamConsistentNumbersStreamHandler, instanceName: String = "") { - var channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers" + fun register( + messenger: BinaryMessenger, + streamHandler: StreamConsistentNumbersStreamHandler, + instanceName: String = "" + ) { + var channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers" if (instanceName.isNotEmpty()) { channelName += ".$instanceName" } val internalStreamHandler = EventChannelTestsPigeonStreamHandler(streamHandler) - EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec).setStreamHandler(internalStreamHandler) + EventChannel(messenger, channelName, EventChannelTestsPigeonMethodCodec) + .setStreamHandler(internalStreamHandler) } } -// Implement methods from EventChannelTestsPigeonEventChannelWrapper -override fun onListen(p0: Any?, sink: PigeonEventSink) {} + // Implement methods from EventChannelTestsPigeonEventChannelWrapper + override fun onListen(p0: Any?, sink: PigeonEventSink) {} -override fun onCancel(p0: Any?) {} + override fun onCancel(p0: Any?) {} } - diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/ProxyApiTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/ProxyApiTests.gen.kt index d399942bbc61..ab979311a10c 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/ProxyApiTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/ProxyApiTests.gen.kt @@ -11,16 +11,17 @@ package com.example.test_plugin import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger -import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec -import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer + private object ProxyApiTestsPigeonUtils { fun createConnectionError(channelName: String): ProxyApiTestsError { - return ProxyApiTestsError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } + return ProxyApiTestsError( + "channel-error", "Unable to establish connection on channel: '$channelName'.", "") + } fun wrapResult(result: Any?): List { return listOf(result) @@ -28,50 +29,48 @@ private object ProxyApiTestsPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is ProxyApiTestsError) { - listOf( - exception.code, - exception.message, - exception.details - ) + listOf(exception.code, exception.message, exception.details) } else { listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) - ) + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception)) } } } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. + * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class ProxyApiTestsError ( - val code: String, - override val message: String? = null, - val details: Any? = null +class ProxyApiTestsError( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() /** * Maintains instances used to communicate with the corresponding objects in Dart. * - * Objects stored in this container are represented by an object in Dart that is also stored in - * an InstanceManager with the same identifier. + * Objects stored in this container are represented by an object in Dart that is also stored in an + * InstanceManager with the same identifier. * * When an instance is added with an identifier, either can be used to retrieve the other. * - * Added instances are added as a weak reference and a strong reference. When the strong - * reference is removed with [remove] and the weak reference is deallocated, the - * `finalizationListener.onFinalize` is called with the instance's identifier. However, if the strong - * reference is removed and then the identifier is retrieved with the intention to pass the identifier - * to Dart (e.g. calling [getIdentifierForStrongReference]), the strong reference to the instance - * is recreated. The strong reference will then need to be removed manually again. + * Added instances are added as a weak reference and a strong reference. When the strong reference + * is removed with [remove] and the weak reference is deallocated, the + * `finalizationListener.onFinalize` is called with the instance's identifier. However, if the + * strong reference is removed and then the identifier is retrieved with the intention to pass the + * identifier to Dart (e.g. calling [getIdentifierForStrongReference]), the strong reference to the + * instance is recreated. The strong reference will then need to be removed manually again. */ @Suppress("UNCHECKED_CAST", "MemberVisibilityCanBePrivate") -class ProxyApiTestsPigeonInstanceManager(private val finalizationListener: PigeonFinalizationListener) { - /** Interface for listening when a weak reference of an instance is removed from the manager. */ +class ProxyApiTestsPigeonInstanceManager( + private val finalizationListener: PigeonFinalizationListener +) { + /** Interface for listening when a weak reference of an instance is removed from the manager. */ interface PigeonFinalizationListener { fun onFinalize(identifier: Long) } @@ -140,19 +139,20 @@ class ProxyApiTestsPigeonInstanceManager(private val finalizationListener: Pigeo private const val tag = "PigeonInstanceManager" /** - * Instantiate a new manager with a listener for garbage collected weak - * references. + * Instantiate a new manager with a listener for garbage collected weak references. * * When the manager is no longer needed, [stopFinalizationListener] must be called. */ - fun create(finalizationListener: PigeonFinalizationListener): ProxyApiTestsPigeonInstanceManager { + fun create( + finalizationListener: PigeonFinalizationListener + ): ProxyApiTestsPigeonInstanceManager { return ProxyApiTestsPigeonInstanceManager(finalizationListener) } } /** - * Removes `identifier` and return its associated strongly referenced instance, if present, - * from the manager. + * Removes `identifier` and return its associated strongly referenced instance, if present, from + * the manager. */ fun remove(identifier: Long): T? { logWarningIfFinalizationListenerHasStopped() @@ -162,15 +162,13 @@ class ProxyApiTestsPigeonInstanceManager(private val finalizationListener: Pigeo /** * Retrieves the identifier paired with an instance, if present, otherwise `null`. * - * * If the manager contains a strong reference to `instance`, it will return the identifier * associated with `instance`. If the manager contains only a weak reference to `instance`, a new * strong reference to `instance` will be added and will need to be removed again with [remove]. * - * * If this method returns a nonnull identifier, this method also expects the Dart - * `ProxyApiTestsPigeonInstanceManager` to have, or recreate, a weak reference to the Dart instance the - * identifier is associated with. + * `ProxyApiTestsPigeonInstanceManager` to have, or recreate, a weak reference to the Dart + * instance the identifier is associated with. */ fun getIdentifierForStrongReference(instance: Any?): Long? { logWarningIfFinalizationListenerHasStopped() @@ -187,9 +185,9 @@ class ProxyApiTestsPigeonInstanceManager(private val finalizationListener: Pigeo /** * Adds a new instance that was instantiated from Dart. * - * The same instance can be added multiple times, but each identifier must be unique. This - * allows two objects that are equivalent (e.g. the `equals` method returns true and their - * hashcodes are equal) to both be added. + * The same instance can be added multiple times, but each identifier must be unique. This allows + * two objects that are equivalent (e.g. the `equals` method returns true and their hashcodes are + * equal) to both be added. * * [identifier] must be >= 0 and unique. */ @@ -201,13 +199,15 @@ class ProxyApiTestsPigeonInstanceManager(private val finalizationListener: Pigeo /** * Adds a new unique instance that was instantiated from the host platform. * - * If the manager contains [instance], this returns the corresponding identifier. If the - * manager does not contain [instance], this adds the instance and returns a unique - * identifier for that [instance]. + * If the manager contains [instance], this returns the corresponding identifier. If the manager + * does not contain [instance], this adds the instance and returns a unique identifier for that + * [instance]. */ fun addHostCreatedInstance(instance: Any): Long { logWarningIfFinalizationListenerHasStopped() - require(!containsInstance(instance)) { "Instance of ${instance.javaClass} has already been added." } + require(!containsInstance(instance)) { + "Instance of ${instance.javaClass} has already been added." + } val identifier = nextIdentifier++ addInstance(instance, identifier) return identifier @@ -291,39 +291,43 @@ class ProxyApiTestsPigeonInstanceManager(private val finalizationListener: Pigeo private fun logWarningIfFinalizationListenerHasStopped() { if (hasFinalizationListenerStopped()) { Log.w( - tag, - "The manager was used after calls to the PigeonFinalizationListener has been stopped." - ) + tag, + "The manager was used after calls to the PigeonFinalizationListener has been stopped.") } } } - /** Generated API for managing the Dart and native `InstanceManager`s. */ private class ProxyApiTestsPigeonInstanceManagerApi(val binaryMessenger: BinaryMessenger) { companion object { /** The codec used by ProxyApiTestsPigeonInstanceManagerApi. */ - val codec: MessageCodec by lazy { - ProxyApiTestsPigeonCodec() - } + val codec: MessageCodec by lazy { ProxyApiTestsPigeonCodec() } /** * Sets up an instance of `ProxyApiTestsPigeonInstanceManagerApi` to handle messages from the * `binaryMessenger`. */ - fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager?) { + fun setUpMessageHandlers( + binaryMessenger: BinaryMessenger, + instanceManager: ProxyApiTestsPigeonInstanceManager? + ) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", + codec) if (instanceManager != null) { channel.setMessageHandler { message, reply -> val args = message as List val identifierArg = args[0] as Long - val wrapped: List = try { - instanceManager.remove(identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + instanceManager.remove(identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -331,15 +335,20 @@ private class ProxyApiTestsPigeonInstanceManagerApi(val binaryMessenger: BinaryM } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", + codec) if (instanceManager != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - instanceManager.clear() - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + instanceManager.clear() + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -349,26 +358,28 @@ private class ProxyApiTestsPigeonInstanceManagerApi(val binaryMessenger: BinaryM } } - fun removeStrongReference(identifierArg: Long, callback: (Result) -> Unit) -{ - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" + fun removeStrongReference(identifierArg: Long, callback: (Result) -> Unit) { + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(identifierArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } /** - * Provides implementations for each ProxyApi implementation and provides access to resources - * needed by any implementation. + * Provides implementations for each ProxyApi implementation and provides access to resources needed + * by any implementation. */ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryMessenger) { /** Whether APIs should ignore calling to Dart. */ @@ -385,20 +396,19 @@ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryM init { val api = ProxyApiTestsPigeonInstanceManagerApi(binaryMessenger) - instanceManager = ProxyApiTestsPigeonInstanceManager.create( - object : ProxyApiTestsPigeonInstanceManager.PigeonFinalizationListener { - override fun onFinalize(identifier: Long) { - api.removeStrongReference(identifier) { - if (it.isFailure) { - Log.e( - "PigeonProxyApiRegistrar", - "Failed to remove Dart strong reference with identifier: $identifier" - ) - } - } - } - } - ) + instanceManager = + ProxyApiTestsPigeonInstanceManager.create( + object : ProxyApiTestsPigeonInstanceManager.PigeonFinalizationListener { + override fun onFinalize(identifier: Long) { + api.removeStrongReference(identifier) { + if (it.isFailure) { + Log.e( + "PigeonProxyApiRegistrar", + "Failed to remove Dart strong reference with identifier: $identifier") + } + } + } + }) } /** * An implementation of [PigeonApiProxyApiTestClass] used to add a new Dart instance of @@ -416,8 +426,7 @@ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryM * An implementation of [PigeonApiProxyApiInterface] used to add a new Dart instance of * `ProxyApiInterface` to the Dart `InstanceManager`. */ - open fun getPigeonApiProxyApiInterface(): PigeonApiProxyApiInterface - { + open fun getPigeonApiProxyApiInterface(): PigeonApiProxyApiInterface { return PigeonApiProxyApiInterface(this) } @@ -429,10 +438,14 @@ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryM fun setUp() { ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger, instanceManager) - PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger, getPigeonApiProxyApiTestClass()) - PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger, getPigeonApiProxyApiSuperClass()) - PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger, getPigeonApiClassWithApiRequirement()) + PigeonApiProxyApiTestClass.setUpMessageHandlers( + binaryMessenger, getPigeonApiProxyApiTestClass()) + PigeonApiProxyApiSuperClass.setUpMessageHandlers( + binaryMessenger, getPigeonApiProxyApiSuperClass()) + PigeonApiClassWithApiRequirement.setUpMessageHandlers( + binaryMessenger, getPigeonApiClassWithApiRequirement()) } + fun tearDown() { ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger, null) PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger, null) @@ -440,17 +453,17 @@ abstract class ProxyApiTestsPigeonProxyApiRegistrar(val binaryMessenger: BinaryM PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger, null) } } -private class ProxyApiTestsPigeonProxyApiBaseCodec(val registrar: ProxyApiTestsPigeonProxyApiRegistrar) : ProxyApiTestsPigeonCodec() { + +private class ProxyApiTestsPigeonProxyApiBaseCodec( + val registrar: ProxyApiTestsPigeonProxyApiRegistrar +) : ProxyApiTestsPigeonCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 128.toByte() -> { val identifier: Long = readValue(buffer) as Long val instance: Any? = registrar.instanceManager.getInstance(identifier) if (instance == null) { - Log.e( - "PigeonProxyApiBaseCodec", - "Failed to find instance with identifier: $identifier" - ) + Log.e("PigeonProxyApiBaseCodec", "Failed to find instance with identifier: $identifier") } return instance } @@ -459,16 +472,28 @@ private class ProxyApiTestsPigeonProxyApiBaseCodec(val registrar: ProxyApiTestsP } override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { - if (value is Boolean || value is ByteArray || value is Double || value is DoubleArray || value is FloatArray || value is Int || value is IntArray || value is List<*> || value is Long || value is LongArray || value is Map<*, *> || value is String || value is ProxyApiTestEnum || value == null) { + if (value is Boolean || + value is ByteArray || + value is Double || + value is DoubleArray || + value is FloatArray || + value is Int || + value is IntArray || + value is List<*> || + value is Long || + value is LongArray || + value is Map<*, *> || + value is String || + value is ProxyApiTestEnum || + value == null) { super.writeValue(stream, value) return } fun logNewInstanceFailure(apiName: String, value: Any, exception: Throwable?) { Log.w( - "PigeonProxyApiBaseCodec", - "Failed to create new Dart proxy instance of $apiName: $value. $exception" - ) + "PigeonProxyApiBaseCodec", + "Failed to create new Dart proxy instance of $apiName: $value. $exception") } if (value is ProxyApiTestClass) { @@ -477,22 +502,19 @@ private class ProxyApiTestsPigeonProxyApiBaseCodec(val registrar: ProxyApiTestsP logNewInstanceFailure("ProxyApiTestClass", value, it.exceptionOrNull()) } } - } - else if (value is com.example.test_plugin.ProxyApiSuperClass) { + } else if (value is com.example.test_plugin.ProxyApiSuperClass) { registrar.getPigeonApiProxyApiSuperClass().pigeon_newInstance(value) { if (it.isFailure) { logNewInstanceFailure("ProxyApiSuperClass", value, it.exceptionOrNull()) } } - } - else if (value is ProxyApiInterface) { + } else if (value is ProxyApiInterface) { registrar.getPigeonApiProxyApiInterface().pigeon_newInstance(value) { if (it.isFailure) { logNewInstanceFailure("ProxyApiInterface", value, it.exceptionOrNull()) } } - } - else if (android.os.Build.VERSION.SDK_INT >= 25 && value is ClassWithApiRequirement) { + } else if (android.os.Build.VERSION.SDK_INT >= 25 && value is ClassWithApiRequirement) { registrar.getPigeonApiClassWithApiRequirement().pigeon_newInstance(value) { if (it.isFailure) { logNewInstanceFailure("ClassWithApiRequirement", value, it.exceptionOrNull()) @@ -505,7 +527,9 @@ private class ProxyApiTestsPigeonProxyApiBaseCodec(val registrar: ProxyApiTestsP stream.write(128) writeValue(stream, registrar.instanceManager.getIdentifierForStrongReference(value)) } - else -> throw IllegalArgumentException("Unsupported value: '$value' of type '${value.javaClass.name}'") + else -> + throw IllegalArgumentException( + "Unsupported value: '$value' of type '${value.javaClass.name}'") } } } @@ -521,18 +545,18 @@ enum class ProxyApiTestEnum(val raw: Int) { } } } + private open class ProxyApiTestsPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - ProxyApiTestEnum.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { ProxyApiTestEnum.ofRaw(it.toInt()) } } else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is ProxyApiTestEnum -> { stream.write(129) @@ -544,23 +568,80 @@ private open class ProxyApiTestsPigeonCodec : StandardMessageCodec() { } /** - * The core ProxyApi test class that each supported host language must - * implement in platform_tests integration tests. + * The core ProxyApi test class that each supported host language must implement in platform_tests + * integration tests. */ @Suppress("UNCHECKED_CAST") -abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar) { - abstract fun pigeon_defaultConstructor(aBool: Boolean, anInt: Long, aDouble: Double, aString: String, aUint8List: ByteArray, aList: List, aMap: Map, anEnum: ProxyApiTestEnum, aProxyApi: com.example.test_plugin.ProxyApiSuperClass, aNullableBool: Boolean?, aNullableInt: Long?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: ByteArray?, aNullableList: List?, aNullableMap: Map?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass?, boolParam: Boolean, intParam: Long, doubleParam: Double, stringParam: String, aUint8ListParam: ByteArray, listParam: List, mapParam: Map, enumParam: ProxyApiTestEnum, proxyApiParam: com.example.test_plugin.ProxyApiSuperClass, nullableBoolParam: Boolean?, nullableIntParam: Long?, nullableDoubleParam: Double?, nullableStringParam: String?, nullableUint8ListParam: ByteArray?, nullableListParam: List?, nullableMapParam: Map?, nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: com.example.test_plugin.ProxyApiSuperClass?): ProxyApiTestClass - - abstract fun namedConstructor(aBool: Boolean, anInt: Long, aDouble: Double, aString: String, aUint8List: ByteArray, aList: List, aMap: Map, anEnum: ProxyApiTestEnum, aProxyApi: com.example.test_plugin.ProxyApiSuperClass, aNullableBool: Boolean?, aNullableInt: Long?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: ByteArray?, aNullableList: List?, aNullableMap: Map?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass?): ProxyApiTestClass - - abstract fun attachedField(pigeon_instance: ProxyApiTestClass): com.example.test_plugin.ProxyApiSuperClass +abstract class PigeonApiProxyApiTestClass( + open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar +) { + abstract fun pigeon_defaultConstructor( + aBool: Boolean, + anInt: Long, + aDouble: Double, + aString: String, + aUint8List: ByteArray, + aList: List, + aMap: Map, + anEnum: ProxyApiTestEnum, + aProxyApi: com.example.test_plugin.ProxyApiSuperClass, + aNullableBool: Boolean?, + aNullableInt: Long?, + aNullableDouble: Double?, + aNullableString: String?, + aNullableUint8List: ByteArray?, + aNullableList: List?, + aNullableMap: Map?, + aNullableEnum: ProxyApiTestEnum?, + aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass?, + boolParam: Boolean, + intParam: Long, + doubleParam: Double, + stringParam: String, + aUint8ListParam: ByteArray, + listParam: List, + mapParam: Map, + enumParam: ProxyApiTestEnum, + proxyApiParam: com.example.test_plugin.ProxyApiSuperClass, + nullableBoolParam: Boolean?, + nullableIntParam: Long?, + nullableDoubleParam: Double?, + nullableStringParam: String?, + nullableUint8ListParam: ByteArray?, + nullableListParam: List?, + nullableMapParam: Map?, + nullableEnumParam: ProxyApiTestEnum?, + nullableProxyApiParam: com.example.test_plugin.ProxyApiSuperClass? + ): ProxyApiTestClass + + abstract fun namedConstructor( + aBool: Boolean, + anInt: Long, + aDouble: Double, + aString: String, + aUint8List: ByteArray, + aList: List, + aMap: Map, + anEnum: ProxyApiTestEnum, + aProxyApi: com.example.test_plugin.ProxyApiSuperClass, + aNullableBool: Boolean?, + aNullableInt: Long?, + aNullableDouble: Double?, + aNullableString: String?, + aNullableUint8List: ByteArray?, + aNullableList: List?, + aNullableMap: Map?, + aNullableEnum: ProxyApiTestEnum?, + aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass? + ): ProxyApiTestClass + + abstract fun attachedField( + pigeon_instance: ProxyApiTestClass + ): com.example.test_plugin.ProxyApiSuperClass abstract fun staticAttachedField(): com.example.test_plugin.ProxyApiSuperClass - /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic calling. - */ + /** A no-op function taking no arguments and returning no value, to sanity test basic calling. */ abstract fun noop(pigeon_instance: ProxyApiTestClass) /** Returns an error, to test error handling. */ @@ -593,124 +674,235 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest /** Returns the passed list, to test serialization and deserialization. */ abstract fun echoList(pigeon_instance: ProxyApiTestClass, aList: List): List - /** - * Returns the passed list with ProxyApis, to test serialization and - * deserialization. - */ - abstract fun echoProxyApiList(pigeon_instance: ProxyApiTestClass, aList: List): List + /** Returns the passed list with ProxyApis, to test serialization and deserialization. */ + abstract fun echoProxyApiList( + pigeon_instance: ProxyApiTestClass, + aList: List + ): List /** Returns the passed map, to test serialization and deserialization. */ - abstract fun echoMap(pigeon_instance: ProxyApiTestClass, aMap: Map): Map + abstract fun echoMap( + pigeon_instance: ProxyApiTestClass, + aMap: Map + ): Map - /** - * Returns the passed map with ProxyApis, to test serialization and - * deserialization. - */ - abstract fun echoProxyApiMap(pigeon_instance: ProxyApiTestClass, aMap: Map): Map + /** Returns the passed map with ProxyApis, to test serialization and deserialization. */ + abstract fun echoProxyApiMap( + pigeon_instance: ProxyApiTestClass, + aMap: Map + ): Map /** Returns the passed enum to test serialization and deserialization. */ - abstract fun echoEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum): ProxyApiTestEnum + abstract fun echoEnum( + pigeon_instance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum + ): ProxyApiTestEnum /** Returns the passed ProxyApi to test serialization and deserialization. */ - abstract fun echoProxyApi(pigeon_instance: ProxyApiTestClass, aProxyApi: com.example.test_plugin.ProxyApiSuperClass): com.example.test_plugin.ProxyApiSuperClass + abstract fun echoProxyApi( + pigeon_instance: ProxyApiTestClass, + aProxyApi: com.example.test_plugin.ProxyApiSuperClass + ): com.example.test_plugin.ProxyApiSuperClass /** Returns passed in int. */ abstract fun echoNullableInt(pigeon_instance: ProxyApiTestClass, aNullableInt: Long?): Long? /** Returns passed in double. */ - abstract fun echoNullableDouble(pigeon_instance: ProxyApiTestClass, aNullableDouble: Double?): Double? + abstract fun echoNullableDouble( + pigeon_instance: ProxyApiTestClass, + aNullableDouble: Double? + ): Double? /** Returns the passed in boolean. */ - abstract fun echoNullableBool(pigeon_instance: ProxyApiTestClass, aNullableBool: Boolean?): Boolean? + abstract fun echoNullableBool( + pigeon_instance: ProxyApiTestClass, + aNullableBool: Boolean? + ): Boolean? /** Returns the passed in string. */ - abstract fun echoNullableString(pigeon_instance: ProxyApiTestClass, aNullableString: String?): String? + abstract fun echoNullableString( + pigeon_instance: ProxyApiTestClass, + aNullableString: String? + ): String? /** Returns the passed in Uint8List. */ - abstract fun echoNullableUint8List(pigeon_instance: ProxyApiTestClass, aNullableUint8List: ByteArray?): ByteArray? + abstract fun echoNullableUint8List( + pigeon_instance: ProxyApiTestClass, + aNullableUint8List: ByteArray? + ): ByteArray? /** Returns the passed in generic Object. */ abstract fun echoNullableObject(pigeon_instance: ProxyApiTestClass, aNullableObject: Any?): Any? /** Returns the passed list, to test serialization and deserialization. */ - abstract fun echoNullableList(pigeon_instance: ProxyApiTestClass, aNullableList: List?): List? + abstract fun echoNullableList( + pigeon_instance: ProxyApiTestClass, + aNullableList: List? + ): List? /** Returns the passed map, to test serialization and deserialization. */ - abstract fun echoNullableMap(pigeon_instance: ProxyApiTestClass, aNullableMap: Map?): Map? + abstract fun echoNullableMap( + pigeon_instance: ProxyApiTestClass, + aNullableMap: Map? + ): Map? - abstract fun echoNullableEnum(pigeon_instance: ProxyApiTestClass, aNullableEnum: ProxyApiTestEnum?): ProxyApiTestEnum? + abstract fun echoNullableEnum( + pigeon_instance: ProxyApiTestClass, + aNullableEnum: ProxyApiTestEnum? + ): ProxyApiTestEnum? /** Returns the passed ProxyApi to test serialization and deserialization. */ - abstract fun echoNullableProxyApi(pigeon_instance: ProxyApiTestClass, aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass?): com.example.test_plugin.ProxyApiSuperClass? + abstract fun echoNullableProxyApi( + pigeon_instance: ProxyApiTestClass, + aNullableProxyApi: com.example.test_plugin.ProxyApiSuperClass? + ): com.example.test_plugin.ProxyApiSuperClass? /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic asynchronous calling. + * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous + * calling. */ abstract fun noopAsync(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) /** Returns passed in int asynchronously. */ - abstract fun echoAsyncInt(pigeon_instance: ProxyApiTestClass, anInt: Long, callback: (Result) -> Unit) + abstract fun echoAsyncInt( + pigeon_instance: ProxyApiTestClass, + anInt: Long, + callback: (Result) -> Unit + ) /** Returns passed in double asynchronously. */ - abstract fun echoAsyncDouble(pigeon_instance: ProxyApiTestClass, aDouble: Double, callback: (Result) -> Unit) + abstract fun echoAsyncDouble( + pigeon_instance: ProxyApiTestClass, + aDouble: Double, + callback: (Result) -> Unit + ) /** Returns the passed in boolean asynchronously. */ - abstract fun echoAsyncBool(pigeon_instance: ProxyApiTestClass, aBool: Boolean, callback: (Result) -> Unit) + abstract fun echoAsyncBool( + pigeon_instance: ProxyApiTestClass, + aBool: Boolean, + callback: (Result) -> Unit + ) /** Returns the passed string asynchronously. */ - abstract fun echoAsyncString(pigeon_instance: ProxyApiTestClass, aString: String, callback: (Result) -> Unit) + abstract fun echoAsyncString( + pigeon_instance: ProxyApiTestClass, + aString: String, + callback: (Result) -> Unit + ) /** Returns the passed in Uint8List asynchronously. */ - abstract fun echoAsyncUint8List(pigeon_instance: ProxyApiTestClass, aUint8List: ByteArray, callback: (Result) -> Unit) + abstract fun echoAsyncUint8List( + pigeon_instance: ProxyApiTestClass, + aUint8List: ByteArray, + callback: (Result) -> Unit + ) /** Returns the passed in generic Object asynchronously. */ - abstract fun echoAsyncObject(pigeon_instance: ProxyApiTestClass, anObject: Any, callback: (Result) -> Unit) + abstract fun echoAsyncObject( + pigeon_instance: ProxyApiTestClass, + anObject: Any, + callback: (Result) -> Unit + ) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncList(pigeon_instance: ProxyApiTestClass, aList: List, callback: (Result>) -> Unit) + abstract fun echoAsyncList( + pigeon_instance: ProxyApiTestClass, + aList: List, + callback: (Result>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncMap(pigeon_instance: ProxyApiTestClass, aMap: Map, callback: (Result>) -> Unit) + abstract fun echoAsyncMap( + pigeon_instance: ProxyApiTestClass, + aMap: Map, + callback: (Result>) -> Unit + ) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, callback: (Result) -> Unit) + abstract fun echoAsyncEnum( + pigeon_instance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum, + callback: (Result) -> Unit + ) /** Responds with an error from an async function returning a value. */ abstract fun throwAsyncError(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) /** Responds with an error from an async void function. */ - abstract fun throwAsyncErrorFromVoid(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) + abstract fun throwAsyncErrorFromVoid( + pigeon_instance: ProxyApiTestClass, + callback: (Result) -> Unit + ) /** Responds with a Flutter error from an async function returning a value. */ - abstract fun throwAsyncFlutterError(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) + abstract fun throwAsyncFlutterError( + pigeon_instance: ProxyApiTestClass, + callback: (Result) -> Unit + ) /** Returns passed in int asynchronously. */ - abstract fun echoAsyncNullableInt(pigeon_instance: ProxyApiTestClass, anInt: Long?, callback: (Result) -> Unit) + abstract fun echoAsyncNullableInt( + pigeon_instance: ProxyApiTestClass, + anInt: Long?, + callback: (Result) -> Unit + ) /** Returns passed in double asynchronously. */ - abstract fun echoAsyncNullableDouble(pigeon_instance: ProxyApiTestClass, aDouble: Double?, callback: (Result) -> Unit) + abstract fun echoAsyncNullableDouble( + pigeon_instance: ProxyApiTestClass, + aDouble: Double?, + callback: (Result) -> Unit + ) /** Returns the passed in boolean asynchronously. */ - abstract fun echoAsyncNullableBool(pigeon_instance: ProxyApiTestClass, aBool: Boolean?, callback: (Result) -> Unit) + abstract fun echoAsyncNullableBool( + pigeon_instance: ProxyApiTestClass, + aBool: Boolean?, + callback: (Result) -> Unit + ) /** Returns the passed string asynchronously. */ - abstract fun echoAsyncNullableString(pigeon_instance: ProxyApiTestClass, aString: String?, callback: (Result) -> Unit) + abstract fun echoAsyncNullableString( + pigeon_instance: ProxyApiTestClass, + aString: String?, + callback: (Result) -> Unit + ) /** Returns the passed in Uint8List asynchronously. */ - abstract fun echoAsyncNullableUint8List(pigeon_instance: ProxyApiTestClass, aUint8List: ByteArray?, callback: (Result) -> Unit) + abstract fun echoAsyncNullableUint8List( + pigeon_instance: ProxyApiTestClass, + aUint8List: ByteArray?, + callback: (Result) -> Unit + ) /** Returns the passed in generic Object asynchronously. */ - abstract fun echoAsyncNullableObject(pigeon_instance: ProxyApiTestClass, anObject: Any?, callback: (Result) -> Unit) + abstract fun echoAsyncNullableObject( + pigeon_instance: ProxyApiTestClass, + anObject: Any?, + callback: (Result) -> Unit + ) /** Returns the passed list, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncNullableList(pigeon_instance: ProxyApiTestClass, aList: List?, callback: (Result?>) -> Unit) + abstract fun echoAsyncNullableList( + pigeon_instance: ProxyApiTestClass, + aList: List?, + callback: (Result?>) -> Unit + ) /** Returns the passed map, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncNullableMap(pigeon_instance: ProxyApiTestClass, aMap: Map?, callback: (Result?>) -> Unit) + abstract fun echoAsyncNullableMap( + pigeon_instance: ProxyApiTestClass, + aMap: Map?, + callback: (Result?>) -> Unit + ) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ - abstract fun echoAsyncNullableEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, callback: (Result) -> Unit) + abstract fun echoAsyncNullableEnum( + pigeon_instance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum?, + callback: (Result) -> Unit + ) abstract fun staticNoop() @@ -720,60 +912,157 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest abstract fun callFlutterNoop(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) - abstract fun callFlutterThrowError(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) - - abstract fun callFlutterThrowErrorFromVoid(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) - - abstract fun callFlutterEchoBool(pigeon_instance: ProxyApiTestClass, aBool: Boolean, callback: (Result) -> Unit) - - abstract fun callFlutterEchoInt(pigeon_instance: ProxyApiTestClass, anInt: Long, callback: (Result) -> Unit) - - abstract fun callFlutterEchoDouble(pigeon_instance: ProxyApiTestClass, aDouble: Double, callback: (Result) -> Unit) - - abstract fun callFlutterEchoString(pigeon_instance: ProxyApiTestClass, aString: String, callback: (Result) -> Unit) - - abstract fun callFlutterEchoUint8List(pigeon_instance: ProxyApiTestClass, aUint8List: ByteArray, callback: (Result) -> Unit) - - abstract fun callFlutterEchoList(pigeon_instance: ProxyApiTestClass, aList: List, callback: (Result>) -> Unit) - - abstract fun callFlutterEchoProxyApiList(pigeon_instance: ProxyApiTestClass, aList: List, callback: (Result>) -> Unit) - - abstract fun callFlutterEchoMap(pigeon_instance: ProxyApiTestClass, aMap: Map, callback: (Result>) -> Unit) - - abstract fun callFlutterEchoProxyApiMap(pigeon_instance: ProxyApiTestClass, aMap: Map, callback: (Result>) -> Unit) - - abstract fun callFlutterEchoEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, callback: (Result) -> Unit) - - abstract fun callFlutterEchoProxyApi(pigeon_instance: ProxyApiTestClass, aProxyApi: com.example.test_plugin.ProxyApiSuperClass, callback: (Result) -> Unit) - - abstract fun callFlutterEchoNullableBool(pigeon_instance: ProxyApiTestClass, aBool: Boolean?, callback: (Result) -> Unit) - - abstract fun callFlutterEchoNullableInt(pigeon_instance: ProxyApiTestClass, anInt: Long?, callback: (Result) -> Unit) - - abstract fun callFlutterEchoNullableDouble(pigeon_instance: ProxyApiTestClass, aDouble: Double?, callback: (Result) -> Unit) - - abstract fun callFlutterEchoNullableString(pigeon_instance: ProxyApiTestClass, aString: String?, callback: (Result) -> Unit) - - abstract fun callFlutterEchoNullableUint8List(pigeon_instance: ProxyApiTestClass, aUint8List: ByteArray?, callback: (Result) -> Unit) - - abstract fun callFlutterEchoNullableList(pigeon_instance: ProxyApiTestClass, aList: List?, callback: (Result?>) -> Unit) - - abstract fun callFlutterEchoNullableMap(pigeon_instance: ProxyApiTestClass, aMap: Map?, callback: (Result?>) -> Unit) - - abstract fun callFlutterEchoNullableEnum(pigeon_instance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, callback: (Result) -> Unit) - - abstract fun callFlutterEchoNullableProxyApi(pigeon_instance: ProxyApiTestClass, aProxyApi: com.example.test_plugin.ProxyApiSuperClass?, callback: (Result) -> Unit) - - abstract fun callFlutterNoopAsync(pigeon_instance: ProxyApiTestClass, callback: (Result) -> Unit) - - abstract fun callFlutterEchoAsyncString(pigeon_instance: ProxyApiTestClass, aString: String, callback: (Result) -> Unit) + abstract fun callFlutterThrowError( + pigeon_instance: ProxyApiTestClass, + callback: (Result) -> Unit + ) + + abstract fun callFlutterThrowErrorFromVoid( + pigeon_instance: ProxyApiTestClass, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoBool( + pigeon_instance: ProxyApiTestClass, + aBool: Boolean, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoInt( + pigeon_instance: ProxyApiTestClass, + anInt: Long, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoDouble( + pigeon_instance: ProxyApiTestClass, + aDouble: Double, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoString( + pigeon_instance: ProxyApiTestClass, + aString: String, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoUint8List( + pigeon_instance: ProxyApiTestClass, + aUint8List: ByteArray, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoList( + pigeon_instance: ProxyApiTestClass, + aList: List, + callback: (Result>) -> Unit + ) + + abstract fun callFlutterEchoProxyApiList( + pigeon_instance: ProxyApiTestClass, + aList: List, + callback: (Result>) -> Unit + ) + + abstract fun callFlutterEchoMap( + pigeon_instance: ProxyApiTestClass, + aMap: Map, + callback: (Result>) -> Unit + ) + + abstract fun callFlutterEchoProxyApiMap( + pigeon_instance: ProxyApiTestClass, + aMap: Map, + callback: (Result>) -> Unit + ) + + abstract fun callFlutterEchoEnum( + pigeon_instance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoProxyApi( + pigeon_instance: ProxyApiTestClass, + aProxyApi: com.example.test_plugin.ProxyApiSuperClass, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoNullableBool( + pigeon_instance: ProxyApiTestClass, + aBool: Boolean?, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoNullableInt( + pigeon_instance: ProxyApiTestClass, + anInt: Long?, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoNullableDouble( + pigeon_instance: ProxyApiTestClass, + aDouble: Double?, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoNullableString( + pigeon_instance: ProxyApiTestClass, + aString: String?, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoNullableUint8List( + pigeon_instance: ProxyApiTestClass, + aUint8List: ByteArray?, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoNullableList( + pigeon_instance: ProxyApiTestClass, + aList: List?, + callback: (Result?>) -> Unit + ) + + abstract fun callFlutterEchoNullableMap( + pigeon_instance: ProxyApiTestClass, + aMap: Map?, + callback: (Result?>) -> Unit + ) + + abstract fun callFlutterEchoNullableEnum( + pigeon_instance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum?, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoNullableProxyApi( + pigeon_instance: ProxyApiTestClass, + aProxyApi: com.example.test_plugin.ProxyApiSuperClass?, + callback: (Result) -> Unit + ) + + abstract fun callFlutterNoopAsync( + pigeon_instance: ProxyApiTestClass, + callback: (Result) -> Unit + ) + + abstract fun callFlutterEchoAsyncString( + pigeon_instance: ProxyApiTestClass, + aString: String, + callback: (Result) -> Unit + ) companion object { @Suppress("LocalVariableName") fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, api: PigeonApiProxyApiTestClass?) { val codec = api?.pigeonRegistrar?.codec ?: ProxyApiTestsPigeonCodec() run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -814,12 +1103,51 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest val nullableMapParamArg = args[34] as Map? val nullableEnumParamArg = args[35] as ProxyApiTestEnum? val nullableProxyApiParamArg = args[36] as com.example.test_plugin.ProxyApiSuperClass? - val wrapped: List = try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.pigeon_defaultConstructor(aBoolArg,anIntArg,aDoubleArg,aStringArg,aUint8ListArg,aListArg,aMapArg,anEnumArg,aProxyApiArg,aNullableBoolArg,aNullableIntArg,aNullableDoubleArg,aNullableStringArg,aNullableUint8ListArg,aNullableListArg,aNullableMapArg,aNullableEnumArg,aNullableProxyApiArg,boolParamArg,intParamArg,doubleParamArg,stringParamArg,aUint8ListParamArg,listParamArg,mapParamArg,enumParamArg,proxyApiParamArg,nullableBoolParamArg,nullableIntParamArg,nullableDoubleParamArg,nullableStringParamArg,nullableUint8ListParamArg,nullableListParamArg,nullableMapParamArg,nullableEnumParamArg,nullableProxyApiParamArg), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance( + api.pigeon_defaultConstructor( + aBoolArg, + anIntArg, + aDoubleArg, + aStringArg, + aUint8ListArg, + aListArg, + aMapArg, + anEnumArg, + aProxyApiArg, + aNullableBoolArg, + aNullableIntArg, + aNullableDoubleArg, + aNullableStringArg, + aNullableUint8ListArg, + aNullableListArg, + aNullableMapArg, + aNullableEnumArg, + aNullableProxyApiArg, + boolParamArg, + intParamArg, + doubleParamArg, + stringParamArg, + aUint8ListParamArg, + listParamArg, + mapParamArg, + enumParamArg, + proxyApiParamArg, + nullableBoolParamArg, + nullableIntParamArg, + nullableDoubleParamArg, + nullableStringParamArg, + nullableUint8ListParamArg, + nullableListParamArg, + nullableMapParamArg, + nullableEnumParamArg, + nullableProxyApiParamArg), + pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -827,7 +1155,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -850,12 +1182,33 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest val aNullableMapArg = args[16] as Map? val aNullableEnumArg = args[17] as ProxyApiTestEnum? val aNullableProxyApiArg = args[18] as com.example.test_plugin.ProxyApiSuperClass? - val wrapped: List = try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.namedConstructor(aBoolArg,anIntArg,aDoubleArg,aStringArg,aUint8ListArg,aListArg,aMapArg,anEnumArg,aProxyApiArg,aNullableBoolArg,aNullableIntArg,aNullableDoubleArg,aNullableStringArg,aNullableUint8ListArg,aNullableListArg,aNullableMapArg,aNullableEnumArg,aNullableProxyApiArg), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance( + api.namedConstructor( + aBoolArg, + anIntArg, + aDoubleArg, + aStringArg, + aUint8ListArg, + aListArg, + aMapArg, + anEnumArg, + aProxyApiArg, + aNullableBoolArg, + aNullableIntArg, + aNullableDoubleArg, + aNullableStringArg, + aNullableUint8ListArg, + aNullableListArg, + aNullableMapArg, + aNullableEnumArg, + aNullableProxyApiArg), + pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -863,18 +1216,24 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val pigeon_identifierArg = args[1] as Long - val wrapped: List = try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.attachedField(pigeon_instanceArg), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance( + api.attachedField(pigeon_instanceArg), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -882,17 +1241,23 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_identifierArg = args[0] as Long - val wrapped: List = try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.staticAttachedField(), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance( + api.staticAttachedField(), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -900,17 +1265,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass - val wrapped: List = try { - api.noop(pigeon_instanceArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.noop(pigeon_instanceArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -918,16 +1288,21 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass - val wrapped: List = try { - listOf(api.throwError(pigeon_instanceArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.throwError(pigeon_instanceArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -935,17 +1310,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass - val wrapped: List = try { - api.throwErrorFromVoid(pigeon_instanceArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.throwErrorFromVoid(pigeon_instanceArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -953,16 +1333,21 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass - val wrapped: List = try { - listOf(api.throwFlutterError(pigeon_instanceArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.throwFlutterError(pigeon_instanceArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -970,17 +1355,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anIntArg = args[1] as Long - val wrapped: List = try { - listOf(api.echoInt(pigeon_instanceArg, anIntArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoInt(pigeon_instanceArg, anIntArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -988,17 +1378,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aDoubleArg = args[1] as Double - val wrapped: List = try { - listOf(api.echoDouble(pigeon_instanceArg, aDoubleArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoDouble(pigeon_instanceArg, aDoubleArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1006,17 +1401,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aBoolArg = args[1] as Boolean - val wrapped: List = try { - listOf(api.echoBool(pigeon_instanceArg, aBoolArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoBool(pigeon_instanceArg, aBoolArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1024,17 +1424,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aStringArg = args[1] as String - val wrapped: List = try { - listOf(api.echoString(pigeon_instanceArg, aStringArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoString(pigeon_instanceArg, aStringArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1042,17 +1447,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aUint8ListArg = args[1] as ByteArray - val wrapped: List = try { - listOf(api.echoUint8List(pigeon_instanceArg, aUint8ListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoUint8List(pigeon_instanceArg, aUint8ListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1060,17 +1470,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anObjectArg = args[1] as Any - val wrapped: List = try { - listOf(api.echoObject(pigeon_instanceArg, anObjectArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoObject(pigeon_instanceArg, anObjectArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1078,17 +1493,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aListArg = args[1] as List - val wrapped: List = try { - listOf(api.echoList(pigeon_instanceArg, aListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoList(pigeon_instanceArg, aListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1096,17 +1516,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aListArg = args[1] as List - val wrapped: List = try { - listOf(api.echoProxyApiList(pigeon_instanceArg, aListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoProxyApiList(pigeon_instanceArg, aListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1114,17 +1539,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map - val wrapped: List = try { - listOf(api.echoMap(pigeon_instanceArg, aMapArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoMap(pigeon_instanceArg, aMapArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1132,17 +1562,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map - val wrapped: List = try { - listOf(api.echoProxyApiMap(pigeon_instanceArg, aMapArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoProxyApiMap(pigeon_instanceArg, aMapArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1150,17 +1585,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anEnumArg = args[1] as ProxyApiTestEnum - val wrapped: List = try { - listOf(api.echoEnum(pigeon_instanceArg, anEnumArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoEnum(pigeon_instanceArg, anEnumArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1168,17 +1608,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aProxyApiArg = args[1] as com.example.test_plugin.ProxyApiSuperClass - val wrapped: List = try { - listOf(api.echoProxyApi(pigeon_instanceArg, aProxyApiArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoProxyApi(pigeon_instanceArg, aProxyApiArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1186,17 +1631,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableIntArg = args[1] as Long? - val wrapped: List = try { - listOf(api.echoNullableInt(pigeon_instanceArg, aNullableIntArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableInt(pigeon_instanceArg, aNullableIntArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1204,17 +1654,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableDoubleArg = args[1] as Double? - val wrapped: List = try { - listOf(api.echoNullableDouble(pigeon_instanceArg, aNullableDoubleArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableDouble(pigeon_instanceArg, aNullableDoubleArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1222,17 +1677,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableBoolArg = args[1] as Boolean? - val wrapped: List = try { - listOf(api.echoNullableBool(pigeon_instanceArg, aNullableBoolArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableBool(pigeon_instanceArg, aNullableBoolArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1240,17 +1700,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableStringArg = args[1] as String? - val wrapped: List = try { - listOf(api.echoNullableString(pigeon_instanceArg, aNullableStringArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableString(pigeon_instanceArg, aNullableStringArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1258,17 +1723,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableUint8ListArg = args[1] as ByteArray? - val wrapped: List = try { - listOf(api.echoNullableUint8List(pigeon_instanceArg, aNullableUint8ListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableUint8List(pigeon_instanceArg, aNullableUint8ListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1276,17 +1746,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableObjectArg = args[1] - val wrapped: List = try { - listOf(api.echoNullableObject(pigeon_instanceArg, aNullableObjectArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableObject(pigeon_instanceArg, aNullableObjectArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1294,17 +1769,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableListArg = args[1] as List? - val wrapped: List = try { - listOf(api.echoNullableList(pigeon_instanceArg, aNullableListArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableList(pigeon_instanceArg, aNullableListArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1312,17 +1792,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableMapArg = args[1] as Map? - val wrapped: List = try { - listOf(api.echoNullableMap(pigeon_instanceArg, aNullableMapArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableMap(pigeon_instanceArg, aNullableMapArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1330,17 +1815,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableEnumArg = args[1] as ProxyApiTestEnum? - val wrapped: List = try { - listOf(api.echoNullableEnum(pigeon_instanceArg, aNullableEnumArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableEnum(pigeon_instanceArg, aNullableEnumArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1348,17 +1838,22 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aNullableProxyApiArg = args[1] as com.example.test_plugin.ProxyApiSuperClass? - val wrapped: List = try { - listOf(api.echoNullableProxyApi(pigeon_instanceArg, aNullableProxyApiArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoNullableProxyApi(pigeon_instanceArg, aNullableProxyApiArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1366,7 +1861,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1385,7 +1884,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1406,7 +1909,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1427,7 +1934,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1448,7 +1959,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1469,7 +1984,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1490,7 +2009,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1511,7 +2034,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1532,7 +2059,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1553,7 +2084,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1574,7 +2109,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1594,7 +2133,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1613,7 +2156,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1633,7 +2180,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1654,7 +2205,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1675,7 +2230,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1696,7 +2255,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1717,13 +2280,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aUint8ListArg = args[1] as ByteArray? - api.echoAsyncNullableUint8List(pigeon_instanceArg, aUint8ListArg) { result: Result -> + api.echoAsyncNullableUint8List(pigeon_instanceArg, aUint8ListArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -1738,7 +2306,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1759,7 +2331,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1780,13 +2356,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map? - api.echoAsyncNullableMap(pigeon_instanceArg, aMapArg) { result: Result?> -> + api.echoAsyncNullableMap(pigeon_instanceArg, aMapArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -1801,13 +2382,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anEnumArg = args[1] as ProxyApiTestEnum? - api.echoAsyncNullableEnum(pigeon_instanceArg, anEnumArg) { result: Result -> + api.echoAsyncNullableEnum(pigeon_instanceArg, anEnumArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -1822,15 +2408,20 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.staticNoop() - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.staticNoop() + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1838,16 +2429,21 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val aStringArg = args[0] as String - val wrapped: List = try { - listOf(api.echoStaticString(aStringArg)) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.echoStaticString(aStringArg)) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -1855,10 +2451,14 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.staticAsyncNoop{ result: Result -> + api.staticAsyncNoop { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -1872,7 +2472,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1891,7 +2495,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1911,7 +2519,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1930,7 +2542,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1951,7 +2567,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1972,7 +2592,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -1993,7 +2617,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2014,13 +2642,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aUint8ListArg = args[1] as ByteArray - api.callFlutterEchoUint8List(pigeon_instanceArg, aUint8ListArg) { result: Result -> + api.callFlutterEchoUint8List(pigeon_instanceArg, aUint8ListArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2035,7 +2668,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2056,13 +2693,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aListArg = args[1] as List - api.callFlutterEchoProxyApiList(pigeon_instanceArg, aListArg) { result: Result> -> + api.callFlutterEchoProxyApiList(pigeon_instanceArg, aListArg) { + result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2077,13 +2719,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map - api.callFlutterEchoMap(pigeon_instanceArg, aMapArg) { result: Result> -> + api.callFlutterEchoMap(pigeon_instanceArg, aMapArg) { result: Result> + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2098,13 +2745,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map - api.callFlutterEchoProxyApiMap(pigeon_instanceArg, aMapArg) { result: Result> -> + api.callFlutterEchoProxyApiMap(pigeon_instanceArg, aMapArg) { + result: Result> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2119,13 +2771,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anEnumArg = args[1] as ProxyApiTestEnum - api.callFlutterEchoEnum(pigeon_instanceArg, anEnumArg) { result: Result -> + api.callFlutterEchoEnum(pigeon_instanceArg, anEnumArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2140,13 +2797,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aProxyApiArg = args[1] as com.example.test_plugin.ProxyApiSuperClass - api.callFlutterEchoProxyApi(pigeon_instanceArg, aProxyApiArg) { result: Result -> + api.callFlutterEchoProxyApi(pigeon_instanceArg, aProxyApiArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2161,13 +2823,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aBoolArg = args[1] as Boolean? - api.callFlutterEchoNullableBool(pigeon_instanceArg, aBoolArg) { result: Result -> + api.callFlutterEchoNullableBool(pigeon_instanceArg, aBoolArg) { result: Result + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2182,7 +2849,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2203,13 +2874,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aDoubleArg = args[1] as Double? - api.callFlutterEchoNullableDouble(pigeon_instanceArg, aDoubleArg) { result: Result -> + api.callFlutterEchoNullableDouble(pigeon_instanceArg, aDoubleArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2224,13 +2900,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aStringArg = args[1] as String? - api.callFlutterEchoNullableString(pigeon_instanceArg, aStringArg) { result: Result -> + api.callFlutterEchoNullableString(pigeon_instanceArg, aStringArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2245,13 +2926,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aUint8ListArg = args[1] as ByteArray? - api.callFlutterEchoNullableUint8List(pigeon_instanceArg, aUint8ListArg) { result: Result -> + api.callFlutterEchoNullableUint8List(pigeon_instanceArg, aUint8ListArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2266,13 +2952,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aListArg = args[1] as List? - api.callFlutterEchoNullableList(pigeon_instanceArg, aListArg) { result: Result?> -> + api.callFlutterEchoNullableList(pigeon_instanceArg, aListArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2287,13 +2978,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aMapArg = args[1] as Map? - api.callFlutterEchoNullableMap(pigeon_instanceArg, aMapArg) { result: Result?> -> + api.callFlutterEchoNullableMap(pigeon_instanceArg, aMapArg) { + result: Result?> -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2308,13 +3004,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val anEnumArg = args[1] as ProxyApiTestEnum? - api.callFlutterEchoNullableEnum(pigeon_instanceArg, anEnumArg) { result: Result -> + api.callFlutterEchoNullableEnum(pigeon_instanceArg, anEnumArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2329,13 +3030,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aProxyApiArg = args[1] as com.example.test_plugin.ProxyApiSuperClass? - api.callFlutterEchoNullableProxyApi(pigeon_instanceArg, aProxyApiArg) { result: Result -> + api.callFlutterEchoNullableProxyApi(pigeon_instanceArg, aProxyApiArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2350,7 +3056,11 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -2369,13 +3079,18 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ProxyApiTestClass val aStringArg = args[1] as String - api.callFlutterEchoAsyncString(pigeon_instanceArg, aStringArg) { result: Result -> + api.callFlutterEchoAsyncString(pigeon_instanceArg, aStringArg) { result: Result + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(ProxyApiTestsPigeonUtils.wrapError(error)) @@ -2394,36 +3109,37 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest @Suppress("LocalVariableName", "FunctionName") /** Creates a Dart instance of ProxyApiTestClass and attaches it to [pigeon_instanceArg]. */ - fun pigeon_newInstance(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) -{ + fun pigeon_newInstance(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) - } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback(Result.success(Unit)) - } else { + } else { callback( Result.failure( - ProxyApiTestsError("new-instance-error", "Attempting to create a new Dart instance of ProxyApiTestClass, but the class has a nonnull callback method.", ""))) + ProxyApiTestsError( + "new-instance-error", + "Attempting to create a new Dart instance of ProxyApiTestClass, but the class has a nonnull callback method.", + ""))) } } - /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic calling. - */ - fun flutterNoop(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) -{ + /** A no-op function taking no arguments and returning no value, to sanity test basic calling. */ + fun flutterNoop(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterNoop` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterNoop` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger @@ -2433,125 +3149,160 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Responds with an error from an async function returning a value. */ - fun flutterThrowError(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) -{ + fun flutterThrowError(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterThrowError` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterThrowError` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Responds with an error from an async void function. */ - fun flutterThrowErrorFromVoid(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) -{ + fun flutterThrowErrorFromVoid( + pigeon_instanceArg: ProxyApiTestClass, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterThrowErrorFromVoid` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterThrowErrorFromVoid` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed boolean, to test serialization and deserialization. */ - fun flutterEchoBool(pigeon_instanceArg: ProxyApiTestClass, aBoolArg: Boolean, callback: (Result) -> Unit) -{ + fun flutterEchoBool( + pigeon_instanceArg: ProxyApiTestClass, + aBoolArg: Boolean, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoBool` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoBool` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aBoolArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Boolean callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed int, to test serialization and deserialization. */ - fun flutterEchoInt(pigeon_instanceArg: ProxyApiTestClass, anIntArg: Long, callback: (Result) -> Unit) -{ + fun flutterEchoInt( + pigeon_instanceArg: ProxyApiTestClass, + anIntArg: Long, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoInt` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoInt` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger @@ -2561,204 +3312,284 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest channel.send(listOf(pigeon_instanceArg, anIntArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Long callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed double, to test serialization and deserialization. */ - fun flutterEchoDouble(pigeon_instanceArg: ProxyApiTestClass, aDoubleArg: Double, callback: (Result) -> Unit) -{ + fun flutterEchoDouble( + pigeon_instanceArg: ProxyApiTestClass, + aDoubleArg: Double, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoDouble` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoDouble` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aDoubleArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Double callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed string, to test serialization and deserialization. */ - fun flutterEchoString(pigeon_instanceArg: ProxyApiTestClass, aStringArg: String, callback: (Result) -> Unit) -{ + fun flutterEchoString( + pigeon_instanceArg: ProxyApiTestClass, + aStringArg: String, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoString` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoString` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aStringArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed byte list, to test serialization and deserialization. */ - fun flutterEchoUint8List(pigeon_instanceArg: ProxyApiTestClass, aListArg: ByteArray, callback: (Result) -> Unit) -{ + fun flutterEchoUint8List( + pigeon_instanceArg: ProxyApiTestClass, + aListArg: ByteArray, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoUint8List` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoUint8List` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as ByteArray callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun flutterEchoList(pigeon_instanceArg: ProxyApiTestClass, aListArg: List, callback: (Result>) -> Unit) -{ + fun flutterEchoList( + pigeon_instanceArg: ProxyApiTestClass, + aListArg: List, + callback: (Result>) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoList` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoList` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } - /** - * Returns the passed list with ProxyApis, to test serialization and - * deserialization. - */ - fun flutterEchoProxyApiList(pigeon_instanceArg: ProxyApiTestClass, aListArg: List, callback: (Result>) -> Unit) -{ + /** Returns the passed list with ProxyApis, to test serialization and deserialization. */ + fun flutterEchoProxyApiList( + pigeon_instanceArg: ProxyApiTestClass, + aListArg: List, + callback: (Result>) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoProxyApiList` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoProxyApiList` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as List callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun flutterEchoMap(pigeon_instanceArg: ProxyApiTestClass, aMapArg: Map, callback: (Result>) -> Unit) -{ + fun flutterEchoMap( + pigeon_instanceArg: ProxyApiTestClass, + aMapArg: Map, + callback: (Result>) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoMap` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoMap` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger @@ -2768,498 +3599,643 @@ abstract class PigeonApiProxyApiTestClass(open val pigeonRegistrar: ProxyApiTest channel.send(listOf(pigeon_instanceArg, aMapArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } - /** - * Returns the passed map with ProxyApis, to test serialization and - * deserialization. - */ - fun flutterEchoProxyApiMap(pigeon_instanceArg: ProxyApiTestClass, aMapArg: Map, callback: (Result>) -> Unit) -{ + /** Returns the passed map with ProxyApis, to test serialization and deserialization. */ + fun flutterEchoProxyApiMap( + pigeon_instanceArg: ProxyApiTestClass, + aMapArg: Map, + callback: (Result>) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoProxyApiMap` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoProxyApiMap` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aMapArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as Map callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun flutterEchoEnum(pigeon_instanceArg: ProxyApiTestClass, anEnumArg: ProxyApiTestEnum, callback: (Result) -> Unit) -{ + fun flutterEchoEnum( + pigeon_instanceArg: ProxyApiTestClass, + anEnumArg: ProxyApiTestEnum, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoEnum` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoEnum` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, anEnumArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as ProxyApiTestEnum callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed ProxyApi to test serialization and deserialization. */ - fun flutterEchoProxyApi(pigeon_instanceArg: ProxyApiTestClass, aProxyApiArg: com.example.test_plugin.ProxyApiSuperClass, callback: (Result) -> Unit) -{ + fun flutterEchoProxyApi( + pigeon_instanceArg: ProxyApiTestClass, + aProxyApiArg: com.example.test_plugin.ProxyApiSuperClass, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoProxyApi` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoProxyApi` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aProxyApiArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as com.example.test_plugin.ProxyApiSuperClass callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed boolean, to test serialization and deserialization. */ - fun flutterEchoNullableBool(pigeon_instanceArg: ProxyApiTestClass, aBoolArg: Boolean?, callback: (Result) -> Unit) -{ + fun flutterEchoNullableBool( + pigeon_instanceArg: ProxyApiTestClass, + aBoolArg: Boolean?, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableBool` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableBool` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aBoolArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as Boolean? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed int, to test serialization and deserialization. */ - fun flutterEchoNullableInt(pigeon_instanceArg: ProxyApiTestClass, anIntArg: Long?, callback: (Result) -> Unit) -{ + fun flutterEchoNullableInt( + pigeon_instanceArg: ProxyApiTestClass, + anIntArg: Long?, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableInt` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableInt` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, anIntArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as Long? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed double, to test serialization and deserialization. */ - fun flutterEchoNullableDouble(pigeon_instanceArg: ProxyApiTestClass, aDoubleArg: Double?, callback: (Result) -> Unit) -{ + fun flutterEchoNullableDouble( + pigeon_instanceArg: ProxyApiTestClass, + aDoubleArg: Double?, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableDouble` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableDouble` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aDoubleArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as Double? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed string, to test serialization and deserialization. */ - fun flutterEchoNullableString(pigeon_instanceArg: ProxyApiTestClass, aStringArg: String?, callback: (Result) -> Unit) -{ + fun flutterEchoNullableString( + pigeon_instanceArg: ProxyApiTestClass, + aStringArg: String?, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableString` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableString` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aStringArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as String? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed byte list, to test serialization and deserialization. */ - fun flutterEchoNullableUint8List(pigeon_instanceArg: ProxyApiTestClass, aListArg: ByteArray?, callback: (Result) -> Unit) -{ + fun flutterEchoNullableUint8List( + pigeon_instanceArg: ProxyApiTestClass, + aListArg: ByteArray?, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableUint8List` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableUint8List` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as ByteArray? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed list, to test serialization and deserialization. */ - fun flutterEchoNullableList(pigeon_instanceArg: ProxyApiTestClass, aListArg: List?, callback: (Result?>) -> Unit) -{ + fun flutterEchoNullableList( + pigeon_instanceArg: ProxyApiTestClass, + aListArg: List?, + callback: (Result?>) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableList` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableList` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aListArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as List? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed map, to test serialization and deserialization. */ - fun flutterEchoNullableMap(pigeon_instanceArg: ProxyApiTestClass, aMapArg: Map?, callback: (Result?>) -> Unit) -{ + fun flutterEchoNullableMap( + pigeon_instanceArg: ProxyApiTestClass, + aMapArg: Map?, + callback: (Result?>) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableMap` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableMap` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aMapArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as Map? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed enum to test serialization and deserialization. */ - fun flutterEchoNullableEnum(pigeon_instanceArg: ProxyApiTestClass, anEnumArg: ProxyApiTestEnum?, callback: (Result) -> Unit) -{ + fun flutterEchoNullableEnum( + pigeon_instanceArg: ProxyApiTestClass, + anEnumArg: ProxyApiTestEnum?, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableEnum` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableEnum` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, anEnumArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as ProxyApiTestEnum? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed ProxyApi to test serialization and deserialization. */ - fun flutterEchoNullableProxyApi(pigeon_instanceArg: ProxyApiTestClass, aProxyApiArg: com.example.test_plugin.ProxyApiSuperClass?, callback: (Result) -> Unit) -{ + fun flutterEchoNullableProxyApi( + pigeon_instanceArg: ProxyApiTestClass, + aProxyApiArg: com.example.test_plugin.ProxyApiSuperClass?, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoNullableProxyApi` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoNullableProxyApi` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aProxyApiArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { val output = it[0] as com.example.test_plugin.ProxyApiSuperClass? callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** - * A no-op function taking no arguments and returning no value, to sanity - * test basic asynchronous calling. + * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous + * calling. */ - fun flutterNoopAsync(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) -{ + fun flutterNoopAsync(pigeon_instanceArg: ProxyApiTestClass, callback: (Result) -> Unit) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterNoopAsync` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterNoopAsync` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } /** Returns the passed in generic Object asynchronously. */ - fun flutterEchoAsyncString(pigeon_instanceArg: ProxyApiTestClass, aStringArg: String, callback: (Result) -> Unit) -{ + fun flutterEchoAsyncString( + pigeon_instanceArg: ProxyApiTestClass, + aStringArg: String, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiTestClass.flutterEchoAsyncString` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiTestClass.flutterEchoAsyncString` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg, aStringArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else if (it[0] == null) { - callback(Result.failure(ProxyApiTestsError("null-error", "Flutter api returned null value for non-null return value.", ""))) + callback( + Result.failure( + ProxyApiTestsError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) } else { val output = it[0] as String callback(Result.success(output)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } @Suppress("FunctionName") /** An implementation of [PigeonApiProxyApiSuperClass] used to access callback methods */ - fun pigeon_getPigeonApiProxyApiSuperClass(): PigeonApiProxyApiSuperClass - { + fun pigeon_getPigeonApiProxyApiSuperClass(): PigeonApiProxyApiSuperClass { return pigeonRegistrar.getPigeonApiProxyApiSuperClass() } @Suppress("FunctionName") /** An implementation of [PigeonApiProxyApiInterface] used to access callback methods */ - fun pigeon_getPigeonApiProxyApiInterface(): PigeonApiProxyApiInterface - { + fun pigeon_getPigeonApiProxyApiInterface(): PigeonApiProxyApiInterface { return pigeonRegistrar.getPigeonApiProxyApiInterface() } - } /** ProxyApi to serve as a super class to the core ProxyApi class. */ @Suppress("UNCHECKED_CAST") -abstract class PigeonApiProxyApiSuperClass(open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar) { +abstract class PigeonApiProxyApiSuperClass( + open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar +) { abstract fun pigeon_defaultConstructor(): com.example.test_plugin.ProxyApiSuperClass abstract fun aSuperMethod(pigeon_instance: com.example.test_plugin.ProxyApiSuperClass) @@ -3269,17 +4245,23 @@ abstract class PigeonApiProxyApiSuperClass(open val pigeonRegistrar: ProxyApiTes fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, api: PigeonApiProxyApiSuperClass?) { val codec = api?.pigeonRegistrar?.codec ?: ProxyApiTestsPigeonCodec() run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_identifierArg = args[0] as Long - val wrapped: List = try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.pigeon_defaultConstructor(), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance( + api.pigeon_defaultConstructor(), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3287,17 +4269,22 @@ abstract class PigeonApiProxyApiSuperClass(open val pigeonRegistrar: ProxyApiTes } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as com.example.test_plugin.ProxyApiSuperClass - val wrapped: List = try { - api.aSuperMethod(pigeon_instanceArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.aSuperMethod(pigeon_instanceArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3309,101 +4296,118 @@ abstract class PigeonApiProxyApiSuperClass(open val pigeonRegistrar: ProxyApiTes @Suppress("LocalVariableName", "FunctionName") /** Creates a Dart instance of ProxyApiSuperClass and attaches it to [pigeon_instanceArg]. */ - fun pigeon_newInstance(pigeon_instanceArg: com.example.test_plugin.ProxyApiSuperClass, callback: (Result) -> Unit) -{ + fun pigeon_newInstance( + pigeon_instanceArg: com.example.test_plugin.ProxyApiSuperClass, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) - } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback(Result.success(Unit)) - } else { - val pigeon_identifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) + } else { + val pigeon_identifierArg = + pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_identifierArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } - } /** ProxyApi to serve as an interface to the core ProxyApi class. */ @Suppress("UNCHECKED_CAST") -open class PigeonApiProxyApiInterface(open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar) { +open class PigeonApiProxyApiInterface( + open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar +) { @Suppress("LocalVariableName", "FunctionName") /** Creates a Dart instance of ProxyApiInterface and attaches it to [pigeon_instanceArg]. */ - fun pigeon_newInstance(pigeon_instanceArg: ProxyApiInterface, callback: (Result) -> Unit) -{ + fun pigeon_newInstance(pigeon_instanceArg: ProxyApiInterface, callback: (Result) -> Unit) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) - } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback(Result.success(Unit)) - } else { - val pigeon_identifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) + } else { + val pigeon_identifierArg = + pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_identifierArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } - fun anInterfaceMethod(pigeon_instanceArg: ProxyApiInterface, callback: (Result) -> Unit) -{ + fun anInterfaceMethod(pigeon_instanceArg: ProxyApiInterface, callback: (Result) -> Unit) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) return - } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (!pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback( Result.failure( - ProxyApiTestsError("missing-instance-error", "Callback to `ProxyApiInterface.anInterfaceMethod` failed because native instance was not in the instance manager.", ""))) + ProxyApiTestsError( + "missing-instance-error", + "Callback to `ProxyApiInterface.anInterfaceMethod` failed because native instance was not in the instance manager.", + ""))) return } val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_instanceArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } - } + @Suppress("UNCHECKED_CAST") -abstract class PigeonApiClassWithApiRequirement(open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar) { +abstract class PigeonApiClassWithApiRequirement( + open val pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar +) { @androidx.annotation.RequiresApi(api = 25) abstract fun pigeon_defaultConstructor(): ClassWithApiRequirement @@ -3412,38 +4416,48 @@ abstract class PigeonApiClassWithApiRequirement(open val pigeonRegistrar: ProxyA companion object { @Suppress("LocalVariableName") - fun setUpMessageHandlers(binaryMessenger: BinaryMessenger, api: PigeonApiClassWithApiRequirement?) { + fun setUpMessageHandlers( + binaryMessenger: BinaryMessenger, + api: PigeonApiClassWithApiRequirement? + ) { val codec = api?.pigeonRegistrar?.codec ?: ProxyApiTestsPigeonCodec() if (android.os.Build.VERSION.SDK_INT >= 25) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_identifierArg = args[0] as Long - val wrapped: List = try { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance(api.pigeon_defaultConstructor(), pigeon_identifierArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pigeonRegistrar.instanceManager.addDartCreatedInstance( + api.pigeon_defaultConstructor(), pigeon_identifierArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { channel.setMessageHandler(null) } } - } else { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", - codec - ) + } else { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - reply.reply(ProxyApiTestsPigeonUtils.wrapError(UnsupportedOperationException( - "Call references class `ClassWithApiRequirement`, which requires api version 25." - ))) + reply.reply( + ProxyApiTestsPigeonUtils.wrapError( + UnsupportedOperationException( + "Call references class `ClassWithApiRequirement`, which requires api version 25."))) } } else { channel.setMessageHandler(null) @@ -3451,34 +4465,40 @@ abstract class PigeonApiClassWithApiRequirement(open val pigeonRegistrar: ProxyA } if (android.os.Build.VERSION.SDK_INT >= 25) { run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", + codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pigeon_instanceArg = args[0] as ClassWithApiRequirement - val wrapped: List = try { - api.aMethod(pigeon_instanceArg) - listOf(null) - } catch (exception: Throwable) { - ProxyApiTestsPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.aMethod(pigeon_instanceArg) + listOf(null) + } catch (exception: Throwable) { + ProxyApiTestsPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { channel.setMessageHandler(null) } } - } else { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", - codec - ) + } else { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", + codec) if (api != null) { channel.setMessageHandler { _, reply -> - reply.reply(ProxyApiTestsPigeonUtils.wrapError(UnsupportedOperationException( - "Call references class `ClassWithApiRequirement`, which requires api version 25." - ))) + reply.reply( + ProxyApiTestsPigeonUtils.wrapError( + UnsupportedOperationException( + "Call references class `ClassWithApiRequirement`, which requires api version 25."))) } } else { channel.setMessageHandler(null) @@ -3490,32 +4510,37 @@ abstract class PigeonApiClassWithApiRequirement(open val pigeonRegistrar: ProxyA @Suppress("LocalVariableName", "FunctionName") /** Creates a Dart instance of ClassWithApiRequirement and attaches it to [pigeon_instanceArg]. */ @androidx.annotation.RequiresApi(api = 25) - fun pigeon_newInstance(pigeon_instanceArg: ClassWithApiRequirement, callback: (Result) -> Unit) -{ + fun pigeon_newInstance( + pigeon_instanceArg: ClassWithApiRequirement, + callback: (Result) -> Unit + ) { if (pigeonRegistrar.ignoreCallsToDart) { callback( Result.failure( ProxyApiTestsError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) - } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + } else if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { callback(Result.success(Unit)) - } else { - val pigeon_identifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) + } else { + val pigeon_identifierArg = + pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) val binaryMessenger = pigeonRegistrar.binaryMessenger val codec = pigeonRegistrar.codec - val channelName = "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(pigeon_identifierArg)) { if (it is List<*>) { if (it.size > 1) { - callback(Result.failure(ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) + callback( + Result.failure( + ProxyApiTestsError(it[0] as String, it[1] as String, it[2] as String?))) } else { callback(Result.success(Unit)) } } else { callback(Result.failure(ProxyApiTestsPigeonUtils.createConnectionError(channelName))) - } + } } } } - } diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index 17a9b0b14c46..e1e43a739400 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -60,7 +60,9 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") + return PigeonError( + code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", + details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -134,7 +136,7 @@ func deepHashCoreTests(value: Any?, hasher: inout Hasher) { if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { if doubleValue.isNaN { - hasher.combine(0x7FF8000000000000) + hasher.combine(0x7FF8_0000_0000_0000) } else { hasher.combine(doubleValue) } @@ -166,7 +168,6 @@ func deepHashCoreTests(value: Any?, hasher: inout Hasher) { } } - enum AnEnum: Int { case one = 0 case two = 1 @@ -183,7 +184,6 @@ enum AnotherEnum: Int { struct UnusedClass: Hashable { var aField: Any? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> UnusedClass? { let aField: Any? = pigeonVar_list[0] @@ -243,7 +243,6 @@ struct AllTypes: Hashable { var listMap: [Int64: [Any?]] var mapMap: [Int64: [AnyHashable?: Any?]] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllTypes? { let aBool = pigeonVar_list[0] as! Bool @@ -342,7 +341,31 @@ struct AllTypes: Hashable { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - return deepEqualsCoreTests(lhs.aBool, rhs.aBool) && deepEqualsCoreTests(lhs.anInt, rhs.anInt) && deepEqualsCoreTests(lhs.anInt64, rhs.anInt64) && deepEqualsCoreTests(lhs.aDouble, rhs.aDouble) && deepEqualsCoreTests(lhs.aByteArray, rhs.aByteArray) && deepEqualsCoreTests(lhs.a4ByteArray, rhs.a4ByteArray) && deepEqualsCoreTests(lhs.a8ByteArray, rhs.a8ByteArray) && deepEqualsCoreTests(lhs.aFloatArray, rhs.aFloatArray) && deepEqualsCoreTests(lhs.anEnum, rhs.anEnum) && deepEqualsCoreTests(lhs.anotherEnum, rhs.anotherEnum) && deepEqualsCoreTests(lhs.aString, rhs.aString) && deepEqualsCoreTests(lhs.anObject, rhs.anObject) && deepEqualsCoreTests(lhs.list, rhs.list) && deepEqualsCoreTests(lhs.stringList, rhs.stringList) && deepEqualsCoreTests(lhs.intList, rhs.intList) && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) && deepEqualsCoreTests(lhs.boolList, rhs.boolList) && deepEqualsCoreTests(lhs.enumList, rhs.enumList) && deepEqualsCoreTests(lhs.objectList, rhs.objectList) && deepEqualsCoreTests(lhs.listList, rhs.listList) && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) && deepEqualsCoreTests(lhs.intMap, rhs.intMap) && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) && deepEqualsCoreTests(lhs.listMap, rhs.listMap) && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + return deepEqualsCoreTests(lhs.aBool, rhs.aBool) && deepEqualsCoreTests(lhs.anInt, rhs.anInt) + && deepEqualsCoreTests(lhs.anInt64, rhs.anInt64) + && deepEqualsCoreTests(lhs.aDouble, rhs.aDouble) + && deepEqualsCoreTests(lhs.aByteArray, rhs.aByteArray) + && deepEqualsCoreTests(lhs.a4ByteArray, rhs.a4ByteArray) + && deepEqualsCoreTests(lhs.a8ByteArray, rhs.a8ByteArray) + && deepEqualsCoreTests(lhs.aFloatArray, rhs.aFloatArray) + && deepEqualsCoreTests(lhs.anEnum, rhs.anEnum) + && deepEqualsCoreTests(lhs.anotherEnum, rhs.anotherEnum) + && deepEqualsCoreTests(lhs.aString, rhs.aString) + && deepEqualsCoreTests(lhs.anObject, rhs.anObject) && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) + && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) } func hash(into hasher: inout Hasher) { @@ -479,7 +502,6 @@ class AllNullableTypes: Hashable { var mapMap: [Int64?: [AnyHashable?: Any?]?]? var recursiveClassMap: [Int64?: AllNullableTypes?]? - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypes? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -587,10 +609,39 @@ class AllNullableTypes: Hashable { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - if (lhs === rhs) { + if lhs === rhs { return true } - return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) && deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) && deepEqualsCoreTests(lhs.list, rhs.list) && deepEqualsCoreTests(lhs.stringList, rhs.stringList) && deepEqualsCoreTests(lhs.intList, rhs.intList) && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) && deepEqualsCoreTests(lhs.boolList, rhs.boolList) && deepEqualsCoreTests(lhs.enumList, rhs.enumList) && deepEqualsCoreTests(lhs.objectList, rhs.objectList) && deepEqualsCoreTests(lhs.listList, rhs.listList) && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.recursiveClassList, rhs.recursiveClassList) && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) && deepEqualsCoreTests(lhs.intMap, rhs.intMap) && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) && deepEqualsCoreTests(lhs.listMap, rhs.listMap) && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) && deepEqualsCoreTests(lhs.recursiveClassMap, rhs.recursiveClassMap) + return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) + && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) + && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) + && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) + && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) + && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) + && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) + && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) + && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) + && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) + && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) + && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) + && deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) + && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) + && deepEqualsCoreTests(lhs.recursiveClassList, rhs.recursiveClassList) + && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + && deepEqualsCoreTests(lhs.recursiveClassMap, rhs.recursiveClassMap) } func hash(into hasher: inout Hasher) { @@ -664,7 +715,6 @@ struct AllNullableTypesWithoutRecursion: Hashable { var listMap: [Int64?: [Any?]?]? = nil var mapMap: [Int64?: [AnyHashable?: Any?]?]? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypesWithoutRecursion? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -759,11 +809,39 @@ struct AllNullableTypesWithoutRecursion: Hashable { mapMap, ] } - static func == (lhs: AllNullableTypesWithoutRecursion, rhs: AllNullableTypesWithoutRecursion) -> Bool { + static func == (lhs: AllNullableTypesWithoutRecursion, rhs: AllNullableTypesWithoutRecursion) + -> Bool + { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) && deepEqualsCoreTests(lhs.list, rhs.list) && deepEqualsCoreTests(lhs.stringList, rhs.stringList) && deepEqualsCoreTests(lhs.intList, rhs.intList) && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) && deepEqualsCoreTests(lhs.boolList, rhs.boolList) && deepEqualsCoreTests(lhs.enumList, rhs.enumList) && deepEqualsCoreTests(lhs.objectList, rhs.objectList) && deepEqualsCoreTests(lhs.listList, rhs.listList) && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) && deepEqualsCoreTests(lhs.intMap, rhs.intMap) && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) && deepEqualsCoreTests(lhs.listMap, rhs.listMap) && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) + return deepEqualsCoreTests(lhs.aNullableBool, rhs.aNullableBool) + && deepEqualsCoreTests(lhs.aNullableInt, rhs.aNullableInt) + && deepEqualsCoreTests(lhs.aNullableInt64, rhs.aNullableInt64) + && deepEqualsCoreTests(lhs.aNullableDouble, rhs.aNullableDouble) + && deepEqualsCoreTests(lhs.aNullableByteArray, rhs.aNullableByteArray) + && deepEqualsCoreTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) + && deepEqualsCoreTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) + && deepEqualsCoreTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) + && deepEqualsCoreTests(lhs.aNullableEnum, rhs.aNullableEnum) + && deepEqualsCoreTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) + && deepEqualsCoreTests(lhs.aNullableString, rhs.aNullableString) + && deepEqualsCoreTests(lhs.aNullableObject, rhs.aNullableObject) + && deepEqualsCoreTests(lhs.list, rhs.list) + && deepEqualsCoreTests(lhs.stringList, rhs.stringList) + && deepEqualsCoreTests(lhs.intList, rhs.intList) + && deepEqualsCoreTests(lhs.doubleList, rhs.doubleList) + && deepEqualsCoreTests(lhs.boolList, rhs.boolList) + && deepEqualsCoreTests(lhs.enumList, rhs.enumList) + && deepEqualsCoreTests(lhs.objectList, rhs.objectList) + && deepEqualsCoreTests(lhs.listList, rhs.listList) + && deepEqualsCoreTests(lhs.mapList, rhs.mapList) && deepEqualsCoreTests(lhs.map, rhs.map) + && deepEqualsCoreTests(lhs.stringMap, rhs.stringMap) + && deepEqualsCoreTests(lhs.intMap, rhs.intMap) + && deepEqualsCoreTests(lhs.enumMap, rhs.enumMap) + && deepEqualsCoreTests(lhs.objectMap, rhs.objectMap) + && deepEqualsCoreTests(lhs.listMap, rhs.listMap) + && deepEqualsCoreTests(lhs.mapMap, rhs.mapMap) } func hash(into hasher: inout Hasher) { @@ -815,16 +893,17 @@ struct AllClassesWrapper: Hashable { var classMap: [Int64?: AllTypes?] var nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AllClassesWrapper? { let allNullableTypes = pigeonVar_list[0] as! AllNullableTypes - let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue(pigeonVar_list[1]) + let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( + pigeonVar_list[1]) let allTypes: AllTypes? = nilOrValue(pigeonVar_list[2]) let classList = pigeonVar_list[3] as! [AllTypes?] let nullableClassList: [AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[4]) let classMap = pigeonVar_list[5] as! [Int64?: AllTypes?] - let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue(pigeonVar_list[6]) + let nullableClassMap: [Int64?: AllNullableTypesWithoutRecursion?]? = nilOrValue( + pigeonVar_list[6]) return AllClassesWrapper( allNullableTypes: allNullableTypes, @@ -851,7 +930,14 @@ struct AllClassesWrapper: Hashable { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - return deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) && deepEqualsCoreTests(lhs.allNullableTypesWithoutRecursion, rhs.allNullableTypesWithoutRecursion) && deepEqualsCoreTests(lhs.allTypes, rhs.allTypes) && deepEqualsCoreTests(lhs.classList, rhs.classList) && deepEqualsCoreTests(lhs.nullableClassList, rhs.nullableClassList) && deepEqualsCoreTests(lhs.classMap, rhs.classMap) && deepEqualsCoreTests(lhs.nullableClassMap, rhs.nullableClassMap) + return deepEqualsCoreTests(lhs.allNullableTypes, rhs.allNullableTypes) + && deepEqualsCoreTests( + lhs.allNullableTypesWithoutRecursion, rhs.allNullableTypesWithoutRecursion) + && deepEqualsCoreTests(lhs.allTypes, rhs.allTypes) + && deepEqualsCoreTests(lhs.classList, rhs.classList) + && deepEqualsCoreTests(lhs.nullableClassList, rhs.nullableClassList) + && deepEqualsCoreTests(lhs.classMap, rhs.classMap) + && deepEqualsCoreTests(lhs.nullableClassMap, rhs.nullableClassMap) } func hash(into hasher: inout Hasher) { @@ -872,7 +958,6 @@ struct AllClassesWrapper: Hashable { struct TestMessage: Hashable { var testList: [Any?]? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TestMessage? { let testList: [Any?]? = nilOrValue(pigeonVar_list[0]) @@ -978,7 +1063,6 @@ class CoreTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = CoreTestsPigeonCodec(readerWriter: CoreTestsPigeonCodecReaderWriter()) } - /// The core interface that each host language plugin must implement in /// platform_test integration tests. /// @@ -1054,7 +1138,8 @@ protocol HostIntegrationCoreApi { /// Returns the passed object, to test serialization and deserialization. func echo(_ everything: AllNullableTypes?) throws -> AllNullableTypes? /// Returns the passed object, to test serialization and deserialization. - func echo(_ everything: AllNullableTypesWithoutRecursion?) throws -> AllNullableTypesWithoutRecursion? + func echo(_ everything: AllNullableTypesWithoutRecursion?) throws + -> AllNullableTypesWithoutRecursion? /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. func extractNestedNullableString(from wrapper: AllClassesWrapper) throws -> String? @@ -1062,9 +1147,13 @@ protocol HostIntegrationCoreApi { /// sending of nested objects. func createNestedObject(with nullableString: String?) throws -> AllClassesWrapper /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypes(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?) throws -> AllNullableTypes + func sendMultipleNullableTypes( + aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? + ) throws -> AllNullableTypes /// Returns passed in arguments of multiple types. - func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?) throws -> AllNullableTypesWithoutRecursion + func sendMultipleNullableTypesWithoutRecursion( + aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String? + ) throws -> AllNullableTypesWithoutRecursion /// Returns passed in int. func echo(_ aNullableInt: Int64?) throws -> Int64? /// Returns passed in double. @@ -1104,7 +1193,8 @@ protocol HostIntegrationCoreApi { /// Returns the passed map, to test serialization and deserialization. func echoNullableNonNull(enumMap: [AnEnum: AnEnum]?) throws -> [AnEnum: AnEnum]? /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: AllNullableTypes]? + func echoNullableNonNull(classMap: [Int64: AllNullableTypes]?) throws -> [Int64: + AllNullableTypes]? func echoNullable(_ anEnum: AnEnum?) throws -> AnEnum? func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? /// Returns passed in int. @@ -1123,7 +1213,9 @@ protocol HostIntegrationCoreApi { /// Returns the passed string asynchronously. func echoAsync(_ aString: String, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsync(_ aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) + func echoAsync( + _ aUint8List: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. func echoAsync(_ anObject: Any, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. @@ -1131,21 +1223,32 @@ protocol HostIntegrationCoreApi { /// Returns the passed list, to test asynchronous serialization and deserialization. func echoAsync(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsync(classList: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func echoAsync( + classList: [AllNullableTypes?], + completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync(_ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void) + func echoAsync( + _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void + ) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync(stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void) + func echoAsync( + stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void + ) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync(intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func echoAsync( + intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync(enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func echoAsync( + enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsync(classMap: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func echoAsync( + classMap: [Int64?: AllNullableTypes?], + completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsync(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsync(_ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func echoAsync( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. func throwAsyncError(completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. @@ -1155,9 +1258,13 @@ protocol HostIntegrationCoreApi { /// Returns the passed object, to test async serialization and deserialization. func echoAsync(_ everything: AllTypes, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoAsync(_ everything: AllNullableTypes?, completion: @escaping (Result) -> Void) + func echoAsync( + _ everything: AllNullableTypes?, + completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoAsync(_ everything: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) + func echoAsync( + _ everything: AllNullableTypesWithoutRecursion?, + completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. func echoAsyncNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. @@ -1167,29 +1274,44 @@ protocol HostIntegrationCoreApi { /// Returns the passed string asynchronously. func echoAsyncNullable(_ aString: String?, completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullable(_ aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func echoAsyncNullable( + _ aUint8List: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. func echoAsyncNullable(_ anObject: Any?, completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable(enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func echoAsyncNullable( + enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullable(classList: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func echoAsyncNullable( + classList: [AllNullableTypes?]?, + completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable(_ map: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func echoAsyncNullable( + _ map: [AnyHashable?: Any?]?, + completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable(stringMap: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func echoAsyncNullable( + stringMap: [String?: String?]?, + completion: @escaping (Result<[String?: String?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable(intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func echoAsyncNullable( + intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable(enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void) + func echoAsyncNullable( + enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void + ) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullable(classMap: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func echoAsyncNullable( + classMap: [Int64?: AllNullableTypes?]?, + completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullable(_ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func echoAsyncNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. func defaultIsMainThread() throws -> Bool @@ -1199,61 +1321,124 @@ protocol HostIntegrationCoreApi { func callFlutterNoop(completion: @escaping (Result) -> Void) func callFlutterThrowError(completion: @escaping (Result) -> Void) func callFlutterThrowErrorFromVoid(completion: @escaping (Result) -> Void) - func callFlutterEcho(_ everything: AllTypes, completion: @escaping (Result) -> Void) - func callFlutterEcho(_ everything: AllNullableTypes?, completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypes(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, completion: @escaping (Result) -> Void) - func callFlutterEcho(_ everything: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) - func callFlutterSendMultipleNullableTypesWithoutRecursion(aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ everything: AllTypes, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ everything: AllNullableTypes?, + completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypes( + aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, + completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ everything: AllNullableTypesWithoutRecursion?, + completion: @escaping (Result) -> Void) + func callFlutterSendMultipleNullableTypesWithoutRecursion( + aBool aNullableBool: Bool?, anInt aNullableInt: Int64?, aString aNullableString: String?, + completion: @escaping (Result) -> Void) func callFlutterEcho(_ aBool: Bool, completion: @escaping (Result) -> Void) func callFlutterEcho(_ anInt: Int64, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aDouble: Double, completion: @escaping (Result) -> Void) func callFlutterEcho(_ aString: String, completion: @escaping (Result) -> Void) - func callFlutterEcho(_ list: FlutterStandardTypedData, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ list: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) func callFlutterEcho(_ list: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEcho(enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) - func callFlutterEcho(classList: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull(enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) - func callFlutterEchoNonNull(classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void) - func callFlutterEcho(_ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void) - func callFlutterEcho(stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void) - func callFlutterEcho(intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) - func callFlutterEcho(enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) - func callFlutterEcho(classMap: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) - func callFlutterEchoNonNull(stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) - func callFlutterEchoNonNull(intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) - func callFlutterEchoNonNull(enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) - func callFlutterEchoNonNull(classMap: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) + func callFlutterEcho( + enumList: [AnEnum?], completion: @escaping (Result<[AnEnum?], Error>) -> Void) + func callFlutterEcho( + classList: [AllNullableTypes?], + completion: @escaping (Result<[AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull( + enumList: [AnEnum], completion: @escaping (Result<[AnEnum], Error>) -> Void) + func callFlutterEchoNonNull( + classList: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], Error>) -> Void + ) + func callFlutterEcho( + _ map: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], Error>) -> Void + ) + func callFlutterEcho( + stringMap: [String?: String?], completion: @escaping (Result<[String?: String?], Error>) -> Void + ) + func callFlutterEcho( + intMap: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], Error>) -> Void) + func callFlutterEcho( + enumMap: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], Error>) -> Void) + func callFlutterEcho( + classMap: [Int64?: AllNullableTypes?], + completion: @escaping (Result<[Int64?: AllNullableTypes?], Error>) -> Void) + func callFlutterEchoNonNull( + stringMap: [String: String], completion: @escaping (Result<[String: String], Error>) -> Void) + func callFlutterEchoNonNull( + intMap: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], Error>) -> Void) + func callFlutterEchoNonNull( + enumMap: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], Error>) -> Void) + func callFlutterEchoNonNull( + classMap: [Int64: AllNullableTypes], + completion: @escaping (Result<[Int64: AllNullableTypes], Error>) -> Void) func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) - func callFlutterEcho(_ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable(_ aDouble: Double?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable(_ aString: String?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable(_ list: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable(_ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullable(enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) - func callFlutterEchoNullable(classList: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull(enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull(classList: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable(_ map: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) - func callFlutterEchoNullable(stringMap: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, Error>) -> Void) - func callFlutterEchoNullable(intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) - func callFlutterEchoNullable(enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void) - func callFlutterEchoNullable(classMap: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) - func callFlutterEchoNullableNonNull(stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) - func callFlutterEchoNullableNonNull(intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) - func callFlutterEchoNullableNonNull(enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) - func callFlutterEchoNullableNonNull(classMap: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) - func callFlutterEchoNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullable(_ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) - func callFlutterSmallApiEcho(_ aString: String, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ anInt: Int64?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ aDouble: Double?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ aString: String?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ list: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullable( + enumList: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, Error>) -> Void) + func callFlutterEchoNullable( + classList: [AllNullableTypes?]?, + completion: @escaping (Result<[AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + enumList: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + classList: [AllNullableTypes]?, + completion: @escaping (Result<[AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable( + _ map: [AnyHashable?: Any?]?, + completion: @escaping (Result<[AnyHashable?: Any?]?, Error>) -> Void) + func callFlutterEchoNullable( + stringMap: [String?: String?]?, + completion: @escaping (Result<[String?: String?]?, Error>) -> Void) + func callFlutterEchoNullable( + intMap: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, Error>) -> Void) + func callFlutterEchoNullable( + enumMap: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, Error>) -> Void + ) + func callFlutterEchoNullable( + classMap: [Int64?: AllNullableTypes?]?, + completion: @escaping (Result<[Int64?: AllNullableTypes?]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + stringMap: [String: String]?, completion: @escaping (Result<[String: String]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + intMap: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + enumMap: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, Error>) -> Void) + func callFlutterEchoNullableNonNull( + classMap: [Int64: AllNullableTypes]?, + completion: @escaping (Result<[Int64: AllNullableTypes]?, Error>) -> Void) + func callFlutterEchoNullable( + _ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) + func callFlutterSmallApiEcho( + _ aString: String, completion: @escaping (Result) -> Void) } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class HostIntegrationCoreApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: HostIntegrationCoreApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" #if os(iOS) let taskQueue = binaryMessenger.makeBackgroundTaskQueue?() @@ -1262,7 +1447,10 @@ class HostIntegrationCoreApiSetup { #endif /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { _, reply in do { @@ -1276,7 +1464,10 @@ class HostIntegrationCoreApiSetup { noopChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAllTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1292,7 +1483,10 @@ class HostIntegrationCoreApiSetup { echoAllTypesChannel.setMessageHandler(nil) } /// Returns an error, to test error handling. - let throwErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let throwErrorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorChannel.setMessageHandler { _, reply in do { @@ -1306,7 +1500,10 @@ class HostIntegrationCoreApiSetup { throwErrorChannel.setMessageHandler(nil) } /// Returns an error from a void function, to test error handling. - let throwErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let throwErrorFromVoidChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorFromVoidChannel.setMessageHandler { _, reply in do { @@ -1320,7 +1517,10 @@ class HostIntegrationCoreApiSetup { throwErrorFromVoidChannel.setMessageHandler(nil) } /// Returns a Flutter error, to test error handling. - let throwFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let throwFlutterErrorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwFlutterErrorChannel.setMessageHandler { _, reply in do { @@ -1334,7 +1534,10 @@ class HostIntegrationCoreApiSetup { throwFlutterErrorChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1350,7 +1553,10 @@ class HostIntegrationCoreApiSetup { echoIntChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1366,7 +1572,10 @@ class HostIntegrationCoreApiSetup { echoDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean. - let echoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1382,7 +1591,10 @@ class HostIntegrationCoreApiSetup { echoBoolChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1398,7 +1610,10 @@ class HostIntegrationCoreApiSetup { echoStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List. - let echoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1414,7 +1629,10 @@ class HostIntegrationCoreApiSetup { echoUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object. - let echoObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoObjectChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1430,7 +1648,10 @@ class HostIntegrationCoreApiSetup { echoObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1446,7 +1667,10 @@ class HostIntegrationCoreApiSetup { echoListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1462,7 +1686,10 @@ class HostIntegrationCoreApiSetup { echoEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1478,7 +1705,10 @@ class HostIntegrationCoreApiSetup { echoClassListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1494,7 +1724,10 @@ class HostIntegrationCoreApiSetup { echoNonNullEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1510,7 +1743,10 @@ class HostIntegrationCoreApiSetup { echoNonNullClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1526,7 +1762,10 @@ class HostIntegrationCoreApiSetup { echoMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1542,7 +1781,10 @@ class HostIntegrationCoreApiSetup { echoStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1558,7 +1800,10 @@ class HostIntegrationCoreApiSetup { echoIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1574,7 +1819,10 @@ class HostIntegrationCoreApiSetup { echoEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1590,7 +1838,10 @@ class HostIntegrationCoreApiSetup { echoClassMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1606,7 +1857,10 @@ class HostIntegrationCoreApiSetup { echoNonNullStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1622,7 +1876,10 @@ class HostIntegrationCoreApiSetup { echoNonNullIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1638,7 +1895,10 @@ class HostIntegrationCoreApiSetup { echoNonNullEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNonNullClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1654,7 +1914,10 @@ class HostIntegrationCoreApiSetup { echoNonNullClassMapChannel.setMessageHandler(nil) } /// Returns the passed class to test nested class serialization and deserialization. - let echoClassWrapperChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoClassWrapperChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoClassWrapperChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1670,7 +1933,10 @@ class HostIntegrationCoreApiSetup { echoClassWrapperChannel.setMessageHandler(nil) } /// Returns the passed enum to test serialization and deserialization. - let echoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1686,7 +1952,10 @@ class HostIntegrationCoreApiSetup { echoEnumChannel.setMessageHandler(nil) } /// Returns the passed enum to test serialization and deserialization. - let echoAnotherEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1702,7 +1971,10 @@ class HostIntegrationCoreApiSetup { echoAnotherEnumChannel.setMessageHandler(nil) } /// Returns the default string. - let echoNamedDefaultStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNamedDefaultStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNamedDefaultStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1718,7 +1990,10 @@ class HostIntegrationCoreApiSetup { echoNamedDefaultStringChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoOptionalDefaultDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoOptionalDefaultDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1734,7 +2009,10 @@ class HostIntegrationCoreApiSetup { echoOptionalDefaultDoubleChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoRequiredIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoRequiredIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoRequiredIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1750,7 +2028,10 @@ class HostIntegrationCoreApiSetup { echoRequiredIntChannel.setMessageHandler(nil) } /// Returns the result of platform-side equality check. - let areAllNullableTypesEqualChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let areAllNullableTypesEqualChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { areAllNullableTypesEqualChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1767,7 +2048,10 @@ class HostIntegrationCoreApiSetup { areAllNullableTypesEqualChannel.setMessageHandler(nil) } /// Returns the platform-side hash code for the given object. - let getAllNullableTypesHashChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getAllNullableTypesHashChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getAllNullableTypesHashChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1783,7 +2067,10 @@ class HostIntegrationCoreApiSetup { getAllNullableTypesHashChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAllNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1799,7 +2086,10 @@ class HostIntegrationCoreApiSetup { echoAllNullableTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1816,7 +2106,10 @@ class HostIntegrationCoreApiSetup { } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - let extractNestedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let extractNestedNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { extractNestedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1833,7 +2126,10 @@ class HostIntegrationCoreApiSetup { } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. - let createNestedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let createNestedNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNestedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1849,7 +2145,10 @@ class HostIntegrationCoreApiSetup { createNestedNullableStringChannel.setMessageHandler(nil) } /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let sendMultipleNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendMultipleNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1857,7 +2156,8 @@ class HostIntegrationCoreApiSetup { let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) do { - let result = try api.sendMultipleNullableTypes(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + let result = try api.sendMultipleNullableTypes( + aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1867,7 +2167,10 @@ class HostIntegrationCoreApiSetup { sendMultipleNullableTypesChannel.setMessageHandler(nil) } /// Returns passed in arguments of multiple types. - let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let sendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1875,7 +2178,8 @@ class HostIntegrationCoreApiSetup { let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) do { - let result = try api.sendMultipleNullableTypesWithoutRecursion(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) + let result = try api.sendMultipleNullableTypesWithoutRecursion( + aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1885,7 +2189,10 @@ class HostIntegrationCoreApiSetup { sendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1901,7 +2208,10 @@ class HostIntegrationCoreApiSetup { echoNullableIntChannel.setMessageHandler(nil) } /// Returns passed in double. - let echoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1917,7 +2227,10 @@ class HostIntegrationCoreApiSetup { echoNullableDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean. - let echoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1933,7 +2246,10 @@ class HostIntegrationCoreApiSetup { echoNullableBoolChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1949,7 +2265,10 @@ class HostIntegrationCoreApiSetup { echoNullableStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List. - let echoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1965,7 +2284,10 @@ class HostIntegrationCoreApiSetup { echoNullableUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object. - let echoNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableObjectChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1981,7 +2303,10 @@ class HostIntegrationCoreApiSetup { echoNullableObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1997,7 +2322,10 @@ class HostIntegrationCoreApiSetup { echoNullableListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2013,7 +2341,10 @@ class HostIntegrationCoreApiSetup { echoNullableEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2029,7 +2360,10 @@ class HostIntegrationCoreApiSetup { echoNullableClassListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2045,7 +2379,10 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test serialization and deserialization. - let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2061,7 +2398,10 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2077,7 +2417,10 @@ class HostIntegrationCoreApiSetup { echoNullableMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2093,7 +2436,10 @@ class HostIntegrationCoreApiSetup { echoNullableStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2109,7 +2455,10 @@ class HostIntegrationCoreApiSetup { echoNullableIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2125,7 +2474,10 @@ class HostIntegrationCoreApiSetup { echoNullableEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2141,7 +2493,10 @@ class HostIntegrationCoreApiSetup { echoNullableClassMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2157,7 +2512,10 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2173,7 +2531,10 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2189,7 +2550,10 @@ class HostIntegrationCoreApiSetup { echoNullableNonNullEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test serialization and deserialization. - let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2204,7 +2568,10 @@ class HostIntegrationCoreApiSetup { } else { echoNullableNonNullClassMapChannel.setMessageHandler(nil) } - let echoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2219,7 +2586,10 @@ class HostIntegrationCoreApiSetup { } else { echoNullableEnumChannel.setMessageHandler(nil) } - let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2235,7 +2605,10 @@ class HostIntegrationCoreApiSetup { echoAnotherNullableEnumChannel.setMessageHandler(nil) } /// Returns passed in int. - let echoOptionalNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoOptionalNullableIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoOptionalNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2251,7 +2624,10 @@ class HostIntegrationCoreApiSetup { echoOptionalNullableIntChannel.setMessageHandler(nil) } /// Returns the passed in string. - let echoNamedNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoNamedNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNamedNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2268,7 +2644,10 @@ class HostIntegrationCoreApiSetup { } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - let noopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let noopAsyncChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopAsyncChannel.setMessageHandler { _, reply in api.noopAsync { result in @@ -2284,7 +2663,10 @@ class HostIntegrationCoreApiSetup { noopAsyncChannel.setMessageHandler(nil) } /// Returns passed in int asynchronously. - let echoAsyncIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2302,7 +2684,10 @@ class HostIntegrationCoreApiSetup { echoAsyncIntChannel.setMessageHandler(nil) } /// Returns passed in double asynchronously. - let echoAsyncDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2320,7 +2705,10 @@ class HostIntegrationCoreApiSetup { echoAsyncDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean asynchronously. - let echoAsyncBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2338,7 +2726,10 @@ class HostIntegrationCoreApiSetup { echoAsyncBoolChannel.setMessageHandler(nil) } /// Returns the passed string asynchronously. - let echoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2356,7 +2747,10 @@ class HostIntegrationCoreApiSetup { echoAsyncStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List asynchronously. - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2374,7 +2768,10 @@ class HostIntegrationCoreApiSetup { echoAsyncUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object asynchronously. - let echoAsyncObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncObjectChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2392,7 +2789,10 @@ class HostIntegrationCoreApiSetup { echoAsyncObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2410,7 +2810,10 @@ class HostIntegrationCoreApiSetup { echoAsyncListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2428,7 +2831,10 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2446,7 +2852,10 @@ class HostIntegrationCoreApiSetup { echoAsyncClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2464,7 +2873,10 @@ class HostIntegrationCoreApiSetup { echoAsyncMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2482,7 +2894,10 @@ class HostIntegrationCoreApiSetup { echoAsyncStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2500,7 +2915,10 @@ class HostIntegrationCoreApiSetup { echoAsyncIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2518,7 +2936,10 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2536,7 +2957,10 @@ class HostIntegrationCoreApiSetup { echoAsyncClassMapChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2554,7 +2978,10 @@ class HostIntegrationCoreApiSetup { echoAsyncEnumChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2572,7 +2999,10 @@ class HostIntegrationCoreApiSetup { echoAnotherAsyncEnumChannel.setMessageHandler(nil) } /// Responds with an error from an async function returning a value. - let throwAsyncErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorChannel.setMessageHandler { _, reply in api.throwAsyncError { result in @@ -2588,7 +3018,10 @@ class HostIntegrationCoreApiSetup { throwAsyncErrorChannel.setMessageHandler(nil) } /// Responds with an error from an async void function. - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorFromVoidChannel.setMessageHandler { _, reply in api.throwAsyncErrorFromVoid { result in @@ -2604,7 +3037,10 @@ class HostIntegrationCoreApiSetup { throwAsyncErrorFromVoidChannel.setMessageHandler(nil) } /// Responds with a Flutter error from an async function returning a value. - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncFlutterErrorChannel.setMessageHandler { _, reply in api.throwAsyncFlutterError { result in @@ -2620,7 +3056,10 @@ class HostIntegrationCoreApiSetup { throwAsyncFlutterErrorChannel.setMessageHandler(nil) } /// Returns the passed object, to test async serialization and deserialization. - let echoAsyncAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncAllTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2638,7 +3077,10 @@ class HostIntegrationCoreApiSetup { echoAsyncAllTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableAllNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2656,7 +3098,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableAllNullableTypesChannel.setMessageHandler(nil) } /// Returns the passed object, to test serialization and deserialization. - let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2674,7 +3119,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } /// Returns passed in int asynchronously. - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2692,7 +3140,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableIntChannel.setMessageHandler(nil) } /// Returns passed in double asynchronously. - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2710,7 +3161,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableDoubleChannel.setMessageHandler(nil) } /// Returns the passed in boolean asynchronously. - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2728,7 +3182,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableBoolChannel.setMessageHandler(nil) } /// Returns the passed string asynchronously. - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2746,7 +3203,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableStringChannel.setMessageHandler(nil) } /// Returns the passed in Uint8List asynchronously. - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2764,7 +3224,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableUint8ListChannel.setMessageHandler(nil) } /// Returns the passed in generic Object asynchronously. - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2782,7 +3245,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableObjectChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2800,7 +3266,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2818,7 +3287,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumListChannel.setMessageHandler(nil) } /// Returns the passed list, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2836,7 +3308,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableClassListChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2854,7 +3329,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2872,7 +3350,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableStringMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2890,7 +3371,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableIntMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2908,7 +3392,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumMapChannel.setMessageHandler(nil) } /// Returns the passed map, to test asynchronous serialization and deserialization. - let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2926,7 +3413,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableClassMapChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2944,7 +3434,10 @@ class HostIntegrationCoreApiSetup { echoAsyncNullableEnumChannel.setMessageHandler(nil) } /// Returns the passed enum, to test asynchronous serialization and deserialization. - let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAnotherAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2963,7 +3456,10 @@ class HostIntegrationCoreApiSetup { } /// Returns true if the handler is run on a main thread, which should be /// true since there is no TaskQueue annotation. - let defaultIsMainThreadChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let defaultIsMainThreadChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { defaultIsMainThreadChannel.setMessageHandler { _, reply in do { @@ -2978,9 +3474,16 @@ class HostIntegrationCoreApiSetup { } /// Returns true if the handler is run on a non-main thread, which should be /// true for any platform with TaskQueue support. - let taskQueueIsBackgroundThreadChannel = taskQueue == nil - ? FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) - : FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec, taskQueue: taskQueue) + let taskQueueIsBackgroundThreadChannel = + taskQueue == nil + ? FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + : FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec, taskQueue: taskQueue) if let api = api { taskQueueIsBackgroundThreadChannel.setMessageHandler { _, reply in do { @@ -2993,7 +3496,10 @@ class HostIntegrationCoreApiSetup { } else { taskQueueIsBackgroundThreadChannel.setMessageHandler(nil) } - let callFlutterNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopChannel.setMessageHandler { _, reply in api.callFlutterNoop { result in @@ -3008,7 +3514,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterNoopChannel.setMessageHandler(nil) } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorChannel.setMessageHandler { _, reply in api.callFlutterThrowError { result in @@ -3023,7 +3532,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterThrowErrorChannel.setMessageHandler(nil) } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorFromVoidChannel.setMessageHandler { _, reply in api.callFlutterThrowErrorFromVoid { result in @@ -3038,7 +3550,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) } - let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3055,7 +3570,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllTypesChannel.setMessageHandler(nil) } - let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3072,14 +3590,19 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllNullableTypesChannel.setMessageHandler(nil) } - let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSendMultipleNullableTypesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterSendMultipleNullableTypesChannel.setMessageHandler { message, reply in let args = message as! [Any?] let aNullableBoolArg: Bool? = nilOrValue(args[0]) let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypes(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) { result in + api.callFlutterSendMultipleNullableTypes( + aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -3091,7 +3614,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterSendMultipleNullableTypesChannel.setMessageHandler(nil) } - let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAllNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3108,14 +3634,20 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAllNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } - let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSendMultipleNullableTypesWithoutRecursionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { - callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { message, reply in + callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler { + message, reply in let args = message as! [Any?] let aNullableBoolArg: Bool? = nilOrValue(args[0]) let aNullableIntArg: Int64? = nilOrValue(args[1]) let aNullableStringArg: String? = nilOrValue(args[2]) - api.callFlutterSendMultipleNullableTypesWithoutRecursion(aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg) { result in + api.callFlutterSendMultipleNullableTypesWithoutRecursion( + aBool: aNullableBoolArg, anInt: aNullableIntArg, aString: aNullableStringArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -3127,7 +3659,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterSendMultipleNullableTypesWithoutRecursionChannel.setMessageHandler(nil) } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3144,7 +3679,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoBoolChannel.setMessageHandler(nil) } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3161,7 +3699,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoIntChannel.setMessageHandler(nil) } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3178,7 +3719,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3195,7 +3739,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoStringChannel.setMessageHandler(nil) } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3212,7 +3759,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3229,7 +3779,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoListChannel.setMessageHandler(nil) } - let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3246,7 +3799,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3263,7 +3819,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3280,7 +3839,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3297,7 +3859,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullClassListChannel.setMessageHandler(nil) } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3314,7 +3879,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoMapChannel.setMessageHandler(nil) } - let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3331,7 +3899,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3348,7 +3919,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3365,7 +3939,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3382,7 +3959,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3399,7 +3979,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3416,7 +3999,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3433,7 +4019,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNonNullClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3450,7 +4039,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNonNullClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3467,7 +4059,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } - let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAnotherEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3484,7 +4079,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAnotherEnumChannel.setMessageHandler(nil) } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3501,7 +4099,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableBoolChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3518,7 +4119,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableIntChannel.setMessageHandler(nil) } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3535,7 +4139,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3552,7 +4159,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableStringChannel.setMessageHandler(nil) } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3569,7 +4179,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3586,7 +4199,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3603,7 +4219,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3620,7 +4239,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullEnumListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3637,7 +4259,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullEnumListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullClassListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullClassListChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3654,7 +4279,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullClassListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3671,7 +4299,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3688,7 +4319,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3705,7 +4339,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3722,7 +4359,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3739,7 +4379,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullStringMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3756,7 +4399,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullStringMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullIntMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3773,7 +4419,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullIntMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullEnumMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3790,7 +4439,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullEnumMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableNonNullClassMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3807,7 +4459,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableNonNullClassMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3824,7 +4479,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } - let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAnotherNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3841,7 +4499,10 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoAnotherNullableEnumChannel.setMessageHandler(nil) } - let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterSmallApiEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3873,19 +4534,30 @@ protocol FlutterIntegrationCoreApiProtocol { /// Responds with an error from an async void function. func throwErrorFromVoid(completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echo(_ everythingArg: AllTypes, completion: @escaping (Result) -> Void) + func echo( + _ everythingArg: AllTypes, completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoNullable(_ everythingArg: AllNullableTypes?, completion: @escaping (Result) -> Void) + func echoNullable( + _ everythingArg: AllNullableTypes?, + completion: @escaping (Result) -> Void) /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) + func sendMultipleNullableTypes( + aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, + aString aNullableStringArg: String?, + completion: @escaping (Result) -> Void) /// Returns the passed object, to test serialization and deserialization. - func echoNullable(_ everythingArg: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) + func echoNullable( + _ everythingArg: AllNullableTypesWithoutRecursion?, + completion: @escaping (Result) -> Void) /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) + func sendMultipleNullableTypesWithoutRecursion( + aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, + aString aNullableStringArg: String?, + completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. @@ -3895,81 +4567,141 @@ protocol FlutterIntegrationCoreApiProtocol { /// Returns the passed string, to test serialization and deserialization. func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func echo(_ listArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) + func echo( + _ listArg: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echo(enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) + func echo( + enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echo(classList classListArg: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) + func echo( + classList classListArg: [AllNullableTypes?], + completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNonNull(enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) + func echoNonNull( + enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNonNull(classList classListArg: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) + func echoNonNull( + classList classListArg: [AllNullableTypes], + completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo(_ mapArg: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) + func echo( + _ mapArg: [AnyHashable?: Any?], + completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo(stringMap stringMapArg: [String?: String?], completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) + func echo( + stringMap stringMapArg: [String?: String?], + completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo(intMap intMapArg: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) + func echo( + intMap intMapArg: [Int64?: Int64?], + completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo(enumMap enumMapArg: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) + func echo( + enumMap enumMapArg: [AnEnum?: AnEnum?], + completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echo(classMap classMapArg: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) + func echo( + classMap classMapArg: [Int64?: AllNullableTypes?], + completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(stringMap stringMapArg: [String: String], completion: @escaping (Result<[String: String], PigeonError>) -> Void) + func echoNonNull( + stringMap stringMapArg: [String: String], + completion: @escaping (Result<[String: String], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(intMap intMapArg: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) + func echoNonNull( + intMap intMapArg: [Int64: Int64], + completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(enumMap enumMapArg: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) + func echoNonNull( + enumMap enumMapArg: [AnEnum: AnEnum], + completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(classMap classMapArg: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) + func echoNonNull( + classMap classMapArg: [Int64: AllNullableTypes], + completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echo(_ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) + func echo( + _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func echoNullable(_ aDoubleArg: Double?, completion: @escaping (Result) -> Void) + func echoNullable( + _ aDoubleArg: Double?, completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func echoNullable(_ aStringArg: String?, completion: @escaping (Result) -> Void) + func echoNullable( + _ aStringArg: String?, completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable(_ listArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func echoNullable( + _ listArg: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable(_ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) + func echoNullable( + _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable(enumList enumListArg: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) + func echoNullable( + enumList enumListArg: [AnEnum?]?, + completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullable(classList classListArg: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) + func echoNullable( + classList classListArg: [AllNullableTypes?]?, + completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull(enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) + func echoNullableNonNull( + enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull(classList classListArg: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) + func echoNullableNonNull( + classList classListArg: [AllNullableTypes]?, + completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable(_ mapArg: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) + func echoNullable( + _ mapArg: [AnyHashable?: Any?]?, + completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable(stringMap stringMapArg: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) + func echoNullable( + stringMap stringMapArg: [String?: String?]?, + completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable(intMap intMapArg: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) + func echoNullable( + intMap intMapArg: [Int64?: Int64?]?, + completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable(enumMap enumMapArg: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) + func echoNullable( + enumMap enumMapArg: [AnEnum?: AnEnum?]?, + completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullable(classMap classMapArg: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) + func echoNullable( + classMap classMapArg: [Int64?: AllNullableTypes?]?, + completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(stringMap stringMapArg: [String: String]?, completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) + func echoNullableNonNull( + stringMap stringMapArg: [String: String]?, + completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(intMap intMapArg: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) + func echoNullableNonNull( + intMap intMapArg: [Int64: Int64]?, + completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(enumMap enumMapArg: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) + func echoNullableNonNull( + enumMap enumMapArg: [AnEnum: AnEnum]?, + completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(classMap classMapArg: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) + func echoNullableNonNull( + classMap classMapArg: [Int64: AllNullableTypes]?, + completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echoNullable(_ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) + func echoNullable( + _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) /// Returns the passed enum to test serialization and deserialization. - func echoNullable(_ anotherEnumArg: AnotherEnum?, completion: @escaping (Result) -> Void) + func echoNullable( + _ anotherEnumArg: AnotherEnum?, + completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) @@ -3989,8 +4721,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. func noop(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4008,8 +4742,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Responds with an error from an async function returning a value. func throwError(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4028,8 +4764,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Responds with an error from an async void function. func throwErrorFromVoid(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4046,9 +4784,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echo(_ everythingArg: AllTypes, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + _ everythingArg: AllTypes, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4060,7 +4802,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllTypes completion(.success(result)) @@ -4068,9 +4814,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echoNullable(_ everythingArg: AllNullableTypes?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ everythingArg: AllNullableTypes?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4090,10 +4841,17 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypes(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { response in + func sendMultipleNullableTypes( + aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, + aString aNullableStringArg: String?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { + response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -4104,7 +4862,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllNullableTypes completion(.success(result)) @@ -4112,9 +4874,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed object, to test serialization and deserialization. - func echoNullable(_ everythingArg: AllNullableTypesWithoutRecursion?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ everythingArg: AllNullableTypesWithoutRecursion?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([everythingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4134,10 +4901,17 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// Returns passed in arguments of multiple types. /// /// Tests multiple-arity FlutterApi handling. - func sendMultipleNullableTypesWithoutRecursion(aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, aString aNullableStringArg: String?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { response in + func sendMultipleNullableTypesWithoutRecursion( + aBool aNullableBoolArg: Bool?, anInt aNullableIntArg: Int64?, + aString aNullableStringArg: String?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([aNullableBoolArg, aNullableIntArg, aNullableStringArg] as [Any?]) { + response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -4148,7 +4922,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AllNullableTypesWithoutRecursion completion(.success(result)) @@ -4157,8 +4935,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed boolean, to test serialization and deserialization. func echo(_ aBoolArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4170,7 +4950,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Bool completion(.success(result)) @@ -4179,8 +4963,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed int, to test serialization and deserialization. func echo(_ anIntArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4192,7 +4978,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Int64 completion(.success(result)) @@ -4201,8 +4991,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed double, to test serialization and deserialization. func echo(_ aDoubleArg: Double, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4214,7 +5006,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Double completion(.success(result)) @@ -4223,8 +5019,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed string, to test serialization and deserialization. func echo(_ aStringArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4236,7 +5034,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -4244,9 +5046,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed byte list, to test serialization and deserialization. - func echo(_ listArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + _ listArg: FlutterStandardTypedData, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4258,7 +5065,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! FlutterStandardTypedData completion(.success(result)) @@ -4267,8 +5078,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed list, to test serialization and deserialization. func echo(_ listArg: [Any?], completion: @escaping (Result<[Any?], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4280,7 +5093,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Any?] completion(.success(result)) @@ -4288,9 +5105,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echo(enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + enumList enumListArg: [AnEnum?], completion: @escaping (Result<[AnEnum?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4302,7 +5123,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnEnum?] completion(.success(result)) @@ -4310,9 +5135,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echo(classList classListArg: [AllNullableTypes?], completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + classList classListArg: [AllNullableTypes?], + completion: @escaping (Result<[AllNullableTypes?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4324,7 +5154,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AllNullableTypes?] completion(.success(result)) @@ -4332,9 +5166,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNonNull(enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull( + enumList enumListArg: [AnEnum], completion: @escaping (Result<[AnEnum], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4346,7 +5184,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnEnum] completion(.success(result)) @@ -4354,9 +5196,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNonNull(classList classListArg: [AllNullableTypes], completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull( + classList classListArg: [AllNullableTypes], + completion: @escaping (Result<[AllNullableTypes], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4368,7 +5215,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AllNullableTypes] completion(.success(result)) @@ -4376,9 +5227,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo(_ mapArg: [AnyHashable?: Any?], completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + _ mapArg: [AnyHashable?: Any?], + completion: @escaping (Result<[AnyHashable?: Any?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([mapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4390,7 +5246,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [AnyHashable?: Any?] completion(.success(result)) @@ -4398,9 +5258,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo(stringMap stringMapArg: [String?: String?], completion: @escaping (Result<[String?: String?], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + stringMap stringMapArg: [String?: String?], + completion: @escaping (Result<[String?: String?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4412,7 +5277,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: String?] completion(.success(result)) @@ -4420,9 +5289,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo(intMap intMapArg: [Int64?: Int64?], completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + intMap intMapArg: [Int64?: Int64?], + completion: @escaping (Result<[Int64?: Int64?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4434,7 +5308,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64?: Int64?] completion(.success(result)) @@ -4442,9 +5320,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo(enumMap enumMapArg: [AnEnum?: AnEnum?], completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + enumMap enumMapArg: [AnEnum?: AnEnum?], + completion: @escaping (Result<[AnEnum?: AnEnum?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4456,7 +5339,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as? [AnEnum?: AnEnum?] completion(.success(result!)) @@ -4464,9 +5351,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echo(classMap classMapArg: [Int64?: AllNullableTypes?], completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + classMap classMapArg: [Int64?: AllNullableTypes?], + completion: @escaping (Result<[Int64?: AllNullableTypes?], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4478,7 +5370,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64?: AllNullableTypes?] completion(.success(result)) @@ -4486,9 +5382,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(stringMap stringMapArg: [String: String], completion: @escaping (Result<[String: String], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull( + stringMap stringMapArg: [String: String], + completion: @escaping (Result<[String: String], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4500,7 +5401,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String: String] completion(.success(result)) @@ -4508,9 +5413,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(intMap intMapArg: [Int64: Int64], completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull( + intMap intMapArg: [Int64: Int64], + completion: @escaping (Result<[Int64: Int64], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4522,7 +5432,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64: Int64] completion(.success(result)) @@ -4530,9 +5444,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(enumMap enumMapArg: [AnEnum: AnEnum], completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull( + enumMap enumMapArg: [AnEnum: AnEnum], + completion: @escaping (Result<[AnEnum: AnEnum], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4544,7 +5463,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as? [AnEnum: AnEnum] completion(.success(result!)) @@ -4552,9 +5475,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNonNull(classMap classMapArg: [Int64: AllNullableTypes], completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNonNull( + classMap classMapArg: [Int64: AllNullableTypes], + completion: @escaping (Result<[Int64: AllNullableTypes], PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4566,7 +5494,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Int64: AllNullableTypes] completion(.success(result)) @@ -4575,8 +5507,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4588,7 +5522,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AnEnum completion(.success(result)) @@ -4596,9 +5534,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echo(_ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo( + _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anotherEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4610,7 +5552,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! AnotherEnum completion(.success(result)) @@ -4619,8 +5565,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4638,9 +5586,12 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed int, to test serialization and deserialization. - func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable(_ anIntArg: Int64?, completion: @escaping (Result) -> Void) + { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4658,9 +5609,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed double, to test serialization and deserialization. - func echoNullable(_ aDoubleArg: Double?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ aDoubleArg: Double?, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4678,9 +5633,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed string, to test serialization and deserialization. - func echoNullable(_ aStringArg: String?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ aStringArg: String?, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4698,9 +5657,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed byte list, to test serialization and deserialization. - func echoNullable(_ listArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ listArg: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4718,9 +5682,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable(_ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ listArg: [Any?]?, completion: @escaping (Result<[Any?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([listArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4738,9 +5706,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable(enumList enumListArg: [AnEnum?]?, completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + enumList enumListArg: [AnEnum?]?, + completion: @escaping (Result<[AnEnum?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4758,9 +5731,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullable(classList classListArg: [AllNullableTypes?]?, completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + classList classListArg: [AllNullableTypes?]?, + completion: @escaping (Result<[AllNullableTypes?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4778,9 +5756,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull(enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull( + enumList enumListArg: [AnEnum]?, completion: @escaping (Result<[AnEnum]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4798,9 +5780,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed list, to test serialization and deserialization. - func echoNullableNonNull(classList classListArg: [AllNullableTypes]?, completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull( + classList classListArg: [AllNullableTypes]?, + completion: @escaping (Result<[AllNullableTypes]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4818,9 +5805,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable(_ mapArg: [AnyHashable?: Any?]?, completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ mapArg: [AnyHashable?: Any?]?, + completion: @escaping (Result<[AnyHashable?: Any?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([mapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4838,9 +5830,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable(stringMap stringMapArg: [String?: String?]?, completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + stringMap stringMapArg: [String?: String?]?, + completion: @escaping (Result<[String?: String?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4858,9 +5855,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable(intMap intMapArg: [Int64?: Int64?]?, completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + intMap intMapArg: [Int64?: Int64?]?, + completion: @escaping (Result<[Int64?: Int64?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4878,9 +5880,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable(enumMap enumMapArg: [AnEnum?: AnEnum?]?, completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + enumMap enumMapArg: [AnEnum?: AnEnum?]?, + completion: @escaping (Result<[AnEnum?: AnEnum?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4898,9 +5905,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullable(classMap classMapArg: [Int64?: AllNullableTypes?]?, completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + classMap classMapArg: [Int64?: AllNullableTypes?]?, + completion: @escaping (Result<[Int64?: AllNullableTypes?]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4918,9 +5930,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(stringMap stringMapArg: [String: String]?, completion: @escaping (Result<[String: String]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull( + stringMap stringMapArg: [String: String]?, + completion: @escaping (Result<[String: String]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([stringMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4938,9 +5955,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(intMap intMapArg: [Int64: Int64]?, completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull( + intMap intMapArg: [Int64: Int64]?, + completion: @escaping (Result<[Int64: Int64]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([intMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4958,9 +5980,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(enumMap enumMapArg: [AnEnum: AnEnum]?, completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull( + enumMap enumMapArg: [AnEnum: AnEnum]?, + completion: @escaping (Result<[AnEnum: AnEnum]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([enumMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4978,9 +6005,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed map, to test serialization and deserialization. - func echoNullableNonNull(classMap classMapArg: [Int64: AllNullableTypes]?, completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullableNonNull( + classMap classMapArg: [Int64: AllNullableTypes]?, + completion: @escaping (Result<[Int64: AllNullableTypes]?, PigeonError>) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([classMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -4998,9 +6030,13 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echoNullable(_ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5018,9 +6054,14 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed enum to test serialization and deserialization. - func echoNullable(_ anotherEnumArg: AnotherEnum?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoNullable( + _ anotherEnumArg: AnotherEnum?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([anotherEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5040,8 +6081,10 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5058,9 +6101,12 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } /// Returns the passed in generic Object asynchronously. - func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echoAsync(_ aStringArg: String, completion: @escaping (Result) -> Void) + { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5072,7 +6118,11 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -5091,9 +6141,13 @@ protocol HostTrivialApi { class HostTrivialApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostTrivialApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: HostTrivialApi?, messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { _, reply in do { @@ -5120,9 +6174,13 @@ protocol HostSmallApi { class HostSmallApiSetup { static var codec: FlutterStandardMessageCodec { CoreTestsPigeonCodec.shared } /// Sets up an instance of `HostSmallApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: HostSmallApi?, messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let echoChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let echoChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5139,7 +6197,9 @@ class HostSmallApiSetup { } else { echoChannel.setMessageHandler(nil) } - let voidVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let voidVoidChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { voidVoidChannel.setMessageHandler { _, reply in api.voidVoid { result in @@ -5173,9 +6233,12 @@ class FlutterSmallApi: FlutterSmallApiProtocol { var codec: CoreTestsPigeonCodec { return CoreTestsPigeonCodec.shared } - func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(_ msgArg: TestMessage, completion: @escaping (Result) -> Void) + { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([msgArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5187,16 +6250,23 @@ class FlutterSmallApi: FlutterSmallApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! TestMessage completion(.success(result)) } } } - func echo(string aStringArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func echo(string aStringArg: String, completion: @escaping (Result) -> Void) + { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5208,7 +6278,11 @@ class FlutterSmallApi: FlutterSmallApiProtocol { let details: String? = nilOrValue(listResponse[2]) completion(.failure(PigeonError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(PigeonError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift index 12799c21cdae..919c2551c26e 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift @@ -82,7 +82,9 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } let rhsKey = rhsDictionary[rhsIndex].key let rhsValue = rhsDictionary[rhsIndex].value - if !deepEqualsEventChannelTests(key, rhsKey) || !deepEqualsEventChannelTests(lhsValue, rhsValue) { + if !deepEqualsEventChannelTests(key, rhsKey) + || !deepEqualsEventChannelTests(lhsValue, rhsValue) + { return false } } @@ -104,7 +106,7 @@ func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { if doubleValue.isNaN { - hasher.combine(0x7FF8000000000000) + hasher.combine(0x7FF8_0000_0000_0000) } else { hasher.combine(doubleValue) } @@ -136,7 +138,6 @@ func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { } } - enum EventEnum: Int { case one = 0 case two = 1 @@ -250,7 +251,6 @@ class EventAllNullableTypes: Hashable { var mapMap: [Int64?: [AnyHashable?: Any?]?]? var recursiveClassMap: [Int64?: EventAllNullableTypes?]? - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> EventAllNullableTypes? { let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) @@ -358,10 +358,40 @@ class EventAllNullableTypes: Hashable { if Swift.type(of: lhs) != Swift.type(of: rhs) { return false } - if (lhs === rhs) { + if lhs === rhs { return true } - return deepEqualsEventChannelTests(lhs.aNullableBool, rhs.aNullableBool) && deepEqualsEventChannelTests(lhs.aNullableInt, rhs.aNullableInt) && deepEqualsEventChannelTests(lhs.aNullableInt64, rhs.aNullableInt64) && deepEqualsEventChannelTests(lhs.aNullableDouble, rhs.aNullableDouble) && deepEqualsEventChannelTests(lhs.aNullableByteArray, rhs.aNullableByteArray) && deepEqualsEventChannelTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) && deepEqualsEventChannelTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) && deepEqualsEventChannelTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) && deepEqualsEventChannelTests(lhs.aNullableEnum, rhs.aNullableEnum) && deepEqualsEventChannelTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) && deepEqualsEventChannelTests(lhs.aNullableString, rhs.aNullableString) && deepEqualsEventChannelTests(lhs.aNullableObject, rhs.aNullableObject) && deepEqualsEventChannelTests(lhs.allNullableTypes, rhs.allNullableTypes) && deepEqualsEventChannelTests(lhs.list, rhs.list) && deepEqualsEventChannelTests(lhs.stringList, rhs.stringList) && deepEqualsEventChannelTests(lhs.intList, rhs.intList) && deepEqualsEventChannelTests(lhs.doubleList, rhs.doubleList) && deepEqualsEventChannelTests(lhs.boolList, rhs.boolList) && deepEqualsEventChannelTests(lhs.enumList, rhs.enumList) && deepEqualsEventChannelTests(lhs.objectList, rhs.objectList) && deepEqualsEventChannelTests(lhs.listList, rhs.listList) && deepEqualsEventChannelTests(lhs.mapList, rhs.mapList) && deepEqualsEventChannelTests(lhs.recursiveClassList, rhs.recursiveClassList) && deepEqualsEventChannelTests(lhs.map, rhs.map) && deepEqualsEventChannelTests(lhs.stringMap, rhs.stringMap) && deepEqualsEventChannelTests(lhs.intMap, rhs.intMap) && deepEqualsEventChannelTests(lhs.enumMap, rhs.enumMap) && deepEqualsEventChannelTests(lhs.objectMap, rhs.objectMap) && deepEqualsEventChannelTests(lhs.listMap, rhs.listMap) && deepEqualsEventChannelTests(lhs.mapMap, rhs.mapMap) && deepEqualsEventChannelTests(lhs.recursiveClassMap, rhs.recursiveClassMap) + return deepEqualsEventChannelTests(lhs.aNullableBool, rhs.aNullableBool) + && deepEqualsEventChannelTests(lhs.aNullableInt, rhs.aNullableInt) + && deepEqualsEventChannelTests(lhs.aNullableInt64, rhs.aNullableInt64) + && deepEqualsEventChannelTests(lhs.aNullableDouble, rhs.aNullableDouble) + && deepEqualsEventChannelTests(lhs.aNullableByteArray, rhs.aNullableByteArray) + && deepEqualsEventChannelTests(lhs.aNullable4ByteArray, rhs.aNullable4ByteArray) + && deepEqualsEventChannelTests(lhs.aNullable8ByteArray, rhs.aNullable8ByteArray) + && deepEqualsEventChannelTests(lhs.aNullableFloatArray, rhs.aNullableFloatArray) + && deepEqualsEventChannelTests(lhs.aNullableEnum, rhs.aNullableEnum) + && deepEqualsEventChannelTests(lhs.anotherNullableEnum, rhs.anotherNullableEnum) + && deepEqualsEventChannelTests(lhs.aNullableString, rhs.aNullableString) + && deepEqualsEventChannelTests(lhs.aNullableObject, rhs.aNullableObject) + && deepEqualsEventChannelTests(lhs.allNullableTypes, rhs.allNullableTypes) + && deepEqualsEventChannelTests(lhs.list, rhs.list) + && deepEqualsEventChannelTests(lhs.stringList, rhs.stringList) + && deepEqualsEventChannelTests(lhs.intList, rhs.intList) + && deepEqualsEventChannelTests(lhs.doubleList, rhs.doubleList) + && deepEqualsEventChannelTests(lhs.boolList, rhs.boolList) + && deepEqualsEventChannelTests(lhs.enumList, rhs.enumList) + && deepEqualsEventChannelTests(lhs.objectList, rhs.objectList) + && deepEqualsEventChannelTests(lhs.listList, rhs.listList) + && deepEqualsEventChannelTests(lhs.mapList, rhs.mapList) + && deepEqualsEventChannelTests(lhs.recursiveClassList, rhs.recursiveClassList) + && deepEqualsEventChannelTests(lhs.map, rhs.map) + && deepEqualsEventChannelTests(lhs.stringMap, rhs.stringMap) + && deepEqualsEventChannelTests(lhs.intMap, rhs.intMap) + && deepEqualsEventChannelTests(lhs.enumMap, rhs.enumMap) + && deepEqualsEventChannelTests(lhs.objectMap, rhs.objectMap) + && deepEqualsEventChannelTests(lhs.listMap, rhs.listMap) + && deepEqualsEventChannelTests(lhs.mapMap, rhs.mapMap) + && deepEqualsEventChannelTests(lhs.recursiveClassMap, rhs.recursiveClassMap) } func hash(into hasher: inout Hasher) { @@ -410,7 +440,6 @@ protocol PlatformEvent { struct IntEvent: PlatformEvent { var value: Int64 - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IntEvent? { let value = pigeonVar_list[0] as! Int64 @@ -441,7 +470,6 @@ struct IntEvent: PlatformEvent { struct StringEvent: PlatformEvent { var value: String - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StringEvent? { let value = pigeonVar_list[0] as! String @@ -472,7 +500,6 @@ struct StringEvent: PlatformEvent { struct BoolEvent: PlatformEvent { var value: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> BoolEvent? { let value = pigeonVar_list[0] as! Bool @@ -503,7 +530,6 @@ struct BoolEvent: PlatformEvent { struct DoubleEvent: PlatformEvent { var value: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DoubleEvent? { let value = pigeonVar_list[0] as! Double @@ -534,7 +560,6 @@ struct DoubleEvent: PlatformEvent { struct ObjectsEvent: PlatformEvent { var value: Any - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ObjectsEvent? { let value = pigeonVar_list[0]! @@ -565,7 +590,6 @@ struct ObjectsEvent: PlatformEvent { struct EnumEvent: PlatformEvent { var value: EventEnum - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> EnumEvent? { let value = pigeonVar_list[0] as! EventEnum @@ -596,7 +620,6 @@ struct EnumEvent: PlatformEvent { struct ClassEvent: PlatformEvent { var value: EventAllNullableTypes - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ClassEvent? { let value = pigeonVar_list[0] as! EventAllNullableTypes @@ -709,11 +732,12 @@ private class EventChannelTestsPigeonCodecReaderWriter: FlutterStandardReaderWri } class EventChannelTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { - static let shared = EventChannelTestsPigeonCodec(readerWriter: EventChannelTestsPigeonCodecReaderWriter()) + static let shared = EventChannelTestsPigeonCodec( + readerWriter: EventChannelTestsPigeonCodecReaderWriter()) } -var eventChannelTestsPigeonMethodCodec = FlutterStandardMethodCodec(readerWriter: EventChannelTestsPigeonCodecReaderWriter()); - +var eventChannelTestsPigeonMethodCodec = FlutterStandardMethodCodec( + readerWriter: EventChannelTestsPigeonCodecReaderWriter()) private class PigeonStreamHandler: NSObject, FlutterStreamHandler { private let wrapper: PigeonEventChannelWrapper @@ -765,44 +789,53 @@ class PigeonEventSink { } class StreamIntsStreamHandler: PigeonEventChannelWrapper { - static func register(with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamIntsStreamHandler) { + static func register( + with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamIntsStreamHandler + ) { var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamInts" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel( + name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } - + class StreamEventsStreamHandler: PigeonEventChannelWrapper { - static func register(with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamEventsStreamHandler) { + static func register( + with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamEventsStreamHandler + ) { var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamEvents" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel( + name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } - + class StreamConsistentNumbersStreamHandler: PigeonEventChannelWrapper { - static func register(with messenger: FlutterBinaryMessenger, - instanceName: String = "", - streamHandler: StreamConsistentNumbersStreamHandler) { - var channelName = "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers" + static func register( + with messenger: FlutterBinaryMessenger, + instanceName: String = "", + streamHandler: StreamConsistentNumbersStreamHandler + ) { + var channelName = + "dev.flutter.pigeon.pigeon_integration_tests.EventChannelMethods.streamConsistentNumbers" if !instanceName.isEmpty { channelName += ".\(instanceName)" } let internalStreamHandler = PigeonStreamHandler(wrapper: streamHandler) - let channel = FlutterEventChannel(name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) + let channel = FlutterEventChannel( + name: channelName, binaryMessenger: messenger, codec: eventChannelTestsPigeonMethodCodec) channel.setStreamHandler(internalStreamHandler) } } - diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift index c7389071e1dd..5eb4b81803ad 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/ProxyApiTests.gen.swift @@ -60,7 +60,9 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> ProxyApiTestsError { - return ProxyApiTestsError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") + return ProxyApiTestsError( + code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", + details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -78,7 +80,6 @@ protocol ProxyApiTestsPigeonInternalFinalizerDelegate: AnyObject { func onDeinit(identifier: Int64) } - // Attaches to an object to receive a callback when the object is deallocated. internal final class ProxyApiTestsPigeonInternalFinalizer { internal static let associatedObjectKey = malloc(1)! @@ -94,14 +95,17 @@ internal final class ProxyApiTestsPigeonInternalFinalizer { } internal static func attach( - to instance: AnyObject, identifier: Int64, delegate: ProxyApiTestsPigeonInternalFinalizerDelegate + to instance: AnyObject, identifier: Int64, + delegate: ProxyApiTestsPigeonInternalFinalizerDelegate ) { let finalizer = ProxyApiTestsPigeonInternalFinalizer(identifier: identifier, delegate: delegate) objc_setAssociatedObject(instance, associatedObjectKey, finalizer, .OBJC_ASSOCIATION_RETAIN) } static func detach(from instance: AnyObject) { - let finalizer = objc_getAssociatedObject(instance, associatedObjectKey) as? ProxyApiTestsPigeonInternalFinalizer + let finalizer = + objc_getAssociatedObject(instance, associatedObjectKey) + as? ProxyApiTestsPigeonInternalFinalizer if let finalizer = finalizer { finalizer.delegate = nil objc_setAssociatedObject(instance, associatedObjectKey, nil, .OBJC_ASSOCIATION_ASSIGN) @@ -113,7 +117,6 @@ internal final class ProxyApiTestsPigeonInternalFinalizer { } } - /// Maintains instances used to communicate with the corresponding objects in Dart. /// /// Objects stored in this container are represented by an object in Dart that is also stored in @@ -217,7 +220,8 @@ final class ProxyApiTestsPigeonInstanceManager { identifiers.setObject(NSNumber(value: identifier), forKey: instance) weakInstances.setObject(instance, forKey: NSNumber(value: identifier)) strongInstances.setObject(instance, forKey: NSNumber(value: identifier)) - ProxyApiTestsPigeonInternalFinalizer.attach(to: instance, identifier: identifier, delegate: finalizerDelegate) + ProxyApiTestsPigeonInternalFinalizer.attach( + to: instance, identifier: identifier, delegate: finalizerDelegate) } /// Retrieves the identifier paired with an instance. @@ -298,7 +302,6 @@ final class ProxyApiTestsPigeonInstanceManager { } } - private class ProxyApiTestsPigeonInstanceManagerApi { /// The codec used for serializing messages. var codec: FlutterStandardMessageCodec { ProxyApiTestsPigeonCodec.shared } @@ -311,9 +314,14 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } /// Sets up an instance of `ProxyApiTestsPigeonInstanceManagerApi` to handle messages through the `binaryMessenger`. - static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager?) { + static func setUpMessageHandlers( + binaryMessenger: FlutterBinaryMessenger, instanceManager: ProxyApiTestsPigeonInstanceManager? + ) { let codec = ProxyApiTestsPigeonCodec.shared - let removeStrongReferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", binaryMessenger: binaryMessenger, codec: codec) + let removeStrongReferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference", + binaryMessenger: binaryMessenger, codec: codec) if let instanceManager = instanceManager { removeStrongReferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -328,7 +336,9 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } else { removeStrongReferenceChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.clear", + binaryMessenger: binaryMessenger, codec: codec) if let instanceManager = instanceManager { clearChannel.setMessageHandler { _, reply in do { @@ -344,9 +354,14 @@ private class ProxyApiTestsPigeonInstanceManagerApi { } /// Sends a message to the Dart `InstanceManager` to remove the strong reference of the instance associated with `identifier`. - func removeStrongReference(identifier identifierArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func removeStrongReference( + identifier identifierArg: Int64, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManager.removeStrongReference" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([identifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -366,21 +381,28 @@ private class ProxyApiTestsPigeonInstanceManagerApi { protocol ProxyApiTestsPigeonProxyApiDelegate { /// An implementation of [PigeonApiProxyApiTestClass] used to add a new Dart instance of /// `ProxyApiTestClass` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiTestClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiTestClass + func pigeonApiProxyApiTestClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) + -> PigeonApiProxyApiTestClass /// An implementation of [PigeonApiProxyApiSuperClass] used to add a new Dart instance of /// `ProxyApiSuperClass` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiSuperClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiSuperClass + func pigeonApiProxyApiSuperClass(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) + -> PigeonApiProxyApiSuperClass /// An implementation of [PigeonApiProxyApiInterface] used to add a new Dart instance of /// `ProxyApiInterface` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiInterface + func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) + -> PigeonApiProxyApiInterface /// An implementation of [PigeonApiClassWithApiRequirement] used to add a new Dart instance of /// `ClassWithApiRequirement` to the Dart `InstanceManager` and make calls to Dart. - func pigeonApiClassWithApiRequirement(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiClassWithApiRequirement + func pigeonApiClassWithApiRequirement(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) + -> PigeonApiClassWithApiRequirement } extension ProxyApiTestsPigeonProxyApiDelegate { - func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) -> PigeonApiProxyApiInterface { - return PigeonApiProxyApiInterface(pigeonRegistrar: registrar, delegate: PigeonApiDelegateProxyApiInterface()) + func pigeonApiProxyApiInterface(_ registrar: ProxyApiTestsPigeonProxyApiRegistrar) + -> PigeonApiProxyApiInterface + { + return PigeonApiProxyApiInterface( + pigeonRegistrar: registrar, delegate: PigeonApiDelegateProxyApiInterface()) } } @@ -422,16 +444,22 @@ open class ProxyApiTestsPigeonProxyApiRegistrar { } func setUp() { - ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger: binaryMessenger, instanceManager: instanceManager) - PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiTestClass(self)) - PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiSuperClass(self)) - PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiClassWithApiRequirement(self)) + ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers( + binaryMessenger: binaryMessenger, instanceManager: instanceManager) + PigeonApiProxyApiTestClass.setUpMessageHandlers( + binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiTestClass(self)) + PigeonApiProxyApiSuperClass.setUpMessageHandlers( + binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiProxyApiSuperClass(self)) + PigeonApiClassWithApiRequirement.setUpMessageHandlers( + binaryMessenger: binaryMessenger, api: apiDelegate.pigeonApiClassWithApiRequirement(self)) } func tearDown() { - ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers(binaryMessenger: binaryMessenger, instanceManager: nil) + ProxyApiTestsPigeonInstanceManagerApi.setUpMessageHandlers( + binaryMessenger: binaryMessenger, instanceManager: nil) PigeonApiProxyApiTestClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) PigeonApiProxyApiSuperClass.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) - PigeonApiClassWithApiRequirement.setUpMessageHandlers(binaryMessenger: binaryMessenger, api: nil) + PigeonApiClassWithApiRequirement.setUpMessageHandlers( + binaryMessenger: binaryMessenger, api: nil) } } private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStandardReaderWriter { @@ -470,57 +498,61 @@ private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStand } override func writeValue(_ value: Any) { - if value is [Any] || value is Bool || value is Data || value is [AnyHashable: Any] || value is Double || value is FlutterStandardTypedData || value is Int64 || value is String || value is ProxyApiTestEnum { + if value is [Any] || value is Bool || value is Data || value is [AnyHashable: Any] + || value is Double || value is FlutterStandardTypedData || value is Int64 || value is String + || value is ProxyApiTestEnum + { super.writeValue(value) return } - if let instance = value as? ProxyApiTestClass { pigeonRegistrar.apiDelegate.pigeonApiProxyApiTestClass(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference( + forInstance: instance as AnyObject)!) return } - if let instance = value as? ProxyApiSuperClass { pigeonRegistrar.apiDelegate.pigeonApiProxyApiSuperClass(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference( + forInstance: instance as AnyObject)!) return } - if let instance = value as? ProxyApiInterface { pigeonRegistrar.apiDelegate.pigeonApiProxyApiInterface(pigeonRegistrar).pigeonNewInstance( pigeonInstance: instance ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference( + forInstance: instance as AnyObject)!) return } - if #available(iOS 15.0.0, macOS 10.0.0, *), let instance = value as? ClassWithApiRequirement { - pigeonRegistrar.apiDelegate.pigeonApiClassWithApiRequirement(pigeonRegistrar).pigeonNewInstance( - pigeonInstance: instance - ) { _ in } + pigeonRegistrar.apiDelegate.pigeonApiClassWithApiRequirement(pigeonRegistrar) + .pigeonNewInstance( + pigeonInstance: instance + ) { _ in } super.writeByte(128) super.writeValue( - pigeonRegistrar.instanceManager.identifierWithStrongReference(forInstance: instance as AnyObject)!) + pigeonRegistrar.instanceManager.identifierWithStrongReference( + forInstance: instance as AnyObject)!) return } - - if let instance = value as AnyObject?, pigeonRegistrar.instanceManager.containsInstance(instance) + if let instance = value as AnyObject?, + pigeonRegistrar.instanceManager.containsInstance(instance) { super.writeByte(128) super.writeValue( @@ -538,11 +570,13 @@ private class ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter: FlutterStand } override func reader(with data: Data) -> FlutterStandardReader { - return ProxyApiTestsPigeonInternalProxyApiCodecReader(data: data, pigeonRegistrar: pigeonRegistrar) + return ProxyApiTestsPigeonInternalProxyApiCodecReader( + data: data, pigeonRegistrar: pigeonRegistrar) } override func writer(with data: NSMutableData) -> FlutterStandardWriter { - return ProxyApiTestsPigeonInternalProxyApiCodecWriter(data: data, pigeonRegistrar: pigeonRegistrar) + return ProxyApiTestsPigeonInternalProxyApiCodecWriter( + data: data, pigeonRegistrar: pigeonRegistrar) } } @@ -593,197 +627,433 @@ class ProxyApiTestsPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable } protocol PigeonApiDelegateProxyApiTestClass { - func pigeonDefaultConstructor(pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: ProxyApiSuperClass?, boolParam: Bool, intParam: Int64, doubleParam: Double, stringParam: String, aUint8ListParam: FlutterStandardTypedData, listParam: [Any?], mapParam: [String?: Any?], enumParam: ProxyApiTestEnum, proxyApiParam: ProxyApiSuperClass, nullableBoolParam: Bool?, nullableIntParam: Int64?, nullableDoubleParam: Double?, nullableStringParam: String?, nullableUint8ListParam: FlutterStandardTypedData?, nullableListParam: [Any?]?, nullableMapParam: [String?: Any?]?, nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: ProxyApiSuperClass?) throws -> ProxyApiTestClass - func namedConstructor(pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, aNullableProxyApi: ProxyApiSuperClass?) throws -> ProxyApiTestClass - func attachedField(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> ProxyApiSuperClass + func pigeonDefaultConstructor( + pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, + aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], + anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, + aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, + aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, + aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, + aNullableProxyApi: ProxyApiSuperClass?, boolParam: Bool, intParam: Int64, doubleParam: Double, + stringParam: String, aUint8ListParam: FlutterStandardTypedData, listParam: [Any?], + mapParam: [String?: Any?], enumParam: ProxyApiTestEnum, proxyApiParam: ProxyApiSuperClass, + nullableBoolParam: Bool?, nullableIntParam: Int64?, nullableDoubleParam: Double?, + nullableStringParam: String?, nullableUint8ListParam: FlutterStandardTypedData?, + nullableListParam: [Any?]?, nullableMapParam: [String?: Any?]?, + nullableEnumParam: ProxyApiTestEnum?, nullableProxyApiParam: ProxyApiSuperClass? + ) throws -> ProxyApiTestClass + func namedConstructor( + pigeonApi: PigeonApiProxyApiTestClass, aBool: Bool, anInt: Int64, aDouble: Double, + aString: String, aUint8List: FlutterStandardTypedData, aList: [Any?], aMap: [String?: Any?], + anEnum: ProxyApiTestEnum, aProxyApi: ProxyApiSuperClass, aNullableBool: Bool?, + aNullableInt: Int64?, aNullableDouble: Double?, aNullableString: String?, + aNullableUint8List: FlutterStandardTypedData?, aNullableList: [Any?]?, + aNullableMap: [String?: Any?]?, aNullableEnum: ProxyApiTestEnum?, + aNullableProxyApi: ProxyApiSuperClass? + ) throws -> ProxyApiTestClass + func attachedField(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) + throws -> ProxyApiSuperClass func staticAttachedField(pigeonApi: PigeonApiProxyApiTestClass) throws -> ProxyApiSuperClass /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. func noop(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws /// Returns an error, to test error handling. - func throwError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Any? + func throwError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws + -> Any? /// Returns an error from a void function, to test error handling. - func throwErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws + func throwErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) + throws /// Returns a Flutter error, to test error handling. - func throwFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) throws -> Any? + func throwFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass) + throws -> Any? /// Returns passed in int. - func echoInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64) throws -> Int64 + func echoInt( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64 + ) throws -> Int64 /// Returns passed in double. - func echoDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double) throws -> Double + func echoDouble( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double + ) throws -> Double /// Returns the passed in boolean. - func echoBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool) throws -> Bool + func echoBool( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool + ) throws -> Bool /// Returns the passed in string. - func echoString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String) throws -> String + func echoString( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String + ) throws -> String /// Returns the passed in Uint8List. - func echoUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData) throws -> FlutterStandardTypedData + func echoUint8List( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aUint8List: FlutterStandardTypedData + ) throws -> FlutterStandardTypedData /// Returns the passed in generic Object. - func echoObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any) throws -> Any + func echoObject( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any + ) throws -> Any /// Returns the passed list, to test serialization and deserialization. - func echoList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]) throws -> [Any?] + func echoList( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?] + ) throws -> [Any?] /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func echoProxyApiList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [ProxyApiTestClass]) throws -> [ProxyApiTestClass] + func echoProxyApiList( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aList: [ProxyApiTestClass] + ) throws -> [ProxyApiTestClass] /// Returns the passed map, to test serialization and deserialization. - func echoMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]) throws -> [String?: Any?] + func echoMap( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?] + ) throws -> [String?: Any?] /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func echoProxyApiMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String: ProxyApiTestClass]) throws -> [String: ProxyApiTestClass] + func echoProxyApiMap( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aMap: [String: ProxyApiTestClass] + ) throws -> [String: ProxyApiTestClass] /// Returns the passed enum to test serialization and deserialization. - func echoEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum) throws -> ProxyApiTestEnum + func echoEnum( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum + ) throws -> ProxyApiTestEnum /// Returns the passed ProxyApi to test serialization and deserialization. - func echoProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass) throws -> ProxyApiSuperClass + func echoProxyApi( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aProxyApi: ProxyApiSuperClass + ) throws -> ProxyApiSuperClass /// Returns passed in int. - func echoNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableInt: Int64?) throws -> Int64? + func echoNullableInt( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableInt: Int64? + ) throws -> Int64? /// Returns passed in double. - func echoNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableDouble: Double?) throws -> Double? + func echoNullableDouble( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aNullableDouble: Double? + ) throws -> Double? /// Returns the passed in boolean. - func echoNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableBool: Bool?) throws -> Bool? + func echoNullableBool( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableBool: Bool? + ) throws -> Bool? /// Returns the passed in string. - func echoNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableString: String?) throws -> String? + func echoNullableString( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aNullableString: String? + ) throws -> String? /// Returns the passed in Uint8List. - func echoNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableUint8List: FlutterStandardTypedData?) throws -> FlutterStandardTypedData? + func echoNullableUint8List( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aNullableUint8List: FlutterStandardTypedData? + ) throws -> FlutterStandardTypedData? /// Returns the passed in generic Object. - func echoNullableObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableObject: Any?) throws -> Any? + func echoNullableObject( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableObject: Any? + ) throws -> Any? /// Returns the passed list, to test serialization and deserialization. - func echoNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableList: [Any?]?) throws -> [Any?]? + func echoNullableList( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableList: [Any?]? + ) throws -> [Any?]? /// Returns the passed map, to test serialization and deserialization. - func echoNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableMap: [String?: Any?]?) throws -> [String?: Any?]? - func echoNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableEnum: ProxyApiTestEnum?) throws -> ProxyApiTestEnum? + func echoNullableMap( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aNullableMap: [String?: Any?]? + ) throws -> [String?: Any?]? + func echoNullableEnum( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aNullableEnum: ProxyApiTestEnum? + ) throws -> ProxyApiTestEnum? /// Returns the passed ProxyApi to test serialization and deserialization. - func echoNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aNullableProxyApi: ProxyApiSuperClass?) throws -> ProxyApiSuperClass? + func echoNullableProxyApi( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aNullableProxyApi: ProxyApiSuperClass? + ) throws -> ProxyApiSuperClass? /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func noopAsync(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func noopAsync( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. - func echoAsyncInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, completion: @escaping (Result) -> Void) + func echoAsyncInt( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, + completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. - func echoAsyncDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, completion: @escaping (Result) -> Void) + func echoAsyncDouble( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, + completion: @escaping (Result) -> Void) /// Returns the passed in boolean asynchronously. - func echoAsyncBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, completion: @escaping (Result) -> Void) + func echoAsyncBool( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, + completion: @escaping (Result) -> Void) /// Returns the passed string asynchronously. - func echoAsyncString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) + func echoAsyncString( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, + completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) + func echoAsyncUint8List( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aUint8List: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func echoAsyncObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any, completion: @escaping (Result) -> Void) + func echoAsyncObject( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any, + completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) + func echoAsyncList( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], + completion: @escaping (Result<[Any?], Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) + func echoAsyncMap( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], + completion: @escaping (Result<[String?: Any?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func echoAsyncEnum( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. - func throwAsyncError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func throwAsyncError( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. - func throwAsyncErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func throwAsyncErrorFromVoid( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void) /// Responds with a Flutter error from an async function returning a value. - func throwAsyncFlutterError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func throwAsyncFlutterError( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void) /// Returns passed in int asynchronously. - func echoAsyncNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, completion: @escaping (Result) -> Void) + func echoAsyncNullableInt( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, + completion: @escaping (Result) -> Void) /// Returns passed in double asynchronously. - func echoAsyncNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, completion: @escaping (Result) -> Void) + func echoAsyncNullableDouble( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, + completion: @escaping (Result) -> Void) /// Returns the passed in boolean asynchronously. - func echoAsyncNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, completion: @escaping (Result) -> Void) + func echoAsyncNullableBool( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, + completion: @escaping (Result) -> Void) /// Returns the passed string asynchronously. - func echoAsyncNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, completion: @escaping (Result) -> Void) + func echoAsyncNullableString( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, + completion: @escaping (Result) -> Void) /// Returns the passed in Uint8List asynchronously. - func echoAsyncNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func echoAsyncNullableUint8List( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aUint8List: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func echoAsyncNullableObject(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any?, completion: @escaping (Result) -> Void) + func echoAsyncNullableObject( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anObject: Any?, + completion: @escaping (Result) -> Void) /// Returns the passed list, to test asynchronous serialization and deserialization. - func echoAsyncNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) + func echoAsyncNullableList( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, + completion: @escaping (Result<[Any?]?, Error>) -> Void) /// Returns the passed map, to test asynchronous serialization and deserialization. - func echoAsyncNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) + func echoAsyncNullableMap( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. - func echoAsyncNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func echoAsyncNullableEnum( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) func staticNoop(pigeonApi: PigeonApiProxyApiTestClass) throws func echoStaticString(pigeonApi: PigeonApiProxyApiTestClass, aString: String) throws -> String - func staticAsyncNoop(pigeonApi: PigeonApiProxyApiTestClass, completion: @escaping (Result) -> Void) - func callFlutterNoop(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) - func callFlutterThrowError(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) - func callFlutterThrowErrorFromVoid(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) - func callFlutterEchoBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, completion: @escaping (Result) -> Void) - func callFlutterEchoInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, completion: @escaping (Result) -> Void) - func callFlutterEchoDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, completion: @escaping (Result) -> Void) - func callFlutterEchoString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) - func callFlutterEchoUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData, completion: @escaping (Result) -> Void) - func callFlutterEchoList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], completion: @escaping (Result<[Any?], Error>) -> Void) - func callFlutterEchoProxyApiList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], Error>) -> Void) - func callFlutterEchoMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) - func callFlutterEchoProxyApiMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], Error>) -> Void) - func callFlutterEchoEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) - func callFlutterEchoProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableBool(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableInt(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableDouble(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableUint8List(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aUint8List: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableList(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) - func callFlutterEchoNullableMap(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) - func callFlutterEchoNullableEnum(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) - func callFlutterEchoNullableProxyApi(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aProxyApi: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) - func callFlutterNoopAsync(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) - func callFlutterEchoAsyncString(pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, completion: @escaping (Result) -> Void) + func staticAsyncNoop( + pigeonApi: PigeonApiProxyApiTestClass, completion: @escaping (Result) -> Void) + func callFlutterNoop( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void) + func callFlutterThrowError( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void) + func callFlutterThrowErrorFromVoid( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void) + func callFlutterEchoBool( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool, + completion: @escaping (Result) -> Void) + func callFlutterEchoInt( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64, + completion: @escaping (Result) -> Void) + func callFlutterEchoDouble( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double, + completion: @escaping (Result) -> Void) + func callFlutterEchoString( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, + completion: @escaping (Result) -> Void) + func callFlutterEchoUint8List( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aUint8List: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) + func callFlutterEchoList( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?], + completion: @escaping (Result<[Any?], Error>) -> Void) + func callFlutterEchoProxyApiList( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aList: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], Error>) -> Void + ) + func callFlutterEchoMap( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aMap: [String?: Any?], + completion: @escaping (Result<[String?: Any?], Error>) -> Void) + func callFlutterEchoProxyApiMap( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aMap: [String?: ProxyApiTestClass?], + completion: @escaping (Result<[String?: ProxyApiTestClass?], Error>) -> Void) + func callFlutterEchoEnum( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func callFlutterEchoProxyApi( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aProxyApi: ProxyApiSuperClass, completion: @escaping (Result) -> Void + ) + func callFlutterEchoNullableBool( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aBool: Bool?, + completion: @escaping (Result) -> Void) + func callFlutterEchoNullableInt( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, anInt: Int64?, + completion: @escaping (Result) -> Void) + func callFlutterEchoNullableDouble( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aDouble: Double?, + completion: @escaping (Result) -> Void) + func callFlutterEchoNullableString( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String?, + completion: @escaping (Result) -> Void) + func callFlutterEchoNullableUint8List( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aUint8List: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) + func callFlutterEchoNullableList( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aList: [Any?]?, + completion: @escaping (Result<[Any?]?, Error>) -> Void) + func callFlutterEchoNullableMap( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) + func callFlutterEchoNullableEnum( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + anEnum: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullableProxyApi( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + aProxyApi: ProxyApiSuperClass?, + completion: @escaping (Result) -> Void) + func callFlutterNoopAsync( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void) + func callFlutterEchoAsyncString( + pigeonApi: PigeonApiProxyApiTestClass, pigeonInstance: ProxyApiTestClass, aString: String, + completion: @escaping (Result) -> Void) } protocol PigeonApiProtocolProxyApiTestClass { /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - func flutterNoop(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func flutterNoop( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. - func flutterThrowError(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func flutterThrowError( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. - func flutterThrowErrorFromVoid(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func flutterThrowErrorFromVoid( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, completion: @escaping (Result) -> Void) + func flutterEchoBool( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, + completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. - func flutterEchoInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, completion: @escaping (Result) -> Void) + func flutterEchoInt( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, + completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func flutterEchoDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, completion: @escaping (Result) -> Void) + func flutterEchoDouble( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, + completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func flutterEchoString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) + func flutterEchoString( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, + completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) + func flutterEchoUint8List( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, + completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func flutterEchoList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) + func flutterEchoList( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], + completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) + func flutterEchoProxyApiList( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], + completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func flutterEchoMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) + func flutterEchoMap( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], + completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) + func flutterEchoProxyApiMap( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + aMap aMapArg: [String?: ProxyApiTestClass?], + completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func flutterEchoEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, completion: @escaping (Result) -> Void) + func flutterEchoEnum( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, + completion: @escaping (Result) -> Void) /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, completion: @escaping (Result) -> Void) + func flutterEchoProxyApi( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, + completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoNullableBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, completion: @escaping (Result) -> Void) + func flutterEchoNullableBool( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, + completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. - func flutterEchoNullableInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, completion: @escaping (Result) -> Void) + func flutterEchoNullableInt( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, + completion: @escaping (Result) -> Void) /// Returns the passed double, to test serialization and deserialization. - func flutterEchoNullableDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, completion: @escaping (Result) -> Void) + func flutterEchoNullableDouble( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, + completion: @escaping (Result) -> Void) /// Returns the passed string, to test serialization and deserialization. - func flutterEchoNullableString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, completion: @escaping (Result) -> Void) + func flutterEchoNullableString( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, + completion: @escaping (Result) -> Void) /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoNullableUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) + func flutterEchoNullableUint8List( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void) /// Returns the passed list, to test serialization and deserialization. - func flutterEchoNullableList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) + func flutterEchoNullableList( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, + completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) /// Returns the passed map, to test serialization and deserialization. - func flutterEchoNullableMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) + func flutterEchoNullableMap( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, + completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) /// Returns the passed enum to test serialization and deserialization. - func flutterEchoNullableEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) + func flutterEchoNullableEnum( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, + completion: @escaping (Result) -> Void) /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoNullableProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) + func flutterEchoNullableProxyApi( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + aProxyApi aProxyApiArg: ProxyApiSuperClass?, + completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func flutterNoopAsync(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) + func flutterNoopAsync( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + completion: @escaping (Result) -> Void) /// Returns the passed in generic Object asynchronously. - func flutterEchoAsyncString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) + func flutterEchoAsyncString( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, + completion: @escaping (Result) -> Void) } -final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { +final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiTestClass ///An implementation of [ProxyApiSuperClass] used to access callback methods @@ -796,17 +1066,26 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { return pigeonRegistrar.apiDelegate.pigeonApiProxyApiInterface(pigeonRegistrar) } - init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiTestClass) { + init( + pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, + delegate: PigeonApiDelegateProxyApiTestClass + ) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiTestClass?) { + static func setUpMessageHandlers( + binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiTestClass? + ) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( + pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -849,8 +1128,25 @@ final class PigeonApiProxyApiTestClass: PigeonApiProtocolProxyApiTestClass { let nullableProxyApiParamArg: ProxyApiSuperClass? = nilOrValue(args[36]) do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( -try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg, boolParam: boolParamArg, intParam: intParamArg, doubleParam: doubleParamArg, stringParam: stringParamArg, aUint8ListParam: aUint8ListParamArg, listParam: listParamArg, mapParam: mapParamArg, enumParam: enumParamArg, proxyApiParam: proxyApiParamArg, nullableBoolParam: nullableBoolParamArg, nullableIntParam: nullableIntParamArg, nullableDoubleParam: nullableDoubleParamArg, nullableStringParam: nullableStringParamArg, nullableUint8ListParam: nullableUint8ListParamArg, nullableListParam: nullableListParamArg, nullableMapParam: nullableMapParamArg, nullableEnumParam: nullableEnumParamArg, nullableProxyApiParam: nullableProxyApiParamArg), -withIdentifier: pigeonIdentifierArg) + try api.pigeonDelegate.pigeonDefaultConstructor( + pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, + aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, + anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, + aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, + aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, + aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, + aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg, + boolParam: boolParamArg, intParam: intParamArg, doubleParam: doubleParamArg, + stringParam: stringParamArg, aUint8ListParam: aUint8ListParamArg, + listParam: listParamArg, mapParam: mapParamArg, enumParam: enumParamArg, + proxyApiParam: proxyApiParamArg, nullableBoolParam: nullableBoolParamArg, + nullableIntParam: nullableIntParamArg, nullableDoubleParam: nullableDoubleParamArg, + nullableStringParam: nullableStringParamArg, + nullableUint8ListParam: nullableUint8ListParamArg, + nullableListParam: nullableListParamArg, nullableMapParam: nullableMapParamArg, + nullableEnumParam: nullableEnumParamArg, + nullableProxyApiParam: nullableProxyApiParamArg), + withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -859,7 +1155,9 @@ withIdentifier: pigeonIdentifierArg) } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - let namedConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", binaryMessenger: binaryMessenger, codec: codec) + let namedConstructorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.namedConstructor", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { namedConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -884,8 +1182,15 @@ withIdentifier: pigeonIdentifierArg) let aNullableProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[18]) do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( -try api.pigeonDelegate.namedConstructor(pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg), -withIdentifier: pigeonIdentifierArg) + try api.pigeonDelegate.namedConstructor( + pigeonApi: api, aBool: aBoolArg, anInt: anIntArg, aDouble: aDoubleArg, + aString: aStringArg, aUint8List: aUint8ListArg, aList: aListArg, aMap: aMapArg, + anEnum: anEnumArg, aProxyApi: aProxyApiArg, aNullableBool: aNullableBoolArg, + aNullableInt: aNullableIntArg, aNullableDouble: aNullableDoubleArg, + aNullableString: aNullableStringArg, aNullableUint8List: aNullableUint8ListArg, + aNullableList: aNullableListArg, aNullableMap: aNullableMapArg, + aNullableEnum: aNullableEnumArg, aNullableProxyApi: aNullableProxyApiArg), + withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -894,14 +1199,18 @@ withIdentifier: pigeonIdentifierArg) } else { namedConstructorChannel.setMessageHandler(nil) } - let attachedFieldChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", binaryMessenger: binaryMessenger, codec: codec) + let attachedFieldChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { attachedFieldChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let pigeonIdentifierArg = args[1] as! Int64 do { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance(try api.pigeonDelegate.attachedField(pigeonApi: api, pigeonInstance: pigeonInstanceArg), withIdentifier: pigeonIdentifierArg) + api.pigeonRegistrar.instanceManager.addDartCreatedInstance( + try api.pigeonDelegate.attachedField(pigeonApi: api, pigeonInstance: pigeonInstanceArg), + withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -910,13 +1219,17 @@ withIdentifier: pigeonIdentifierArg) } else { attachedFieldChannel.setMessageHandler(nil) } - let staticAttachedFieldChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", binaryMessenger: binaryMessenger, codec: codec) + let staticAttachedFieldChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticAttachedFieldChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { - api.pigeonRegistrar.instanceManager.addDartCreatedInstance(try api.pigeonDelegate.staticAttachedField(pigeonApi: api), withIdentifier: pigeonIdentifierArg) + api.pigeonRegistrar.instanceManager.addDartCreatedInstance( + try api.pigeonDelegate.staticAttachedField(pigeonApi: api), + withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -925,7 +1238,9 @@ withIdentifier: pigeonIdentifierArg) } else { staticAttachedFieldChannel.setMessageHandler(nil) } - let noopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", binaryMessenger: binaryMessenger, codec: codec) + let noopChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -940,13 +1255,16 @@ withIdentifier: pigeonIdentifierArg) } else { noopChannel.setMessageHandler(nil) } - let throwErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", binaryMessenger: binaryMessenger, codec: codec) + let throwErrorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - let result = try api.pigeonDelegate.throwError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) + let result = try api.pigeonDelegate.throwError( + pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -955,13 +1273,16 @@ withIdentifier: pigeonIdentifierArg) } else { throwErrorChannel.setMessageHandler(nil) } - let throwErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) + let throwErrorFromVoidChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - try api.pigeonDelegate.throwErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) + try api.pigeonDelegate.throwErrorFromVoid( + pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -970,13 +1291,16 @@ withIdentifier: pigeonIdentifierArg) } else { throwErrorFromVoidChannel.setMessageHandler(nil) } - let throwFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", binaryMessenger: binaryMessenger, codec: codec) + let throwFlutterErrorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwFlutterErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass do { - let result = try api.pigeonDelegate.throwFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) + let result = try api.pigeonDelegate.throwFlutterError( + pigeonApi: api, pigeonInstance: pigeonInstanceArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -985,14 +1309,17 @@ withIdentifier: pigeonIdentifierArg) } else { throwFlutterErrorChannel.setMessageHandler(nil) } - let echoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", binaryMessenger: binaryMessenger, codec: codec) + let echoIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 do { - let result = try api.pigeonDelegate.echoInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) + let result = try api.pigeonDelegate.echoInt( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1001,14 +1328,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoIntChannel.setMessageHandler(nil) } - let echoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", binaryMessenger: binaryMessenger, codec: codec) + let echoDoubleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double do { - let result = try api.pigeonDelegate.echoDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) + let result = try api.pigeonDelegate.echoDouble( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1017,14 +1347,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoDoubleChannel.setMessageHandler(nil) } - let echoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", binaryMessenger: binaryMessenger, codec: codec) + let echoBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool do { - let result = try api.pigeonDelegate.echoBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) + let result = try api.pigeonDelegate.echoBool( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1033,14 +1366,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoBoolChannel.setMessageHandler(nil) } - let echoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", binaryMessenger: binaryMessenger, codec: codec) + let echoStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String do { - let result = try api.pigeonDelegate.echoString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) + let result = try api.pigeonDelegate.echoString( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1049,14 +1385,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoStringChannel.setMessageHandler(nil) } - let echoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", binaryMessenger: binaryMessenger, codec: codec) + let echoUint8ListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData do { - let result = try api.pigeonDelegate.echoUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) + let result = try api.pigeonDelegate.echoUint8List( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1065,14 +1404,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoUint8ListChannel.setMessageHandler(nil) } - let echoObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", binaryMessenger: binaryMessenger, codec: codec) + let echoObjectChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg = args[1]! do { - let result = try api.pigeonDelegate.echoObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) + let result = try api.pigeonDelegate.echoObject( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1081,14 +1423,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoObjectChannel.setMessageHandler(nil) } - let echoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", binaryMessenger: binaryMessenger, codec: codec) + let echoListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] do { - let result = try api.pigeonDelegate.echoList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) + let result = try api.pigeonDelegate.echoList( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1097,14 +1442,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoListChannel.setMessageHandler(nil) } - let echoProxyApiListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [ProxyApiTestClass] do { - let result = try api.pigeonDelegate.echoProxyApiList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) + let result = try api.pigeonDelegate.echoProxyApiList( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1113,14 +1461,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoProxyApiListChannel.setMessageHandler(nil) } - let echoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", binaryMessenger: binaryMessenger, codec: codec) + let echoMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] do { - let result = try api.pigeonDelegate.echoMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) + let result = try api.pigeonDelegate.echoMap( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1129,14 +1480,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoMapChannel.setMessageHandler(nil) } - let echoProxyApiMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String: ProxyApiTestClass] do { - let result = try api.pigeonDelegate.echoProxyApiMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) + let result = try api.pigeonDelegate.echoProxyApiMap( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1145,14 +1499,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoProxyApiMapChannel.setMessageHandler(nil) } - let echoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", binaryMessenger: binaryMessenger, codec: codec) + let echoEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum do { - let result = try api.pigeonDelegate.echoEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) + let result = try api.pigeonDelegate.echoEnum( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1161,14 +1518,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoEnumChannel.setMessageHandler(nil) } - let echoProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", binaryMessenger: binaryMessenger, codec: codec) + let echoProxyApiChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg = args[1] as! ProxyApiSuperClass do { - let result = try api.pigeonDelegate.echoProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) + let result = try api.pigeonDelegate.echoProxyApi( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1177,14 +1537,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoProxyApiChannel.setMessageHandler(nil) } - let echoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableIntArg: Int64? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableInt: aNullableIntArg) + let result = try api.pigeonDelegate.echoNullableInt( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableInt: aNullableIntArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1193,14 +1556,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableIntChannel.setMessageHandler(nil) } - let echoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableDoubleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableDoubleArg: Double? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableDouble: aNullableDoubleArg) + let result = try api.pigeonDelegate.echoNullableDouble( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableDouble: aNullableDoubleArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1209,14 +1575,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableDoubleChannel.setMessageHandler(nil) } - let echoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableBoolArg: Bool? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableBool: aNullableBoolArg) + let result = try api.pigeonDelegate.echoNullableBool( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableBool: aNullableBoolArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1225,14 +1594,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableBoolChannel.setMessageHandler(nil) } - let echoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableStringArg: String? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableString: aNullableStringArg) + let result = try api.pigeonDelegate.echoNullableString( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableString: aNullableStringArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1241,14 +1613,18 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableStringChannel.setMessageHandler(nil) } - let echoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableUint8ListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableUint8List: aNullableUint8ListArg) + let result = try api.pigeonDelegate.echoNullableUint8List( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, + aNullableUint8List: aNullableUint8ListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1257,14 +1633,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableUint8ListChannel.setMessageHandler(nil) } - let echoNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableObjectChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableObjectArg: Any? = args[1] do { - let result = try api.pigeonDelegate.echoNullableObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableObject: aNullableObjectArg) + let result = try api.pigeonDelegate.echoNullableObject( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableObject: aNullableObjectArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1273,14 +1652,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableObjectChannel.setMessageHandler(nil) } - let echoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableListArg: [Any?]? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableList: aNullableListArg) + let result = try api.pigeonDelegate.echoNullableList( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableList: aNullableListArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1289,14 +1671,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableListChannel.setMessageHandler(nil) } - let echoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableMapArg: [String?: Any?]? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableMap: aNullableMapArg) + let result = try api.pigeonDelegate.echoNullableMap( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableMap: aNullableMapArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1305,14 +1690,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableMapChannel.setMessageHandler(nil) } - let echoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableEnum: aNullableEnumArg) + let result = try api.pigeonDelegate.echoNullableEnum( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableEnum: aNullableEnumArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1321,14 +1709,18 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableEnumChannel.setMessageHandler(nil) } - let echoNullableProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", binaryMessenger: binaryMessenger, codec: codec) + let echoNullableProxyApiChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoNullableProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aNullableProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[1]) do { - let result = try api.pigeonDelegate.echoNullableProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aNullableProxyApi: aNullableProxyApiArg) + let result = try api.pigeonDelegate.echoNullableProxyApi( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, + aNullableProxyApi: aNullableProxyApiArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -1337,7 +1729,9 @@ withIdentifier: pigeonIdentifierArg) } else { echoNullableProxyApiChannel.setMessageHandler(nil) } - let noopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", binaryMessenger: binaryMessenger, codec: codec) + let noopAsyncChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { noopAsyncChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1354,13 +1748,17 @@ withIdentifier: pigeonIdentifierArg) } else { noopAsyncChannel.setMessageHandler(nil) } - let echoAsyncIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 - api.pigeonDelegate.echoAsyncInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in + api.pigeonDelegate.echoAsyncInt( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1372,13 +1770,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncIntChannel.setMessageHandler(nil) } - let echoAsyncDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncDoubleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double - api.pigeonDelegate.echoAsyncDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in + api.pigeonDelegate.echoAsyncDouble( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1390,13 +1792,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncDoubleChannel.setMessageHandler(nil) } - let echoAsyncBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool - api.pigeonDelegate.echoAsyncBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in + api.pigeonDelegate.echoAsyncBool( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1408,13 +1814,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncBoolChannel.setMessageHandler(nil) } - let echoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.echoAsyncString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in + api.pigeonDelegate.echoAsyncString( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1426,13 +1836,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncStringChannel.setMessageHandler(nil) } - let echoAsyncUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncUint8ListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData - api.pigeonDelegate.echoAsyncUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in + api.pigeonDelegate.echoAsyncUint8List( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1444,13 +1858,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncUint8ListChannel.setMessageHandler(nil) } - let echoAsyncObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncObjectChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg = args[1]! - api.pigeonDelegate.echoAsyncObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) { result in + api.pigeonDelegate.echoAsyncObject( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1462,13 +1880,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncObjectChannel.setMessageHandler(nil) } - let echoAsyncListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] - api.pigeonDelegate.echoAsyncList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in + api.pigeonDelegate.echoAsyncList( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1480,13 +1902,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncListChannel.setMessageHandler(nil) } - let echoAsyncMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] - api.pigeonDelegate.echoAsyncMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in + api.pigeonDelegate.echoAsyncMap( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1498,13 +1924,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncMapChannel.setMessageHandler(nil) } - let echoAsyncEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum - api.pigeonDelegate.echoAsyncEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in + api.pigeonDelegate.echoAsyncEnum( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1516,12 +1946,15 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncEnumChannel.setMessageHandler(nil) } - let throwAsyncErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in + api.pigeonDelegate.throwAsyncError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { + result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1533,12 +1966,16 @@ withIdentifier: pigeonIdentifierArg) } else { throwAsyncErrorChannel.setMessageHandler(nil) } - let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncErrorFromVoidChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in + api.pigeonDelegate.throwAsyncErrorFromVoid( + pigeonApi: api, pigeonInstance: pigeonInstanceArg + ) { result in switch result { case .success: reply(wrapResult(nil)) @@ -1550,12 +1987,15 @@ withIdentifier: pigeonIdentifierArg) } else { throwAsyncErrorFromVoidChannel.setMessageHandler(nil) } - let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", binaryMessenger: binaryMessenger, codec: codec) + let throwAsyncFlutterErrorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { throwAsyncFlutterErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.throwAsyncFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in + api.pigeonDelegate.throwAsyncFlutterError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) + { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1567,13 +2007,17 @@ withIdentifier: pigeonIdentifierArg) } else { throwAsyncFlutterErrorChannel.setMessageHandler(nil) } - let echoAsyncNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg: Int64? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in + api.pigeonDelegate.echoAsyncNullableInt( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1585,13 +2029,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableIntChannel.setMessageHandler(nil) } - let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableDoubleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg: Double? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in + api.pigeonDelegate.echoAsyncNullableDouble( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1603,13 +2051,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableDoubleChannel.setMessageHandler(nil) } - let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg: Bool? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in + api.pigeonDelegate.echoAsyncNullableBool( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1621,13 +2073,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableBoolChannel.setMessageHandler(nil) } - let echoAsyncNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg: String? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in + api.pigeonDelegate.echoAsyncNullableString( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1639,13 +2095,18 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableStringChannel.setMessageHandler(nil) } - let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in + api.pigeonDelegate.echoAsyncNullableUint8List( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1657,13 +2118,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableUint8ListChannel.setMessageHandler(nil) } - let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableObjectChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableObjectChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anObjectArg: Any? = args[1] - api.pigeonDelegate.echoAsyncNullableObject(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg) { result in + api.pigeonDelegate.echoAsyncNullableObject( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anObject: anObjectArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1675,13 +2140,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableObjectChannel.setMessageHandler(nil) } - let echoAsyncNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg: [Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in + api.pigeonDelegate.echoAsyncNullableList( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1693,13 +2162,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableListChannel.setMessageHandler(nil) } - let echoAsyncNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg: [String?: Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in + api.pigeonDelegate.echoAsyncNullableMap( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1711,13 +2184,17 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableMapChannel.setMessageHandler(nil) } - let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", binaryMessenger: binaryMessenger, codec: codec) + let echoAsyncNullableEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoAsyncNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) - api.pigeonDelegate.echoAsyncNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in + api.pigeonDelegate.echoAsyncNullableEnum( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1729,7 +2206,9 @@ withIdentifier: pigeonIdentifierArg) } else { echoAsyncNullableEnumChannel.setMessageHandler(nil) } - let staticNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", binaryMessenger: binaryMessenger, codec: codec) + let staticNoopChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticNoopChannel.setMessageHandler { _, reply in do { @@ -1742,7 +2221,9 @@ withIdentifier: pigeonIdentifierArg) } else { staticNoopChannel.setMessageHandler(nil) } - let echoStaticStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", binaryMessenger: binaryMessenger, codec: codec) + let echoStaticStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { echoStaticStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -1757,7 +2238,9 @@ withIdentifier: pigeonIdentifierArg) } else { echoStaticStringChannel.setMessageHandler(nil) } - let staticAsyncNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", binaryMessenger: binaryMessenger, codec: codec) + let staticAsyncNoopChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { staticAsyncNoopChannel.setMessageHandler { _, reply in api.pigeonDelegate.staticAsyncNoop(pigeonApi: api) { result in @@ -1772,12 +2255,15 @@ withIdentifier: pigeonIdentifierArg) } else { staticAsyncNoopChannel.setMessageHandler(nil) } - let callFlutterNoopChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterNoop(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in + api.pigeonDelegate.callFlutterNoop(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { + result in switch result { case .success: reply(wrapResult(nil)) @@ -1789,12 +2275,15 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterNoopChannel.setMessageHandler(nil) } - let callFlutterThrowErrorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterThrowError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in + api.pigeonDelegate.callFlutterThrowError(pigeonApi: api, pigeonInstance: pigeonInstanceArg) + { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1806,12 +2295,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterThrowErrorChannel.setMessageHandler(nil) } - let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterThrowErrorFromVoidChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterThrowErrorFromVoidChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterThrowErrorFromVoid(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in + api.pigeonDelegate.callFlutterThrowErrorFromVoid( + pigeonApi: api, pigeonInstance: pigeonInstanceArg + ) { result in switch result { case .success: reply(wrapResult(nil)) @@ -1823,13 +2317,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterThrowErrorFromVoidChannel.setMessageHandler(nil) } - let callFlutterEchoBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoBoolChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg = args[1] as! Bool - api.pigeonDelegate.callFlutterEchoBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in + api.pigeonDelegate.callFlutterEchoBool( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1841,13 +2339,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoBoolChannel.setMessageHandler(nil) } - let callFlutterEchoIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoIntChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg = args[1] as! Int64 - api.pigeonDelegate.callFlutterEchoInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in + api.pigeonDelegate.callFlutterEchoInt( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1859,13 +2361,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoIntChannel.setMessageHandler(nil) } - let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoDoubleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg = args[1] as! Double - api.pigeonDelegate.callFlutterEchoDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in + api.pigeonDelegate.callFlutterEchoDouble( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1877,13 +2383,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoStringChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.callFlutterEchoString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in + api.pigeonDelegate.callFlutterEchoString( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1895,13 +2405,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoStringChannel.setMessageHandler(nil) } - let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg = args[1] as! FlutterStandardTypedData - api.pigeonDelegate.callFlutterEchoUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in + api.pigeonDelegate.callFlutterEchoUint8List( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1913,13 +2428,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoListChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [Any?] - api.pigeonDelegate.callFlutterEchoList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in + api.pigeonDelegate.callFlutterEchoList( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1931,13 +2450,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoListChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg = args[1] as! [ProxyApiTestClass?] - api.pigeonDelegate.callFlutterEchoProxyApiList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in + api.pigeonDelegate.callFlutterEchoProxyApiList( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1949,13 +2473,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoProxyApiListChannel.setMessageHandler(nil) } - let callFlutterEchoMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoMapChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: Any?] - api.pigeonDelegate.callFlutterEchoMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in + api.pigeonDelegate.callFlutterEchoMap( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1967,13 +2495,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoMapChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg = args[1] as! [String?: ProxyApiTestClass?] - api.pigeonDelegate.callFlutterEchoProxyApiMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in + api.pigeonDelegate.callFlutterEchoProxyApiMap( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -1985,13 +2518,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoProxyApiMapChannel.setMessageHandler(nil) } - let callFlutterEchoEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoEnumChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg = args[1] as! ProxyApiTestEnum - api.pigeonDelegate.callFlutterEchoEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in + api.pigeonDelegate.callFlutterEchoEnum( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2003,13 +2540,17 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } - let callFlutterEchoProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoProxyApiChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg = args[1] as! ProxyApiSuperClass - api.pigeonDelegate.callFlutterEchoProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) { result in + api.pigeonDelegate.callFlutterEchoProxyApi( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2021,13 +2562,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoProxyApiChannel.setMessageHandler(nil) } - let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableBoolChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aBoolArg: Bool? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableBool(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg) { result in + api.pigeonDelegate.callFlutterEchoNullableBool( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aBool: aBoolArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2039,13 +2585,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableBoolChannel.setMessageHandler(nil) } - let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableIntChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableIntChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anIntArg: Int64? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableInt(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg) { result in + api.pigeonDelegate.callFlutterEchoNullableInt( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anInt: anIntArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2057,13 +2608,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableIntChannel.setMessageHandler(nil) } - let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableDoubleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableDoubleChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aDoubleArg: Double? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableDouble(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg) { result in + api.pigeonDelegate.callFlutterEchoNullableDouble( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aDouble: aDoubleArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2075,13 +2631,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableDoubleChannel.setMessageHandler(nil) } - let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg: String? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in + api.pigeonDelegate.callFlutterEchoNullableString( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2093,13 +2654,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableStringChannel.setMessageHandler(nil) } - let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableUint8ListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableUint8ListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aUint8ListArg: FlutterStandardTypedData? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableUint8List(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg) { result in + api.pigeonDelegate.callFlutterEchoNullableUint8List( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aUint8List: aUint8ListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2111,13 +2677,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableUint8ListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableListChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableListChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aListArg: [Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableList(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg) { result in + api.pigeonDelegate.callFlutterEchoNullableList( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aList: aListArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2129,13 +2700,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableListChannel.setMessageHandler(nil) } - let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableMapChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableMapChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aMapArg: [String?: Any?]? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableMap(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg) { result in + api.pigeonDelegate.callFlutterEchoNullableMap( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aMap: aMapArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2147,13 +2723,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableMapChannel.setMessageHandler(nil) } - let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let anEnumArg: ProxyApiTestEnum? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableEnum(pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg) { result in + api.pigeonDelegate.callFlutterEchoNullableEnum( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, anEnum: anEnumArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2165,13 +2746,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } - let callFlutterEchoNullableProxyApiChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoNullableProxyApiChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoNullableProxyApiChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aProxyApiArg: ProxyApiSuperClass? = nilOrValue(args[1]) - api.pigeonDelegate.callFlutterEchoNullableProxyApi(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg) { result in + api.pigeonDelegate.callFlutterEchoNullableProxyApi( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aProxyApi: aProxyApiArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2183,12 +2769,15 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterEchoNullableProxyApiChannel.setMessageHandler(nil) } - let callFlutterNoopAsyncChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterNoopAsyncChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterNoopAsyncChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass - api.pigeonDelegate.callFlutterNoopAsync(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { result in + api.pigeonDelegate.callFlutterNoopAsync(pigeonApi: api, pigeonInstance: pigeonInstanceArg) { + result in switch result { case .success: reply(wrapResult(nil)) @@ -2200,13 +2789,18 @@ withIdentifier: pigeonIdentifierArg) } else { callFlutterNoopAsyncChannel.setMessageHandler(nil) } - let callFlutterEchoAsyncStringChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", binaryMessenger: binaryMessenger, codec: codec) + let callFlutterEchoAsyncStringChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { callFlutterEchoAsyncStringChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonInstanceArg = args[0] as! ProxyApiTestClass let aStringArg = args[1] as! String - api.pigeonDelegate.callFlutterEchoAsyncString(pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg) { result in + api.pigeonDelegate.callFlutterEchoAsyncString( + pigeonApi: api, pigeonInstance: pigeonInstanceArg, aString: aStringArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2221,26 +2815,34 @@ withIdentifier: pigeonIdentifierArg) } ///Creates a Dart instance of ProxyApiTestClass and attaches it to [pigeonInstance]. - func pigeonNewInstance(pigeonInstance: ProxyApiTestClass, completion: @escaping (Result) -> Void) { + func pigeonNewInstance( + pigeonInstance: ProxyApiTestClass, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( ProxyApiTestsError( code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) - } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { + } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { completion(.success(())) - } else { + } else { completion( .failure( ProxyApiTestsError( code: "new-instance-error", - message: "Error: Attempting to create a new Dart instance of ProxyApiTestClass, but the class has a nonnull callback method.", details: ""))) + message: + "Error: Attempting to create a new Dart instance of ProxyApiTestClass, but the class has a nonnull callback method.", + details: ""))) } } /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. - func flutterNoop(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { + func flutterNoop( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2248,18 +2850,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterNoop` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterNoop` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2277,7 +2883,10 @@ withIdentifier: pigeonIdentifierArg) } /// Responds with an error from an async function returning a value. - func flutterThrowError(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { + func flutterThrowError( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2285,18 +2894,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterThrowError` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterThrowError` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2315,7 +2928,10 @@ withIdentifier: pigeonIdentifierArg) } /// Responds with an error from an async void function. - func flutterThrowErrorFromVoid(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { + func flutterThrowErrorFromVoid( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2323,18 +2939,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterThrowErrorFromVoid` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterThrowErrorFromVoid` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2352,7 +2972,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, completion: @escaping (Result) -> Void) { + func flutterEchoBool( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2360,18 +2983,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoBool` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoBool` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2383,7 +3010,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Bool completion(.success(result)) @@ -2392,7 +3023,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed int, to test serialization and deserialization. - func flutterEchoInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, completion: @escaping (Result) -> Void) { + func flutterEchoInt( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2400,18 +3034,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoInt` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoInt` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2423,7 +3061,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Int64 completion(.success(result)) @@ -2432,7 +3074,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed double, to test serialization and deserialization. - func flutterEchoDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, completion: @escaping (Result) -> Void) { + func flutterEchoDouble( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2440,18 +3085,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoDouble` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoDouble` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2463,7 +3112,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! Double completion(.success(result)) @@ -2472,7 +3125,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed string, to test serialization and deserialization. - func flutterEchoString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) { + func flutterEchoString( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2480,18 +3136,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoString` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoString` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2503,7 +3163,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -2512,7 +3176,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, completion: @escaping (Result) -> Void) { + func flutterEchoUint8List( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2520,18 +3187,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoUint8List` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoUint8List` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2543,7 +3214,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! FlutterStandardTypedData completion(.success(result)) @@ -2552,7 +3227,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed list, to test serialization and deserialization. - func flutterEchoList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void) { + func flutterEchoList( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?], + completion: @escaping (Result<[Any?], ProxyApiTestsError>) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2560,18 +3238,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoList` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoList` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2583,7 +3265,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [Any?] completion(.success(result)) @@ -2593,7 +3279,10 @@ withIdentifier: pigeonIdentifierArg) /// Returns the passed list with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void) { + func flutterEchoProxyApiList( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [ProxyApiTestClass?], + completion: @escaping (Result<[ProxyApiTestClass?], ProxyApiTestsError>) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2601,18 +3290,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoProxyApiList` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoProxyApiList` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2624,7 +3317,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [ProxyApiTestClass?] completion(.success(result)) @@ -2633,7 +3330,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed map, to test serialization and deserialization. - func flutterEchoMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void) { + func flutterEchoMap( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?], + completion: @escaping (Result<[String?: Any?], ProxyApiTestsError>) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2641,18 +3341,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoMap` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoMap` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2664,7 +3368,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: Any?] completion(.success(result)) @@ -2674,7 +3382,11 @@ withIdentifier: pigeonIdentifierArg) /// Returns the passed map with ProxyApis, to test serialization and /// deserialization. - func flutterEchoProxyApiMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: ProxyApiTestClass?], completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void) { + func flutterEchoProxyApiMap( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + aMap aMapArg: [String?: ProxyApiTestClass?], + completion: @escaping (Result<[String?: ProxyApiTestClass?], ProxyApiTestsError>) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2682,18 +3394,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoProxyApiMap` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoProxyApiMap` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2705,7 +3421,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! [String?: ProxyApiTestClass?] completion(.success(result)) @@ -2714,7 +3434,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed enum to test serialization and deserialization. - func flutterEchoEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, completion: @escaping (Result) -> Void) { + func flutterEchoEnum( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2722,18 +3445,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoEnum` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoEnum` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2745,7 +3472,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! ProxyApiTestEnum completion(.success(result)) @@ -2754,7 +3485,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, completion: @escaping (Result) -> Void) { + func flutterEchoProxyApi( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2762,18 +3496,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoProxyApi` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoProxyApi` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2785,7 +3523,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! ProxyApiSuperClass completion(.success(result)) @@ -2794,7 +3536,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed boolean, to test serialization and deserialization. - func flutterEchoNullableBool(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, completion: @escaping (Result) -> Void) { + func flutterEchoNullableBool( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aBool aBoolArg: Bool?, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2802,18 +3547,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableBool` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableBool` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aBoolArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2832,7 +3581,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed int, to test serialization and deserialization. - func flutterEchoNullableInt(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, completion: @escaping (Result) -> Void) { + func flutterEchoNullableInt( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anInt anIntArg: Int64?, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2840,18 +3592,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableInt` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableInt` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anIntArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2870,7 +3626,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed double, to test serialization and deserialization. - func flutterEchoNullableDouble(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, completion: @escaping (Result) -> Void) { + func flutterEchoNullableDouble( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aDouble aDoubleArg: Double?, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2878,18 +3637,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableDouble` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableDouble` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aDoubleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2908,7 +3671,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed string, to test serialization and deserialization. - func flutterEchoNullableString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, completion: @escaping (Result) -> Void) { + func flutterEchoNullableString( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String?, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2916,18 +3682,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableString` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableString` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2946,7 +3716,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed byte list, to test serialization and deserialization. - func flutterEchoNullableUint8List(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, completion: @escaping (Result) -> Void) { + func flutterEchoNullableUint8List( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: FlutterStandardTypedData?, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2954,18 +3727,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableUint8List` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableUint8List` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -2984,7 +3761,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed list, to test serialization and deserialization. - func flutterEchoNullableList(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void) { + func flutterEchoNullableList( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aList aListArg: [Any?]?, + completion: @escaping (Result<[Any?]?, ProxyApiTestsError>) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -2992,18 +3772,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableList` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableList` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aListArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3022,7 +3806,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed map, to test serialization and deserialization. - func flutterEchoNullableMap(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void) { + func flutterEchoNullableMap( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aMap aMapArg: [String?: Any?]?, + completion: @escaping (Result<[String?: Any?]?, ProxyApiTestsError>) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3030,18 +3817,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableMap` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableMap` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aMapArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3060,7 +3851,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed enum to test serialization and deserialization. - func flutterEchoNullableEnum(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, completion: @escaping (Result) -> Void) { + func flutterEchoNullableEnum( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, anEnum anEnumArg: ProxyApiTestEnum?, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3068,18 +3862,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableEnum` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableEnum` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, anEnumArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3098,7 +3896,11 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed ProxyApi to test serialization and deserialization. - func flutterEchoNullableProxyApi(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aProxyApi aProxyApiArg: ProxyApiSuperClass?, completion: @escaping (Result) -> Void) { + func flutterEchoNullableProxyApi( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + aProxyApi aProxyApiArg: ProxyApiSuperClass?, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3106,18 +3908,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoNullableProxyApi` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoNullableProxyApi` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aProxyApiArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3137,7 +3943,10 @@ withIdentifier: pigeonIdentifierArg) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - func flutterNoopAsync(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, completion: @escaping (Result) -> Void) { + func flutterNoopAsync( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3145,18 +3954,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterNoopAsync` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterNoopAsync` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3174,7 +3987,10 @@ withIdentifier: pigeonIdentifierArg) } /// Returns the passed in generic Object asynchronously. - func flutterEchoAsyncString(pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, completion: @escaping (Result) -> Void) { + func flutterEchoAsyncString( + pigeonInstance pigeonInstanceArg: ProxyApiTestClass, aString aStringArg: String, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3182,18 +3998,22 @@ withIdentifier: pigeonIdentifierArg) code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiTestClass.flutterEchoAsyncString` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiTestClass.flutterEchoAsyncString` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg, aStringArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3205,7 +4025,11 @@ withIdentifier: pigeonIdentifierArg) let details: String? = nilOrValue(listResponse[2]) completion(.failure(ProxyApiTestsError(code: code, message: message, details: details))) } else if listResponse[0] == nil { - completion(.failure(ProxyApiTestsError(code: "null-error", message: "Flutter api returned null value for non-null return value.", details: ""))) + completion( + .failure( + ProxyApiTestsError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) } else { let result = listResponse[0] as! String completion(.success(result)) @@ -3216,34 +4040,44 @@ withIdentifier: pigeonIdentifierArg) } protocol PigeonApiDelegateProxyApiSuperClass { func pigeonDefaultConstructor(pigeonApi: PigeonApiProxyApiSuperClass) throws -> ProxyApiSuperClass - func aSuperMethod(pigeonApi: PigeonApiProxyApiSuperClass, pigeonInstance: ProxyApiSuperClass) throws + func aSuperMethod(pigeonApi: PigeonApiProxyApiSuperClass, pigeonInstance: ProxyApiSuperClass) + throws } protocol PigeonApiProtocolProxyApiSuperClass { } -final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { +final class PigeonApiProxyApiSuperClass: PigeonApiProtocolProxyApiSuperClass { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiSuperClass - init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiSuperClass) { + init( + pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, + delegate: PigeonApiDelegateProxyApiSuperClass + ) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiSuperClass?) { + static func setUpMessageHandlers( + binaryMessenger: FlutterBinaryMessenger, api: PigeonApiProxyApiSuperClass? + ) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( + pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( -try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), -withIdentifier: pigeonIdentifierArg) + try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), + withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3252,7 +4086,9 @@ withIdentifier: pigeonIdentifierArg) } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - let aSuperMethodChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", binaryMessenger: binaryMessenger, codec: codec) + let aSuperMethodChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { aSuperMethodChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3270,21 +4106,27 @@ withIdentifier: pigeonIdentifierArg) } ///Creates a Dart instance of ProxyApiSuperClass and attaches it to [pigeonInstance]. - func pigeonNewInstance(pigeonInstance: ProxyApiSuperClass, completion: @escaping (Result) -> Void) { + func pigeonNewInstance( + pigeonInstance: ProxyApiSuperClass, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( ProxyApiTestsError( code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) - } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { + } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { completion(.success(())) - } else { - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) + } else { + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( + pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3306,32 +4148,43 @@ open class PigeonApiDelegateProxyApiInterface { } protocol PigeonApiProtocolProxyApiInterface { - func anInterfaceMethod(pigeonInstance pigeonInstanceArg: ProxyApiInterface, completion: @escaping (Result) -> Void) + func anInterfaceMethod( + pigeonInstance pigeonInstanceArg: ProxyApiInterface, + completion: @escaping (Result) -> Void) } -final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { +final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateProxyApiInterface - init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateProxyApiInterface) { + init( + pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, + delegate: PigeonApiDelegateProxyApiInterface + ) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } ///Creates a Dart instance of ProxyApiInterface and attaches it to [pigeonInstance]. - func pigeonNewInstance(pigeonInstance: ProxyApiInterface, completion: @escaping (Result) -> Void) { + func pigeonNewInstance( + pigeonInstance: ProxyApiInterface, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( ProxyApiTestsError( code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) - } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { + } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { completion(.success(())) - } else { - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) + } else { + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( + pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3348,7 +4201,10 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } } } - func anInterfaceMethod(pigeonInstance pigeonInstanceArg: ProxyApiInterface, completion: @escaping (Result) -> Void) { + func anInterfaceMethod( + pigeonInstance pigeonInstanceArg: ProxyApiInterface, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( @@ -3356,18 +4212,22 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) return - } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { + } else if !pigeonRegistrar.instanceManager.containsInstance(pigeonInstanceArg as AnyObject) { completion( .failure( ProxyApiTestsError( code: "missing-instance-error", - message: "Callback to `ProxyApiInterface.anInterfaceMethod` failed because native instance was not in the instance manager.", details: ""))) + message: + "Callback to `ProxyApiInterface.anInterfaceMethod` failed because native instance was not in the instance manager.", + details: ""))) return } let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonInstanceArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -3387,37 +4247,48 @@ final class PigeonApiProxyApiInterface: PigeonApiProtocolProxyApiInterface { } protocol PigeonApiDelegateClassWithApiRequirement { @available(iOS 15.0.0, macOS 10.0.0, *) - func pigeonDefaultConstructor(pigeonApi: PigeonApiClassWithApiRequirement) throws -> ClassWithApiRequirement + func pigeonDefaultConstructor(pigeonApi: PigeonApiClassWithApiRequirement) throws + -> ClassWithApiRequirement @available(iOS 15.0.0, macOS 10.0.0, *) - func aMethod(pigeonApi: PigeonApiClassWithApiRequirement, pigeonInstance: ClassWithApiRequirement) throws + func aMethod(pigeonApi: PigeonApiClassWithApiRequirement, pigeonInstance: ClassWithApiRequirement) + throws } protocol PigeonApiProtocolClassWithApiRequirement { } -final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequirement { +final class PigeonApiClassWithApiRequirement: PigeonApiProtocolClassWithApiRequirement { unowned let pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar let pigeonDelegate: PigeonApiDelegateClassWithApiRequirement - init(pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, delegate: PigeonApiDelegateClassWithApiRequirement) { + init( + pigeonRegistrar: ProxyApiTestsPigeonProxyApiRegistrar, + delegate: PigeonApiDelegateClassWithApiRequirement + ) { self.pigeonRegistrar = pigeonRegistrar self.pigeonDelegate = delegate } - static func setUpMessageHandlers(binaryMessenger: FlutterBinaryMessenger, api: PigeonApiClassWithApiRequirement?) { + static func setUpMessageHandlers( + binaryMessenger: FlutterBinaryMessenger, api: PigeonApiClassWithApiRequirement? + ) { let codec: FlutterStandardMessageCodec = api != nil ? FlutterStandardMessageCodec( - readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter(pigeonRegistrar: api!.pigeonRegistrar)) + readerWriter: ProxyApiTestsPigeonInternalProxyApiCodecReaderWriter( + pigeonRegistrar: api!.pigeonRegistrar)) : FlutterStandardMessageCodec.sharedInstance() if #available(iOS 15.0.0, macOS 10.0.0, *) { - let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) + let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pigeonIdentifierArg = args[0] as! Int64 do { api.pigeonRegistrar.instanceManager.addDartCreatedInstance( -try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), -withIdentifier: pigeonIdentifierArg) + try api.pigeonDelegate.pigeonDefaultConstructor(pigeonApi: api), + withIdentifier: pigeonIdentifierArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3426,23 +4297,30 @@ withIdentifier: pigeonIdentifierArg) } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } - } else { + } else { let pigeonDefaultConstructorChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", + name: + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_defaultConstructor", binaryMessenger: binaryMessenger, codec: codec) if api != nil { pigeonDefaultConstructorChannel.setMessageHandler { message, reply in - reply(wrapError(FlutterError(code: "PigeonUnsupportedOperationError", - message: "Call to pigeonDefaultConstructor requires @available(iOS 15.0.0, macOS 10.0.0, *).", - details: nil - ))) + reply( + wrapError( + FlutterError( + code: "PigeonUnsupportedOperationError", + message: + "Call to pigeonDefaultConstructor requires @available(iOS 15.0.0, macOS 10.0.0, *).", + details: nil + ))) } } else { pigeonDefaultConstructorChannel.setMessageHandler(nil) } } if #available(iOS 15.0.0, macOS 10.0.0, *) { - let aMethodChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", binaryMessenger: binaryMessenger, codec: codec) + let aMethodChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { aMethodChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3457,16 +4335,19 @@ withIdentifier: pigeonIdentifierArg) } else { aMethodChannel.setMessageHandler(nil) } - } else { + } else { let aMethodChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.aMethod", binaryMessenger: binaryMessenger, codec: codec) if api != nil { aMethodChannel.setMessageHandler { message, reply in - reply(wrapError(FlutterError(code: "PigeonUnsupportedOperationError", - message: "Call to aMethod requires @available(iOS 15.0.0, macOS 10.0.0, *).", - details: nil - ))) + reply( + wrapError( + FlutterError( + code: "PigeonUnsupportedOperationError", + message: "Call to aMethod requires @available(iOS 15.0.0, macOS 10.0.0, *).", + details: nil + ))) } } else { aMethodChannel.setMessageHandler(nil) @@ -3476,21 +4357,27 @@ withIdentifier: pigeonIdentifierArg) ///Creates a Dart instance of ClassWithApiRequirement and attaches it to [pigeonInstance]. @available(iOS 15.0.0, macOS 10.0.0, *) - func pigeonNewInstance(pigeonInstance: ClassWithApiRequirement, completion: @escaping (Result) -> Void) { + func pigeonNewInstance( + pigeonInstance: ClassWithApiRequirement, + completion: @escaping (Result) -> Void + ) { if pigeonRegistrar.ignoreCallsToDart { completion( .failure( ProxyApiTestsError( code: "ignore-calls-error", message: "Calls to Dart are being ignored.", details: ""))) - } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { + } else if pigeonRegistrar.instanceManager.containsInstance(pigeonInstance as AnyObject) { completion(.success(())) - } else { - let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeonInstance as AnyObject) + } else { + let pigeonIdentifierArg = pigeonRegistrar.instanceManager.addHostCreatedInstance( + pigeonInstance as AnyObject) let binaryMessenger = pigeonRegistrar.binaryMessenger let codec = pigeonRegistrar.codec - let channelName: String = "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.ClassWithApiRequirement.pigeon_newInstance" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([pigeonIdentifierArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift index e9738b88df64..fa949990a2bb 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift @@ -78,7 +78,7 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { func getAllNullableTypesHash(value: AllNullableTypes) -> Int64 { var hasher = Hasher() value.hash(into: &hasher) - return Int64(bitPattern: UInt64(hasher.finalize())) + return Int64(hasher.finalize()) } func echo(_ everything: AllNullableTypesWithoutRecursion?) throws -> AllNullableTypesWithoutRecursion? diff --git a/packages/pigeon/platform_tests/test_plugin/example/test_output.txt b/packages/pigeon/platform_tests/test_plugin/example/test_output.txt new file mode 100644 index 000000000000..1494671efe73 --- /dev/null +++ b/packages/pigeon/platform_tests/test_plugin/example/test_output.txt @@ -0,0 +1,308 @@ +00:00 +0: loading /Users/tarrinneal/work/packages/packages/pigeon/platform_tests/test_plugin/example/integration_test/test.dart +Building macOS application... +✓ Built build/macos/Build/Products/Debug/test_plugin_example.app +Failed to foreground app; open returned 1 +00:00 +0: Host sync API tests basic void->void call works +00:00 +1: Host sync API tests all datatypes serialize and deserialize correctly +00:00 +2: Host sync API tests all nullable datatypes serialize and deserialize correctly +00:00 +3: Host sync API tests all null datatypes serialize and deserialize correctly +00:00 +4: Host sync API tests Classes with list of null serialize and deserialize correctly +00:00 +5: Host sync API tests Classes with map of null serialize and deserialize correctly +00:00 +6: Host sync API tests all nullable datatypes without recursion serialize and deserialize correctly +00:00 +7: Host sync API tests all null datatypes without recursion serialize and deserialize correctly +00:00 +8: Host sync API tests Classes without recursion with list of null serialize and deserialize correctly +00:00 +9: Host sync API tests Classes without recursion with map of null serialize and deserialize correctly +00:00 +10: Host sync API tests errors are returned correctly +00:00 +11: Host sync API tests errors are returned from void methods correctly +00:00 +12: Host sync API tests flutter errors are returned correctly +00:00 +13: Host sync API tests nested objects can be sent correctly +00:00 +14: Host sync API tests nested objects can be received correctly +00:00 +15: Host sync API tests nested classes can serialize and deserialize correctly +00:00 +16: Host sync API tests nested null classes can serialize and deserialize correctly +00:00 +17: Host sync API tests Arguments of multiple types serialize and deserialize correctly +00:00 +18: Host sync API tests Arguments of multiple null types serialize and deserialize correctly +00:00 +19: Host sync API tests Arguments of multiple types serialize and deserialize correctly (WithoutRecursion) +00:00 +20: Host sync API tests Arguments of multiple null types serialize and deserialize correctly (WithoutRecursion) +00:00 +21: Host sync API tests Int serialize and deserialize correctly +00:00 +22: Host sync API tests Int64 serialize and deserialize correctly +00:00 +23: Host sync API tests Doubles serialize and deserialize correctly +00:00 +24: Host sync API tests booleans serialize and deserialize correctly +00:00 +25: Host sync API tests strings serialize and deserialize correctly +00:00 +26: Host sync API tests Uint8List serialize and deserialize correctly +00:00 +27: Host sync API tests generic Objects serialize and deserialize correctly +00:00 +28: Host sync API tests lists serialize and deserialize correctly +00:00 +29: Host sync API tests enum lists serialize and deserialize correctly +00:00 +30: Host sync API tests class lists serialize and deserialize correctly +00:00 +31: Host sync API tests NonNull enum lists serialize and deserialize correctly +00:00 +32: Host sync API tests NonNull class lists serialize and deserialize correctly +00:00 +33: Host sync API tests maps serialize and deserialize correctly +00:00 +34: Host sync API tests string maps serialize and deserialize correctly +00:00 +35: Host sync API tests int maps serialize and deserialize correctly +00:00 +36: Host sync API tests enum maps serialize and deserialize correctly +00:00 +37: Host sync API tests class maps serialize and deserialize correctly +00:00 +38: Host sync API tests NonNull string maps serialize and deserialize correctly +00:00 +39: Host sync API tests NonNull int maps serialize and deserialize correctly +00:00 +40: Host sync API tests NonNull enum maps serialize and deserialize correctly +00:00 +41: Host sync API tests NonNull class maps serialize and deserialize correctly +00:00 +42: Host sync API tests enums serialize and deserialize correctly +00:00 +43: Host sync API tests enums serialize and deserialize correctly (again) +00:00 +44: Host sync API tests multi word enums serialize and deserialize correctly +00:00 +45: Host sync API tests required named parameter +00:00 +46: Host sync API tests optional default parameter no arg +00:00 +47: Host sync API tests optional default parameter with arg +00:00 +48: Host sync API tests named default parameter no arg +00:00 +49: Host sync API tests named default parameter with arg +00:00 +50: Host sync API tests Nullable Int serialize and deserialize correctly +00:00 +51: Host sync API tests Nullable Int64 serialize and deserialize correctly +00:00 +52: Host sync API tests Null Ints serialize and deserialize correctly +00:00 +53: Host sync API tests Nullable Doubles serialize and deserialize correctly +00:00 +54: Host sync API tests Null Doubles serialize and deserialize correctly +00:00 +55: Host sync API tests Nullable booleans serialize and deserialize correctly +00:00 +56: Host sync API tests Null booleans serialize and deserialize correctly +00:00 +57: Host sync API tests Nullable strings serialize and deserialize correctly +00:00 +58: Host sync API tests Null strings serialize and deserialize correctly +00:00 +59: Host sync API tests Nullable Uint8List serialize and deserialize correctly +00:00 +60: Host sync API tests Null Uint8List serialize and deserialize correctly +00:00 +61: Host sync API tests generic nullable Objects serialize and deserialize correctly +00:00 +62: Host sync API tests Null generic Objects serialize and deserialize correctly +00:00 +63: Host sync API tests nullable lists serialize and deserialize correctly +00:00 +64: Host sync API tests nullable enum lists serialize and deserialize correctly +00:00 +65: Host sync API tests nullable lists serialize and deserialize correctly +00:00 +66: Host sync API tests nullable NonNull enum lists serialize and deserialize correctly +00:00 +67: Host sync API tests nullable NonNull lists serialize and deserialize correctly +00:00 +68: Host sync API tests nullable maps serialize and deserialize correctly +00:00 +69: Host sync API tests nullable string maps serialize and deserialize correctly +00:00 +70: Host sync API tests nullable int maps serialize and deserialize correctly +00:00 +71: Host sync API tests nullable enum maps serialize and deserialize correctly +00:00 +72: Host sync API tests nullable class maps serialize and deserialize correctly +00:00 +73: Host sync API tests nullable NonNull string maps serialize and deserialize correctly +00:00 +74: Host sync API tests nullable NonNull int maps serialize and deserialize correctly +00:00 +75: Host sync API tests nullable NonNull enum maps serialize and deserialize correctly +00:00 +76: Host sync API tests nullable NonNull class maps serialize and deserialize correctly +00:00 +77: Host sync API tests nullable enums serialize and deserialize correctly +00:00 +78: Host sync API tests nullable enums serialize and deserialize correctly (again) +00:00 +79: Host sync API tests multi word nullable enums serialize and deserialize correctly +00:00 +80: Host sync API tests null lists serialize and deserialize correctly +00:00 +81: Host sync API tests null maps serialize and deserialize correctly +00:00 +82: Host sync API tests null string maps serialize and deserialize correctly +00:00 +83: Host sync API tests null int maps serialize and deserialize correctly +00:00 +84: Host sync API tests null enums serialize and deserialize correctly +00:00 +85: Host sync API tests null enums serialize and deserialize correctly (again) +00:00 +86: Host sync API tests null classes serialize and deserialize correctly +00:00 +87: Host sync API tests optional nullable parameter +00:00 +88: Host sync API tests Null optional nullable parameter +00:00 +89: Host sync API tests named nullable parameter +00:00 +90: Host sync API tests Null named nullable parameter +00:00 +91: Host sync API tests Signed zero equality and hashing +00:00 +91: Host sync API tests Signed zero equality and hashing - did not complete [E] +00:00 +91: Host sync API tests NaN equality and hashing - did not complete [E] +00:00 +91: Host sync API tests Collection equality with signed zero and NaN - did not complete [E] +00:00 +91: Host sync API tests Map equality with null values and different keys - did not complete [E] +00:00 +91: Host sync API tests Deeply nested equality - did not complete [E] +00:00 +91: Host async API tests basic void->void call works - did not complete [E] +00:00 +91: Host async API tests async errors are returned from non void methods correctly - did not complete [E] +00:00 +91: Host async API tests async errors are returned from void methods correctly - did not complete [E] +00:00 +91: Host async API tests async flutter errors are returned from non void methods correctly - did not complete [E] +00:00 +91: Host async API tests all datatypes async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests all nullable async datatypes serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests all null datatypes async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests all nullable async datatypes without recursion serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests all null datatypes without recursion async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests Int async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests Int64 async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests Doubles async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests booleans async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests strings async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests Uint8List async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests generic Objects async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests enum lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests class lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests string maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests int maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests enum maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests class maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests enums serialize and deserialize correctly (again) - did not complete [E] +00:00 +91: Host async API tests multi word enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable Int async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable Int64 async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable Doubles async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable booleans async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable strings async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable Uint8List async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable generic Objects async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable enum lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable class lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable string maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable int maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable enum maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable class maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests nullable enums serialize and deserialize correctly (again) - did not complete [E] +00:00 +91: Host async API tests nullable enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null Ints async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null Doubles async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null booleans async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null strings async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null Uint8List async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null generic Objects async serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null string maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null int maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Host async API tests null enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Host API with suffix echo string succeeds with suffix with multiple instances - did not complete [E] +00:00 +91: Host API with suffix multiple instances will have different method channel names - did not complete [E] +00:00 +91: Flutter API tests basic void->void call works - did not complete [E] +00:00 +91: Flutter API tests errors are returned from non void methods correctly - did not complete [E] +00:00 +91: Flutter API tests errors are returned from void methods correctly - did not complete [E] +00:00 +91: Flutter API tests all datatypes serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests Arguments of multiple types serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests Arguments of multiple null types serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests Arguments of multiple types serialize and deserialize correctly (WithoutRecursion) - did not complete [E] +00:00 +91: Flutter API tests Arguments of multiple null types serialize and deserialize correctly (WithoutRecursion) - did not complete [E] +00:00 +91: Flutter API tests booleans serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests ints serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests doubles serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests strings serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests Uint8Lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests enum lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests class lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests NonNull enum lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests NonNull class lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests string maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests int maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests enum maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests class maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests NonNull string maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests NonNull int maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests NonNull enum maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests NonNull class maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests enums serialize and deserialize correctly (again) - did not complete [E] +00:00 +91: Flutter API tests multi word enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable booleans serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null booleans serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable ints serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable big ints serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null ints serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable doubles serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null doubles serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable strings serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null strings serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable Uint8Lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null Uint8Lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable enum lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable class lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable NonNull enum lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable NonNull class lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null lists serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable string maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable int maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable enum maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable class maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable NonNull string maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable NonNull int maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable NonNull enum maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable NonNull class maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null maps serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests nullable enums serialize and deserialize correctly (again) - did not complete [E] +00:00 +91: Flutter API tests multi word nullable enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null enums serialize and deserialize correctly - did not complete [E] +00:00 +91: Flutter API tests null enums serialize and deserialize correctly (again) - did not complete [E] +00:00 +91: Proxy API Tests named constructor - did not complete [E] +00:00 +91: Proxy API Tests noop - did not complete [E] +00:00 +91: Proxy API Tests throwError - did not complete [E] +00:00 +91: Proxy API Tests throwErrorFromVoid - did not complete [E] +00:00 +91: Proxy API Tests throwFlutterError - did not complete [E] +00:00 +91: Proxy API Tests echoInt - did not complete [E] +00:00 +91: Proxy API Tests echoDouble - did not complete [E] +00:00 +91: Proxy API Tests echoBool - did not complete [E] +00:00 +91: Proxy API Tests echoString - did not complete [E] +00:00 +91: Proxy API Tests echoUint8List - did not complete [E] +00:00 +91: Proxy API Tests echoObject - did not complete [E] +00:00 +91: Proxy API Tests echoList - did not complete [E] +00:00 +91: Proxy API Tests echoProxyApiList - did not complete [E] +00:00 +91: Proxy API Tests echoMap - did not complete [E] +00:00 +91: Proxy API Tests echoProxyApiMap - did not complete [E] +00:00 +91: Proxy API Tests echoEnum - did not complete [E] +00:00 +91: Proxy API Tests echoProxyApi - did not complete [E] +00:00 +91: Proxy API Tests echoNullableInt - did not complete [E] +00:00 +91: Proxy API Tests echoNullableDouble - did not complete [E] +00:00 +91: Proxy API Tests echoNullableBool - did not complete [E] +00:00 +91: Proxy API Tests echoNullableString - did not complete [E] +00:00 +91: Proxy API Tests echoNullableUint8List - did not complete [E] +00:00 +91: Proxy API Tests echoNullableObject - did not complete [E] +00:00 +91: Proxy API Tests echoNullableList - did not complete [E] +00:00 +91: Proxy API Tests echoNullableMap - did not complete [E] +00:00 +91: Proxy API Tests echoNullableEnum - did not complete [E] +00:00 +91: Proxy API Tests echoNullableProxyApi - did not complete [E] +00:00 +91: Proxy API Tests noopAsync - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncInt - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncDouble - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncBool - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncString - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncUint8List - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncObject - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncList - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncMap - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncEnum - did not complete [E] +00:00 +91: Proxy API Tests throwAsyncError - did not complete [E] +00:00 +91: Proxy API Tests throwAsyncErrorFromVoid - did not complete [E] +00:00 +91: Proxy API Tests throwAsyncFlutterError - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableInt - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableDouble - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableBool - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableString - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableUint8List - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableObject - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableList - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableMap - did not complete [E] +00:00 +91: Proxy API Tests echoAsyncNullableEnum - did not complete [E] +00:00 +91: Proxy API Tests staticNoop - did not complete [E] +00:00 +91: Proxy API Tests echoStaticString - did not complete [E] +00:00 +91: Proxy API Tests staticAsyncNoop - did not complete [E] +00:00 +91: Proxy API Tests callFlutterNoop - did not complete [E] +00:00 +91: Proxy API Tests callFlutterThrowError - did not complete [E] +00:00 +91: Proxy API Tests callFlutterThrowErrorFromVoid - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoBool - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoInt - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoDouble - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoString - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoUint8List - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoList - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoProxyApiList - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoMap - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoProxyApiMap - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoEnum - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoProxyApi - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableBool - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableInt - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableDouble - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableString - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableUint8List - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableList - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableMap - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableEnum - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoNullableProxyApi - did not complete [E] +00:00 +91: Proxy API Tests callFlutterNoopAsync - did not complete [E] +00:00 +91: Proxy API Tests callFlutterEchoAsyncString - did not complete [E] +00:00 +91: Flutter API with suffix echo string succeeds with suffix with multiple instances - did not complete [E] +00:00 +91: Unused data class still generate - did not complete [E] +00:00 +91: non-task-queue handlers run on a the main thread - did not complete [E] +00:00 +91: task queue handlers run on a background thread - did not complete [E] +00:00 +91: event channel sends continuous ints - did not complete [E] +00:00 +91: event channel handles extended sealed classes - did not complete [E] +00:00 +91: event channels handle multiple instances - did not complete [E] +00:00 +91: (tearDownAll) - did not complete [E] +00:00 +91: Some tests failed. diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 7fab74c5c9c6..08deb3d8d5d6 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -5,13 +5,18 @@ // Autogenerated from Pigeon, do not edit directly. // See also: https://pub.dev/packages/pigeon -#include -#include #include "core_tests.gen.h" + +#include + +#include static guint G_GNUC_UNUSED flpigeon_hash_double(double v) { if (std::isnan(v)) return (guint)0x7FF80000; if (v == 0.0) v = 0.0; - union { double d; uint64_t u; } u; + union { + double d; + uint64_t u; + } u; u.d = v; return (guint)(u.u ^ (u.u >> 32)); } @@ -30,46 +35,52 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { case FL_VALUE_TYPE_INT: return fl_value_get_int(a) == fl_value_get_int(b); case FL_VALUE_TYPE_FLOAT: { - return flpigeon_equals_double(fl_value_get_float(a), fl_value_get_float(b)); + return flpigeon_equals_double(fl_value_get_float(a), + fl_value_get_float(b)); } case FL_VALUE_TYPE_STRING: return g_strcmp0(fl_value_get_string(a), fl_value_get_string(b)) == 0; case FL_VALUE_TYPE_UINT8_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), fl_value_get_length(a)) == 0; + memcmp(fl_value_get_uint8_list(a), fl_value_get_uint8_list(b), + fl_value_get_length(a)) == 0; case FL_VALUE_TYPE_INT32_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), fl_value_get_length(a) * sizeof(int32_t)) == 0; + memcmp(fl_value_get_int32_list(a), fl_value_get_int32_list(b), + fl_value_get_length(a) * sizeof(int32_t)) == 0; case FL_VALUE_TYPE_INT64_LIST: return fl_value_get_length(a) == fl_value_get_length(b) && - memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), fl_value_get_length(a) * sizeof(int64_t)) == 0; + memcmp(fl_value_get_int64_list(a), fl_value_get_int64_list(b), + fl_value_get_length(a) * sizeof(int64_t)) == 0; case FL_VALUE_TYPE_FLOAT_LIST: { size_t len = fl_value_get_length(a); if (len != fl_value_get_length(b)) return FALSE; const double* a_data = fl_value_get_float_list(a); const double* b_data = fl_value_get_float_list(b); for (size_t i = 0; i < len; i++) { - if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE; - } + if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE; + } return TRUE; } case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); if (len != fl_value_get_length(b)) return FALSE; for (size_t i = 0; i < len; i++) { - if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), fl_value_get_list_value(b, i))) return FALSE; - } + if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), + fl_value_get_list_value(b, i))) + return FALSE; + } return TRUE; } case FL_VALUE_TYPE_MAP: { size_t len = fl_value_get_length(a); if (len != fl_value_get_length(b)) return FALSE; for (size_t i = 0; i < len; i++) { - FlValue* key = fl_value_get_map_key(a, i); - FlValue* val = fl_value_get_map_value(a, i); - FlValue* b_val = fl_value_lookup(b, key); - if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE; - } + FlValue* key = fl_value_get_map_key(a, i); + FlValue* val = fl_value_get_map_value(a, i); + FlValue* b_val = fl_value_lookup(b, key); + if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE; + } return TRUE; } default: @@ -108,7 +119,8 @@ static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) { guint result = 1; size_t len = fl_value_get_length(value); const int64_t* data = fl_value_get_int64_list(value); - for (size_t i = 0; i < len; i++) result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); + for (size_t i = 0; i < len; i++) + result = result * 31 + (guint)(data[i] ^ (data[i] >> 32)); return result; } case FL_VALUE_TYPE_FLOAT_LIST: { @@ -116,24 +128,26 @@ static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) { size_t len = fl_value_get_length(value); const double* data = fl_value_get_float_list(value); for (size_t i = 0; i < len; i++) { - result = result * 31 + flpigeon_hash_double(data[i]); - } + result = result * 31 + flpigeon_hash_double(data[i]); + } return result; } case FL_VALUE_TYPE_LIST: { guint result = 1; size_t len = fl_value_get_length(value); for (size_t i = 0; i < len; i++) { - result = result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i)); - } + result = + result * 31 + flpigeon_deep_hash(fl_value_get_list_value(value, i)); + } return result; } case FL_VALUE_TYPE_MAP: { guint result = 0; size_t len = fl_value_get_length(value); for (size_t i = 0; i < len; i++) { - result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ flpigeon_deep_hash(fl_value_get_map_value(value, i))); - } + result += (flpigeon_deep_hash(fl_value_get_map_key(value, i)) ^ + flpigeon_deep_hash(fl_value_get_map_value(value, i))); + } return result; } default: @@ -148,44 +162,54 @@ struct _CoreTestsPigeonTestUnusedClass { FlValue* a_field; }; -G_DEFINE_TYPE(CoreTestsPigeonTestUnusedClass, core_tests_pigeon_test_unused_class, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestUnusedClass, + core_tests_pigeon_test_unused_class, G_TYPE_OBJECT) static void core_tests_pigeon_test_unused_class_dispose(GObject* object) { - CoreTestsPigeonTestUnusedClass* self = CORE_TESTS_PIGEON_TEST_UNUSED_CLASS(object); + CoreTestsPigeonTestUnusedClass* self = + CORE_TESTS_PIGEON_TEST_UNUSED_CLASS(object); g_clear_pointer(&self->a_field, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_unused_class_parent_class)->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_unused_class_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_unused_class_init(CoreTestsPigeonTestUnusedClass* self) { -} +static void core_tests_pigeon_test_unused_class_init( + CoreTestsPigeonTestUnusedClass* self) {} -static void core_tests_pigeon_test_unused_class_class_init(CoreTestsPigeonTestUnusedClassClass* klass) { +static void core_tests_pigeon_test_unused_class_class_init( + CoreTestsPigeonTestUnusedClassClass* klass) { G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_unused_class_dispose; } -CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new(FlValue* a_field) { - CoreTestsPigeonTestUnusedClass* self = CORE_TESTS_PIGEON_TEST_UNUSED_CLASS(g_object_new(core_tests_pigeon_test_unused_class_get_type(), nullptr)); +CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new( + FlValue* a_field) { + CoreTestsPigeonTestUnusedClass* self = CORE_TESTS_PIGEON_TEST_UNUSED_CLASS( + g_object_new(core_tests_pigeon_test_unused_class_get_type(), nullptr)); if (a_field != nullptr) { self->a_field = fl_value_ref(a_field); - } - else { + } else { self->a_field = nullptr; } return self; } -FlValue* core_tests_pigeon_test_unused_class_get_a_field(CoreTestsPigeonTestUnusedClass* self) { +FlValue* core_tests_pigeon_test_unused_class_get_a_field( + CoreTestsPigeonTestUnusedClass* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_UNUSED_CLASS(self), nullptr); return self->a_field; } -static FlValue* core_tests_pigeon_test_unused_class_to_list(CoreTestsPigeonTestUnusedClass* self) { +static FlValue* core_tests_pigeon_test_unused_class_to_list( + CoreTestsPigeonTestUnusedClass* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, self->a_field != nullptr ? fl_value_ref(self->a_field) : fl_value_new_null()); + fl_value_append_take(values, self->a_field != nullptr + ? fl_value_ref(self->a_field) + : fl_value_new_null()); return values; } -static CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new_from_list(FlValue* values) { +static CoreTestsPigeonTestUnusedClass* +core_tests_pigeon_test_unused_class_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); FlValue* a_field = nullptr; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { @@ -194,7 +218,8 @@ static CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new_f return core_tests_pigeon_test_unused_class_new(a_field); } -gboolean core_tests_pigeon_test_unused_class_equals(CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b) { +gboolean core_tests_pigeon_test_unused_class_equals( + CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; if (!flpigeon_deep_equals(a->a_field, b->a_field)) { @@ -203,7 +228,8 @@ gboolean core_tests_pigeon_test_unused_class_equals(CoreTestsPigeonTestUnusedCla return TRUE; } -guint core_tests_pigeon_test_unused_class_hash(CoreTestsPigeonTestUnusedClass* self) { +guint core_tests_pigeon_test_unused_class_hash( + CoreTestsPigeonTestUnusedClass* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_UNUSED_CLASS(self), 0); guint result = 0; result = result * 31 + flpigeon_deep_hash(self->a_field); @@ -247,7 +273,8 @@ struct _CoreTestsPigeonTestAllTypes { FlValue* map_map; }; -G_DEFINE_TYPE(CoreTestsPigeonTestAllTypes, core_tests_pigeon_test_all_types, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestAllTypes, core_tests_pigeon_test_all_types, + G_TYPE_OBJECT) static void core_tests_pigeon_test_all_types_dispose(GObject* object) { CoreTestsPigeonTestAllTypes* self = CORE_TESTS_PIGEON_TEST_ALL_TYPES(object); @@ -269,29 +296,51 @@ static void core_tests_pigeon_test_all_types_dispose(GObject* object) { g_clear_pointer(&self->object_map, fl_value_unref); g_clear_pointer(&self->list_map, fl_value_unref); g_clear_pointer(&self->map_map, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_all_types_parent_class)->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_all_types_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_all_types_init(CoreTestsPigeonTestAllTypes* self) { -} +static void core_tests_pigeon_test_all_types_init( + CoreTestsPigeonTestAllTypes* self) {} -static void core_tests_pigeon_test_all_types_class_init(CoreTestsPigeonTestAllTypesClass* klass) { +static void core_tests_pigeon_test_all_types_class_init( + CoreTestsPigeonTestAllTypesClass* klass) { G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_all_types_dispose; } -CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new(gboolean a_bool, int64_t an_int, int64_t an_int64, double a_double, const uint8_t* a_byte_array, size_t a_byte_array_length, const int32_t* a4_byte_array, size_t a4_byte_array_length, const int64_t* a8_byte_array, size_t a8_byte_array_length, const double* a_float_array, size_t a_float_array_length, CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map) { - CoreTestsPigeonTestAllTypes* self = CORE_TESTS_PIGEON_TEST_ALL_TYPES(g_object_new(core_tests_pigeon_test_all_types_get_type(), nullptr)); +CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( + gboolean a_bool, int64_t an_int, int64_t an_int64, double a_double, + const uint8_t* a_byte_array, size_t a_byte_array_length, + const int32_t* a4_byte_array, size_t a4_byte_array_length, + const int64_t* a8_byte_array, size_t a8_byte_array_length, + const double* a_float_array, size_t a_float_array_length, + CoreTestsPigeonTestAnEnum an_enum, + CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, + FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, + FlValue* double_list, FlValue* bool_list, FlValue* enum_list, + FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, + FlValue* string_map, FlValue* int_map, FlValue* enum_map, + FlValue* object_map, FlValue* list_map, FlValue* map_map) { + CoreTestsPigeonTestAllTypes* self = CORE_TESTS_PIGEON_TEST_ALL_TYPES( + g_object_new(core_tests_pigeon_test_all_types_get_type(), nullptr)); self->a_bool = a_bool; self->an_int = an_int; self->an_int64 = an_int64; self->a_double = a_double; - self->a_byte_array = static_cast(memcpy(malloc(a_byte_array_length), a_byte_array, a_byte_array_length)); + self->a_byte_array = static_cast( + memcpy(malloc(a_byte_array_length), a_byte_array, a_byte_array_length)); self->a_byte_array_length = a_byte_array_length; - self->a4_byte_array = static_cast(memcpy(malloc(sizeof(int32_t) * a4_byte_array_length), a4_byte_array, sizeof(int32_t) * a4_byte_array_length)); + self->a4_byte_array = static_cast( + memcpy(malloc(sizeof(int32_t) * a4_byte_array_length), a4_byte_array, + sizeof(int32_t) * a4_byte_array_length)); self->a4_byte_array_length = a4_byte_array_length; - self->a8_byte_array = static_cast(memcpy(malloc(sizeof(int64_t) * a8_byte_array_length), a8_byte_array, sizeof(int64_t) * a8_byte_array_length)); + self->a8_byte_array = static_cast( + memcpy(malloc(sizeof(int64_t) * a8_byte_array_length), a8_byte_array, + sizeof(int64_t) * a8_byte_array_length)); self->a8_byte_array_length = a8_byte_array_length; - self->a_float_array = static_cast(memcpy(malloc(sizeof(double) * a_float_array_length), a_float_array, sizeof(double) * a_float_array_length)); + self->a_float_array = static_cast( + memcpy(malloc(sizeof(double) * a_float_array_length), a_float_array, + sizeof(double) * a_float_array_length)); self->a_float_array_length = a_float_array_length; self->an_enum = an_enum; self->another_enum = another_enum; @@ -316,162 +365,208 @@ CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new(gboolean a_boo return self; } -gboolean core_tests_pigeon_test_all_types_get_a_bool(CoreTestsPigeonTestAllTypes* self) { +gboolean core_tests_pigeon_test_all_types_get_a_bool( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), FALSE); return self->a_bool; } -int64_t core_tests_pigeon_test_all_types_get_an_int(CoreTestsPigeonTestAllTypes* self) { +int64_t core_tests_pigeon_test_all_types_get_an_int( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), 0); return self->an_int; } -int64_t core_tests_pigeon_test_all_types_get_an_int64(CoreTestsPigeonTestAllTypes* self) { +int64_t core_tests_pigeon_test_all_types_get_an_int64( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), 0); return self->an_int64; } -double core_tests_pigeon_test_all_types_get_a_double(CoreTestsPigeonTestAllTypes* self) { +double core_tests_pigeon_test_all_types_get_a_double( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), 0.0); return self->a_double; } -const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array(CoreTestsPigeonTestAllTypes* self, size_t* length) { +const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array( + CoreTestsPigeonTestAllTypes* self, size_t* length) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); *length = self->a_byte_array_length; return self->a_byte_array; } -const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array(CoreTestsPigeonTestAllTypes* self, size_t* length) { +const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array( + CoreTestsPigeonTestAllTypes* self, size_t* length) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); *length = self->a4_byte_array_length; return self->a4_byte_array; } -const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array(CoreTestsPigeonTestAllTypes* self, size_t* length) { +const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array( + CoreTestsPigeonTestAllTypes* self, size_t* length) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); *length = self->a8_byte_array_length; return self->a8_byte_array; } -const double* core_tests_pigeon_test_all_types_get_a_float_array(CoreTestsPigeonTestAllTypes* self, size_t* length) { +const double* core_tests_pigeon_test_all_types_get_a_float_array( + CoreTestsPigeonTestAllTypes* self, size_t* length) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); *length = self->a_float_array_length; return self->a_float_array; } -CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum(CoreTestsPigeonTestAllTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), static_cast(0)); +CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum( + CoreTestsPigeonTestAllTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), + static_cast(0)); return self->an_enum; } -CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_all_types_get_another_enum(CoreTestsPigeonTestAllTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), static_cast(0)); +CoreTestsPigeonTestAnotherEnum +core_tests_pigeon_test_all_types_get_another_enum( + CoreTestsPigeonTestAllTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), + static_cast(0)); return self->another_enum; } -const gchar* core_tests_pigeon_test_all_types_get_a_string(CoreTestsPigeonTestAllTypes* self) { +const gchar* core_tests_pigeon_test_all_types_get_a_string( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->a_string; } -FlValue* core_tests_pigeon_test_all_types_get_an_object(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_an_object( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->an_object; } -FlValue* core_tests_pigeon_test_all_types_get_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->list; } -FlValue* core_tests_pigeon_test_all_types_get_string_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_string_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->string_list; } -FlValue* core_tests_pigeon_test_all_types_get_int_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_int_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->int_list; } -FlValue* core_tests_pigeon_test_all_types_get_double_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_double_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->double_list; } -FlValue* core_tests_pigeon_test_all_types_get_bool_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_bool_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->bool_list; } -FlValue* core_tests_pigeon_test_all_types_get_enum_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_enum_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->enum_list; } -FlValue* core_tests_pigeon_test_all_types_get_object_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_object_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->object_list; } -FlValue* core_tests_pigeon_test_all_types_get_list_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_list_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->list_list; } -FlValue* core_tests_pigeon_test_all_types_get_map_list(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_map_list( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->map_list; } -FlValue* core_tests_pigeon_test_all_types_get_map(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_map( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->map; } -FlValue* core_tests_pigeon_test_all_types_get_string_map(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_string_map( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->string_map; } -FlValue* core_tests_pigeon_test_all_types_get_int_map(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_int_map( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->int_map; } -FlValue* core_tests_pigeon_test_all_types_get_enum_map(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_enum_map( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->enum_map; } -FlValue* core_tests_pigeon_test_all_types_get_object_map(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_object_map( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->object_map; } -FlValue* core_tests_pigeon_test_all_types_get_list_map(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_list_map( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->list_map; } -FlValue* core_tests_pigeon_test_all_types_get_map_map(CoreTestsPigeonTestAllTypes* self) { +FlValue* core_tests_pigeon_test_all_types_get_map_map( + CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); return self->map_map; } -static FlValue* core_tests_pigeon_test_all_types_to_list(CoreTestsPigeonTestAllTypes* self) { +static FlValue* core_tests_pigeon_test_all_types_to_list( + CoreTestsPigeonTestAllTypes* self) { FlValue* values = fl_value_new_list(); fl_value_append_take(values, fl_value_new_bool(self->a_bool)); fl_value_append_take(values, fl_value_new_int(self->an_int)); fl_value_append_take(values, fl_value_new_int(self->an_int64)); fl_value_append_take(values, fl_value_new_float(self->a_double)); - fl_value_append_take(values, fl_value_new_uint8_list(self->a_byte_array, self->a_byte_array_length)); - fl_value_append_take(values, fl_value_new_int32_list(self->a4_byte_array, self->a4_byte_array_length)); - fl_value_append_take(values, fl_value_new_int64_list(self->a8_byte_array, self->a8_byte_array_length)); - fl_value_append_take(values, fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); - fl_value_append_take(values, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(self->an_enum), (GDestroyNotify)fl_value_unref)); - fl_value_append_take(values, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(self->another_enum), (GDestroyNotify)fl_value_unref)); + fl_value_append_take( + values, + fl_value_new_uint8_list(self->a_byte_array, self->a_byte_array_length)); + fl_value_append_take( + values, + fl_value_new_int32_list(self->a4_byte_array, self->a4_byte_array_length)); + fl_value_append_take( + values, + fl_value_new_int64_list(self->a8_byte_array, self->a8_byte_array_length)); + fl_value_append_take( + values, + fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); + fl_value_append_take( + values, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(self->an_enum), + (GDestroyNotify)fl_value_unref)); + fl_value_append_take( + values, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(self->another_enum), + (GDestroyNotify)fl_value_unref)); fl_value_append_take(values, fl_value_new_string(self->a_string)); fl_value_append_take(values, fl_value_ref(self->an_object)); fl_value_append_take(values, fl_value_ref(self->list)); @@ -493,7 +588,8 @@ static FlValue* core_tests_pigeon_test_all_types_to_list(CoreTestsPigeonTestAllT return values; } -static CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { +static CoreTestsPigeonTestAllTypes* +core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); gboolean a_bool = fl_value_get_bool(value0); FlValue* value1 = fl_value_get_list_value(values, 1); @@ -515,9 +611,14 @@ static CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new_from_li const double* a_float_array = fl_value_get_float_list(value7); size_t a_float_array_length = fl_value_get_length(value7); FlValue* value8 = fl_value_get_list_value(values, 8); - CoreTestsPigeonTestAnEnum an_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value8))))); + CoreTestsPigeonTestAnEnum an_enum = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value8))))); FlValue* value9 = fl_value_get_list_value(values, 9); - CoreTestsPigeonTestAnotherEnum another_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value9))))); + CoreTestsPigeonTestAnotherEnum another_enum = + static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value9))))); FlValue* value10 = fl_value_get_list_value(values, 10); const gchar* a_string = fl_value_get_string(value10); FlValue* value11 = fl_value_get_list_value(values, 11); @@ -554,10 +655,17 @@ static CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new_from_li FlValue* list_map = value26; FlValue* value27 = fl_value_get_list_value(values, 27); FlValue* map_map = value27; - return core_tests_pigeon_test_all_types_new(a_bool, an_int, an_int64, a_double, a_byte_array, a_byte_array_length, a4_byte_array, a4_byte_array_length, a8_byte_array, a8_byte_array_length, a_float_array, a_float_array_length, an_enum, another_enum, a_string, an_object, list, string_list, int_list, double_list, bool_list, enum_list, object_list, list_list, map_list, map, string_map, int_map, enum_map, object_map, list_map, map_map); + return core_tests_pigeon_test_all_types_new( + a_bool, an_int, an_int64, a_double, a_byte_array, a_byte_array_length, + a4_byte_array, a4_byte_array_length, a8_byte_array, a8_byte_array_length, + a_float_array, a_float_array_length, an_enum, another_enum, a_string, + an_object, list, string_list, int_list, double_list, bool_list, enum_list, + object_list, list_list, map_list, map, string_map, int_map, enum_map, + object_map, list_map, map_map); } -gboolean core_tests_pigeon_test_all_types_equals(CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b) { +gboolean core_tests_pigeon_test_all_types_equals( + CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; if (a->a_bool != b->a_bool) { @@ -575,23 +683,33 @@ gboolean core_tests_pigeon_test_all_types_equals(CoreTestsPigeonTestAllTypes* a, if (a->a_byte_array != b->a_byte_array) { if (a->a_byte_array == nullptr || b->a_byte_array == nullptr) return FALSE; if (a->a_byte_array_length != b->a_byte_array_length) return FALSE; - if (memcmp(a->a_byte_array, b->a_byte_array, a->a_byte_array_length * sizeof(uint8_t)) != 0) return FALSE; + if (memcmp(a->a_byte_array, b->a_byte_array, + a->a_byte_array_length * sizeof(uint8_t)) != 0) + return FALSE; } if (a->a4_byte_array != b->a4_byte_array) { - if (a->a4_byte_array == nullptr || b->a4_byte_array == nullptr) return FALSE; + if (a->a4_byte_array == nullptr || b->a4_byte_array == nullptr) + return FALSE; if (a->a4_byte_array_length != b->a4_byte_array_length) return FALSE; - if (memcmp(a->a4_byte_array, b->a4_byte_array, a->a4_byte_array_length * sizeof(int32_t)) != 0) return FALSE; + if (memcmp(a->a4_byte_array, b->a4_byte_array, + a->a4_byte_array_length * sizeof(int32_t)) != 0) + return FALSE; } if (a->a8_byte_array != b->a8_byte_array) { - if (a->a8_byte_array == nullptr || b->a8_byte_array == nullptr) return FALSE; + if (a->a8_byte_array == nullptr || b->a8_byte_array == nullptr) + return FALSE; if (a->a8_byte_array_length != b->a8_byte_array_length) return FALSE; - if (memcmp(a->a8_byte_array, b->a8_byte_array, a->a8_byte_array_length * sizeof(int64_t)) != 0) return FALSE; + if (memcmp(a->a8_byte_array, b->a8_byte_array, + a->a8_byte_array_length * sizeof(int64_t)) != 0) + return FALSE; } if (a->a_float_array != b->a_float_array) { - if (a->a_float_array == nullptr || b->a_float_array == nullptr) return FALSE; + if (a->a_float_array == nullptr || b->a_float_array == nullptr) + return FALSE; if (a->a_float_array_length != b->a_float_array_length) return FALSE; for (size_t i = 0; i < a->a_float_array_length; i++) { - if (!flpigeon_equals_double(a->a_float_array[i], b->a_float_array[i])) return FALSE; + if (!flpigeon_equals_double(a->a_float_array[i], b->a_float_array[i])) + return FALSE; } } if (a->an_enum != b->an_enum) { @@ -702,7 +820,8 @@ guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* self) { } result = result * 31 + (guint)self->an_enum; result = result * 31 + (guint)self->another_enum; - result = result * 31 + (self->a_string != nullptr ? g_str_hash(self->a_string) : 0); + result = result * 31 + + (self->a_string != nullptr ? g_str_hash(self->a_string) : 0); result = result * 31 + flpigeon_deep_hash(self->an_object); result = result * 31 + flpigeon_deep_hash(self->list); result = result * 31 + flpigeon_deep_hash(self->string_list); @@ -763,10 +882,12 @@ struct _CoreTestsPigeonTestAllNullableTypes { FlValue* recursive_class_map; }; -G_DEFINE_TYPE(CoreTestsPigeonTestAllNullableTypes, core_tests_pigeon_test_all_nullable_types, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestAllNullableTypes, + core_tests_pigeon_test_all_nullable_types, G_TYPE_OBJECT) static void core_tests_pigeon_test_all_nullable_types_dispose(GObject* object) { - CoreTestsPigeonTestAllNullableTypes* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(object); + CoreTestsPigeonTestAllNullableTypes* self = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(object); g_clear_pointer(&self->a_nullable_bool, g_free); g_clear_pointer(&self->a_nullable_int, g_free); g_clear_pointer(&self->a_nullable_int64, g_free); @@ -794,417 +915,574 @@ static void core_tests_pigeon_test_all_nullable_types_dispose(GObject* object) { g_clear_pointer(&self->list_map, fl_value_unref); g_clear_pointer(&self->map_map, fl_value_unref); g_clear_pointer(&self->recursive_class_map, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_all_nullable_types_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_all_nullable_types_init(CoreTestsPigeonTestAllNullableTypes* self) { -} - -static void core_tests_pigeon_test_all_nullable_types_class_init(CoreTestsPigeonTestAllNullableTypesClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_all_nullable_types_dispose; -} - -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_new(gboolean* a_nullable_bool, int64_t* a_nullable_int, int64_t* a_nullable_int64, double* a_nullable_double, const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, const double* a_nullable_float_array, size_t a_nullable_float_array_length, CoreTestsPigeonTestAnEnum* a_nullable_enum, CoreTestsPigeonTestAnotherEnum* another_nullable_enum, const gchar* a_nullable_string, FlValue* a_nullable_object, CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* recursive_class_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map, FlValue* recursive_class_map) { - CoreTestsPigeonTestAllNullableTypes* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(g_object_new(core_tests_pigeon_test_all_nullable_types_get_type(), nullptr)); + G_OBJECT_CLASS(core_tests_pigeon_test_all_nullable_types_parent_class) + ->dispose(object); +} + +static void core_tests_pigeon_test_all_nullable_types_init( + CoreTestsPigeonTestAllNullableTypes* self) {} + +static void core_tests_pigeon_test_all_nullable_types_class_init( + CoreTestsPigeonTestAllNullableTypesClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_all_nullable_types_dispose; +} + +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_all_nullable_types_new( + gboolean* a_nullable_bool, int64_t* a_nullable_int, + int64_t* a_nullable_int64, double* a_nullable_double, + const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, + const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, + const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, + const double* a_nullable_float_array, size_t a_nullable_float_array_length, + CoreTestsPigeonTestAnEnum* a_nullable_enum, + CoreTestsPigeonTestAnotherEnum* another_nullable_enum, + const gchar* a_nullable_string, FlValue* a_nullable_object, + CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, + FlValue* string_list, FlValue* int_list, FlValue* double_list, + FlValue* bool_list, FlValue* enum_list, FlValue* object_list, + FlValue* list_list, FlValue* map_list, FlValue* recursive_class_list, + FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, + FlValue* object_map, FlValue* list_map, FlValue* map_map, + FlValue* recursive_class_map) { + CoreTestsPigeonTestAllNullableTypes* self = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(g_object_new( + core_tests_pigeon_test_all_nullable_types_get_type(), nullptr)); if (a_nullable_bool != nullptr) { self->a_nullable_bool = static_cast(malloc(sizeof(gboolean))); *self->a_nullable_bool = *a_nullable_bool; - } - else { + } else { self->a_nullable_bool = nullptr; } if (a_nullable_int != nullptr) { self->a_nullable_int = static_cast(malloc(sizeof(int64_t))); *self->a_nullable_int = *a_nullable_int; - } - else { + } else { self->a_nullable_int = nullptr; } if (a_nullable_int64 != nullptr) { self->a_nullable_int64 = static_cast(malloc(sizeof(int64_t))); *self->a_nullable_int64 = *a_nullable_int64; - } - else { + } else { self->a_nullable_int64 = nullptr; } if (a_nullable_double != nullptr) { self->a_nullable_double = static_cast(malloc(sizeof(double))); *self->a_nullable_double = *a_nullable_double; - } - else { + } else { self->a_nullable_double = nullptr; } if (a_nullable_byte_array != nullptr) { - self->a_nullable_byte_array = static_cast(memcpy(malloc(a_nullable_byte_array_length), a_nullable_byte_array, a_nullable_byte_array_length)); + self->a_nullable_byte_array = static_cast( + memcpy(malloc(a_nullable_byte_array_length), a_nullable_byte_array, + a_nullable_byte_array_length)); self->a_nullable_byte_array_length = a_nullable_byte_array_length; - } - else { + } else { self->a_nullable_byte_array = nullptr; self->a_nullable_byte_array_length = 0; } if (a_nullable4_byte_array != nullptr) { - self->a_nullable4_byte_array = static_cast(memcpy(malloc(sizeof(int32_t) * a_nullable4_byte_array_length), a_nullable4_byte_array, sizeof(int32_t) * a_nullable4_byte_array_length)); + self->a_nullable4_byte_array = static_cast( + memcpy(malloc(sizeof(int32_t) * a_nullable4_byte_array_length), + a_nullable4_byte_array, + sizeof(int32_t) * a_nullable4_byte_array_length)); self->a_nullable4_byte_array_length = a_nullable4_byte_array_length; - } - else { + } else { self->a_nullable4_byte_array = nullptr; self->a_nullable4_byte_array_length = 0; } if (a_nullable8_byte_array != nullptr) { - self->a_nullable8_byte_array = static_cast(memcpy(malloc(sizeof(int64_t) * a_nullable8_byte_array_length), a_nullable8_byte_array, sizeof(int64_t) * a_nullable8_byte_array_length)); + self->a_nullable8_byte_array = static_cast( + memcpy(malloc(sizeof(int64_t) * a_nullable8_byte_array_length), + a_nullable8_byte_array, + sizeof(int64_t) * a_nullable8_byte_array_length)); self->a_nullable8_byte_array_length = a_nullable8_byte_array_length; - } - else { + } else { self->a_nullable8_byte_array = nullptr; self->a_nullable8_byte_array_length = 0; } if (a_nullable_float_array != nullptr) { - self->a_nullable_float_array = static_cast(memcpy(malloc(sizeof(double) * a_nullable_float_array_length), a_nullable_float_array, sizeof(double) * a_nullable_float_array_length)); + self->a_nullable_float_array = static_cast( + memcpy(malloc(sizeof(double) * a_nullable_float_array_length), + a_nullable_float_array, + sizeof(double) * a_nullable_float_array_length)); self->a_nullable_float_array_length = a_nullable_float_array_length; - } - else { + } else { self->a_nullable_float_array = nullptr; self->a_nullable_float_array_length = 0; } if (a_nullable_enum != nullptr) { - self->a_nullable_enum = static_cast(malloc(sizeof(CoreTestsPigeonTestAnEnum))); + self->a_nullable_enum = static_cast( + malloc(sizeof(CoreTestsPigeonTestAnEnum))); *self->a_nullable_enum = *a_nullable_enum; - } - else { + } else { self->a_nullable_enum = nullptr; } if (another_nullable_enum != nullptr) { - self->another_nullable_enum = static_cast(malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); + self->another_nullable_enum = static_cast( + malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); *self->another_nullable_enum = *another_nullable_enum; - } - else { + } else { self->another_nullable_enum = nullptr; } if (a_nullable_string != nullptr) { self->a_nullable_string = g_strdup(a_nullable_string); - } - else { + } else { self->a_nullable_string = nullptr; } if (a_nullable_object != nullptr) { self->a_nullable_object = fl_value_ref(a_nullable_object); - } - else { + } else { self->a_nullable_object = nullptr; } if (all_nullable_types != nullptr) { - self->all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(g_object_ref(all_nullable_types)); - } - else { + self->all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + g_object_ref(all_nullable_types)); + } else { self->all_nullable_types = nullptr; } if (list != nullptr) { self->list = fl_value_ref(list); - } - else { + } else { self->list = nullptr; } if (string_list != nullptr) { self->string_list = fl_value_ref(string_list); - } - else { + } else { self->string_list = nullptr; } if (int_list != nullptr) { self->int_list = fl_value_ref(int_list); - } - else { + } else { self->int_list = nullptr; } if (double_list != nullptr) { self->double_list = fl_value_ref(double_list); - } - else { + } else { self->double_list = nullptr; } if (bool_list != nullptr) { self->bool_list = fl_value_ref(bool_list); - } - else { + } else { self->bool_list = nullptr; } if (enum_list != nullptr) { self->enum_list = fl_value_ref(enum_list); - } - else { + } else { self->enum_list = nullptr; } if (object_list != nullptr) { self->object_list = fl_value_ref(object_list); - } - else { + } else { self->object_list = nullptr; } if (list_list != nullptr) { self->list_list = fl_value_ref(list_list); - } - else { + } else { self->list_list = nullptr; } if (map_list != nullptr) { self->map_list = fl_value_ref(map_list); - } - else { + } else { self->map_list = nullptr; } if (recursive_class_list != nullptr) { self->recursive_class_list = fl_value_ref(recursive_class_list); - } - else { + } else { self->recursive_class_list = nullptr; } if (map != nullptr) { self->map = fl_value_ref(map); - } - else { + } else { self->map = nullptr; } if (string_map != nullptr) { self->string_map = fl_value_ref(string_map); - } - else { + } else { self->string_map = nullptr; } if (int_map != nullptr) { self->int_map = fl_value_ref(int_map); - } - else { + } else { self->int_map = nullptr; } if (enum_map != nullptr) { self->enum_map = fl_value_ref(enum_map); - } - else { + } else { self->enum_map = nullptr; } if (object_map != nullptr) { self->object_map = fl_value_ref(object_map); - } - else { + } else { self->object_map = nullptr; } if (list_map != nullptr) { self->list_map = fl_value_ref(list_map); - } - else { + } else { self->list_map = nullptr; } if (map_map != nullptr) { self->map_map = fl_value_ref(map_map); - } - else { + } else { self->map_map = nullptr; } if (recursive_class_map != nullptr) { self->recursive_class_map = fl_value_ref(recursive_class_map); - } - else { + } else { self->recursive_class_map = nullptr; } return self; } -gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->a_nullable_bool; } -int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->a_nullable_int; } -int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->a_nullable_int64; } -double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->a_nullable_double; } -const uint8_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array(CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +const uint8_t* +core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array( + CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); *length = self->a_nullable_byte_array_length; return self->a_nullable_byte_array; } -const int32_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array(CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +const int32_t* +core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array( + CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); *length = self->a_nullable4_byte_array_length; return self->a_nullable4_byte_array; } -const int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array(CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +const int64_t* +core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array( + CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); *length = self->a_nullable8_byte_array_length; return self->a_nullable8_byte_array; } -const double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array(CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +const double* +core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array( + CoreTestsPigeonTestAllNullableTypes* self, size_t* length) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); *length = self->a_nullable_float_array_length; return self->a_nullable_float_array; } -CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +CoreTestsPigeonTestAnEnum* +core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->a_nullable_enum; } -CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->another_nullable_enum; } -const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->a_nullable_string; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->a_nullable_object; } -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_get_all_nullable_types(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_all_nullable_types_get_all_nullable_types( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->all_nullable_types; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->string_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->int_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->double_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->bool_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->enum_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->object_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->list_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->map_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->recursive_class_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_map(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->string_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->int_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->enum_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->object_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->list_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->map_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map(CoreTestsPigeonTestAllNullableTypes* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); return self->recursive_class_map; } -static FlValue* core_tests_pigeon_test_all_nullable_types_to_list(CoreTestsPigeonTestAllNullableTypes* self) { +static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( + CoreTestsPigeonTestAllNullableTypes* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, self->a_nullable_bool != nullptr ? fl_value_new_bool(*self->a_nullable_bool) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_int != nullptr ? fl_value_new_int(*self->a_nullable_int) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_int64 != nullptr ? fl_value_new_int(*self->a_nullable_int64) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_double != nullptr ? fl_value_new_float(*self->a_nullable_double) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_byte_array != nullptr ? fl_value_new_uint8_list(self->a_nullable_byte_array, self->a_nullable_byte_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable4_byte_array != nullptr ? fl_value_new_int32_list(self->a_nullable4_byte_array, self->a_nullable4_byte_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable8_byte_array != nullptr ? fl_value_new_int64_list(self->a_nullable8_byte_array, self->a_nullable8_byte_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_float_array != nullptr ? fl_value_new_float_list(self->a_nullable_float_array, self->a_nullable_float_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - fl_value_append_take(values, self->another_nullable_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*self->another_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_string != nullptr ? fl_value_new_string(self->a_nullable_string) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_object != nullptr ? fl_value_ref(self->a_nullable_object) : fl_value_new_null()); - fl_value_append_take(values, self->all_nullable_types != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(self->all_nullable_types)) : fl_value_new_null()); - fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) : fl_value_new_null()); - fl_value_append_take(values, self->string_list != nullptr ? fl_value_ref(self->string_list) : fl_value_new_null()); - fl_value_append_take(values, self->int_list != nullptr ? fl_value_ref(self->int_list) : fl_value_new_null()); - fl_value_append_take(values, self->double_list != nullptr ? fl_value_ref(self->double_list) : fl_value_new_null()); - fl_value_append_take(values, self->bool_list != nullptr ? fl_value_ref(self->bool_list) : fl_value_new_null()); - fl_value_append_take(values, self->enum_list != nullptr ? fl_value_ref(self->enum_list) : fl_value_new_null()); - fl_value_append_take(values, self->object_list != nullptr ? fl_value_ref(self->object_list) : fl_value_new_null()); - fl_value_append_take(values, self->list_list != nullptr ? fl_value_ref(self->list_list) : fl_value_new_null()); - fl_value_append_take(values, self->map_list != nullptr ? fl_value_ref(self->map_list) : fl_value_new_null()); - fl_value_append_take(values, self->recursive_class_list != nullptr ? fl_value_ref(self->recursive_class_list) : fl_value_new_null()); - fl_value_append_take(values, self->map != nullptr ? fl_value_ref(self->map) : fl_value_new_null()); - fl_value_append_take(values, self->string_map != nullptr ? fl_value_ref(self->string_map) : fl_value_new_null()); - fl_value_append_take(values, self->int_map != nullptr ? fl_value_ref(self->int_map) : fl_value_new_null()); - fl_value_append_take(values, self->enum_map != nullptr ? fl_value_ref(self->enum_map) : fl_value_new_null()); - fl_value_append_take(values, self->object_map != nullptr ? fl_value_ref(self->object_map) : fl_value_new_null()); - fl_value_append_take(values, self->list_map != nullptr ? fl_value_ref(self->list_map) : fl_value_new_null()); - fl_value_append_take(values, self->map_map != nullptr ? fl_value_ref(self->map_map) : fl_value_new_null()); - fl_value_append_take(values, self->recursive_class_map != nullptr ? fl_value_ref(self->recursive_class_map) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_bool != nullptr + ? fl_value_new_bool(*self->a_nullable_bool) + : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_int != nullptr + ? fl_value_new_int(*self->a_nullable_int) + : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_int64 != nullptr + ? fl_value_new_int(*self->a_nullable_int64) + : fl_value_new_null()); + fl_value_append_take(values, + self->a_nullable_double != nullptr + ? fl_value_new_float(*self->a_nullable_double) + : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable_byte_array != nullptr + ? fl_value_new_uint8_list(self->a_nullable_byte_array, + self->a_nullable_byte_array_length) + : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable4_byte_array != nullptr + ? fl_value_new_int32_list(self->a_nullable4_byte_array, + self->a_nullable4_byte_array_length) + : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable8_byte_array != nullptr + ? fl_value_new_int64_list(self->a_nullable8_byte_array, + self->a_nullable8_byte_array_length) + : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable_float_array != nullptr + ? fl_value_new_float_list(self->a_nullable_float_array, + self->a_nullable_float_array_length) + : fl_value_new_null()); + fl_value_append_take( + values, + self->a_nullable_enum != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(*self->a_nullable_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + fl_value_append_take( + values, + self->another_nullable_enum != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(*self->another_nullable_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + fl_value_append_take(values, + self->a_nullable_string != nullptr + ? fl_value_new_string(self->a_nullable_string) + : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_object != nullptr + ? fl_value_ref(self->a_nullable_object) + : fl_value_new_null()); + fl_value_append_take( + values, self->all_nullable_types != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, + G_OBJECT(self->all_nullable_types)) + : fl_value_new_null()); + fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) + : fl_value_new_null()); + fl_value_append_take(values, self->string_list != nullptr + ? fl_value_ref(self->string_list) + : fl_value_new_null()); + fl_value_append_take(values, self->int_list != nullptr + ? fl_value_ref(self->int_list) + : fl_value_new_null()); + fl_value_append_take(values, self->double_list != nullptr + ? fl_value_ref(self->double_list) + : fl_value_new_null()); + fl_value_append_take(values, self->bool_list != nullptr + ? fl_value_ref(self->bool_list) + : fl_value_new_null()); + fl_value_append_take(values, self->enum_list != nullptr + ? fl_value_ref(self->enum_list) + : fl_value_new_null()); + fl_value_append_take(values, self->object_list != nullptr + ? fl_value_ref(self->object_list) + : fl_value_new_null()); + fl_value_append_take(values, self->list_list != nullptr + ? fl_value_ref(self->list_list) + : fl_value_new_null()); + fl_value_append_take(values, self->map_list != nullptr + ? fl_value_ref(self->map_list) + : fl_value_new_null()); + fl_value_append_take(values, self->recursive_class_list != nullptr + ? fl_value_ref(self->recursive_class_list) + : fl_value_new_null()); + fl_value_append_take(values, self->map != nullptr ? fl_value_ref(self->map) + : fl_value_new_null()); + fl_value_append_take(values, self->string_map != nullptr + ? fl_value_ref(self->string_map) + : fl_value_new_null()); + fl_value_append_take(values, self->int_map != nullptr + ? fl_value_ref(self->int_map) + : fl_value_new_null()); + fl_value_append_take(values, self->enum_map != nullptr + ? fl_value_ref(self->enum_map) + : fl_value_new_null()); + fl_value_append_take(values, self->object_map != nullptr + ? fl_value_ref(self->object_map) + : fl_value_new_null()); + fl_value_append_take(values, self->list_map != nullptr + ? fl_value_ref(self->list_map) + : fl_value_new_null()); + fl_value_append_take(values, self->map_map != nullptr + ? fl_value_ref(self->map_map) + : fl_value_new_null()); + fl_value_append_take(values, self->recursive_class_map != nullptr + ? fl_value_ref(self->recursive_class_map) + : fl_value_new_null()); return values; } -static CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { +static CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); gboolean* a_nullable_bool = nullptr; gboolean a_nullable_bool_value; @@ -1265,14 +1543,18 @@ static CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_ CoreTestsPigeonTestAnEnum* a_nullable_enum = nullptr; CoreTestsPigeonTestAnEnum a_nullable_enum_value; if (fl_value_get_type(value8) != FL_VALUE_TYPE_NULL) { - a_nullable_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value8))))); + a_nullable_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value8))))); a_nullable_enum = &a_nullable_enum_value; } FlValue* value9 = fl_value_get_list_value(values, 9); CoreTestsPigeonTestAnotherEnum* another_nullable_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_nullable_enum_value; if (fl_value_get_type(value9) != FL_VALUE_TYPE_NULL) { - another_nullable_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value9))))); + another_nullable_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value9))))); another_nullable_enum = &another_nullable_enum_value; } FlValue* value10 = fl_value_get_list_value(values, 10); @@ -1288,7 +1570,8 @@ static CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_ FlValue* value12 = fl_value_get_list_value(values, 12); CoreTestsPigeonTestAllNullableTypes* all_nullable_types = nullptr; if (fl_value_get_type(value12) != FL_VALUE_TYPE_NULL) { - all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value12)); + all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value12)); } FlValue* value13 = fl_value_get_list_value(values, 13); FlValue* list = nullptr; @@ -1380,53 +1663,104 @@ static CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_ if (fl_value_get_type(value30) != FL_VALUE_TYPE_NULL) { recursive_class_map = value30; } - return core_tests_pigeon_test_all_nullable_types_new(a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, a_nullable_byte_array, a_nullable_byte_array_length, a_nullable4_byte_array, a_nullable4_byte_array_length, a_nullable8_byte_array, a_nullable8_byte_array_length, a_nullable_float_array, a_nullable_float_array_length, a_nullable_enum, another_nullable_enum, a_nullable_string, a_nullable_object, all_nullable_types, list, string_list, int_list, double_list, bool_list, enum_list, object_list, list_list, map_list, recursive_class_list, map, string_map, int_map, enum_map, object_map, list_map, map_map, recursive_class_map); -} - -gboolean core_tests_pigeon_test_all_nullable_types_equals(CoreTestsPigeonTestAllNullableTypes* a, CoreTestsPigeonTestAllNullableTypes* b) { + return core_tests_pigeon_test_all_nullable_types_new( + a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, + a_nullable_byte_array, a_nullable_byte_array_length, + a_nullable4_byte_array, a_nullable4_byte_array_length, + a_nullable8_byte_array, a_nullable8_byte_array_length, + a_nullable_float_array, a_nullable_float_array_length, a_nullable_enum, + another_nullable_enum, a_nullable_string, a_nullable_object, + all_nullable_types, list, string_list, int_list, double_list, bool_list, + enum_list, object_list, list_list, map_list, recursive_class_list, map, + string_map, int_map, enum_map, object_map, list_map, map_map, + recursive_class_map); +} + +gboolean core_tests_pigeon_test_all_nullable_types_equals( + CoreTestsPigeonTestAllNullableTypes* a, + CoreTestsPigeonTestAllNullableTypes* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; - if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) return FALSE; - if (a->a_nullable_bool != nullptr && *a->a_nullable_bool != *b->a_nullable_bool) return FALSE; - if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) return FALSE; - if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) return FALSE; - if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) return FALSE; - if (a->a_nullable_int64 != nullptr && *a->a_nullable_int64 != *b->a_nullable_int64) return FALSE; - if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) return FALSE; - if (a->a_nullable_double != nullptr && !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) return FALSE; + if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) + return FALSE; + if (a->a_nullable_bool != nullptr && + *a->a_nullable_bool != *b->a_nullable_bool) + return FALSE; + if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) + return FALSE; + if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) + return FALSE; + if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) + return FALSE; + if (a->a_nullable_int64 != nullptr && + *a->a_nullable_int64 != *b->a_nullable_int64) + return FALSE; + if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) + return FALSE; + if (a->a_nullable_double != nullptr && + !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) + return FALSE; if (a->a_nullable_byte_array != b->a_nullable_byte_array) { - if (a->a_nullable_byte_array == nullptr || b->a_nullable_byte_array == nullptr) return FALSE; - if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) return FALSE; - if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) return FALSE; + if (a->a_nullable_byte_array == nullptr || + b->a_nullable_byte_array == nullptr) + return FALSE; + if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, + a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) + return FALSE; } if (a->a_nullable4_byte_array != b->a_nullable4_byte_array) { - if (a->a_nullable4_byte_array == nullptr || b->a_nullable4_byte_array == nullptr) return FALSE; - if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) return FALSE; - if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) return FALSE; + if (a->a_nullable4_byte_array == nullptr || + b->a_nullable4_byte_array == nullptr) + return FALSE; + if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, + a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) + return FALSE; } if (a->a_nullable8_byte_array != b->a_nullable8_byte_array) { - if (a->a_nullable8_byte_array == nullptr || b->a_nullable8_byte_array == nullptr) return FALSE; - if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) return FALSE; - if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) return FALSE; + if (a->a_nullable8_byte_array == nullptr || + b->a_nullable8_byte_array == nullptr) + return FALSE; + if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, + a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) + return FALSE; } if (a->a_nullable_float_array != b->a_nullable_float_array) { - if (a->a_nullable_float_array == nullptr || b->a_nullable_float_array == nullptr) return FALSE; - if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) return FALSE; + if (a->a_nullable_float_array == nullptr || + b->a_nullable_float_array == nullptr) + return FALSE; + if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) + return FALSE; for (size_t i = 0; i < a->a_nullable_float_array_length; i++) { - if (!flpigeon_equals_double(a->a_nullable_float_array[i], b->a_nullable_float_array[i])) return FALSE; + if (!flpigeon_equals_double(a->a_nullable_float_array[i], + b->a_nullable_float_array[i])) + return FALSE; } } - if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) return FALSE; - if (a->a_nullable_enum != nullptr && *a->a_nullable_enum != *b->a_nullable_enum) return FALSE; - if ((a->another_nullable_enum == nullptr) != (b->another_nullable_enum == nullptr)) return FALSE; - if (a->another_nullable_enum != nullptr && *a->another_nullable_enum != *b->another_nullable_enum) return FALSE; + if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) + return FALSE; + if (a->a_nullable_enum != nullptr && + *a->a_nullable_enum != *b->a_nullable_enum) + return FALSE; + if ((a->another_nullable_enum == nullptr) != + (b->another_nullable_enum == nullptr)) + return FALSE; + if (a->another_nullable_enum != nullptr && + *a->another_nullable_enum != *b->another_nullable_enum) + return FALSE; if (g_strcmp0(a->a_nullable_string, b->a_nullable_string) != 0) { return FALSE; } if (!flpigeon_deep_equals(a->a_nullable_object, b->a_nullable_object)) { return FALSE; } - if (!core_tests_pigeon_test_all_nullable_types_equals(a->all_nullable_types, b->all_nullable_types)) { + if (!core_tests_pigeon_test_all_nullable_types_equals( + a->all_nullable_types, b->all_nullable_types)) { return FALSE; } if (!flpigeon_deep_equals(a->list, b->list)) { @@ -1486,13 +1820,21 @@ gboolean core_tests_pigeon_test_all_nullable_types_equals(CoreTestsPigeonTestAll return TRUE; } -guint core_tests_pigeon_test_all_nullable_types_hash(CoreTestsPigeonTestAllNullableTypes* self) { +guint core_tests_pigeon_test_all_nullable_types_hash( + CoreTestsPigeonTestAllNullableTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), 0); guint result = 0; - result = result * 31 + (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); - result = result * 31 + (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); - result = result * 31 + (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); - result = result * 31 + (self->a_nullable_double != nullptr ? flpigeon_hash_double(*self->a_nullable_double) : 0); + result = + result * 31 + + (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); + result = result * 31 + + (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); + result = + result * 31 + + (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); + result = result * 31 + (self->a_nullable_double != nullptr + ? flpigeon_hash_double(*self->a_nullable_double) + : 0); { size_t len = self->a_nullable_byte_array_length; const uint8_t* data = self->a_nullable_byte_array; @@ -1529,11 +1871,18 @@ guint core_tests_pigeon_test_all_nullable_types_hash(CoreTestsPigeonTestAllNulla } } } - result = result * 31 + (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); - result = result * 31 + (self->another_nullable_enum != nullptr ? (guint)*self->another_nullable_enum : 0); - result = result * 31 + (self->a_nullable_string != nullptr ? g_str_hash(self->a_nullable_string) : 0); + result = + result * 31 + + (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); + result = result * 31 + (self->another_nullable_enum != nullptr + ? (guint)*self->another_nullable_enum + : 0); + result = result * 31 + (self->a_nullable_string != nullptr + ? g_str_hash(self->a_nullable_string) + : 0); result = result * 31 + flpigeon_deep_hash(self->a_nullable_object); - result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash(self->all_nullable_types); + result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash( + self->all_nullable_types); result = result * 31 + flpigeon_deep_hash(self->list); result = result * 31 + flpigeon_deep_hash(self->string_list); result = result * 31 + flpigeon_deep_hash(self->int_list); @@ -1592,10 +1941,14 @@ struct _CoreTestsPigeonTestAllNullableTypesWithoutRecursion { FlValue* map_map; }; -G_DEFINE_TYPE(CoreTestsPigeonTestAllNullableTypesWithoutRecursion, core_tests_pigeon_test_all_nullable_types_without_recursion, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestAllNullableTypesWithoutRecursion, + core_tests_pigeon_test_all_nullable_types_without_recursion, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_all_nullable_types_without_recursion_dispose(GObject* object) { - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(object); +static void core_tests_pigeon_test_all_nullable_types_without_recursion_dispose( + GObject* object) { + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(object); g_clear_pointer(&self->a_nullable_bool, g_free); g_clear_pointer(&self->a_nullable_int, g_free); g_clear_pointer(&self->a_nullable_int64, g_free); @@ -1620,381 +1973,575 @@ static void core_tests_pigeon_test_all_nullable_types_without_recursion_dispose( g_clear_pointer(&self->object_map, fl_value_unref); g_clear_pointer(&self->list_map, fl_value_unref); g_clear_pointer(&self->map_map, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_all_nullable_types_without_recursion_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_all_nullable_types_without_recursion_init(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { -} - -static void core_tests_pigeon_test_all_nullable_types_without_recursion_class_init(CoreTestsPigeonTestAllNullableTypesWithoutRecursionClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_all_nullable_types_without_recursion_dispose; -} - -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_nullable_types_without_recursion_new(gboolean* a_nullable_bool, int64_t* a_nullable_int, int64_t* a_nullable_int64, double* a_nullable_double, const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, const double* a_nullable_float_array, size_t a_nullable_float_array_length, CoreTestsPigeonTestAnEnum* a_nullable_enum, CoreTestsPigeonTestAnotherEnum* another_nullable_enum, const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map) { - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(g_object_new(core_tests_pigeon_test_all_nullable_types_without_recursion_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_all_nullable_types_without_recursion_parent_class) + ->dispose(object); +} + +static void core_tests_pigeon_test_all_nullable_types_without_recursion_init( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) {} + +static void +core_tests_pigeon_test_all_nullable_types_without_recursion_class_init( + CoreTestsPigeonTestAllNullableTypesWithoutRecursionClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_all_nullable_types_without_recursion_dispose; +} + +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_all_nullable_types_without_recursion_new( + gboolean* a_nullable_bool, int64_t* a_nullable_int, + int64_t* a_nullable_int64, double* a_nullable_double, + const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, + const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, + const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, + const double* a_nullable_float_array, size_t a_nullable_float_array_length, + CoreTestsPigeonTestAnEnum* a_nullable_enum, + CoreTestsPigeonTestAnotherEnum* another_nullable_enum, + const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, + FlValue* string_list, FlValue* int_list, FlValue* double_list, + FlValue* bool_list, FlValue* enum_list, FlValue* object_list, + FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, + FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, + FlValue* map_map) { + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(g_object_new( + core_tests_pigeon_test_all_nullable_types_without_recursion_get_type(), + nullptr)); if (a_nullable_bool != nullptr) { self->a_nullable_bool = static_cast(malloc(sizeof(gboolean))); *self->a_nullable_bool = *a_nullable_bool; - } - else { + } else { self->a_nullable_bool = nullptr; } if (a_nullable_int != nullptr) { self->a_nullable_int = static_cast(malloc(sizeof(int64_t))); *self->a_nullable_int = *a_nullable_int; - } - else { + } else { self->a_nullable_int = nullptr; } if (a_nullable_int64 != nullptr) { self->a_nullable_int64 = static_cast(malloc(sizeof(int64_t))); *self->a_nullable_int64 = *a_nullable_int64; - } - else { + } else { self->a_nullable_int64 = nullptr; } if (a_nullable_double != nullptr) { self->a_nullable_double = static_cast(malloc(sizeof(double))); *self->a_nullable_double = *a_nullable_double; - } - else { + } else { self->a_nullable_double = nullptr; } if (a_nullable_byte_array != nullptr) { - self->a_nullable_byte_array = static_cast(memcpy(malloc(a_nullable_byte_array_length), a_nullable_byte_array, a_nullable_byte_array_length)); + self->a_nullable_byte_array = static_cast( + memcpy(malloc(a_nullable_byte_array_length), a_nullable_byte_array, + a_nullable_byte_array_length)); self->a_nullable_byte_array_length = a_nullable_byte_array_length; - } - else { + } else { self->a_nullable_byte_array = nullptr; self->a_nullable_byte_array_length = 0; } if (a_nullable4_byte_array != nullptr) { - self->a_nullable4_byte_array = static_cast(memcpy(malloc(sizeof(int32_t) * a_nullable4_byte_array_length), a_nullable4_byte_array, sizeof(int32_t) * a_nullable4_byte_array_length)); + self->a_nullable4_byte_array = static_cast( + memcpy(malloc(sizeof(int32_t) * a_nullable4_byte_array_length), + a_nullable4_byte_array, + sizeof(int32_t) * a_nullable4_byte_array_length)); self->a_nullable4_byte_array_length = a_nullable4_byte_array_length; - } - else { + } else { self->a_nullable4_byte_array = nullptr; self->a_nullable4_byte_array_length = 0; } if (a_nullable8_byte_array != nullptr) { - self->a_nullable8_byte_array = static_cast(memcpy(malloc(sizeof(int64_t) * a_nullable8_byte_array_length), a_nullable8_byte_array, sizeof(int64_t) * a_nullable8_byte_array_length)); + self->a_nullable8_byte_array = static_cast( + memcpy(malloc(sizeof(int64_t) * a_nullable8_byte_array_length), + a_nullable8_byte_array, + sizeof(int64_t) * a_nullable8_byte_array_length)); self->a_nullable8_byte_array_length = a_nullable8_byte_array_length; - } - else { + } else { self->a_nullable8_byte_array = nullptr; self->a_nullable8_byte_array_length = 0; } if (a_nullable_float_array != nullptr) { - self->a_nullable_float_array = static_cast(memcpy(malloc(sizeof(double) * a_nullable_float_array_length), a_nullable_float_array, sizeof(double) * a_nullable_float_array_length)); + self->a_nullable_float_array = static_cast( + memcpy(malloc(sizeof(double) * a_nullable_float_array_length), + a_nullable_float_array, + sizeof(double) * a_nullable_float_array_length)); self->a_nullable_float_array_length = a_nullable_float_array_length; - } - else { + } else { self->a_nullable_float_array = nullptr; self->a_nullable_float_array_length = 0; } if (a_nullable_enum != nullptr) { - self->a_nullable_enum = static_cast(malloc(sizeof(CoreTestsPigeonTestAnEnum))); + self->a_nullable_enum = static_cast( + malloc(sizeof(CoreTestsPigeonTestAnEnum))); *self->a_nullable_enum = *a_nullable_enum; - } - else { + } else { self->a_nullable_enum = nullptr; } if (another_nullable_enum != nullptr) { - self->another_nullable_enum = static_cast(malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); + self->another_nullable_enum = static_cast( + malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); *self->another_nullable_enum = *another_nullable_enum; - } - else { + } else { self->another_nullable_enum = nullptr; } if (a_nullable_string != nullptr) { self->a_nullable_string = g_strdup(a_nullable_string); - } - else { + } else { self->a_nullable_string = nullptr; } if (a_nullable_object != nullptr) { self->a_nullable_object = fl_value_ref(a_nullable_object); - } - else { + } else { self->a_nullable_object = nullptr; } if (list != nullptr) { self->list = fl_value_ref(list); - } - else { + } else { self->list = nullptr; } if (string_list != nullptr) { self->string_list = fl_value_ref(string_list); - } - else { + } else { self->string_list = nullptr; } if (int_list != nullptr) { self->int_list = fl_value_ref(int_list); - } - else { + } else { self->int_list = nullptr; } if (double_list != nullptr) { self->double_list = fl_value_ref(double_list); - } - else { + } else { self->double_list = nullptr; } if (bool_list != nullptr) { self->bool_list = fl_value_ref(bool_list); - } - else { + } else { self->bool_list = nullptr; } if (enum_list != nullptr) { self->enum_list = fl_value_ref(enum_list); - } - else { + } else { self->enum_list = nullptr; } if (object_list != nullptr) { self->object_list = fl_value_ref(object_list); - } - else { + } else { self->object_list = nullptr; } if (list_list != nullptr) { self->list_list = fl_value_ref(list_list); - } - else { + } else { self->list_list = nullptr; } if (map_list != nullptr) { self->map_list = fl_value_ref(map_list); - } - else { + } else { self->map_list = nullptr; } if (map != nullptr) { self->map = fl_value_ref(map); - } - else { + } else { self->map = nullptr; } if (string_map != nullptr) { self->string_map = fl_value_ref(string_map); - } - else { + } else { self->string_map = nullptr; } if (int_map != nullptr) { self->int_map = fl_value_ref(int_map); - } - else { + } else { self->int_map = nullptr; } if (enum_map != nullptr) { self->enum_map = fl_value_ref(enum_map); - } - else { + } else { self->enum_map = nullptr; } if (object_map != nullptr) { self->object_map = fl_value_ref(object_map); - } - else { + } else { self->object_map = nullptr; } if (list_map != nullptr) { self->list_map = fl_value_ref(list_map); - } - else { + } else { self->list_map = nullptr; } if (map_map != nullptr) { self->map_map = fl_value_ref(map_map); - } - else { + } else { self->map_map = nullptr; } return self; } -gboolean* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +gboolean* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->a_nullable_bool; } -int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +int64_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->a_nullable_int; } -int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +int64_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->a_nullable_int64; } -double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +double* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->a_nullable_double; } -const uint8_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +const uint8_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); *length = self->a_nullable_byte_array_length; return self->a_nullable_byte_array; } -const int32_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +const int32_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); *length = self->a_nullable4_byte_array_length; return self->a_nullable4_byte_array; } -const int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +const int64_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); *length = self->a_nullable8_byte_array_length; return self->a_nullable8_byte_array; } -const double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +const double* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self, size_t* length) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); *length = self->a_nullable_float_array_length; return self->a_nullable_float_array; } -CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +CoreTestsPigeonTestAnEnum* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->a_nullable_enum; } -CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->another_nullable_enum; } -const gchar* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +const gchar* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->a_nullable_string; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->a_nullable_object; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->string_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->int_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->double_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->bool_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->enum_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->object_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->list_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->map_list; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->map; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->string_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->int_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->enum_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->object_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->list_map; } -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), nullptr); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); return self->map_map; } -static FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_to_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { +static FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, self->a_nullable_bool != nullptr ? fl_value_new_bool(*self->a_nullable_bool) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_int != nullptr ? fl_value_new_int(*self->a_nullable_int) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_int64 != nullptr ? fl_value_new_int(*self->a_nullable_int64) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_double != nullptr ? fl_value_new_float(*self->a_nullable_double) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_byte_array != nullptr ? fl_value_new_uint8_list(self->a_nullable_byte_array, self->a_nullable_byte_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable4_byte_array != nullptr ? fl_value_new_int32_list(self->a_nullable4_byte_array, self->a_nullable4_byte_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable8_byte_array != nullptr ? fl_value_new_int64_list(self->a_nullable8_byte_array, self->a_nullable8_byte_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_float_array != nullptr ? fl_value_new_float_list(self->a_nullable_float_array, self->a_nullable_float_array_length) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - fl_value_append_take(values, self->another_nullable_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*self->another_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_string != nullptr ? fl_value_new_string(self->a_nullable_string) : fl_value_new_null()); - fl_value_append_take(values, self->a_nullable_object != nullptr ? fl_value_ref(self->a_nullable_object) : fl_value_new_null()); - fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) : fl_value_new_null()); - fl_value_append_take(values, self->string_list != nullptr ? fl_value_ref(self->string_list) : fl_value_new_null()); - fl_value_append_take(values, self->int_list != nullptr ? fl_value_ref(self->int_list) : fl_value_new_null()); - fl_value_append_take(values, self->double_list != nullptr ? fl_value_ref(self->double_list) : fl_value_new_null()); - fl_value_append_take(values, self->bool_list != nullptr ? fl_value_ref(self->bool_list) : fl_value_new_null()); - fl_value_append_take(values, self->enum_list != nullptr ? fl_value_ref(self->enum_list) : fl_value_new_null()); - fl_value_append_take(values, self->object_list != nullptr ? fl_value_ref(self->object_list) : fl_value_new_null()); - fl_value_append_take(values, self->list_list != nullptr ? fl_value_ref(self->list_list) : fl_value_new_null()); - fl_value_append_take(values, self->map_list != nullptr ? fl_value_ref(self->map_list) : fl_value_new_null()); - fl_value_append_take(values, self->map != nullptr ? fl_value_ref(self->map) : fl_value_new_null()); - fl_value_append_take(values, self->string_map != nullptr ? fl_value_ref(self->string_map) : fl_value_new_null()); - fl_value_append_take(values, self->int_map != nullptr ? fl_value_ref(self->int_map) : fl_value_new_null()); - fl_value_append_take(values, self->enum_map != nullptr ? fl_value_ref(self->enum_map) : fl_value_new_null()); - fl_value_append_take(values, self->object_map != nullptr ? fl_value_ref(self->object_map) : fl_value_new_null()); - fl_value_append_take(values, self->list_map != nullptr ? fl_value_ref(self->list_map) : fl_value_new_null()); - fl_value_append_take(values, self->map_map != nullptr ? fl_value_ref(self->map_map) : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_bool != nullptr + ? fl_value_new_bool(*self->a_nullable_bool) + : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_int != nullptr + ? fl_value_new_int(*self->a_nullable_int) + : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_int64 != nullptr + ? fl_value_new_int(*self->a_nullable_int64) + : fl_value_new_null()); + fl_value_append_take(values, + self->a_nullable_double != nullptr + ? fl_value_new_float(*self->a_nullable_double) + : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable_byte_array != nullptr + ? fl_value_new_uint8_list(self->a_nullable_byte_array, + self->a_nullable_byte_array_length) + : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable4_byte_array != nullptr + ? fl_value_new_int32_list(self->a_nullable4_byte_array, + self->a_nullable4_byte_array_length) + : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable8_byte_array != nullptr + ? fl_value_new_int64_list(self->a_nullable8_byte_array, + self->a_nullable8_byte_array_length) + : fl_value_new_null()); + fl_value_append_take( + values, self->a_nullable_float_array != nullptr + ? fl_value_new_float_list(self->a_nullable_float_array, + self->a_nullable_float_array_length) + : fl_value_new_null()); + fl_value_append_take( + values, + self->a_nullable_enum != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(*self->a_nullable_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + fl_value_append_take( + values, + self->another_nullable_enum != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(*self->another_nullable_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + fl_value_append_take(values, + self->a_nullable_string != nullptr + ? fl_value_new_string(self->a_nullable_string) + : fl_value_new_null()); + fl_value_append_take(values, self->a_nullable_object != nullptr + ? fl_value_ref(self->a_nullable_object) + : fl_value_new_null()); + fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) + : fl_value_new_null()); + fl_value_append_take(values, self->string_list != nullptr + ? fl_value_ref(self->string_list) + : fl_value_new_null()); + fl_value_append_take(values, self->int_list != nullptr + ? fl_value_ref(self->int_list) + : fl_value_new_null()); + fl_value_append_take(values, self->double_list != nullptr + ? fl_value_ref(self->double_list) + : fl_value_new_null()); + fl_value_append_take(values, self->bool_list != nullptr + ? fl_value_ref(self->bool_list) + : fl_value_new_null()); + fl_value_append_take(values, self->enum_list != nullptr + ? fl_value_ref(self->enum_list) + : fl_value_new_null()); + fl_value_append_take(values, self->object_list != nullptr + ? fl_value_ref(self->object_list) + : fl_value_new_null()); + fl_value_append_take(values, self->list_list != nullptr + ? fl_value_ref(self->list_list) + : fl_value_new_null()); + fl_value_append_take(values, self->map_list != nullptr + ? fl_value_ref(self->map_list) + : fl_value_new_null()); + fl_value_append_take(values, self->map != nullptr ? fl_value_ref(self->map) + : fl_value_new_null()); + fl_value_append_take(values, self->string_map != nullptr + ? fl_value_ref(self->string_map) + : fl_value_new_null()); + fl_value_append_take(values, self->int_map != nullptr + ? fl_value_ref(self->int_map) + : fl_value_new_null()); + fl_value_append_take(values, self->enum_map != nullptr + ? fl_value_ref(self->enum_map) + : fl_value_new_null()); + fl_value_append_take(values, self->object_map != nullptr + ? fl_value_ref(self->object_map) + : fl_value_new_null()); + fl_value_append_take(values, self->list_map != nullptr + ? fl_value_ref(self->list_map) + : fl_value_new_null()); + fl_value_append_take(values, self->map_map != nullptr + ? fl_value_ref(self->map_map) + : fl_value_new_null()); return values; } -static CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list(FlValue* values) { +static CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( + FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); gboolean* a_nullable_bool = nullptr; gboolean a_nullable_bool_value; @@ -2055,14 +2602,18 @@ static CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_te CoreTestsPigeonTestAnEnum* a_nullable_enum = nullptr; CoreTestsPigeonTestAnEnum a_nullable_enum_value; if (fl_value_get_type(value8) != FL_VALUE_TYPE_NULL) { - a_nullable_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value8))))); + a_nullable_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value8))))); a_nullable_enum = &a_nullable_enum_value; } FlValue* value9 = fl_value_get_list_value(values, 9); CoreTestsPigeonTestAnotherEnum* another_nullable_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_nullable_enum_value; if (fl_value_get_type(value9) != FL_VALUE_TYPE_NULL) { - another_nullable_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value9))))); + another_nullable_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value9))))); another_nullable_enum = &another_nullable_enum_value; } FlValue* value10 = fl_value_get_list_value(values, 10); @@ -2155,46 +2706,95 @@ static CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_te if (fl_value_get_type(value27) != FL_VALUE_TYPE_NULL) { map_map = value27; } - return core_tests_pigeon_test_all_nullable_types_without_recursion_new(a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, a_nullable_byte_array, a_nullable_byte_array_length, a_nullable4_byte_array, a_nullable4_byte_array_length, a_nullable8_byte_array, a_nullable8_byte_array_length, a_nullable_float_array, a_nullable_float_array_length, a_nullable_enum, another_nullable_enum, a_nullable_string, a_nullable_object, list, string_list, int_list, double_list, bool_list, enum_list, object_list, list_list, map_list, map, string_map, int_map, enum_map, object_map, list_map, map_map); -} - -gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b) { + return core_tests_pigeon_test_all_nullable_types_without_recursion_new( + a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, + a_nullable_byte_array, a_nullable_byte_array_length, + a_nullable4_byte_array, a_nullable4_byte_array_length, + a_nullable8_byte_array, a_nullable8_byte_array_length, + a_nullable_float_array, a_nullable_float_array_length, a_nullable_enum, + another_nullable_enum, a_nullable_string, a_nullable_object, list, + string_list, int_list, double_list, bool_list, enum_list, object_list, + list_list, map_list, map, string_map, int_map, enum_map, object_map, + list_map, map_map); +} + +gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; - if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) return FALSE; - if (a->a_nullable_bool != nullptr && *a->a_nullable_bool != *b->a_nullable_bool) return FALSE; - if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) return FALSE; - if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) return FALSE; - if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) return FALSE; - if (a->a_nullable_int64 != nullptr && *a->a_nullable_int64 != *b->a_nullable_int64) return FALSE; - if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) return FALSE; - if (a->a_nullable_double != nullptr && !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) return FALSE; + if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) + return FALSE; + if (a->a_nullable_bool != nullptr && + *a->a_nullable_bool != *b->a_nullable_bool) + return FALSE; + if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) + return FALSE; + if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) + return FALSE; + if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) + return FALSE; + if (a->a_nullable_int64 != nullptr && + *a->a_nullable_int64 != *b->a_nullable_int64) + return FALSE; + if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) + return FALSE; + if (a->a_nullable_double != nullptr && + !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) + return FALSE; if (a->a_nullable_byte_array != b->a_nullable_byte_array) { - if (a->a_nullable_byte_array == nullptr || b->a_nullable_byte_array == nullptr) return FALSE; - if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) return FALSE; - if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) return FALSE; + if (a->a_nullable_byte_array == nullptr || + b->a_nullable_byte_array == nullptr) + return FALSE; + if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, + a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) + return FALSE; } if (a->a_nullable4_byte_array != b->a_nullable4_byte_array) { - if (a->a_nullable4_byte_array == nullptr || b->a_nullable4_byte_array == nullptr) return FALSE; - if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) return FALSE; - if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) return FALSE; + if (a->a_nullable4_byte_array == nullptr || + b->a_nullable4_byte_array == nullptr) + return FALSE; + if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, + a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) + return FALSE; } if (a->a_nullable8_byte_array != b->a_nullable8_byte_array) { - if (a->a_nullable8_byte_array == nullptr || b->a_nullable8_byte_array == nullptr) return FALSE; - if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) return FALSE; - if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) return FALSE; + if (a->a_nullable8_byte_array == nullptr || + b->a_nullable8_byte_array == nullptr) + return FALSE; + if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) + return FALSE; + if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, + a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) + return FALSE; } if (a->a_nullable_float_array != b->a_nullable_float_array) { - if (a->a_nullable_float_array == nullptr || b->a_nullable_float_array == nullptr) return FALSE; - if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) return FALSE; + if (a->a_nullable_float_array == nullptr || + b->a_nullable_float_array == nullptr) + return FALSE; + if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) + return FALSE; for (size_t i = 0; i < a->a_nullable_float_array_length; i++) { - if (!flpigeon_equals_double(a->a_nullable_float_array[i], b->a_nullable_float_array[i])) return FALSE; + if (!flpigeon_equals_double(a->a_nullable_float_array[i], + b->a_nullable_float_array[i])) + return FALSE; } } - if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) return FALSE; - if (a->a_nullable_enum != nullptr && *a->a_nullable_enum != *b->a_nullable_enum) return FALSE; - if ((a->another_nullable_enum == nullptr) != (b->another_nullable_enum == nullptr)) return FALSE; - if (a->another_nullable_enum != nullptr && *a->another_nullable_enum != *b->another_nullable_enum) return FALSE; + if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) + return FALSE; + if (a->a_nullable_enum != nullptr && + *a->a_nullable_enum != *b->a_nullable_enum) + return FALSE; + if ((a->another_nullable_enum == nullptr) != + (b->another_nullable_enum == nullptr)) + return FALSE; + if (a->another_nullable_enum != nullptr && + *a->another_nullable_enum != *b->another_nullable_enum) + return FALSE; if (g_strcmp0(a->a_nullable_string, b->a_nullable_string) != 0) { return FALSE; } @@ -2252,13 +2852,22 @@ gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals(Core return TRUE; } -guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), 0); +guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), 0); guint result = 0; - result = result * 31 + (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); - result = result * 31 + (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); - result = result * 31 + (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); - result = result * 31 + (self->a_nullable_double != nullptr ? flpigeon_hash_double(*self->a_nullable_double) : 0); + result = + result * 31 + + (self->a_nullable_bool != nullptr ? (guint)*self->a_nullable_bool : 0); + result = result * 31 + + (self->a_nullable_int != nullptr ? (guint)*self->a_nullable_int : 0); + result = + result * 31 + + (self->a_nullable_int64 != nullptr ? (guint)*self->a_nullable_int64 : 0); + result = result * 31 + (self->a_nullable_double != nullptr + ? flpigeon_hash_double(*self->a_nullable_double) + : 0); { size_t len = self->a_nullable_byte_array_length; const uint8_t* data = self->a_nullable_byte_array; @@ -2295,9 +2904,15 @@ guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash(CoreTests } } } - result = result * 31 + (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); - result = result * 31 + (self->another_nullable_enum != nullptr ? (guint)*self->another_nullable_enum : 0); - result = result * 31 + (self->a_nullable_string != nullptr ? g_str_hash(self->a_nullable_string) : 0); + result = + result * 31 + + (self->a_nullable_enum != nullptr ? (guint)*self->a_nullable_enum : 0); + result = result * 31 + (self->another_nullable_enum != nullptr + ? (guint)*self->another_nullable_enum + : 0); + result = result * 31 + (self->a_nullable_string != nullptr + ? g_str_hash(self->a_nullable_string) + : 0); result = result * 31 + flpigeon_deep_hash(self->a_nullable_object); result = result * 31 + flpigeon_deep_hash(self->list); result = result * 31 + flpigeon_deep_hash(self->string_list); @@ -2322,7 +2937,8 @@ struct _CoreTestsPigeonTestAllClassesWrapper { GObject parent_instance; CoreTestsPigeonTestAllNullableTypes* all_nullable_types; - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* all_nullable_types_without_recursion; + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* + all_nullable_types_without_recursion; CoreTestsPigeonTestAllTypes* all_types; FlValue* class_list; FlValue* nullable_class_list; @@ -2330,10 +2946,13 @@ struct _CoreTestsPigeonTestAllClassesWrapper { FlValue* nullable_class_map; }; -G_DEFINE_TYPE(CoreTestsPigeonTestAllClassesWrapper, core_tests_pigeon_test_all_classes_wrapper, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestAllClassesWrapper, + core_tests_pigeon_test_all_classes_wrapper, G_TYPE_OBJECT) -static void core_tests_pigeon_test_all_classes_wrapper_dispose(GObject* object) { - CoreTestsPigeonTestAllClassesWrapper* self = CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(object); +static void core_tests_pigeon_test_all_classes_wrapper_dispose( + GObject* object) { + CoreTestsPigeonTestAllClassesWrapper* self = + CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(object); g_clear_object(&self->all_nullable_types); g_clear_object(&self->all_nullable_types_without_recursion); g_clear_object(&self->all_types); @@ -2341,107 +2960,161 @@ static void core_tests_pigeon_test_all_classes_wrapper_dispose(GObject* object) g_clear_pointer(&self->nullable_class_list, fl_value_unref); g_clear_pointer(&self->class_map, fl_value_unref); g_clear_pointer(&self->nullable_class_map, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_all_classes_wrapper_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_all_classes_wrapper_init(CoreTestsPigeonTestAllClassesWrapper* self) { -} - -static void core_tests_pigeon_test_all_classes_wrapper_class_init(CoreTestsPigeonTestAllClassesWrapperClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_all_classes_wrapper_dispose; -} - -CoreTestsPigeonTestAllClassesWrapper* core_tests_pigeon_test_all_classes_wrapper_new(CoreTestsPigeonTestAllNullableTypes* all_nullable_types, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* all_nullable_types_without_recursion, CoreTestsPigeonTestAllTypes* all_types, FlValue* class_list, FlValue* nullable_class_list, FlValue* class_map, FlValue* nullable_class_map) { - CoreTestsPigeonTestAllClassesWrapper* self = CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(g_object_new(core_tests_pigeon_test_all_classes_wrapper_get_type(), nullptr)); - self->all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(g_object_ref(all_nullable_types)); + G_OBJECT_CLASS(core_tests_pigeon_test_all_classes_wrapper_parent_class) + ->dispose(object); +} + +static void core_tests_pigeon_test_all_classes_wrapper_init( + CoreTestsPigeonTestAllClassesWrapper* self) {} + +static void core_tests_pigeon_test_all_classes_wrapper_class_init( + CoreTestsPigeonTestAllClassesWrapperClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_all_classes_wrapper_dispose; +} + +CoreTestsPigeonTestAllClassesWrapper* +core_tests_pigeon_test_all_classes_wrapper_new( + CoreTestsPigeonTestAllNullableTypes* all_nullable_types, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* + all_nullable_types_without_recursion, + CoreTestsPigeonTestAllTypes* all_types, FlValue* class_list, + FlValue* nullable_class_list, FlValue* class_map, + FlValue* nullable_class_map) { + CoreTestsPigeonTestAllClassesWrapper* self = + CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(g_object_new( + core_tests_pigeon_test_all_classes_wrapper_get_type(), nullptr)); + self->all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + g_object_ref(all_nullable_types)); if (all_nullable_types_without_recursion != nullptr) { - self->all_nullable_types_without_recursion = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(g_object_ref(all_nullable_types_without_recursion)); - } - else { + self->all_nullable_types_without_recursion = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + g_object_ref(all_nullable_types_without_recursion)); + } else { self->all_nullable_types_without_recursion = nullptr; } if (all_types != nullptr) { self->all_types = CORE_TESTS_PIGEON_TEST_ALL_TYPES(g_object_ref(all_types)); - } - else { + } else { self->all_types = nullptr; } self->class_list = fl_value_ref(class_list); if (nullable_class_list != nullptr) { self->nullable_class_list = fl_value_ref(nullable_class_list); - } - else { + } else { self->nullable_class_list = nullptr; } self->class_map = fl_value_ref(class_map); if (nullable_class_map != nullptr) { self->nullable_class_map = fl_value_ref(nullable_class_map); - } - else { + } else { self->nullable_class_map = nullptr; } return self; } -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types(CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types( + CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), + nullptr); return self->all_nullable_types; } -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion(CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion( + CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), + nullptr); return self->all_nullable_types_without_recursion; } -CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_types(CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); +CoreTestsPigeonTestAllTypes* +core_tests_pigeon_test_all_classes_wrapper_get_all_types( + CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), + nullptr); return self->all_types; } -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list(CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list( + CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), + nullptr); return self->class_list; } -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list(CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list( + CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), + nullptr); return self->nullable_class_list; } -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map(CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map( + CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), + nullptr); return self->class_map; } -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map(CoreTestsPigeonTestAllClassesWrapper* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), nullptr); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map( + CoreTestsPigeonTestAllClassesWrapper* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), + nullptr); return self->nullable_class_map; } -static FlValue* core_tests_pigeon_test_all_classes_wrapper_to_list(CoreTestsPigeonTestAllClassesWrapper* self) { +static FlValue* core_tests_pigeon_test_all_classes_wrapper_to_list( + CoreTestsPigeonTestAllClassesWrapper* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(self->all_nullable_types))); - fl_value_append_take(values, self->all_nullable_types_without_recursion != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(self->all_nullable_types_without_recursion)) : fl_value_new_null()); - fl_value_append_take(values, self->all_types != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(self->all_types)) : fl_value_new_null()); + fl_value_append_take(values, + fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, + G_OBJECT(self->all_nullable_types))); + fl_value_append_take( + values, + self->all_nullable_types_without_recursion != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, + G_OBJECT(self->all_nullable_types_without_recursion)) + : fl_value_new_null()); + fl_value_append_take( + values, + self->all_types != nullptr + ? fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, + G_OBJECT(self->all_types)) + : fl_value_new_null()); fl_value_append_take(values, fl_value_ref(self->class_list)); - fl_value_append_take(values, self->nullable_class_list != nullptr ? fl_value_ref(self->nullable_class_list) : fl_value_new_null()); + fl_value_append_take(values, self->nullable_class_list != nullptr + ? fl_value_ref(self->nullable_class_list) + : fl_value_new_null()); fl_value_append_take(values, fl_value_ref(self->class_map)); - fl_value_append_take(values, self->nullable_class_map != nullptr ? fl_value_ref(self->nullable_class_map) : fl_value_new_null()); + fl_value_append_take(values, self->nullable_class_map != nullptr + ? fl_value_ref(self->nullable_class_map) + : fl_value_new_null()); return values; } -static CoreTestsPigeonTestAllClassesWrapper* core_tests_pigeon_test_all_classes_wrapper_new_from_list(FlValue* values) { +static CoreTestsPigeonTestAllClassesWrapper* +core_tests_pigeon_test_all_classes_wrapper_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); - CoreTestsPigeonTestAllNullableTypes* all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); + CoreTestsPigeonTestAllNullableTypes* all_nullable_types = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value0)); FlValue* value1 = fl_value_get_list_value(values, 1); - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* all_nullable_types_without_recursion = nullptr; + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* + all_nullable_types_without_recursion = nullptr; if (fl_value_get_type(value1) != FL_VALUE_TYPE_NULL) { - all_nullable_types_without_recursion = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value1)); + all_nullable_types_without_recursion = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(value1)); } FlValue* value2 = fl_value_get_list_value(values, 2); CoreTestsPigeonTestAllTypes* all_types = nullptr; if (fl_value_get_type(value2) != FL_VALUE_TYPE_NULL) { - all_types = CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value2)); + all_types = CORE_TESTS_PIGEON_TEST_ALL_TYPES( + fl_value_get_custom_value_object(value2)); } FlValue* value3 = fl_value_get_list_value(values, 3); FlValue* class_list = value3; @@ -2457,16 +3130,23 @@ static CoreTestsPigeonTestAllClassesWrapper* core_tests_pigeon_test_all_classes_ if (fl_value_get_type(value6) != FL_VALUE_TYPE_NULL) { nullable_class_map = value6; } - return core_tests_pigeon_test_all_classes_wrapper_new(all_nullable_types, all_nullable_types_without_recursion, all_types, class_list, nullable_class_list, class_map, nullable_class_map); + return core_tests_pigeon_test_all_classes_wrapper_new( + all_nullable_types, all_nullable_types_without_recursion, all_types, + class_list, nullable_class_list, class_map, nullable_class_map); } -gboolean core_tests_pigeon_test_all_classes_wrapper_equals(CoreTestsPigeonTestAllClassesWrapper* a, CoreTestsPigeonTestAllClassesWrapper* b) { +gboolean core_tests_pigeon_test_all_classes_wrapper_equals( + CoreTestsPigeonTestAllClassesWrapper* a, + CoreTestsPigeonTestAllClassesWrapper* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; - if (!core_tests_pigeon_test_all_nullable_types_equals(a->all_nullable_types, b->all_nullable_types)) { + if (!core_tests_pigeon_test_all_nullable_types_equals( + a->all_nullable_types, b->all_nullable_types)) { return FALSE; } - if (!core_tests_pigeon_test_all_nullable_types_without_recursion_equals(a->all_nullable_types_without_recursion, b->all_nullable_types_without_recursion)) { + if (!core_tests_pigeon_test_all_nullable_types_without_recursion_equals( + a->all_nullable_types_without_recursion, + b->all_nullable_types_without_recursion)) { return FALSE; } if (!core_tests_pigeon_test_all_types_equals(a->all_types, b->all_types)) { @@ -2487,11 +3167,15 @@ gboolean core_tests_pigeon_test_all_classes_wrapper_equals(CoreTestsPigeonTestAl return TRUE; } -guint core_tests_pigeon_test_all_classes_wrapper_hash(CoreTestsPigeonTestAllClassesWrapper* self) { +guint core_tests_pigeon_test_all_classes_wrapper_hash( + CoreTestsPigeonTestAllClassesWrapper* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_CLASSES_WRAPPER(self), 0); guint result = 0; - result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash(self->all_nullable_types); - result = result * 31 + core_tests_pigeon_test_all_nullable_types_without_recursion_hash(self->all_nullable_types_without_recursion); + result = result * 31 + core_tests_pigeon_test_all_nullable_types_hash( + self->all_nullable_types); + result = result * 31 + + core_tests_pigeon_test_all_nullable_types_without_recursion_hash( + self->all_nullable_types_without_recursion); result = result * 31 + core_tests_pigeon_test_all_types_hash(self->all_types); result = result * 31 + flpigeon_deep_hash(self->class_list); result = result * 31 + flpigeon_deep_hash(self->nullable_class_list); @@ -2506,44 +3190,54 @@ struct _CoreTestsPigeonTestTestMessage { FlValue* test_list; }; -G_DEFINE_TYPE(CoreTestsPigeonTestTestMessage, core_tests_pigeon_test_test_message, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestTestMessage, + core_tests_pigeon_test_test_message, G_TYPE_OBJECT) static void core_tests_pigeon_test_test_message_dispose(GObject* object) { - CoreTestsPigeonTestTestMessage* self = CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(object); + CoreTestsPigeonTestTestMessage* self = + CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(object); g_clear_pointer(&self->test_list, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_test_message_parent_class)->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_test_message_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_test_message_init(CoreTestsPigeonTestTestMessage* self) { -} +static void core_tests_pigeon_test_test_message_init( + CoreTestsPigeonTestTestMessage* self) {} -static void core_tests_pigeon_test_test_message_class_init(CoreTestsPigeonTestTestMessageClass* klass) { +static void core_tests_pigeon_test_test_message_class_init( + CoreTestsPigeonTestTestMessageClass* klass) { G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_test_message_dispose; } -CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new(FlValue* test_list) { - CoreTestsPigeonTestTestMessage* self = CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(g_object_new(core_tests_pigeon_test_test_message_get_type(), nullptr)); +CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new( + FlValue* test_list) { + CoreTestsPigeonTestTestMessage* self = CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( + g_object_new(core_tests_pigeon_test_test_message_get_type(), nullptr)); if (test_list != nullptr) { self->test_list = fl_value_ref(test_list); - } - else { + } else { self->test_list = nullptr; } return self; } -FlValue* core_tests_pigeon_test_test_message_get_test_list(CoreTestsPigeonTestTestMessage* self) { +FlValue* core_tests_pigeon_test_test_message_get_test_list( + CoreTestsPigeonTestTestMessage* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_TEST_MESSAGE(self), nullptr); return self->test_list; } -static FlValue* core_tests_pigeon_test_test_message_to_list(CoreTestsPigeonTestTestMessage* self) { +static FlValue* core_tests_pigeon_test_test_message_to_list( + CoreTestsPigeonTestTestMessage* self) { FlValue* values = fl_value_new_list(); - fl_value_append_take(values, self->test_list != nullptr ? fl_value_ref(self->test_list) : fl_value_new_null()); + fl_value_append_take(values, self->test_list != nullptr + ? fl_value_ref(self->test_list) + : fl_value_new_null()); return values; } -static CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new_from_list(FlValue* values) { +static CoreTestsPigeonTestTestMessage* +core_tests_pigeon_test_test_message_new_from_list(FlValue* values) { FlValue* value0 = fl_value_get_list_value(values, 0); FlValue* test_list = nullptr; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { @@ -2552,7 +3246,8 @@ static CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new_f return core_tests_pigeon_test_test_message_new(test_list); } -gboolean core_tests_pigeon_test_test_message_equals(CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b) { +gboolean core_tests_pigeon_test_test_message_equals( + CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b) { if (a == b) return TRUE; if (a == nullptr || b == nullptr) return FALSE; if (!flpigeon_deep_equals(a->test_list, b->test_list)) { @@ -2561,7 +3256,8 @@ gboolean core_tests_pigeon_test_test_message_equals(CoreTestsPigeonTestTestMessa return TRUE; } -guint core_tests_pigeon_test_test_message_hash(CoreTestsPigeonTestTestMessage* self) { +guint core_tests_pigeon_test_test_message_hash( + CoreTestsPigeonTestTestMessage* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_TEST_MESSAGE(self), 0); guint result = 0; result = result * 31 + flpigeon_deep_hash(self->test_list); @@ -2570,230 +3266,373 @@ guint core_tests_pigeon_test_test_message_hash(CoreTestsPigeonTestTestMessage* s struct _CoreTestsPigeonTestMessageCodec { FlStandardMessageCodec parent_instance; - }; -G_DEFINE_TYPE(CoreTestsPigeonTestMessageCodec, core_tests_pigeon_test_message_codec, fl_standard_message_codec_get_type()) +G_DEFINE_TYPE(CoreTestsPigeonTestMessageCodec, + core_tests_pigeon_test_message_codec, + fl_standard_message_codec_get_type()) const int core_tests_pigeon_test_an_enum_type_id = 129; const int core_tests_pigeon_test_another_enum_type_id = 130; const int core_tests_pigeon_test_unused_class_type_id = 131; const int core_tests_pigeon_test_all_types_type_id = 132; const int core_tests_pigeon_test_all_nullable_types_type_id = 133; -const int core_tests_pigeon_test_all_nullable_types_without_recursion_type_id = 134; +const int core_tests_pigeon_test_all_nullable_types_without_recursion_type_id = + 134; const int core_tests_pigeon_test_all_classes_wrapper_type_id = 135; const int core_tests_pigeon_test_test_message_type_id = 136; -static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum(FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { uint8_t type = core_tests_pigeon_test_an_enum_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); return fl_standard_message_codec_write_value(codec, buffer, value, error); } -static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum(FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { uint8_t type = core_tests_pigeon_test_another_enum_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); return fl_standard_message_codec_write_value(codec, buffer, value, error); } -static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_unused_class(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestUnusedClass* value, GError** error) { +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_unused_class( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestUnusedClass* value, GError** error) { uint8_t type = core_tests_pigeon_test_unused_class_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = core_tests_pigeon_test_unused_class_to_list(value); + g_autoptr(FlValue) values = + core_tests_pigeon_test_unused_class_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllTypes* value, GError** error) { +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllTypes* value, GError** error) { uint8_t type = core_tests_pigeon_test_all_types_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); g_autoptr(FlValue) values = core_tests_pigeon_test_all_types_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllNullableTypes* value, GError** error) { +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllNullableTypes* value, GError** error) { uint8_t type = core_tests_pigeon_test_all_nullable_types_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = core_tests_pigeon_test_all_nullable_types_to_list(value); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_nullable_types_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, GError** error) { - uint8_t type = core_tests_pigeon_test_all_nullable_types_without_recursion_type_id; +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, + GError** error) { + uint8_t type = + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = core_tests_pigeon_test_all_nullable_types_without_recursion_to_list(value); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( + value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { uint8_t type = core_tests_pigeon_test_all_classes_wrapper_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = core_tests_pigeon_test_all_classes_wrapper_to_list(value); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_classes_wrapper_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message(FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestTestMessage* value, GError** error) { +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestTestMessage* value, GError** error) { uint8_t type = core_tests_pigeon_test_test_message_type_id; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = core_tests_pigeon_test_test_message_to_list(value); + g_autoptr(FlValue) values = + core_tests_pigeon_test_test_message_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean core_tests_pigeon_test_message_codec_write_value(FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { +static gboolean core_tests_pigeon_test_message_codec_write_value( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { if (fl_value_get_type(value) == FL_VALUE_TYPE_CUSTOM) { switch (fl_value_get_custom_type(value)) { case core_tests_pigeon_test_an_enum_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum(codec, buffer, reinterpret_cast(const_cast(fl_value_get_custom_value(value))), error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); case core_tests_pigeon_test_another_enum_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum(codec, buffer, reinterpret_cast(const_cast(fl_value_get_custom_value(value))), error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); case core_tests_pigeon_test_unused_class_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_unused_class(codec, buffer, CORE_TESTS_PIGEON_TEST_UNUSED_CLASS(fl_value_get_custom_value_object(value)), error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_unused_class( + codec, buffer, + CORE_TESTS_PIGEON_TEST_UNUSED_CLASS( + fl_value_get_custom_value_object(value)), + error); case core_tests_pigeon_test_all_types_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types(codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value)), error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_TYPES( + fl_value_get_custom_value_object(value)), + error); case core_tests_pigeon_test_all_nullable_types_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types(codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value)), error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value)), + error); case core_tests_pigeon_test_all_nullable_types_without_recursion_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion(codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value)), error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(value)), + error); case core_tests_pigeon_test_all_classes_wrapper_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper(codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(fl_value_get_custom_value_object(value)), error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( + fl_value_get_custom_value_object(value)), + error); case core_tests_pigeon_test_test_message_type_id: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message(codec, buffer, CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(fl_value_get_custom_value_object(value)), error); + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( + codec, buffer, + CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( + fl_value_get_custom_value_object(value)), + error); } } - return FL_STANDARD_MESSAGE_CODEC_CLASS(core_tests_pigeon_test_message_codec_parent_class)->write_value(codec, buffer, value, error); + return FL_STANDARD_MESSAGE_CODEC_CLASS( + core_tests_pigeon_test_message_codec_parent_class) + ->write_value(codec, buffer, value, error); } -static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { - return fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_standard_message_codec_read_value(codec, buffer, offset, error), (GDestroyNotify)fl_value_unref); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + core_tests_pigeon_test_an_enum_type_id, + fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); } -static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { - return fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_standard_message_codec_read_value(codec, buffer, offset, error), (GDestroyNotify)fl_value_unref); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + core_tests_pigeon_test_another_enum_type_id, + fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); } -static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_unused_class(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { - g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_unused_class( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + g_autoptr(FlValue) values = + fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestUnusedClass) value = core_tests_pigeon_test_unused_class_new_from_list(values); + g_autoptr(CoreTestsPigeonTestUnusedClass) value = + core_tests_pigeon_test_unused_class_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, + "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_unused_class_type_id, G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_unused_class_type_id, + G_OBJECT(value)); } -static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { - g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + g_autoptr(FlValue) values = + fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestAllTypes) value = core_tests_pigeon_test_all_types_new_from_list(values); + g_autoptr(CoreTestsPigeonTestAllTypes) value = + core_tests_pigeon_test_all_types_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, + "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, + G_OBJECT(value)); } -static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { - g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + g_autoptr(FlValue) values = + fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestAllNullableTypes) value = core_tests_pigeon_test_all_nullable_types_new_from_list(values); + g_autoptr(CoreTestsPigeonTestAllNullableTypes) value = + core_tests_pigeon_test_all_nullable_types_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, + "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(value)); + return fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(value)); } -static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { - g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + g_autoptr(FlValue) values = + fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestAllNullableTypesWithoutRecursion) value = core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list(values); + g_autoptr(CoreTestsPigeonTestAllNullableTypesWithoutRecursion) value = + core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( + values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, + "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(value)); + return fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, + G_OBJECT(value)); } -static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { - g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + g_autoptr(FlValue) values = + fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestAllClassesWrapper) value = core_tests_pigeon_test_all_classes_wrapper_new_from_list(values); + g_autoptr(CoreTestsPigeonTestAllClassesWrapper) value = + core_tests_pigeon_test_all_classes_wrapper_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, + "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_all_classes_wrapper_type_id, G_OBJECT(value)); + return fl_value_new_custom_object( + core_tests_pigeon_test_all_classes_wrapper_type_id, G_OBJECT(value)); } -static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { - g_autoptr(FlValue) values = fl_standard_message_codec_read_value(codec, buffer, offset, error); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + g_autoptr(FlValue) values = + fl_standard_message_codec_read_value(codec, buffer, offset, error); if (values == nullptr) { return nullptr; } - g_autoptr(CoreTestsPigeonTestTestMessage) value = core_tests_pigeon_test_test_message_new_from_list(values); + g_autoptr(CoreTestsPigeonTestTestMessage) value = + core_tests_pigeon_test_test_message_new_from_list(values); if (value == nullptr) { - g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, "Invalid data received for MessageData"); + g_set_error(error, FL_MESSAGE_CODEC_ERROR, FL_MESSAGE_CODEC_ERROR_FAILED, + "Invalid data received for MessageData"); return nullptr; } - return fl_value_new_custom_object(core_tests_pigeon_test_test_message_type_id, G_OBJECT(value)); + return fl_value_new_custom_object(core_tests_pigeon_test_test_message_type_id, + G_OBJECT(value)); } -static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type(FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, int type, GError** error) { +static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, int type, + GError** error) { switch (type) { case core_tests_pigeon_test_an_enum_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum(codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( + codec, buffer, offset, error); case core_tests_pigeon_test_another_enum_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum(codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum( + codec, buffer, offset, error); case core_tests_pigeon_test_unused_class_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_unused_class(codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_unused_class( + codec, buffer, offset, error); case core_tests_pigeon_test_all_types_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types(codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( + codec, buffer, offset, error); case core_tests_pigeon_test_all_nullable_types_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types(codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( + codec, buffer, offset, error); case core_tests_pigeon_test_all_nullable_types_without_recursion_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion(codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( + codec, buffer, offset, error); case core_tests_pigeon_test_all_classes_wrapper_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper(codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( + codec, buffer, offset, error); case core_tests_pigeon_test_test_message_type_id: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message(codec, buffer, offset, error); + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( + codec, buffer, offset, error); default: - return FL_STANDARD_MESSAGE_CODEC_CLASS(core_tests_pigeon_test_message_codec_parent_class)->read_value_of_type(codec, buffer, offset, type, error); + return FL_STANDARD_MESSAGE_CODEC_CLASS( + core_tests_pigeon_test_message_codec_parent_class) + ->read_value_of_type(codec, buffer, offset, type, error); } } -static void core_tests_pigeon_test_message_codec_init(CoreTestsPigeonTestMessageCodec* self) { -} +static void core_tests_pigeon_test_message_codec_init( + CoreTestsPigeonTestMessageCodec* self) {} -static void core_tests_pigeon_test_message_codec_class_init(CoreTestsPigeonTestMessageCodecClass* klass) { - FL_STANDARD_MESSAGE_CODEC_CLASS(klass)->write_value = core_tests_pigeon_test_message_codec_write_value; - FL_STANDARD_MESSAGE_CODEC_CLASS(klass)->read_value_of_type = core_tests_pigeon_test_message_codec_read_value_of_type; +static void core_tests_pigeon_test_message_codec_class_init( + CoreTestsPigeonTestMessageCodecClass* klass) { + FL_STANDARD_MESSAGE_CODEC_CLASS(klass)->write_value = + core_tests_pigeon_test_message_codec_write_value; + FL_STANDARD_MESSAGE_CODEC_CLASS(klass)->read_value_of_type = + core_tests_pigeon_test_message_codec_read_value_of_type; } -static CoreTestsPigeonTestMessageCodec* core_tests_pigeon_test_message_codec_new() { - CoreTestsPigeonTestMessageCodec* self = CORE_TESTS_PIGEON_TEST_MESSAGE_CODEC(g_object_new(core_tests_pigeon_test_message_codec_get_type(), nullptr)); +static CoreTestsPigeonTestMessageCodec* +core_tests_pigeon_test_message_codec_new() { + CoreTestsPigeonTestMessageCodec* self = CORE_TESTS_PIGEON_TEST_MESSAGE_CODEC( + g_object_new(core_tests_pigeon_test_message_codec_get_type(), nullptr)); return self; } @@ -2804,26 +3643,44 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle { FlBasicMessageChannelResponseHandle* response_handle; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle, core_tests_pigeon_test_host_integration_core_api_response_handle, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle, + core_tests_pigeon_test_host_integration_core_api_response_handle, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_integration_core_api_response_handle_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE(object); +static void +core_tests_pigeon_test_host_integration_core_api_response_handle_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE(object); g_clear_object(&self->channel); g_clear_object(&self->response_handle); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_response_handle_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_response_handle_init(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_response_handle_class_init(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandleClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_response_handle_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* core_tests_pigeon_test_host_integration_core_api_response_handle_new(FlBasicMessageChannel* channel, FlBasicMessageChannelResponseHandle* response_handle) { - CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE(g_object_new(core_tests_pigeon_test_host_integration_core_api_response_handle_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_response_handle_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_response_handle_init( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_response_handle_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandleClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_response_handle_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* +core_tests_pigeon_test_host_integration_core_api_response_handle_new( + FlBasicMessageChannel* channel, + FlBasicMessageChannelResponseHandle* response_handle) { + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_response_handle_get_type(), + nullptr)); self->channel = FL_BASIC_MESSAGE_CHANNEL(g_object_ref(channel)); - self->response_handle = FL_BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE(g_object_ref(response_handle)); + self->response_handle = + FL_BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE(g_object_ref(response_handle)); return self; } @@ -2833,34 +3690,55 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, core_tests_pigeon_test_host_integration_core_api_noop_response, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, + core_tests_pigeon_test_host_integration_core_api_noop_response, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_integration_core_api_noop_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(object); +static void +core_tests_pigeon_test_host_integration_core_api_noop_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_noop_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_noop_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_noop_response_init(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self) { -} +static void core_tests_pigeon_test_host_integration_core_api_noop_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_noop_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_noop_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_noop_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_noop_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_host_integration_core_api_noop_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_noop_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* +core_tests_pigeon_test_host_integration_core_api_noop_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_noop_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_host_integration_core_api_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_noop_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* +core_tests_pigeon_test_host_integration_core_api_noop_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_noop_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -2870,34 +3748,64 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse, + core_tests_pigeon_test_host_integration_core_api_echo_all_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new(CoreTestsPigeonTestAllTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new( + CoreTestsPigeonTestAllTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(return_value))); + fl_value_append_take( + self->value, + fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, + G_OBJECT(return_value))); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -2907,34 +3815,63 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_error_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_throw_error_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse, + core_tests_pigeon_test_host_integration_core_api_throw_error_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_throw_error_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_error_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_throw_error_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_throw_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_throw_error_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_throw_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_error_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_throw_error_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_throw_error_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_error_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_error_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_error_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -2944,34 +3881,62 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse, + core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* +core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* +core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -2981,34 +3946,64 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse, + core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3018,34 +4013,59 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_int_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_int_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_int_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_int_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_int_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_int_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_response_new(int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_int_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_int_response_new( + int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_int_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3055,34 +4075,61 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_double_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_double_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_double_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_double_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_double_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_double_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_double_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_double_response_new(double return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_double_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_double_response_new( + double return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_float(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_double_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3092,34 +4139,59 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_bool_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_bool_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, + core_tests_pigeon_test_host_integration_core_api_echo_bool_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_bool_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_bool_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_bool_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_bool_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_bool_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_bool_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_bool_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new(gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_bool_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new( + gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_bool_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3129,34 +4201,61 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3166,34 +4265,63 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new( + const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_uint8_list(return_value, return_value_length)); + fl_value_append_take( + self->value, fl_value_new_uint8_list(return_value, return_value_length)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3203,34 +4331,61 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_object_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_object_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse, + core_tests_pigeon_test_host_integration_core_api_echo_object_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_object_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_object_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_object_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_object_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_object_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_object_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_object_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_object_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_object_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_object_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_object_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_object_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_object_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_object_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_object_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3240,34 +4395,59 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, core_tests_pigeon_test_host_integration_core_api_echo_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_host_integration_core_api_echo_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3277,34 +4457,61 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3314,34 +4521,62 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3351,34 +4586,63 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3388,34 +4652,63 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3425,34 +4718,59 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3462,34 +4780,62 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3499,34 +4845,61 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3536,34 +4909,61 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3573,34 +4973,61 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3610,34 +5037,63 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3647,34 +5103,62 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3684,34 +5168,63 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3721,34 +5234,63 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3758,34 +5300,65 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse, + core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new(CoreTestsPigeonTestAllClassesWrapper* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new( + CoreTestsPigeonTestAllClassesWrapper* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_classes_wrapper_type_id, G_OBJECT(return_value))); + fl_value_append_take(self->value, + fl_value_new_custom_object( + core_tests_pigeon_test_all_classes_wrapper_type_id, + G_OBJECT(return_value))); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3795,34 +5368,62 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_enum_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_enum_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_enum_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_enum_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new(CoreTestsPigeonTestAnEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new( + CoreTestsPigeonTestAnEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); + fl_value_append_take( + self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_enum_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3832,108 +5433,200 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new(CoreTestsPigeonTestAnotherEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( + CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); + fl_value_append_take( + self->value, + fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new(double return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new( + double return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_float(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -3943,108 +5636,196 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_required_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_required_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new(int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new( + int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse, core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse, + core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_init(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new(gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* +core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new( + gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* +core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse, core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse, + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_init(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new(int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new( + int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4054,219 +5835,424 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new( + CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, return_value != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, + G_OBJECT(return_value)) + : fl_value_new_null()); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value)) : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_get_type(), nullptr)); +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, + G_OBJECT(return_value)) + : fl_value_new_null()); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value)) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_string(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new( + CoreTestsPigeonTestAllClassesWrapper* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_custom_object( + core_tests_pigeon_test_all_classes_wrapper_type_id, + G_OBJECT(return_value))); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new(CoreTestsPigeonTestAllClassesWrapper* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new( + CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_classes_wrapper_type_id, G_OBJECT(return_value))); + fl_value_append_take(self->value, + fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, + G_OBJECT(return_value))); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value))); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); - return self; -} - -struct _CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse { - GObject parent_instance; - - FlValue* value; -}; - -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); - g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value))); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, + G_OBJECT(return_value))); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4276,34 +6262,64 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new(int64_t* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new( + int64_t* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_int(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_int(*return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4313,34 +6329,65 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new(double* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new( + double* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_float(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_float(*return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4350,34 +6397,64 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new(gboolean* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new( + gboolean* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_bool(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_bool(*return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4387,34 +6464,65 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_string(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4424,34 +6532,66 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new( + const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_uint8_list(return_value, return_value_length) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_uint8_list( + return_value, return_value_length) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4461,34 +6601,65 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4498,34 +6669,64 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4535,34 +6736,65 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4572,108 +6804,205 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4683,34 +7012,64 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4720,34 +7079,65 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4757,34 +7147,65 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4794,34 +7215,65 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -4831,182 +7283,343 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -5016,149 +7629,287 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new(CoreTestsPigeonTestAnEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new( + CoreTestsPigeonTestAnEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new(CoreTestsPigeonTestAnotherEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - return self; -} - -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new( + CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new(int64_t* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new( + int64_t* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_int(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_int(*return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_string(return_value) + : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_host_integration_core_api_noop_async_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse, + core_tests_pigeon_test_host_integration_core_api_noop_async_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE, + GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse { GObject parent_instance; @@ -5166,38 +7917,66 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_host_integration_core_api_noop_async_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_noop_async_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse, + core_tests_pigeon_test_host_integration_core_api_noop_async_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_noop_async_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_noop_async_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_noop_async_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_noop_async_response_init(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_noop_async_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_noop_async_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_noop_async_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_noop_async_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_noop_async_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_host_integration_core_api_noop_async_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_noop_async_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* +core_tests_pigeon_test_host_integration_core_api_noop_async_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_noop_async_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_host_integration_core_api_noop_async_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_noop_async_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* +core_tests_pigeon_test_host_integration_core_api_noop_async_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new( + core_tests_pigeon_test_host_integration_core_api_noop_async_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_int_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE, + GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse { GObject parent_instance; @@ -5205,38 +7984,69 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new(int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new( + int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_double_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse { GObject parent_instance; @@ -5244,38 +8054,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new(double return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new( + double return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_float(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE, + GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse { GObject parent_instance; @@ -5283,38 +8125,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new(gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new( + gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse { GObject parent_instance; @@ -5322,38 +8196,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse { GObject parent_instance; @@ -5361,38 +8267,72 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new( + const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_uint8_list(return_value, return_value_length)); + fl_value_append_take( + self->value, fl_value_new_uint8_list(return_value, return_value_length)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_object_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_object_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse { GObject parent_instance; @@ -5400,38 +8340,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_object_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_object_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_OBJECT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_list_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE, + GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse { GObject parent_instance; @@ -5439,38 +8411,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse { GObject parent_instance; @@ -5478,38 +8482,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse { GObject parent_instance; @@ -5517,38 +8553,71 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_map_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE, + GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse { GObject parent_instance; @@ -5556,38 +8625,69 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse { GObject parent_instance; @@ -5595,38 +8695,71 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse { GObject parent_instance; @@ -5634,38 +8767,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse { GObject parent_instance; @@ -5673,38 +8838,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse { GObject parent_instance; @@ -5712,38 +8909,70 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE, + GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse { GObject parent_instance; @@ -5751,38 +8980,73 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new(CoreTestsPigeonTestAnEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new( + CoreTestsPigeonTestAnEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); + fl_value_append_take( + self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse { GObject parent_instance; @@ -5790,38 +9054,75 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new(CoreTestsPigeonTestAnotherEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new( + CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, + core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse { GObject parent_instance; @@ -5829,116 +9130,219 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, + core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse, + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse, + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* +core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* +core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_ERROR_FROM_VOID_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse, + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse, + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_THROW_ASYNC_FLUTTER_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse { GObject parent_instance; @@ -5946,116 +9350,234 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new(CoreTestsPigeonTestAllTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new( + CoreTestsPigeonTestAllTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(return_value))); + fl_value_append_take( + self->value, + fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, + G_OBJECT(return_value))); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_ALL_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value)) : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new( + CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, return_value != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, + G_OBJECT(return_value)) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value)) : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, + G_OBJECT(return_value)) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse { GObject parent_instance; @@ -6063,77 +9585,148 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new(int64_t* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new( + int64_t* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_int(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_int(*return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new(double* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new( + double* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_float(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_float(*return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse { GObject parent_instance; @@ -6141,155 +9734,299 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new(gboolean* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new( + gboolean* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_bool(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_bool(*return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_string(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new( + const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_uint8_list(return_value, return_value_length) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_uint8_list( + return_value, return_value_length) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_OBJECT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse { GObject parent_instance; @@ -6297,116 +10034,223 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse { GObject parent_instance; @@ -6414,194 +10258,373 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse { GObject parent_instance; @@ -6609,73 +10632,150 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new(CoreTestsPigeonTestAnEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new( + CoreTestsPigeonTestAnEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ASYNC_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new(CoreTestsPigeonTestAnotherEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new( + CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -6685,75 +10785,139 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse, core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse, + core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_init(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new(gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* +core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new( + gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* +core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -struct _CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse, core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse, + core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_init(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_dispose; } -CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new(gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* +core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new( + gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_get_type(), nullptr)); +CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* +core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse { GObject parent_instance; @@ -6761,38 +10925,69 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_NOOP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse { GObject parent_instance; @@ -6800,350 +10995,685 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new() { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new() { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_THROW_ERROR_FROM_VOID_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new(CoreTestsPigeonTestAllTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new( + CoreTestsPigeonTestAllTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(return_value))); + fl_value_append_take( + self->value, + fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, + G_OBJECT(return_value))); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new( + CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, return_value != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, + G_OBJECT(return_value)) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* self) { +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, + GObject) + +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new( + CoreTestsPigeonTestAllNullableTypes* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value)) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, + G_OBJECT(return_value))); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, + G_OBJECT(return_value)) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* self) { -} +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, + GObject) -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_dispose; -} +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse { + GObject parent_instance; -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(return_value))); - return self; -} + FlValue* value; +}; -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_get_type(), nullptr)); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, + G_OBJECT(return_value))); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new( + gboolean return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value)) : fl_value_new_null()); + fl_value_append_take(self->value, fl_value_new_bool(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse { +struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new( + int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(return_value))); + fl_value_append_take(self->value, fl_value_new_int(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE, GObject) - -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse { - GObject parent_instance; - - FlValue* value; -}; - -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE(object); - g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new(gboolean return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_bool(return_value)); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); - return self; -} - -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE, GObject) - -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse { - GObject parent_instance; - - FlValue* value; -}; - -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE(object); - g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new(int64_t return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_int(return_value)); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); - return self; -} - -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse { GObject parent_instance; @@ -7151,38 +11681,71 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new(double return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new( + double return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_float(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse { GObject parent_instance; @@ -7190,77 +11753,145 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new( + const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_uint8_list(return_value, return_value_length)); + fl_value_append_take( + self->value, fl_value_new_uint8_list(return_value, return_value_length)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse { GObject parent_instance; @@ -7268,194 +11899,367 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse { GObject parent_instance; @@ -7463,77 +12267,144 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self) { +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self) { } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse { GObject parent_instance; @@ -7541,272 +12412,517 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_ref(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE, GObject) struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse { GObject parent_instance; @@ -7814,931 +12930,1837 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new(CoreTestsPigeonTestAnEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new( + CoreTestsPigeonTestAnEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); + fl_value_append_take( + self->value, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new(CoreTestsPigeonTestAnotherEnum return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new( + CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new(gboolean* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new( + gboolean* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_bool(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_bool(*return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new(int64_t* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new( + int64_t* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_int(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_int(*return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new(double* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new( + double* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_float(*return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_float(*return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_string(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_string(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new( + const uint8_t* return_value, size_t return_value_length) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_uint8_list(return_value, return_value_length) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_new_uint8_list( + return_value, return_value_length) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new(FlValue* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new( + FlValue* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_ref(return_value) : fl_value_new_null()); + fl_value_append_take(self->value, return_value != nullptr + ? fl_value_ref(return_value) + : fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE, GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new(CoreTestsPigeonTestAnEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new( + CoreTestsPigeonTestAnEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* self) { -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new(CoreTestsPigeonTestAnotherEnum* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), nullptr)); - self->value = fl_value_new_list(); - fl_value_append_take(self->value, return_value != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - return self; -} - -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new( + CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE, + GObject) -struct _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse { +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse { GObject parent_instance; FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE( + object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self) { -} +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* + self) {} -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_class_init(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_dispose; +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -8750,131 +14772,185 @@ struct _CoreTestsPigeonTestHostIntegrationCoreApi { GDestroyNotify user_data_free_func; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApi, core_tests_pigeon_test_host_integration_core_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostIntegrationCoreApi, + core_tests_pigeon_test_host_integration_core_api, G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_integration_core_api_dispose(GObject* object) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(object); +static void core_tests_pigeon_test_host_integration_core_api_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(object); if (self->user_data != nullptr) { self->user_data_free_func(self->user_data); } self->user_data = nullptr; - G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_parent_class)->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_integration_core_api_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_integration_core_api_init(CoreTestsPigeonTestHostIntegrationCoreApi* self) { -} +static void core_tests_pigeon_test_host_integration_core_api_init( + CoreTestsPigeonTestHostIntegrationCoreApi* self) {} -static void core_tests_pigeon_test_host_integration_core_api_class_init(CoreTestsPigeonTestHostIntegrationCoreApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_integration_core_api_dispose; +static void core_tests_pigeon_test_host_integration_core_api_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_dispose; } -static CoreTestsPigeonTestHostIntegrationCoreApi* core_tests_pigeon_test_host_integration_core_api_new(const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(g_object_new(core_tests_pigeon_test_host_integration_core_api_get_type(), nullptr)); +static CoreTestsPigeonTestHostIntegrationCoreApi* +core_tests_pigeon_test_host_integration_core_api_new( + const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, + gpointer user_data, GDestroyNotify user_data_free_func) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(g_object_new( + core_tests_pigeon_test_host_integration_core_api_get_type(), + nullptr)); self->vtable = vtable; self->user_data = user_data; self->user_data_free_func = user_data_free_func; return self; } -static void core_tests_pigeon_test_host_integration_core_api_noop_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_noop_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->noop == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse) response = self->vtable->noop(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse) response = + self->vtable->noop(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "noop"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "noop"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "noop", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "noop", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_all_types_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_all_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse) response = self->vtable->echo_all_types(everything, self->user_data); + CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES( + fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse) + response = self->vtable->echo_all_types(everything, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAllTypes"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoAllTypes"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAllTypes", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAllTypes", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_throw_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_throw_error_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->throw_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse) response = self->vtable->throw_error(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse) + response = self->vtable->throw_error(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "throwError"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "throwError"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwError", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwError", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->throw_error_from_void == nullptr) { + if (self->vtable == nullptr || + self->vtable->throw_error_from_void == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse) response = self->vtable->throw_error_from_void(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse) + response = self->vtable->throw_error_from_void(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "throwErrorFromVoid"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "throwErrorFromVoid"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwErrorFromVoid", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwErrorFromVoid", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->throw_flutter_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse) response = self->vtable->throw_flutter_error(self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse) + response = self->vtable->throw_flutter_error(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "throwFlutterError"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "throwFlutterError"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwFlutterError", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwFlutterError", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_int_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_int == nullptr) { return; @@ -8882,20 +14958,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_int_cb(FlBasic FlValue* value0 = fl_value_get_list_value(message_, 0); int64_t an_int = fl_value_get_int(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse) response = self->vtable->echo_int(an_int, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse) response = + self->vtable->echo_int(an_int, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoInt"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoInt"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoInt", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoInt", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_double_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_double == nullptr) { return; @@ -8903,20 +14986,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_double_cb(FlBa FlValue* value0 = fl_value_get_list_value(message_, 0); double a_double = fl_value_get_float(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse) response = self->vtable->echo_double(a_double, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse) + response = self->vtable->echo_double(a_double, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoDouble"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoDouble"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoDouble", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoDouble", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_bool_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_bool == nullptr) { return; @@ -8924,20 +15014,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_bool_cb(FlBasi FlValue* value0 = fl_value_get_list_value(message_, 0); gboolean a_bool = fl_value_get_bool(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse) response = self->vtable->echo_bool(a_bool, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse) + response = self->vtable->echo_bool(a_bool, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoBool"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoBool"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoBool", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoBool", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_string == nullptr) { return; @@ -8945,20 +15042,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_string_cb(FlBa FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse) response = self->vtable->echo_string(a_string, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse) + response = self->vtable->echo_string(a_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoString", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_uint8_list == nullptr) { return; @@ -8967,20 +15071,28 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* a_uint8_list = fl_value_get_uint8_list(value0); size_t a_uint8_list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse) response = self->vtable->echo_uint8_list(a_uint8_list, a_uint8_list_length, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse) + response = self->vtable->echo_uint8_list( + a_uint8_list, a_uint8_list_length, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoUint8List"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoUint8List"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoUint8List", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoUint8List", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_object_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_object_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_object == nullptr) { return; @@ -8988,20 +15100,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_object_cb(FlBa FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* an_object = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse) response = self->vtable->echo_object(an_object, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse) + response = self->vtable->echo_object(an_object, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoObject"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoObject"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoObject", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoObject", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_list == nullptr) { return; @@ -9009,20 +15128,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_list_cb(FlBasi FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse) response = self->vtable->echo_list(list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse) + response = self->vtable->echo_list(list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_enum_list == nullptr) { return; @@ -9030,20 +15156,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb(F FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse) response = self->vtable->echo_enum_list(enum_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse) + response = self->vtable->echo_enum_list(enum_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoEnumList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoEnumList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoEnumList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoEnumList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_class_list == nullptr) { return; @@ -9051,62 +15184,91 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse) response = self->vtable->echo_class_list(class_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse) + response = self->vtable->echo_class_list(class_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoClassList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoClassList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoClassList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoClassList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_non_null_enum_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_non_null_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse) response = self->vtable->echo_non_null_enum_list(enum_list, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse) + response = + self->vtable->echo_non_null_enum_list(enum_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullEnumList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNonNullEnumList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullEnumList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNonNullEnumList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_non_null_class_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_non_null_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse) response = self->vtable->echo_non_null_class_list(class_list, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse) + response = + self->vtable->echo_non_null_class_list(class_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullClassList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNonNullClassList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullClassList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNonNullClassList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_map == nullptr) { return; @@ -9114,20 +15276,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_map_cb(FlBasic FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse) response = self->vtable->echo_map(map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse) response = + self->vtable->echo_map(map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_string_map == nullptr) { return; @@ -9135,20 +15304,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse) response = self->vtable->echo_string_map(string_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse) + response = self->vtable->echo_string_map(string_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoStringMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoStringMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoStringMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoStringMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_int_map == nullptr) { return; @@ -9156,20 +15332,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb(FlB FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse) response = self->vtable->echo_int_map(int_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse) + response = self->vtable->echo_int_map(int_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoIntMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoIntMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoIntMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoIntMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_enum_map == nullptr) { return; @@ -9177,20 +15360,27 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb(Fl FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse) response = self->vtable->echo_enum_map(enum_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse) + response = self->vtable->echo_enum_map(enum_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoEnumMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoEnumMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoEnumMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoEnumMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_class_map == nullptr) { return; @@ -9198,209 +15388,310 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb(F FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse) response = self->vtable->echo_class_map(class_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse) + response = self->vtable->echo_class_map(class_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoClassMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoClassMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoClassMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoClassMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_non_null_string_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_non_null_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse) response = self->vtable->echo_non_null_string_map(string_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse) + response = + self->vtable->echo_non_null_string_map(string_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullStringMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNonNullStringMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullStringMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNonNullStringMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_non_null_int_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_non_null_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse) response = self->vtable->echo_non_null_int_map(int_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse) + response = self->vtable->echo_non_null_int_map(int_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullIntMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNonNullIntMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullIntMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNonNullIntMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_non_null_enum_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_non_null_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse) response = self->vtable->echo_non_null_enum_map(enum_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse) + response = + self->vtable->echo_non_null_enum_map(enum_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullEnumMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNonNullEnumMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullEnumMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNonNullEnumMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_non_null_class_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_non_null_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse) response = self->vtable->echo_non_null_class_map(class_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse) + response = + self->vtable->echo_non_null_class_map(class_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNonNullClassMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNonNullClassMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNonNullClassMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNonNullClassMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_class_wrapper == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllClassesWrapper* wrapper = CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse) response = self->vtable->echo_class_wrapper(wrapper, self->user_data); + CoreTestsPigeonTestAllClassesWrapper* wrapper = + CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( + fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse) + response = self->vtable->echo_class_wrapper(wrapper, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoClassWrapper"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoClassWrapper"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoClassWrapper", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoClassWrapper", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnEnum an_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse) response = self->vtable->echo_enum(an_enum, self->user_data); + CoreTestsPigeonTestAnEnum an_enum = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse) + response = self->vtable->echo_enum(an_enum, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoEnum"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoEnum"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoEnum", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoEnum", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_another_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnotherEnum another_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse) response = self->vtable->echo_another_enum(another_enum, self->user_data); + CoreTestsPigeonTestAnotherEnum another_enum = + static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse) + response = self->vtable->echo_another_enum(another_enum, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAnotherEnum"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoAnotherEnum"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherEnum", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherEnum", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_named_default_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_named_default_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse) response = self->vtable->echo_named_default_string(a_string, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse) + response = + self->vtable->echo_named_default_string(a_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNamedDefaultString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNamedDefaultString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNamedDefaultString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNamedDefaultString", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_optional_default_double == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_optional_default_double == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); double a_double = fl_value_get_float(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse) response = self->vtable->echo_optional_default_double(a_double, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse) + response = + self->vtable->echo_optional_default_double(a_double, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoOptionalDefaultDouble"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoOptionalDefaultDouble"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoOptionalDefaultDouble", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoOptionalDefaultDouble", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_required_int == nullptr) { return; @@ -9408,150 +15699,237 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_required_int_c FlValue* value0 = fl_value_get_list_value(message_, 0); int64_t an_int = fl_value_get_int(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse) response = self->vtable->echo_required_int(an_int, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse) + response = self->vtable->echo_required_int(an_int, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoRequiredInt"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoRequiredInt"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoRequiredInt", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoRequiredInt", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->are_all_nullable_types_equal == nullptr) { + if (self->vtable == nullptr || + self->vtable->are_all_nullable_types_equal == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypes* a = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); + CoreTestsPigeonTestAllNullableTypes* a = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value0)); FlValue* value1 = fl_value_get_list_value(message_, 1); - CoreTestsPigeonTestAllNullableTypes* b = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value1)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse) response = self->vtable->are_all_nullable_types_equal(a, b, self->user_data); + CoreTestsPigeonTestAllNullableTypes* b = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value1)); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse) + response = + self->vtable->are_all_nullable_types_equal(a, b, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "areAllNullableTypesEqual"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "areAllNullableTypesEqual"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "areAllNullableTypesEqual", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "areAllNullableTypesEqual", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->get_all_nullable_types_hash == nullptr) { + if (self->vtable == nullptr || + self->vtable->get_all_nullable_types_hash == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypes* value = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse) response = self->vtable->get_all_nullable_types_hash(value, self->user_data); + CoreTestsPigeonTestAllNullableTypes* value = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value0)); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse) + response = + self->vtable->get_all_nullable_types_hash(value, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "getAllNullableTypesHash"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "getAllNullableTypesHash"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "getAllNullableTypesHash", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "getAllNullableTypesHash", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_all_nullable_types == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_all_nullable_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse) response = self->vtable->echo_all_nullable_types(everything, self->user_data); + CoreTestsPigeonTestAllNullableTypes* everything = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value0)); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse) + response = + self->vtable->echo_all_nullable_types(everything, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAllNullableTypes"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoAllNullableTypes"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAllNullableTypes", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAllNullableTypes", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_all_nullable_types_without_recursion == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_all_nullable_types_without_recursion == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse) response = self->vtable->echo_all_nullable_types_without_recursion(everything, self->user_data); + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(value0)); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse) + response = self->vtable->echo_all_nullable_types_without_recursion( + everything, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAllNullableTypesWithoutRecursion"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoAllNullableTypesWithoutRecursion"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAllNullableTypesWithoutRecursion", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAllNullableTypesWithoutRecursion", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->extract_nested_nullable_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->extract_nested_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllClassesWrapper* wrapper = CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse) response = self->vtable->extract_nested_nullable_string(wrapper, self->user_data); + CoreTestsPigeonTestAllClassesWrapper* wrapper = + CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( + fl_value_get_custom_value_object(value0)); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse) + response = self->vtable->extract_nested_nullable_string(wrapper, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "extractNestedNullableString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "extractNestedNullableString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "extractNestedNullableString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "extractNestedNullableString", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->create_nested_nullable_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->create_nested_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* nullable_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse) response = self->vtable->create_nested_nullable_string(nullable_string, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse) + response = self->vtable->create_nested_nullable_string(nullable_string, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "createNestedNullableString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "createNestedNullableString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "createNestedNullableString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "createNestedNullableString", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->send_multiple_nullable_types == nullptr) { + if (self->vtable == nullptr || + self->vtable->send_multiple_nullable_types == nullptr) { return; } @@ -9571,22 +15949,33 @@ static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nulla } FlValue* value2 = fl_value_get_list_value(message_, 2); const gchar* a_nullable_string = fl_value_get_string(value2); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse) response = self->vtable->send_multiple_nullable_types(a_nullable_bool, a_nullable_int, a_nullable_string, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse) + response = self->vtable->send_multiple_nullable_types( + a_nullable_bool, a_nullable_int, a_nullable_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "sendMultipleNullableTypes"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "sendMultipleNullableTypes"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "sendMultipleNullableTypes", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "sendMultipleNullableTypes", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->send_multiple_nullable_types_without_recursion == nullptr) { + if (self->vtable == nullptr || + self->vtable->send_multiple_nullable_types_without_recursion == nullptr) { return; } @@ -9606,20 +15995,30 @@ static void core_tests_pigeon_test_host_integration_core_api_send_multiple_nulla } FlValue* value2 = fl_value_get_list_value(message_, 2); const gchar* a_nullable_string = fl_value_get_string(value2); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse) response = self->vtable->send_multiple_nullable_types_without_recursion(a_nullable_bool, a_nullable_int, a_nullable_string, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse) + response = self->vtable->send_multiple_nullable_types_without_recursion( + a_nullable_bool, a_nullable_int, a_nullable_string, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "sendMultipleNullableTypesWithoutRecursion"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "sendMultipleNullableTypesWithoutRecursion"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "sendMultipleNullableTypesWithoutRecursion", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "sendMultipleNullableTypesWithoutRecursion", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_int == nullptr) { return; @@ -9632,22 +16031,32 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_c a_nullable_int_value = fl_value_get_int(value0); a_nullable_int = &a_nullable_int_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse) response = self->vtable->echo_nullable_int(a_nullable_int, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse) + response = + self->vtable->echo_nullable_int(a_nullable_int, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableInt"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableInt"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableInt", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableInt", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_double == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_double == nullptr) { return; } @@ -9658,20 +16067,29 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_doubl a_nullable_double_value = fl_value_get_float(value0); a_nullable_double = &a_nullable_double_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse) response = self->vtable->echo_nullable_double(a_nullable_double, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse) + response = self->vtable->echo_nullable_double(a_nullable_double, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableDouble"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableDouble"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableDouble", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableDouble", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_bool == nullptr) { return; @@ -9684,84 +16102,124 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_ a_nullable_bool_value = fl_value_get_bool(value0); a_nullable_bool = &a_nullable_bool_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse) response = self->vtable->echo_nullable_bool(a_nullable_bool, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse) + response = + self->vtable->echo_nullable_bool(a_nullable_bool, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableBool"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableBool"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableBool", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableBool", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_nullable_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse) response = self->vtable->echo_nullable_string(a_nullable_string, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse) + response = self->vtable->echo_nullable_string(a_nullable_string, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableString", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_uint8_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* a_nullable_uint8_list = fl_value_get_uint8_list(value0); size_t a_nullable_uint8_list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse) response = self->vtable->echo_nullable_uint8_list(a_nullable_uint8_list, a_nullable_uint8_list_length, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse) + response = self->vtable->echo_nullable_uint8_list( + a_nullable_uint8_list, a_nullable_uint8_list_length, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableUint8List"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableUint8List"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableUint8List", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableUint8List", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_object == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_object == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* a_nullable_object = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse) response = self->vtable->echo_nullable_object(a_nullable_object, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse) + response = self->vtable->echo_nullable_object(a_nullable_object, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableObject"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableObject"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableObject", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableObject", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_list == nullptr) { return; @@ -9769,104 +16227,157 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_ FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* a_nullable_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse) response = self->vtable->echo_nullable_list(a_nullable_list, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse) + response = + self->vtable->echo_nullable_list(a_nullable_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_enum_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse) response = self->vtable->echo_nullable_enum_list(enum_list, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse) + response = + self->vtable->echo_nullable_enum_list(enum_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableEnumList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableEnumList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableEnumList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableEnumList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_class_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse) response = self->vtable->echo_nullable_class_list(class_list, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse) + response = + self->vtable->echo_nullable_class_list(class_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableClassList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableClassList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableClassList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableClassList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_enum_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_non_null_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse) response = self->vtable->echo_nullable_non_null_enum_list(enum_list, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse) + response = self->vtable->echo_nullable_non_null_enum_list( + enum_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullEnumList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableNonNullEnumList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullEnumList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableNonNullEnumList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_class_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_non_null_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse) response = self->vtable->echo_nullable_non_null_class_list(class_list, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse) + response = self->vtable->echo_nullable_non_null_class_list( + class_list, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullClassList"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableNonNullClassList"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullClassList", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableNonNullClassList", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_map == nullptr) { return; @@ -9874,188 +16385,282 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_c FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse) response = self->vtable->echo_nullable_map(map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse) + response = self->vtable->echo_nullable_map(map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_string_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse) response = self->vtable->echo_nullable_string_map(string_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse) + response = + self->vtable->echo_nullable_string_map(string_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableStringMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableStringMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableStringMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableStringMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_int_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse) response = self->vtable->echo_nullable_int_map(int_map, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse) + response = self->vtable->echo_nullable_int_map(int_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableIntMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableIntMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableIntMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableIntMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_enum_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse) response = self->vtable->echo_nullable_enum_map(enum_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse) + response = + self->vtable->echo_nullable_enum_map(enum_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableEnumMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableEnumMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableEnumMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableEnumMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_class_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse) response = self->vtable->echo_nullable_class_map(class_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse) + response = + self->vtable->echo_nullable_class_map(class_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableClassMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableClassMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableClassMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableClassMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_string_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_non_null_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse) response = self->vtable->echo_nullable_non_null_string_map(string_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse) + response = self->vtable->echo_nullable_non_null_string_map( + string_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullStringMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableNonNullStringMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullStringMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableNonNullStringMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_int_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_non_null_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse) response = self->vtable->echo_nullable_non_null_int_map(int_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse) + response = self->vtable->echo_nullable_non_null_int_map(int_map, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullIntMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableNonNullIntMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullIntMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableNonNullIntMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_enum_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_non_null_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse) response = self->vtable->echo_nullable_non_null_enum_map(enum_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse) + response = self->vtable->echo_nullable_non_null_enum_map(enum_map, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullEnumMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableNonNullEnumMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullEnumMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableNonNullEnumMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_nullable_non_null_class_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_nullable_non_null_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse) response = self->vtable->echo_nullable_non_null_class_map(class_map, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse) + response = self->vtable->echo_nullable_non_null_class_map( + class_map, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableNonNullClassMap"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableNonNullClassMap"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableNonNullClassMap", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableNonNullClassMap", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_nullable_enum == nullptr) { return; @@ -10065,25 +16670,36 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_ CoreTestsPigeonTestAnEnum* an_enum = nullptr; CoreTestsPigeonTestAnEnum an_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - an_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + an_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); an_enum = &an_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse) response = self->vtable->echo_nullable_enum(an_enum, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse) + response = self->vtable->echo_nullable_enum(an_enum, self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNullableEnum"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNullableEnum"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNullableEnum", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableEnum", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_another_nullable_enum == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_another_nullable_enum == nullptr) { return; } @@ -10091,25 +16707,38 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_another_nullab CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - another_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + another_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); another_enum = &another_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse) response = self->vtable->echo_another_nullable_enum(another_enum, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse) + response = self->vtable->echo_another_nullable_enum(another_enum, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoAnotherNullableEnum"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoAnotherNullableEnum"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherNullableEnum", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherNullableEnum", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_optional_nullable_int == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_optional_nullable_int == nullptr) { return; } @@ -10120,52 +16749,77 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_optional_nulla a_nullable_int_value = fl_value_get_int(value0); a_nullable_int = &a_nullable_int_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse) response = self->vtable->echo_optional_nullable_int(a_nullable_int, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse) + response = self->vtable->echo_optional_nullable_int(a_nullable_int, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoOptionalNullableInt"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoOptionalNullableInt"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoOptionalNullableInt", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoOptionalNullableInt", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_named_nullable_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_named_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_nullable_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse) response = self->vtable->echo_named_nullable_string(a_nullable_string, self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse) + response = self->vtable->echo_named_nullable_string(a_nullable_string, + self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "echoNamedNullableString"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoNamedNullableString"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoNamedNullableString", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNamedNullableString", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_noop_async_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_noop_async_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->noop_async == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->noop_async(handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_int == nullptr) { return; @@ -10173,12 +16827,18 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb(F FlValue* value0 = fl_value_get_list_value(message_, 0); int64_t an_int = fl_value_get_int(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_int(an_int, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_double == nullptr) { return; @@ -10186,12 +16846,17 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_double_c FlValue* value0 = fl_value_get_list_value(message_, 0); double a_double = fl_value_get_float(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_double(a_double, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_bool == nullptr) { return; @@ -10199,12 +16864,18 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); gboolean a_bool = fl_value_get_bool(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_bool(a_bool, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_string == nullptr) { return; @@ -10212,26 +16883,40 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_c FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_string(a_string, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_uint8_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* a_uint8_list = fl_value_get_uint8_list(value0); size_t a_uint8_list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_async_uint8_list(a_uint8_list, a_uint8_list_length, handle, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_async_uint8_list(a_uint8_list, a_uint8_list_length, handle, + self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_object == nullptr) { return; @@ -10239,12 +16924,17 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_object_c FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* an_object = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_object(an_object, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_list == nullptr) { return; @@ -10252,38 +16942,57 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb( FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_list(list, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_enum_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_enum_list(enum_list, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_class_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_class_list(class_list, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_map == nullptr) { return; @@ -10291,25 +17000,38 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb(F FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_map(map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_string_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_string_map(string_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_int_map == nullptr) { return; @@ -10317,12 +17039,18 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_ FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_int_map(int_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_enum_map == nullptr) { return; @@ -10330,125 +17058,205 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_enum_map(enum_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_class_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_class_map(class_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->echo_async_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnEnum an_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + CoreTestsPigeonTestAnEnum an_enum = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_enum(an_enum, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_another_async_enum == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_another_async_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnotherEnum another_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + CoreTestsPigeonTestAnotherEnum another_enum = + static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_another_async_enum(another_enum, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->throw_async_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->throw_async_error(handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->throw_async_error_from_void == nullptr) { + if (self->vtable == nullptr || + self->vtable->throw_async_error_from_void == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->throw_async_error_from_void(handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->throw_async_flutter_error == nullptr) { + if (self->vtable == nullptr || + self->vtable->throw_async_flutter_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->throw_async_flutter_error(handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_all_types == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_all_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES( + fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_all_types(everything, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_all_nullable_types == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_all_nullable_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_async_nullable_all_nullable_types(everything, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->echo_async_nullable_all_nullable_types_without_recursion == nullptr) { + CoreTestsPigeonTestAllNullableTypes* everything = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_async_nullable_all_nullable_types(everything, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_all_nullable_types_without_recursion == + nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_async_nullable_all_nullable_types_without_recursion(everything, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->echo_async_nullable_int == nullptr) { + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_async_nullable_all_nullable_types_without_recursion( + everything, handle, self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_int == nullptr) { return; } @@ -10459,14 +17267,21 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable an_int_value = fl_value_get_int(value0); an_int = &an_int_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_int(an_int, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_double == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_double == nullptr) { return; } @@ -10477,14 +17292,21 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable a_double_value = fl_value_get_float(value0); a_double = &a_double_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_double(a_double, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_bool == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_bool == nullptr) { return; } @@ -10495,158 +17317,247 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable a_bool_value = fl_value_get_bool(value0); a_bool = &a_bool_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_bool(a_bool, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_string(a_string, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_uint8_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* a_uint8_list = fl_value_get_uint8_list(value0); size_t a_uint8_list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_async_nullable_uint8_list(a_uint8_list, a_uint8_list_length, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->echo_async_nullable_object == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_async_nullable_uint8_list( + a_uint8_list, a_uint8_list_length, handle, self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_object == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* an_object = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_object(an_object, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_list(list, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_enum_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_async_nullable_enum_list(enum_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->echo_async_nullable_class_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_async_nullable_enum_list(enum_list, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_async_nullable_class_list(class_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->echo_async_nullable_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_async_nullable_class_list(class_list, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_map(map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_string_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_async_nullable_string_map(string_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->echo_async_nullable_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_async_nullable_string_map(string_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_int_map(int_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_enum_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_enum_map(enum_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_async_nullable_class_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_async_nullable_class_map(class_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->echo_async_nullable_enum == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_async_nullable_class_map(class_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_async_nullable_enum == nullptr) { return; } @@ -10654,17 +17565,26 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_nullable CoreTestsPigeonTestAnEnum* an_enum = nullptr; CoreTestsPigeonTestAnEnum an_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - an_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + an_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); an_enum = &an_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->echo_async_nullable_enum(an_enum, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->echo_another_async_nullable_enum == nullptr) { + if (self->vtable == nullptr || + self->vtable->echo_another_async_nullable_enum == nullptr) { return; } @@ -10672,114 +17592,183 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_another_async_ CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - another_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + another_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); another_enum = &another_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->echo_another_async_nullable_enum(another_enum, handle, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_another_async_nullable_enum(another_enum, handle, + self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->default_is_main_thread == nullptr) { + if (self->vtable == nullptr || + self->vtable->default_is_main_thread == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse) response = self->vtable->default_is_main_thread(self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse) + response = self->vtable->default_is_main_thread(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "defaultIsMainThread"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "defaultIsMainThread"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "defaultIsMainThread", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "defaultIsMainThread", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->task_queue_is_background_thread == nullptr) { + if (self->vtable == nullptr || + self->vtable->task_queue_is_background_thread == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse) response = self->vtable->task_queue_is_background_thread(self->user_data); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse) + response = self->vtable->task_queue_is_background_thread(self->user_data); if (response == nullptr) { - g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", "taskQueueIsBackgroundThread"); + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "taskQueueIsBackgroundThread"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "taskQueueIsBackgroundThread", error->message); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "taskQueueIsBackgroundThread", error->message); } } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); if (self->vtable == nullptr || self->vtable->call_flutter_noop == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_noop(handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_throw_error == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_throw_error == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_throw_error(handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_throw_error_from_void == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_throw_error_from_void == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_throw_error_from_void(handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_all_types == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_all_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_all_types(everything, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_all_nullable_types == nullptr) { + CoreTestsPigeonTestAllTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_TYPES( + fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_all_types(everything, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_all_nullable_types == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypes* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_all_nullable_types(everything, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_send_multiple_nullable_types == nullptr) { + CoreTestsPigeonTestAllNullableTypes* everything = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_all_nullable_types(everything, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_send_multiple_nullable_types == nullptr) { return; } @@ -10799,27 +17788,49 @@ static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_m } FlValue* value2 = fl_value_get_list_value(message_, 2); const gchar* a_nullable_string = fl_value_get_string(value2); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_send_multiple_nullable_types(a_nullable_bool, a_nullable_int, a_nullable_string, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_all_nullable_types_without_recursion == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_send_multiple_nullable_types( + a_nullable_bool, a_nullable_int, a_nullable_string, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_all_nullable_types_without_recursion == + nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(value0)); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_all_nullable_types_without_recursion(everything, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_send_multiple_nullable_types_without_recursion == nullptr) { + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(value0)); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_all_nullable_types_without_recursion( + everything, handle, self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable + ->call_flutter_send_multiple_nullable_types_without_recursion == + nullptr) { return; } @@ -10839,288 +17850,459 @@ static void core_tests_pigeon_test_host_integration_core_api_call_flutter_send_m } FlValue* value2 = fl_value_get_list_value(message_, 2); const gchar* a_nullable_string = fl_value_get_string(value2); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_send_multiple_nullable_types_without_recursion(a_nullable_bool, a_nullable_int, a_nullable_string, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_bool == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_send_multiple_nullable_types_without_recursion( + a_nullable_bool, a_nullable_int, a_nullable_string, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_bool == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); gboolean a_bool = fl_value_get_bool(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_bool(a_bool, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_int == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_int == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); int64_t an_int = fl_value_get_int(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_int(an_int, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_double == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_double == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); double a_double = fl_value_get_float(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_double(a_double, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_string(a_string, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_uint8_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* list = fl_value_get_uint8_list(value0); size_t list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_uint8_list(list, list_length, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_uint8_list(list, list_length, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_list(list, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_enum_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_enum_list(enum_list, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_class_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_class_list(class_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_enum_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_class_list(class_list, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_non_null_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_non_null_enum_list(enum_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_class_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_non_null_enum_list(enum_list, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_non_null_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_non_null_class_list(class_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_non_null_class_list(class_list, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_map(map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_string_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_string_map(string_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_string_map(string_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_int_map(int_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_enum_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_enum_map(enum_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_class_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_class_map(class_map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_string_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_non_null_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_non_null_string_map(string_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_non_null_string_map(string_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_non_null_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_non_null_int_map(int_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_enum_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_non_null_int_map(int_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_non_null_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_non_null_enum_map(enum_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_non_null_class_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_non_null_enum_map(enum_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_non_null_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_non_null_class_map(class_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_enum == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_non_null_class_map(class_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnEnum an_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + CoreTestsPigeonTestAnEnum an_enum = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_enum(an_enum, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_another_enum == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_another_enum == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); - CoreTestsPigeonTestAnotherEnum another_enum = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_another_enum(another_enum, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_bool == nullptr) { + CoreTestsPigeonTestAnotherEnum another_enum = + static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_another_enum(another_enum, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_bool == nullptr) { return; } @@ -11131,14 +18313,22 @@ static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_n a_bool_value = fl_value_get_bool(value0); a_bool = &a_bool_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_bool(a_bool, handle, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_bool(a_bool, handle, + self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_int == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_int == nullptr) { return; } @@ -11149,14 +18339,21 @@ static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_n an_int_value = fl_value_get_int(value0); an_int = &an_int_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_nullable_int(an_int, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_double == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_double == nullptr) { return; } @@ -11167,223 +18364,357 @@ static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_n a_double_value = fl_value_get_float(value0); a_double = &a_double_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_double(a_double, handle, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_double(a_double, handle, + self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_string(a_string, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_uint8_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_string(a_string, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_uint8_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const uint8_t* list = fl_value_get_uint8_list(value0); size_t list_length = fl_value_get_length(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_uint8_list(list, list_length, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_uint8_list(list, list_length, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_nullable_list(list, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_enum_list == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_enum_list(enum_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_class_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_enum_list(enum_list, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_class_list(class_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_enum_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_class_list(class_list, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_non_null_enum_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_enum_list(enum_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_class_list == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_enum_list(enum_list, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_non_null_class_list == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_list = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_class_list(class_list, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_class_list( + class_list, handle, self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); self->vtable->call_flutter_echo_nullable_map(map, handle, self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_string_map == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_string_map(string_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_string_map(string_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_int_map(int_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_enum_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_int_map(int_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_enum_map(enum_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_class_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_enum_map(enum_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_class_map(class_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_string_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_class_map(class_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_non_null_string_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* string_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_string_map(string_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_int_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_string_map( + string_map, handle, self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_non_null_int_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* int_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_int_map(int_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_enum_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_int_map(int_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_non_null_enum_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* enum_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_enum_map(enum_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_non_null_class_map == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_enum_map(enum_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_non_null_class_map == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); FlValue* class_map = value0; - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_non_null_class_map(class_map, handle, self->user_data); -} - -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - - if (self->vtable == nullptr || self->vtable->call_flutter_echo_nullable_enum == nullptr) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_non_null_class_map(class_map, handle, + self->user_data); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_nullable_enum == nullptr) { return; } @@ -11391,17 +18722,27 @@ static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_n CoreTestsPigeonTestAnEnum* an_enum = nullptr; CoreTestsPigeonTestAnEnum an_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - an_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + an_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); an_enum = &an_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_nullable_enum(an_enum, handle, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_nullable_enum(an_enum, handle, + self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_echo_another_nullable_enum == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_another_nullable_enum == nullptr) { return; } @@ -11409,2406 +18750,6602 @@ static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_a CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; CoreTestsPigeonTestAnotherEnum another_enum_value; if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { - another_enum_value = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(value0))))); + another_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); another_enum = &another_enum_value; } - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_echo_another_nullable_enum(another_enum, handle, self->user_data); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_another_nullable_enum(another_enum, handle, + self->user_data); } -static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); - if (self->vtable == nullptr || self->vtable->call_flutter_small_api_echo_string == nullptr) { + if (self->vtable == nullptr || + self->vtable->call_flutter_small_api_echo_string == nullptr) { return; } FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = core_tests_pigeon_test_host_integration_core_api_response_handle_new(channel, response_handle); - self->vtable->call_flutter_small_api_echo_string(a_string, handle, self->user_data); -} - -void core_tests_pigeon_test_host_integration_core_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { - g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApi) api_data = core_tests_pigeon_test_host_integration_core_api_new(vtable, user_data, user_data_free_func); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new(messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_channel, core_tests_pigeon_test_host_integration_core_api_noop_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_types_channel = fl_basic_message_channel_new(messenger, echo_all_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_all_types_channel, core_tests_pigeon_test_host_integration_core_api_echo_all_types_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_error_channel = fl_basic_message_channel_new(messenger, throw_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_error_channel, core_tests_pigeon_test_host_integration_core_api_throw_error_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_error_from_void_channel = fl_basic_message_channel_new(messenger, throw_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_error_from_void_channel, core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_flutter_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_flutter_error_channel = fl_basic_message_channel_new(messenger, throw_flutter_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_flutter_error_channel, core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_int_channel = fl_basic_message_channel_new(messenger, echo_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_int_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_double_channel = fl_basic_message_channel_new(messenger, echo_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_double_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_bool_channel = fl_basic_message_channel_new(messenger, echo_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_bool_channel, core_tests_pigeon_test_host_integration_core_api_echo_bool_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_string_channel = fl_basic_message_channel_new(messenger, echo_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_object_channel = fl_basic_message_channel_new(messenger, echo_object_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_object_channel, core_tests_pigeon_test_host_integration_core_api_echo_object_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_list_channel = fl_basic_message_channel_new(messenger, echo_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_list_channel = fl_basic_message_channel_new(messenger, echo_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_list_channel = fl_basic_message_channel_new(messenger, echo_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, echo_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_class_list_channel = fl_basic_message_channel_new(messenger, echo_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_map_channel = fl_basic_message_channel_new(messenger, echo_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_string_map_channel = fl_basic_message_channel_new(messenger, echo_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_int_map_channel = fl_basic_message_channel_new(messenger, echo_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_map_channel = fl_basic_message_channel_new(messenger, echo_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_map_channel = fl_basic_message_channel_new(messenger, echo_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_string_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_int_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_class_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_class_wrapper_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_wrapper_channel = fl_basic_message_channel_new(messenger, echo_class_wrapper_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_wrapper_channel, core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_channel = fl_basic_message_channel_new(messenger, echo_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_named_default_string_channel = fl_basic_message_channel_new(messenger, echo_named_default_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_named_default_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_optional_default_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_optional_default_double_channel = fl_basic_message_channel_new(messenger, echo_optional_default_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_optional_default_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_required_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_required_int_channel = fl_basic_message_channel_new(messenger, echo_required_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_required_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* are_all_nullable_types_equal_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) are_all_nullable_types_equal_channel = fl_basic_message_channel_new(messenger, are_all_nullable_types_equal_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(are_all_nullable_types_equal_channel, core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* get_all_nullable_types_hash_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) get_all_nullable_types_hash_channel = fl_basic_message_channel_new(messenger, get_all_nullable_types_hash_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(get_all_nullable_types_hash_channel, core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_channel = fl_basic_message_channel_new(messenger, echo_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_all_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, echo_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_all_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* extract_nested_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) extract_nested_nullable_string_channel = fl_basic_message_channel_new(messenger, extract_nested_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(extract_nested_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* create_nested_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) create_nested_nullable_string_channel = fl_basic_message_channel_new(messenger, create_nested_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(create_nested_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* send_multiple_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_channel = fl_basic_message_channel_new(messenger, send_multiple_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(send_multiple_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* send_multiple_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, send_multiple_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(send_multiple_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_double_channel = fl_basic_message_channel_new(messenger, echo_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_bool_channel = fl_basic_message_channel_new(messenger, echo_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_bool_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_object_channel = fl_basic_message_channel_new(messenger, echo_nullable_object_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_object_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_class_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_string_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_int_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_class_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_string_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_int_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_another_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_optional_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_optional_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_optional_nullable_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_named_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_named_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_named_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_named_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* noop_async_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_async_channel = fl_basic_message_channel_new(messenger, noop_async_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_async_channel, core_tests_pigeon_test_host_integration_core_api_noop_async_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_int_channel = fl_basic_message_channel_new(messenger, echo_async_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_double_channel = fl_basic_message_channel_new(messenger, echo_async_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_bool_channel = fl_basic_message_channel_new(messenger, echo_async_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_bool_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_string_channel = fl_basic_message_channel_new(messenger, echo_async_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_async_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_object_channel = fl_basic_message_channel_new(messenger, echo_async_object_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_object_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_list_channel = fl_basic_message_channel_new(messenger, echo_async_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_list_channel = fl_basic_message_channel_new(messenger, echo_async_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_class_list_channel = fl_basic_message_channel_new(messenger, echo_async_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_map_channel = fl_basic_message_channel_new(messenger, echo_async_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_string_map_channel = fl_basic_message_channel_new(messenger, echo_async_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_int_map_channel = fl_basic_message_channel_new(messenger, echo_async_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_map_channel = fl_basic_message_channel_new(messenger, echo_async_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_class_map_channel = fl_basic_message_channel_new(messenger, echo_async_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_channel = fl_basic_message_channel_new(messenger, echo_async_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = fl_basic_message_channel_new(messenger, echo_another_async_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_async_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_async_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_error_channel = fl_basic_message_channel_new(messenger, throw_async_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_async_error_channel, core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_async_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_error_from_void_channel = fl_basic_message_channel_new(messenger, throw_async_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_async_error_from_void_channel, core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* throw_async_flutter_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_flutter_error_channel = fl_basic_message_channel_new(messenger, throw_async_flutter_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_async_flutter_error_channel, core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_all_types_channel = fl_basic_message_channel_new(messenger, echo_async_all_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_all_types_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_all_nullable_types_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_all_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_all_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_int_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_double_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_double_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_bool_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_bool_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_object_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_object_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_object_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_class_list_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_string_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_int_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_class_map_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_async_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* echo_another_async_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_another_async_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_async_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* default_is_main_thread_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) default_is_main_thread_channel = fl_basic_message_channel_new(messenger, default_is_main_thread_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(default_is_main_thread_channel, core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* task_queue_is_background_thread_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) task_queue_is_background_thread_channel = fl_basic_message_channel_new(messenger, task_queue_is_background_thread_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(task_queue_is_background_thread_channel, core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_noop_channel = fl_basic_message_channel_new(messenger, call_flutter_noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_noop_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_throw_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_channel = fl_basic_message_channel_new(messenger, call_flutter_throw_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_throw_error_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_throw_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_from_void_channel = fl_basic_message_channel_new(messenger, call_flutter_throw_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_throw_error_from_void_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_types_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_all_types_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_nullable_types_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_all_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_send_multiple_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_send_multiple_nullable_types_channel = fl_basic_message_channel_new(messenger, call_flutter_send_multiple_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_send_multiple_nullable_types_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_all_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_send_multiple_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_send_multiple_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, call_flutter_send_multiple_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_send_multiple_nullable_types_without_recursion_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_bool_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_bool_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_int_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_double_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_double_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_string_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_uint8_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_class_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_class_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_string_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_int_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_class_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_string_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_int_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_class_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_another_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_another_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_another_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_bool_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_bool_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_int_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_double_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_double_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_string_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_uint8_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_class_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_enum_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_class_list_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_string_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_int_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_class_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_string_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_int_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_enum_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_class_map_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_nullable_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_another_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_another_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* call_flutter_small_api_echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_small_api_echo_string_channel = fl_basic_message_channel_new(messenger, call_flutter_small_api_echo_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_small_api_echo_string_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb, g_object_ref(api_data), g_object_unref); -} - -void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix) { - g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new(messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_types_channel = fl_basic_message_channel_new(messenger, echo_all_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_all_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* throw_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_error_channel = fl_basic_message_channel_new(messenger, throw_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_error_channel, nullptr, nullptr, nullptr); - g_autofree gchar* throw_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_error_from_void_channel = fl_basic_message_channel_new(messenger, throw_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_error_from_void_channel, nullptr, nullptr, nullptr); - g_autofree gchar* throw_flutter_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_flutter_error_channel = fl_basic_message_channel_new(messenger, throw_flutter_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_flutter_error_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_int_channel = fl_basic_message_channel_new(messenger, echo_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_double_channel = fl_basic_message_channel_new(messenger, echo_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_bool_channel = fl_basic_message_channel_new(messenger, echo_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_bool_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_string_channel = fl_basic_message_channel_new(messenger, echo_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_object_channel = fl_basic_message_channel_new(messenger, echo_object_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_object_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_list_channel = fl_basic_message_channel_new(messenger, echo_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_list_channel = fl_basic_message_channel_new(messenger, echo_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_list_channel = fl_basic_message_channel_new(messenger, echo_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, echo_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_class_list_channel = fl_basic_message_channel_new(messenger, echo_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_map_channel = fl_basic_message_channel_new(messenger, echo_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_string_map_channel = fl_basic_message_channel_new(messenger, echo_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_int_map_channel = fl_basic_message_channel_new(messenger, echo_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_map_channel = fl_basic_message_channel_new(messenger, echo_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_map_channel = fl_basic_message_channel_new(messenger, echo_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_string_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_int_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_non_null_class_map_channel = fl_basic_message_channel_new(messenger, echo_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_non_null_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_class_wrapper_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_class_wrapper_channel = fl_basic_message_channel_new(messenger, echo_class_wrapper_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_class_wrapper_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_enum_channel = fl_basic_message_channel_new(messenger, echo_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_named_default_string_channel = fl_basic_message_channel_new(messenger, echo_named_default_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_named_default_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_optional_default_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_optional_default_double_channel = fl_basic_message_channel_new(messenger, echo_optional_default_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_optional_default_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_required_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_required_int_channel = fl_basic_message_channel_new(messenger, echo_required_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_required_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* are_all_nullable_types_equal_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) are_all_nullable_types_equal_channel = fl_basic_message_channel_new(messenger, are_all_nullable_types_equal_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(are_all_nullable_types_equal_channel, nullptr, nullptr, nullptr); - g_autofree gchar* get_all_nullable_types_hash_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) get_all_nullable_types_hash_channel = fl_basic_message_channel_new(messenger, get_all_nullable_types_hash_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(get_all_nullable_types_hash_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_channel = fl_basic_message_channel_new(messenger, echo_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_all_nullable_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, echo_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_all_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); - g_autofree gchar* extract_nested_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) extract_nested_nullable_string_channel = fl_basic_message_channel_new(messenger, extract_nested_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(extract_nested_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* create_nested_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) create_nested_nullable_string_channel = fl_basic_message_channel_new(messenger, create_nested_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(create_nested_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* send_multiple_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_channel = fl_basic_message_channel_new(messenger, send_multiple_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(send_multiple_nullable_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* send_multiple_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, send_multiple_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(send_multiple_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_double_channel = fl_basic_message_channel_new(messenger, echo_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_bool_channel = fl_basic_message_channel_new(messenger, echo_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_bool_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_object_channel = fl_basic_message_channel_new(messenger, echo_nullable_object_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_object_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_class_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_list_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_string_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_int_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_class_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_string_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_int_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_map_channel = fl_basic_message_channel_new(messenger, echo_nullable_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_non_null_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_another_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_optional_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_optional_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_optional_nullable_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_named_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_named_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_named_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_named_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* noop_async_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_async_channel = fl_basic_message_channel_new(messenger, noop_async_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_async_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_int_channel = fl_basic_message_channel_new(messenger, echo_async_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_double_channel = fl_basic_message_channel_new(messenger, echo_async_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_bool_channel = fl_basic_message_channel_new(messenger, echo_async_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_bool_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_string_channel = fl_basic_message_channel_new(messenger, echo_async_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_async_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_object_channel = fl_basic_message_channel_new(messenger, echo_async_object_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_object_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_list_channel = fl_basic_message_channel_new(messenger, echo_async_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_list_channel = fl_basic_message_channel_new(messenger, echo_async_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_class_list_channel = fl_basic_message_channel_new(messenger, echo_async_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_map_channel = fl_basic_message_channel_new(messenger, echo_async_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_string_map_channel = fl_basic_message_channel_new(messenger, echo_async_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_int_map_channel = fl_basic_message_channel_new(messenger, echo_async_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_map_channel = fl_basic_message_channel_new(messenger, echo_async_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_class_map_channel = fl_basic_message_channel_new(messenger, echo_async_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_enum_channel = fl_basic_message_channel_new(messenger, echo_async_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = fl_basic_message_channel_new(messenger, echo_another_async_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_async_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* throw_async_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_error_channel = fl_basic_message_channel_new(messenger, throw_async_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_async_error_channel, nullptr, nullptr, nullptr); - g_autofree gchar* throw_async_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_error_from_void_channel = fl_basic_message_channel_new(messenger, throw_async_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_async_error_from_void_channel, nullptr, nullptr, nullptr); - g_autofree gchar* throw_async_flutter_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) throw_async_flutter_error_channel = fl_basic_message_channel_new(messenger, throw_async_flutter_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(throw_async_flutter_error_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_all_types_channel = fl_basic_message_channel_new(messenger, echo_async_all_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_all_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_all_nullable_types_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_all_nullable_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_all_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_double_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_bool_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_bool_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_object_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_object_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_object_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_object_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_list_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_map_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_async_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_async_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* echo_another_async_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = fl_basic_message_channel_new(messenger, echo_another_async_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_another_async_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* default_is_main_thread_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) default_is_main_thread_channel = fl_basic_message_channel_new(messenger, default_is_main_thread_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(default_is_main_thread_channel, nullptr, nullptr, nullptr); - g_autofree gchar* task_queue_is_background_thread_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) task_queue_is_background_thread_channel = fl_basic_message_channel_new(messenger, task_queue_is_background_thread_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(task_queue_is_background_thread_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_noop_channel = fl_basic_message_channel_new(messenger, call_flutter_noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_noop_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_throw_error_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_channel = fl_basic_message_channel_new(messenger, call_flutter_throw_error_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_throw_error_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_throw_error_from_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_from_void_channel = fl_basic_message_channel_new(messenger, call_flutter_throw_error_from_void_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_throw_error_from_void_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_all_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_types_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_all_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_all_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_nullable_types_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_all_nullable_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_send_multiple_nullable_types_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_send_multiple_nullable_types_channel = fl_basic_message_channel_new(messenger, call_flutter_send_multiple_nullable_types_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_send_multiple_nullable_types_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_all_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_all_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_all_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_send_multiple_nullable_types_without_recursion_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_send_multiple_nullable_types_without_recursion_channel = fl_basic_message_channel_new(messenger, call_flutter_send_multiple_nullable_types_without_recursion_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_send_multiple_nullable_types_without_recursion_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_bool_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_bool_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_double_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_uint8_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_non_null_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_another_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_another_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_another_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_bool_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_bool_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_bool_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_int_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_int_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_int_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_double_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_double_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_double_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_double_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_string_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_uint8_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_uint8_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_uint8_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_uint8_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_enum_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_enum_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_enum_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_enum_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_class_list_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_class_list_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_class_list_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_class_list_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_string_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_string_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_string_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_string_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_int_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_int_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_int_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_int_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_enum_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_enum_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_enum_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_enum_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_non_null_class_map_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_non_null_class_map_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_non_null_class_map_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_non_null_class_map_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_nullable_enum_channel = fl_basic_message_channel_new(messenger, call_flutter_echo_another_nullable_enum_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_echo_another_nullable_enum_channel, nullptr, nullptr, nullptr); - g_autofree gchar* call_flutter_small_api_echo_string_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) call_flutter_small_api_echo_string_channel = fl_basic_message_channel_new(messenger, call_flutter_small_api_echo_string_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(call_flutter_small_api_echo_string_channel, nullptr, nullptr, nullptr); -} - -void core_tests_pigeon_test_host_integration_core_api_respond_noop_async(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse) response = core_tests_pigeon_test_host_integration_core_api_noop_async_response_new(); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_small_api_echo_string(a_string, handle, + self->user_data); +} + +void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix, + const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, + gpointer user_data, GDestroyNotify user_data_free_func) { + g_autofree gchar* dot_suffix = + suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApi) api_data = + core_tests_pigeon_test_host_integration_core_api_new(vtable, user_data, + user_data_free_func); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* noop_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop%" + "s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new( + messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + noop_channel, core_tests_pigeon_test_host_integration_core_api_noop_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_all_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAllTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_types_channel = + fl_basic_message_channel_new(messenger, echo_all_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_all_types_channel, + core_tests_pigeon_test_host_integration_core_api_echo_all_types_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_error_channel = + fl_basic_message_channel_new(messenger, throw_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + throw_error_channel, + core_tests_pigeon_test_host_integration_core_api_throw_error_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_error_from_void_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwErrorFromVoid%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_error_from_void_channel = + fl_basic_message_channel_new(messenger, + throw_error_from_void_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + throw_error_from_void_channel, + core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_flutter_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwFlutterError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_flutter_error_channel = + fl_basic_message_channel_new(messenger, throw_flutter_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + throw_flutter_error_channel, + core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_int_channel = + fl_basic_message_channel_new(messenger, echo_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_int_channel, + core_tests_pigeon_test_host_integration_core_api_echo_int_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_double_channel = + fl_basic_message_channel_new(messenger, echo_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_double_channel, + core_tests_pigeon_test_host_integration_core_api_echo_double_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_bool_channel = + fl_basic_message_channel_new(messenger, echo_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_bool_channel, + core_tests_pigeon_test_host_integration_core_api_echo_bool_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_string_channel = + fl_basic_message_channel_new(messenger, echo_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_string_channel, + core_tests_pigeon_test_host_integration_core_api_echo_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_uint8_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_uint8_list_channel = + fl_basic_message_channel_new(messenger, echo_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_uint8_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_object_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoObject%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_object_channel = + fl_basic_message_channel_new(messenger, echo_object_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_object_channel, + core_tests_pigeon_test_host_integration_core_api_echo_object_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_list_channel = + fl_basic_message_channel_new(messenger, echo_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_list_channel = + fl_basic_message_channel_new(messenger, echo_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_list_channel = + fl_basic_message_channel_new(messenger, echo_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_enum_list_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_non_null_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_class_list_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_non_null_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_map_channel = + fl_basic_message_channel_new(messenger, echo_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_string_map_channel = + fl_basic_message_channel_new(messenger, echo_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_int_map_channel = + fl_basic_message_channel_new(messenger, echo_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_map_channel = + fl_basic_message_channel_new(messenger, echo_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_map_channel = + fl_basic_message_channel_new(messenger, echo_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_string_map_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_non_null_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_int_map_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_non_null_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_enum_map_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_non_null_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_non_null_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_class_map_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_non_null_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_class_wrapper_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoClassWrapper%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_wrapper_channel = + fl_basic_message_channel_new(messenger, echo_class_wrapper_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_class_wrapper_channel, + core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_channel = + fl_basic_message_channel_new(messenger, echo_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = + fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNamedDefaultString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_named_default_string_channel = + fl_basic_message_channel_new(messenger, + echo_named_default_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_named_default_string_channel, + core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_optional_default_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoOptionalDefaultDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_optional_default_double_channel = + fl_basic_message_channel_new(messenger, + echo_optional_default_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_optional_default_double_channel, + core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_required_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoRequiredInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_required_int_channel = + fl_basic_message_channel_new(messenger, echo_required_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_required_int_channel, + core_tests_pigeon_test_host_integration_core_api_echo_required_int_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* are_all_nullable_types_equal_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "areAllNullableTypesEqual%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) are_all_nullable_types_equal_channel = + fl_basic_message_channel_new(messenger, + are_all_nullable_types_equal_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + are_all_nullable_types_equal_channel, + core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* get_all_nullable_types_hash_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "getAllNullableTypesHash%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) get_all_nullable_types_hash_channel = + fl_basic_message_channel_new(messenger, + get_all_nullable_types_hash_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + get_all_nullable_types_hash_channel, + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAllNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_channel = + fl_basic_message_channel_new(messenger, + echo_all_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_all_nullable_types_channel, + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_all_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAllNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + echo_all_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, echo_all_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_all_nullable_types_without_recursion_channel, + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* extract_nested_nullable_string_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "extractNestedNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) extract_nested_nullable_string_channel = + fl_basic_message_channel_new(messenger, + extract_nested_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + extract_nested_nullable_string_channel, + core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* create_nested_nullable_string_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "createNestedNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) create_nested_nullable_string_channel = + fl_basic_message_channel_new(messenger, + create_nested_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + create_nested_nullable_string_channel, + core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* send_multiple_nullable_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "sendMultipleNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_channel = + fl_basic_message_channel_new(messenger, + send_multiple_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + send_multiple_nullable_types_channel, + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* + send_multiple_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi." + "sendMultipleNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + send_multiple_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, + send_multiple_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + send_multiple_nullable_types_without_recursion_channel, + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_int_channel = + fl_basic_message_channel_new(messenger, echo_nullable_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_int_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_double_channel = + fl_basic_message_channel_new(messenger, echo_nullable_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_double_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_bool_channel = + fl_basic_message_channel_new(messenger, echo_nullable_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_bool_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_string_channel = + fl_basic_message_channel_new(messenger, echo_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_string_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_uint8_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_uint8_list_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_uint8_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_object_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableObject%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_object_channel = + fl_basic_message_channel_new(messenger, echo_nullable_object_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_object_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_list_channel = + fl_basic_message_channel_new(messenger, echo_nullable_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_list_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_class_list_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_list_channel = + fl_basic_message_channel_new( + messenger, echo_nullable_non_null_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_list_channel = + fl_basic_message_channel_new( + messenger, echo_nullable_non_null_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_map_channel = + fl_basic_message_channel_new(messenger, echo_nullable_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_string_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_int_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_class_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_string_map_channel = + fl_basic_message_channel_new( + messenger, echo_nullable_non_null_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_int_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_int_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_non_null_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_enum_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_non_null_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_non_null_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_map_channel = + fl_basic_message_channel_new( + messenger, echo_nullable_non_null_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_nullable_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_channel = + fl_basic_message_channel_new(messenger, echo_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = + fl_basic_message_channel_new(messenger, + echo_another_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoOptionalNullableInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_optional_nullable_int_channel = + fl_basic_message_channel_new(messenger, + echo_optional_nullable_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_optional_nullable_int_channel, + core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_named_nullable_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNamedNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_named_nullable_string_channel = + fl_basic_message_channel_new(messenger, + echo_named_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_named_nullable_string_channel, + core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* noop_async_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "noopAsync%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_async_channel = + fl_basic_message_channel_new(messenger, noop_async_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + noop_async_channel, + core_tests_pigeon_test_host_integration_core_api_noop_async_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_int_channel = + fl_basic_message_channel_new(messenger, echo_async_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_int_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_int_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_double_channel = + fl_basic_message_channel_new(messenger, echo_async_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_double_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_double_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_bool_channel = + fl_basic_message_channel_new(messenger, echo_async_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_bool_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_string_channel = + fl_basic_message_channel_new(messenger, echo_async_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_string_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_uint8_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_uint8_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_uint8_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_object_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncObject%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_object_channel = + fl_basic_message_channel_new(messenger, echo_async_object_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_object_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_object_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_list_channel = + fl_basic_message_channel_new(messenger, echo_async_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_list_channel = + fl_basic_message_channel_new(messenger, echo_async_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_class_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_map_channel = + fl_basic_message_channel_new(messenger, echo_async_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_string_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_int_map_channel = + fl_basic_message_channel_new(messenger, echo_async_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_map_channel = + fl_basic_message_channel_new(messenger, echo_async_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_class_map_channel = + fl_basic_message_channel_new(messenger, echo_async_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_channel = + fl_basic_message_channel_new(messenger, echo_async_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = + fl_basic_message_channel_new(messenger, + echo_another_async_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_async_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_async_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwAsyncError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_error_channel = + fl_basic_message_channel_new(messenger, throw_async_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + throw_async_error_channel, + core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_async_error_from_void_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwAsyncErrorFromVoid%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_error_from_void_channel = + fl_basic_message_channel_new(messenger, + throw_async_error_from_void_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + throw_async_error_from_void_channel, + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* throw_async_flutter_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwAsyncFlutterError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_flutter_error_channel = + fl_basic_message_channel_new(messenger, + throw_async_flutter_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + throw_async_flutter_error_channel, + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_all_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncAllTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_all_types_channel = + fl_basic_message_channel_new(messenger, echo_async_all_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_all_types_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_all_nullable_types_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableAllNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + echo_async_nullable_all_nullable_types_channel = + fl_basic_message_channel_new( + messenger, echo_async_nullable_all_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_all_nullable_types_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* + echo_async_nullable_all_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi." + "echoAsyncNullableAllNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + echo_async_nullable_all_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, + echo_async_nullable_all_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_all_nullable_types_without_recursion_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_int_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_double_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_double_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_bool_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_bool_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_string_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_uint8_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_uint8_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_uint8_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_object_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableObject%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_object_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_object_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_object_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_async_nullable_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_async_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = + fl_basic_message_channel_new( + messenger, echo_another_async_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_async_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* default_is_main_thread_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "defaultIsMainThread%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) default_is_main_thread_channel = + fl_basic_message_channel_new(messenger, + default_is_main_thread_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + default_is_main_thread_channel, + core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* task_queue_is_background_thread_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "taskQueueIsBackgroundThread%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) task_queue_is_background_thread_channel = + fl_basic_message_channel_new(messenger, + task_queue_is_background_thread_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + task_queue_is_background_thread_channel, + core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterNoop%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_noop_channel = + fl_basic_message_channel_new(messenger, call_flutter_noop_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_noop_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_throw_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterThrowError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_channel = + fl_basic_message_channel_new(messenger, + call_flutter_throw_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_throw_error_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_throw_error_from_void_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterThrowErrorFromVoid%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_from_void_channel = + fl_basic_message_channel_new( + messenger, call_flutter_throw_error_from_void_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_throw_error_from_void_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_all_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAllTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_types_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_all_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_all_types_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_all_nullable_types_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAllNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_all_nullable_types_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_all_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_all_nullable_types_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_send_multiple_nullable_types_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterSendMultipleNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_send_multiple_nullable_types_channel = + fl_basic_message_channel_new( + messenger, call_flutter_send_multiple_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_send_multiple_nullable_types_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* + call_flutter_echo_all_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi." + "callFlutterEchoAllNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_all_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_all_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_all_nullable_types_without_recursion_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* + call_flutter_send_multiple_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi." + "callFlutterSendMultipleNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_send_multiple_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_send_multiple_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_send_multiple_nullable_types_without_recursion_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_bool_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_bool_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_int_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_double_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_double_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_string_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_uint8_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_uint8_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_uint8_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_non_null_enum_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_non_null_class_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_non_null_string_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_int_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_int_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_enum_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_non_null_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_non_null_class_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_enum_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_another_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_another_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_another_enum_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_bool_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_bool_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_int_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_int_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_double_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_double_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_double_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_string_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_string_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_uint8_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_uint8_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_uint8_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_enum_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_class_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_enum_list_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_enum_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* + call_flutter_echo_nullable_non_null_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList%" + "s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_class_list_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_class_list_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_string_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_int_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_enum_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_class_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* + call_flutter_echo_nullable_non_null_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap%" + "s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_string_map_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_string_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_int_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_int_map_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_int_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_enum_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_enum_map_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_enum_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_non_null_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_class_map_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_class_map_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_another_nullable_enum_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_another_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_another_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_small_api_echo_string_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterSmallApiEchoString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_small_api_echo_string_channel = + fl_basic_message_channel_new( + messenger, call_flutter_small_api_echo_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_small_api_echo_string_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb, + g_object_ref(api_data), g_object_unref); +} + +void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix) { + g_autofree gchar* dot_suffix = + suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* noop_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop%" + "s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new( + messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* echo_all_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAllTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_types_channel = + fl_basic_message_channel_new(messenger, echo_all_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_all_types_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* throw_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_error_channel = + fl_basic_message_channel_new(messenger, throw_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_error_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* throw_error_from_void_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwErrorFromVoid%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_error_from_void_channel = + fl_basic_message_channel_new(messenger, + throw_error_from_void_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_error_from_void_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* throw_flutter_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwFlutterError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_flutter_error_channel = + fl_basic_message_channel_new(messenger, throw_flutter_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_flutter_error_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_int_channel = + fl_basic_message_channel_new(messenger, echo_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_int_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_double_channel = + fl_basic_message_channel_new(messenger, echo_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_double_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_bool_channel = + fl_basic_message_channel_new(messenger, echo_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_bool_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_string_channel = + fl_basic_message_channel_new(messenger, echo_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_string_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_uint8_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_uint8_list_channel = + fl_basic_message_channel_new(messenger, echo_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_uint8_list_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_object_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoObject%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_object_channel = + fl_basic_message_channel_new(messenger, echo_object_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_object_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_list_channel = + fl_basic_message_channel_new(messenger, echo_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_list_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_list_channel = + fl_basic_message_channel_new(messenger, echo_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_list_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_list_channel = + fl_basic_message_channel_new(messenger, echo_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_list_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_non_null_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_enum_list_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_enum_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_class_list_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_class_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_map_channel = + fl_basic_message_channel_new(messenger, echo_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_map_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_string_map_channel = + fl_basic_message_channel_new(messenger, echo_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_string_map_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_int_map_channel = + fl_basic_message_channel_new(messenger, echo_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_int_map_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_map_channel = + fl_basic_message_channel_new(messenger, echo_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_map_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_map_channel = + fl_basic_message_channel_new(messenger, echo_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_map_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_non_null_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_string_map_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_string_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_int_map_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_int_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_enum_map_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_enum_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_non_null_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_non_null_class_map_channel = + fl_basic_message_channel_new(messenger, + echo_non_null_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_non_null_class_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_class_wrapper_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoClassWrapper%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_class_wrapper_channel = + fl_basic_message_channel_new(messenger, echo_class_wrapper_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_class_wrapper_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_enum_channel = + fl_basic_message_channel_new(messenger, echo_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_enum_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = + fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_enum_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNamedDefaultString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_named_default_string_channel = + fl_basic_message_channel_new(messenger, + echo_named_default_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_named_default_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_optional_default_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoOptionalDefaultDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_optional_default_double_channel = + fl_basic_message_channel_new(messenger, + echo_optional_default_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_optional_default_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_required_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoRequiredInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_required_int_channel = + fl_basic_message_channel_new(messenger, echo_required_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_required_int_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* are_all_nullable_types_equal_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "areAllNullableTypesEqual%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) are_all_nullable_types_equal_channel = + fl_basic_message_channel_new(messenger, + are_all_nullable_types_equal_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + are_all_nullable_types_equal_channel, nullptr, nullptr, nullptr); + g_autofree gchar* get_all_nullable_types_hash_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "getAllNullableTypesHash%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) get_all_nullable_types_hash_channel = + fl_basic_message_channel_new(messenger, + get_all_nullable_types_hash_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + get_all_nullable_types_hash_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAllNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_all_nullable_types_channel = + fl_basic_message_channel_new(messenger, + echo_all_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_all_nullable_types_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_all_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAllNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + echo_all_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, echo_all_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_all_nullable_types_without_recursion_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* extract_nested_nullable_string_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "extractNestedNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) extract_nested_nullable_string_channel = + fl_basic_message_channel_new(messenger, + extract_nested_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + extract_nested_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* create_nested_nullable_string_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "createNestedNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) create_nested_nullable_string_channel = + fl_basic_message_channel_new(messenger, + create_nested_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + create_nested_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* send_multiple_nullable_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "sendMultipleNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) send_multiple_nullable_types_channel = + fl_basic_message_channel_new(messenger, + send_multiple_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + send_multiple_nullable_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* + send_multiple_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi." + "sendMultipleNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + send_multiple_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, + send_multiple_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + send_multiple_nullable_types_without_recursion_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* echo_nullable_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_int_channel = + fl_basic_message_channel_new(messenger, echo_nullable_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_int_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_double_channel = + fl_basic_message_channel_new(messenger, echo_nullable_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_double_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_bool_channel = + fl_basic_message_channel_new(messenger, echo_nullable_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_bool_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_string_channel = + fl_basic_message_channel_new(messenger, echo_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_string_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_uint8_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_uint8_list_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_uint8_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_object_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableObject%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_object_channel = + fl_basic_message_channel_new(messenger, echo_nullable_object_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_object_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_list_channel = + fl_basic_message_channel_new(messenger, echo_nullable_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_list_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_class_list_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_class_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_list_channel = + fl_basic_message_channel_new( + messenger, echo_nullable_non_null_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_list_channel = + fl_basic_message_channel_new( + messenger, echo_nullable_non_null_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_map_channel = + fl_basic_message_channel_new(messenger, echo_nullable_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_string_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_string_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_int_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_int_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_class_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_class_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_string_map_channel = + fl_basic_message_channel_new( + messenger, echo_nullable_non_null_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_int_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_int_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_non_null_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_enum_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_enum_map_channel = + fl_basic_message_channel_new(messenger, + echo_nullable_non_null_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_non_null_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_non_null_class_map_channel = + fl_basic_message_channel_new( + messenger, echo_nullable_non_null_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_nullable_non_null_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_nullable_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_nullable_enum_channel = + fl_basic_message_channel_new(messenger, echo_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_nullable_enum_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = + fl_basic_message_channel_new(messenger, + echo_another_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoOptionalNullableInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_optional_nullable_int_channel = + fl_basic_message_channel_new(messenger, + echo_optional_nullable_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_optional_nullable_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_named_nullable_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNamedNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_named_nullable_string_channel = + fl_basic_message_channel_new(messenger, + echo_named_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_named_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* noop_async_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "noopAsync%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_async_channel = + fl_basic_message_channel_new(messenger, noop_async_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_async_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_async_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_int_channel = + fl_basic_message_channel_new(messenger, echo_async_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_int_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_async_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_double_channel = + fl_basic_message_channel_new(messenger, echo_async_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_double_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_bool_channel = + fl_basic_message_channel_new(messenger, echo_async_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_bool_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_async_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_string_channel = + fl_basic_message_channel_new(messenger, echo_async_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_string_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_uint8_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_uint8_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_uint8_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_object_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncObject%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_object_channel = + fl_basic_message_channel_new(messenger, echo_async_object_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_object_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_list_channel = + fl_basic_message_channel_new(messenger, echo_async_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_list_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_async_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_list_channel = + fl_basic_message_channel_new(messenger, echo_async_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_class_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_class_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_map_channel = + fl_basic_message_channel_new(messenger, echo_async_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_map_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_async_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_string_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_string_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_int_map_channel = + fl_basic_message_channel_new(messenger, echo_async_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_int_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_map_channel = + fl_basic_message_channel_new(messenger, echo_async_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_class_map_channel = + fl_basic_message_channel_new(messenger, echo_async_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_class_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_enum_channel = + fl_basic_message_channel_new(messenger, echo_async_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_enum_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = + fl_basic_message_channel_new(messenger, + echo_another_async_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_async_enum_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* throw_async_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwAsyncError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_error_channel = + fl_basic_message_channel_new(messenger, throw_async_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(throw_async_error_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* throw_async_error_from_void_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwAsyncErrorFromVoid%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_error_from_void_channel = + fl_basic_message_channel_new(messenger, + throw_async_error_from_void_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + throw_async_error_from_void_channel, nullptr, nullptr, nullptr); + g_autofree gchar* throw_async_flutter_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwAsyncFlutterError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) throw_async_flutter_error_channel = + fl_basic_message_channel_new(messenger, + throw_async_flutter_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + throw_async_flutter_error_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_all_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncAllTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_all_types_channel = + fl_basic_message_channel_new(messenger, echo_async_all_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_all_types_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_all_nullable_types_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableAllNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + echo_async_nullable_all_nullable_types_channel = + fl_basic_message_channel_new( + messenger, echo_async_nullable_all_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_all_nullable_types_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* + echo_async_nullable_all_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi." + "echoAsyncNullableAllNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + echo_async_nullable_all_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, + echo_async_nullable_all_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_all_nullable_types_without_recursion_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* echo_async_nullable_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_int_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_double_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_bool_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_bool_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_uint8_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_uint8_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_object_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableObject%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_object_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_object_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_object_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_list_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_string_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_int_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_class_map_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_async_nullable_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_async_nullable_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_async_nullable_enum_channel = + fl_basic_message_channel_new(messenger, + echo_async_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_async_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = + fl_basic_message_channel_new( + messenger, echo_another_async_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_async_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* default_is_main_thread_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "defaultIsMainThread%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) default_is_main_thread_channel = + fl_basic_message_channel_new(messenger, + default_is_main_thread_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(default_is_main_thread_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* task_queue_is_background_thread_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "taskQueueIsBackgroundThread%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) task_queue_is_background_thread_channel = + fl_basic_message_channel_new(messenger, + task_queue_is_background_thread_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + task_queue_is_background_thread_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterNoop%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_noop_channel = + fl_basic_message_channel_new(messenger, call_flutter_noop_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_noop_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_throw_error_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterThrowError%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_channel = + fl_basic_message_channel_new(messenger, + call_flutter_throw_error_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_throw_error_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_throw_error_from_void_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterThrowErrorFromVoid%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_throw_error_from_void_channel = + fl_basic_message_channel_new( + messenger, call_flutter_throw_error_from_void_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_throw_error_from_void_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_all_types_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAllTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_all_types_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_all_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_all_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_all_nullable_types_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAllNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_all_nullable_types_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_all_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_all_nullable_types_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_send_multiple_nullable_types_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterSendMultipleNullableTypes%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_send_multiple_nullable_types_channel = + fl_basic_message_channel_new( + messenger, call_flutter_send_multiple_nullable_types_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_send_multiple_nullable_types_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* + call_flutter_echo_all_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi." + "callFlutterEchoAllNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_all_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_all_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_all_nullable_types_without_recursion_channel, nullptr, + nullptr, nullptr); + g_autofree gchar* + call_flutter_send_multiple_nullable_types_without_recursion_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi." + "callFlutterSendMultipleNullableTypesWithoutRecursion%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_send_multiple_nullable_types_without_recursion_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_send_multiple_nullable_types_without_recursion_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_send_multiple_nullable_types_without_recursion_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_bool_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_bool_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_bool_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_int_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_int_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_double_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_double_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_double_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_string_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_string_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_uint8_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_uint8_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_list_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_enum_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_class_list_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_non_null_enum_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_non_null_class_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_map_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_string_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_string_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_int_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_int_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_enum_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_class_map_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_class_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_non_null_string_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_int_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_int_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_enum_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_non_null_enum_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_non_null_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_non_null_class_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_non_null_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_non_null_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_enum_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_channel, + nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_another_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_another_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_another_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableBool%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_bool_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_bool_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_bool_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_int_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableInt%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_int_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_int_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_double_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableDouble%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_double_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_double_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_double_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_string_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_string_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_string_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_uint8_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableUint8List%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_uint8_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_uint8_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_uint8_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_list_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_enum_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_enum_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableClassList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_class_list_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_class_list_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_enum_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullEnumList%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_enum_list_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_enum_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_enum_list_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* + call_flutter_echo_nullable_non_null_class_list_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList%" + "s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_class_list_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_class_list_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_class_list_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* call_flutter_echo_nullable_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_map_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableStringMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_string_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_string_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_int_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_int_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_int_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_enum_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_enum_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_nullable_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_class_map_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_nullable_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_class_map_channel, nullptr, nullptr, nullptr); + g_autofree gchar* + call_flutter_echo_nullable_non_null_string_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap%" + "s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_string_map_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_string_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_string_map_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_int_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullIntMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_int_map_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_int_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_int_map_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_enum_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullEnumMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_enum_map_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_enum_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_enum_map_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* call_flutter_echo_nullable_non_null_class_map_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullClassMap%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_nullable_non_null_class_map_channel = + fl_basic_message_channel_new( + messenger, + call_flutter_echo_nullable_non_null_class_map_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_non_null_class_map_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* call_flutter_echo_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_nullable_enum_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_another_nullable_enum_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_another_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_another_nullable_enum_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* call_flutter_small_api_echo_string_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterSmallApiEchoString%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_small_api_echo_string_channel = + fl_basic_message_channel_new( + messenger, call_flutter_small_api_echo_string_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_small_api_echo_string_channel, nullptr, nullptr, nullptr); +} + +void core_tests_pigeon_test_host_integration_core_api_respond_noop_async( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse) response = + core_tests_pigeon_test_host_integration_core_api_noop_async_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "noopAsync", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "noopAsync", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse) response = core_tests_pigeon_test_host_integration_core_api_noop_async_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiNoopAsyncResponse) response = + core_tests_pigeon_test_host_integration_core_api_noop_async_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "noopAsync", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "noopAsync", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + int64_t return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncInt", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncInt", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_int_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncInt", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncInt", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + double return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncDouble", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncDouble", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncDoubleResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_double_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncDouble", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncDouble", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gboolean return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncBool", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncBool", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncBoolResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_bool_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncBool", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncBool", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncString", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncString", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_string_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncString", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncString", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new(return_value, return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const uint8_t* return_value, size_t return_value_length) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new( + return_value, return_value_length); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncUint8List", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncUint8List", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncUint8ListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_uint8_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncUint8List", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncUint8List", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncObject", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncObject", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncObjectResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_object_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncObject", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncObject", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncListResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnumList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncEnumList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumListResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnumList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncEnumList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncClassList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncClassList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_class_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncClassList", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncClassList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncMapResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncStringMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncStringMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_string_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncStringMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncStringMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncIntMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncIntMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncIntMapResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_int_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncIntMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncIntMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnumMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncEnumMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumMapResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnumMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncEnumMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncClassMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncClassMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncClassMapResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_class_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncClassMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncClassMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnEnum return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnum", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncEnum", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncEnumResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherAsyncEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherAsyncEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherAsyncEnum", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherAsyncEnum", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse) response = + core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncError", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwAsyncError", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse) response = + core_tests_pigeon_test_host_integration_core_api_throw_async_error_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncError", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwAsyncError", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new(); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse) + response = + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncErrorFromVoid", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwAsyncErrorFromVoid", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorFromVoidResponse) + response = + core_tests_pigeon_test_host_integration_core_api_throw_async_error_from_void_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncErrorFromVoid", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwAsyncErrorFromVoid", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse) + response = + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncFlutterError", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwAsyncFlutterError", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncFlutterErrorResponse) + response = + core_tests_pigeon_test_host_integration_core_api_throw_async_flutter_error_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "throwAsyncFlutterError", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "throwAsyncFlutterError", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllTypes* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllTypes* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncAllTypes", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncAllTypes", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncAllTypesResponse) response = + core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncAllTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncAllTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypes* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableAllNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableAllNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableAllNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableAllNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableAllNullableTypesWithoutRecursion", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableAllNullableTypesWithoutRecursion", + error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableAllNullableTypesWithoutRecursionResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullable_types_without_recursion_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableAllNullableTypesWithoutRecursion", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableAllNullableTypesWithoutRecursion", + error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + int64_t* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + double* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableDoubleResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_double_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gboolean* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableBoolResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_bool_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new(return_value, return_value_length); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const uint8_t* return_value, size_t return_value_length) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new( + return_value, return_value_length); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableUint8ListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_uint8_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableObject", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableObject", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableObjectResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_object_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableObject", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableObject", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_string_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_int_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_class_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnEnum* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAsyncNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAsyncNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAsyncNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherAsyncNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherAsyncNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "echoAnotherAsyncNullableEnum", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherAsyncNullableEnum", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new(); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse) response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterNoop", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterNoop", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse) response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterNoop", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterNoop", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterThrowError", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new_error(code, message, details); - g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterThrowError", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new(); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterThrowError", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterThrowErrorFromVoid", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterThrowError", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterThrowErrorFromVoid", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllTypes* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterThrowErrorFromVoid", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterThrowErrorFromVoidResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_throw_error_from_void_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterThrowErrorFromVoid", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllTypes* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAllTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllTypesResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAllTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypes* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAllNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSendMultipleNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAllNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypes* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSendMultipleNullableTypes", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterSendMultipleNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllNullableTypesWithoutRecursion", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterSendMultipleNullableTypes", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAllNullableTypesWithoutRecursion", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAllNullableTypesWithoutRecursion", + error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAllNullableTypesWithoutRecursionResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_types_without_recursion_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSendMultipleNullableTypesWithoutRecursion", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAllNullableTypesWithoutRecursion", + error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSendMultipleNullableTypesWithoutRecursion", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterSendMultipleNullableTypesWithoutRecursion", + error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSendMultipleNullableTypesWithoutRecursionResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_nullable_types_without_recursion_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterSendMultipleNullableTypesWithoutRecursion", + error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gboolean return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoBoolResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_bool_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoInt", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoBool", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + int64_t return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoInt", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoInt", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + double return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoDoubleResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_double_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new(return_value, return_value_length); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const uint8_t* return_value, size_t return_value_length) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new( + return_value, return_value_length); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoUint8ListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_uint8_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullClassList", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new_error(code, message, details); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoMap", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoMap", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new(return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_string_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_int_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_class_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_string_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_int_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_enum_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNonNullClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNonNullClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_non_null_class_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNonNullClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnEnum return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAnotherEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAnotherEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAnotherEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAnotherEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gboolean* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableBool", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableBool", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + int64_t* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableInt", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableInt", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + double* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableDouble", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableDoubleResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_double_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableDouble", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new(return_value, return_value_length); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const uint8_t* return_value, size_t return_value_length) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new( + return_value, return_value_length); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableUint8List", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableUint8ListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_uint8_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableUint8List", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullEnumList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullEnumList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullClassList", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassListResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_list_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullClassList", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_string_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_int_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_class_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullStringMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullStringMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_string_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullStringMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullIntMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullIntMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_int_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullIntMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullEnumMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullEnumMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_enum_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullEnumMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableNonNullClassMap", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableNonNullClassMapResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_non_null_class_map_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableNonNullClassMap", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnEnum* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAnotherNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterEchoAnotherNullableEnum", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new(return_value); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAnotherNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSmallApiEchoString", error->message); - } -} - -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse) response = core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new_error(code, message, details); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAnotherNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new( + return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", "callFlutterSmallApiEchoString", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterSmallApiEchoString", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response_new_error( + code, message, details); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterSmallApiEchoString", error->message); } } @@ -13816,29 +25353,43 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApi { GObject parent_instance; FlBinaryMessenger* messenger; - gchar *suffix; + gchar* suffix; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, core_tests_pigeon_test_flutter_integration_core_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, + core_tests_pigeon_test_flutter_integration_core_api, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_flutter_integration_core_api_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(object); +static void core_tests_pigeon_test_flutter_integration_core_api_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(object); g_clear_object(&self->messenger); g_clear_pointer(&self->suffix, g_free); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_integration_core_api_init(CoreTestsPigeonTestFlutterIntegrationCoreApi* self) { -} +static void core_tests_pigeon_test_flutter_integration_core_api_init( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self) {} -static void core_tests_pigeon_test_flutter_integration_core_api_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_dispose; +static void core_tests_pigeon_test_flutter_integration_core_api_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_dispose; } -CoreTestsPigeonTestFlutterIntegrationCoreApi* core_tests_pigeon_test_flutter_integration_core_api_new(FlBinaryMessenger* messenger, const gchar* suffix) { - CoreTestsPigeonTestFlutterIntegrationCoreApi* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_get_type(), nullptr)); +CoreTestsPigeonTestFlutterIntegrationCoreApi* +core_tests_pigeon_test_flutter_integration_core_api_new( + FlBinaryMessenger* messenger, const gchar* suffix) { + CoreTestsPigeonTestFlutterIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_get_type(), + nullptr)); self->messenger = FL_BINARY_MESSENGER(g_object_ref(messenger)); - self->suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + self->suffix = + suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); return self; } @@ -13848,76 +25399,135 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse { FlValue* error; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_response, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, + core_tests_pigeon_test_flutter_integration_core_api_noop_response, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_flutter_integration_core_api_noop_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(object); +static void +core_tests_pigeon_test_flutter_integration_core_api_noop_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_noop_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_noop_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_integration_core_api_noop_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { -} +static void +core_tests_pigeon_test_flutter_integration_core_api_noop_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) {} -static void core_tests_pigeon_test_flutter_integration_core_api_noop_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_noop_response_dispose; +static void +core_tests_pigeon_test_flutter_integration_core_api_noop_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_noop_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_type(), nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* +core_tests_pigeon_test_flutter_integration_core_api_noop_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -static void core_tests_pigeon_test_flutter_integration_core_api_noop_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_noop_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_noop(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_noop( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "noop%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_noop_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_noop_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* +core_tests_pigeon_test_flutter_integration_core_api_noop_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_noop_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_noop_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse { @@ -13927,90 +25537,159 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse, core_tests_pigeon_test_flutter_integration_core_api_throw_error_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse, + core_tests_pigeon_test_flutter_integration_core_api_throw_error_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_throw_error(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_throw_error( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "throwError%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_throw_error_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_throw_error_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse { @@ -14019,76 +25698,146 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse { FlValue* error; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse, core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse, + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -static void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "throwErrorFromVoid%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse { @@ -14098,462 +25847,881 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(self)); - return CORE_TESTS_PIGEON_TEST_ALL_TYPES(fl_value_get_custom_value_object(self->return_value)); +CoreTestsPigeonTestAllTypes* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( + self)); + return CORE_TESTS_PIGEON_TEST_ALL_TYPES( + fl_value_get_custom_value_object(self->return_value)); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAllTypes* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAllTypes* everything, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, G_OBJECT(everything))); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, fl_value_new_custom_object(core_tests_pigeon_test_all_types_type_id, + G_OBJECT(everything))); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAllTypes%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(self)); +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } - return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(self->return_value)); + return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(self->return_value)); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAllNullableTypes* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAllNullableTypes* everything, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, everything != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_type_id, G_OBJECT(everything)) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, everything != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_type_id, + G_OBJECT(everything)) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAllNullableTypes%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse, + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(self)); - return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES(fl_value_get_custom_value_object(self->return_value)); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( + self)); + return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(self->return_value)); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + gboolean* a_nullable_bool, int64_t* a_nullable_int, + const gchar* a_nullable_string, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_nullable_bool != nullptr ? fl_value_new_bool(*a_nullable_bool) : fl_value_new_null()); - fl_value_append_take(args, a_nullable_int != nullptr ? fl_value_new_int(*a_nullable_int) : fl_value_new_null()); - fl_value_append_take(args, a_nullable_string != nullptr ? fl_value_new_string(a_nullable_string) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_nullable_bool != nullptr + ? fl_value_new_bool(*a_nullable_bool) + : fl_value_new_null()); + fl_value_append_take(args, a_nullable_int != nullptr + ? fl_value_new_int(*a_nullable_int) + : fl_value_new_null()); + fl_value_append_take(args, a_nullable_string != nullptr + ? fl_value_new_string(a_nullable_string) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "sendMultipleNullableTypes%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(self)); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } - return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(self->return_value)); + return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(self->return_value)); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, everything != nullptr ? fl_value_new_custom_object(core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, G_OBJECT(everything)) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, + everything != nullptr + ? fl_value_new_custom_object( + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id, + G_OBJECT(everything)) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAllNullableTypesWithoutRecursion%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(self)); - return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(fl_value_get_custom_value_object(self->return_value)); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( + self)); + return CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(self->return_value)); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + gboolean* a_nullable_bool, int64_t* a_nullable_int, + const gchar* a_nullable_string, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_nullable_bool != nullptr ? fl_value_new_bool(*a_nullable_bool) : fl_value_new_null()); - fl_value_append_take(args, a_nullable_int != nullptr ? fl_value_new_int(*a_nullable_int) : fl_value_new_null()); - fl_value_append_take(args, a_nullable_string != nullptr ? fl_value_new_string(a_nullable_string) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_nullable_bool != nullptr + ? fl_value_new_bool(*a_nullable_bool) + : fl_value_new_null()); + fl_value_append_take(args, a_nullable_int != nullptr + ? fl_value_new_int(*a_nullable_int) + : fl_value_new_null()); + fl_value_append_take(args, a_nullable_string != nullptr + ? fl_value_new_string(a_nullable_string) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "sendMultipleNullableTypesWithoutRecursion%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse { @@ -14563,88 +26731,156 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE(self), FALSE); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(self)); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE( + self), + FALSE); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( + self)); return fl_value_get_bool(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_bool_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_bool(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean a_bool, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_bool( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean a_bool, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_bool(a_bool)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoBool%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_bool_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse { @@ -14654,88 +26890,156 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -int64_t core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE(self), 0); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(self)); +int64_t +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE( + self), + 0); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( + self)); return fl_value_get_int(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_int(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, int64_t an_int, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_int( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, int64_t an_int, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_int(an_int)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoInt%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_int_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_int_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse { @@ -14745,88 +27049,157 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -double core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE(self), 0.0); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(self)); +double +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE( + self), + 0.0); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( + self)); return fl_value_get_float(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_double_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_double(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, double a_double, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_double( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, double a_double, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_float(a_double)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoDouble%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_double_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_double_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse { @@ -14836,88 +27209,157 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( + self)); return fl_value_get_string(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_string( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_string(a_string)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoString%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_string_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_string_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse { @@ -14927,91 +27369,163 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self, size_t* return_value_length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(self)); +const uint8_t* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* self, + size_t* return_value_length) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( + self)); if (return_value_length != nullptr) { *return_value_length = fl_value_get_length(self->return_value); } return fl_value_get_uint8_list(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const uint8_t* list, size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const uint8_t* list, + size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_uint8_list(list, list_length)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoUint8List%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse { @@ -15021,88 +27535,156 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(list)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_list_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse { @@ -15112,88 +27694,159 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(enum_list)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoEnumList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse { @@ -15203,270 +27856,497 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(class_list)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoClassList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(enum_list)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullEnumList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(class_list)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullClassList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse { @@ -15476,88 +28356,156 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_map_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse { @@ -15567,88 +28515,159 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(string_map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoStringMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse { @@ -15658,88 +28677,158 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(int_map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoIntMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse { @@ -15749,88 +28838,159 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(enum_map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoEnumMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse { @@ -15840,179 +29000,328 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(class_map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoClassMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(string_map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullStringMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse { @@ -16022,88 +29331,165 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(int_map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullIntMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse { @@ -16113,179 +29499,334 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(enum_map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullEnumMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( + self)); return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_ref(class_map)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullClassMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse { @@ -16295,88 +29836,161 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAnEnum core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE(self), static_cast(0)); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(self)); - return static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(self->return_value))))); +CoreTestsPigeonTestAnEnum +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE( + self), + static_cast(0)); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( + self)); + return static_cast( + fl_value_get_int(reinterpret_cast(const_cast( + fl_value_get_custom_value(self->return_value))))); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAnEnum an_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAnEnum an_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(an_enum), (GDestroyNotify)fl_value_unref)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(an_enum), + (GDestroyNotify)fl_value_unref)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoEnum%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse { @@ -16386,88 +30000,165 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose; +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_type(), nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE(self), static_cast(0)); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(self)); - return static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(self->return_value))))); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +CoreTestsPigeonTestAnotherEnum +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + static_cast(0)); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + self)); + return static_cast( + fl_value_get_int(reinterpret_cast(const_cast( + fl_value_get_custom_value(self->return_value))))); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(another_enum), (GDestroyNotify)fl_value_unref)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(another_enum), + (GDestroyNotify)fl_value_unref)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAnotherEnum%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse { @@ -16478,60 +30169,118 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse { gboolean return_value_; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -gboolean* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(self)); +gboolean* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } @@ -16539,31 +30288,51 @@ gboolean* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool return &self->return_value_; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean* a_bool, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, gboolean* a_bool, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_bool != nullptr ? fl_value_new_bool(*a_bool) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_bool != nullptr ? fl_value_new_bool(*a_bool) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableBool%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse { @@ -16574,60 +30343,113 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse { int64_t return_value_; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_dispose; +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_type(), nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -int64_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(self)); +int64_t* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } @@ -16635,31 +30457,51 @@ int64_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_r return &self->return_value_; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, int64_t* an_int, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, int64_t* an_int, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, an_int != nullptr ? fl_value_new_int(*an_int) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, an_int != nullptr ? fl_value_new_int(*an_int) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableInt%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse { @@ -16670,60 +30512,118 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse { double return_value_; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -double* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(self)); +double* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } @@ -16731,31 +30631,51 @@ double* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double return &self->return_value_; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, double* a_double, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, double* a_double, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_double != nullptr ? fl_value_new_float(*a_double) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_double != nullptr ? fl_value_new_float(*a_double) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableDouble%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse { @@ -16765,154 +30685,292 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return fl_value_get_string(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, a_string != nullptr ? fl_value_new_string(a_string) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, a_string != nullptr ? fl_value_new_string(a_string) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableString%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* self, size_t* return_value_length) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(self)); +const uint8_t* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + self, + size_t* return_value_length) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } @@ -16922,31 +30980,52 @@ const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable return fl_value_get_uint8_list(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const uint8_t* list, size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const uint8_t* list, + size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, list != nullptr ? fl_value_new_uint8_list(list, list_length) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, list != nullptr + ? fl_value_new_uint8_list(list, list_length) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableUint8List%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse { @@ -16956,467 +31035,863 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, list != nullptr ? fl_value_ref(list) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, list != nullptr ? fl_value_ref(list) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, enum_list != nullptr ? fl_value_ref(enum_list) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, enum_list != nullptr ? fl_value_ref(enum_list) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableEnumList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, class_list != nullptr ? fl_value_ref(class_list) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, class_list != nullptr ? fl_value_ref(class_list) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableClassList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, enum_list != nullptr ? fl_value_ref(enum_list) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, enum_list != nullptr ? fl_value_ref(enum_list) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullEnumList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, class_list != nullptr ? fl_value_ref(class_list) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, class_list != nullptr ? fl_value_ref(class_list) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullClassList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse { @@ -17426,185 +31901,337 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_dispose; +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_type(), nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, map != nullptr ? fl_value_ref(map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, map != nullptr ? fl_value_ref(map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, string_map != nullptr ? fl_value_ref(string_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, string_map != nullptr ? fl_value_ref(string_map) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableStringMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse { @@ -17614,655 +32241,1211 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, int_map != nullptr ? fl_value_ref(int_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, int_map != nullptr ? fl_value_ref(int_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableIntMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, enum_map != nullptr ? fl_value_ref(enum_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, enum_map != nullptr ? fl_value_ref(enum_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableEnumMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, class_map != nullptr ? fl_value_ref(class_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, class_map != nullptr ? fl_value_ref(class_map) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableClassMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* string_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, string_map != nullptr ? fl_value_ref(string_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, string_map != nullptr ? fl_value_ref(string_map) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullStringMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* int_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, int_map != nullptr ? fl_value_ref(int_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, int_map != nullptr ? fl_value_ref(int_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullIntMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* enum_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, enum_map != nullptr ? fl_value_ref(enum_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, enum_map != nullptr ? fl_value_ref(enum_map) : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullEnumMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse { GObject parent_instance; FlValue* error; FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } return self->return_value; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, FlValue* class_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, class_map != nullptr ? fl_value_ref(class_map) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take(args, class_map != nullptr ? fl_value_ref(class_map) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullClassMap%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse { @@ -18273,95 +33456,180 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse { CoreTestsPigeonTestAnEnum return_value_; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(self)); +CoreTestsPigeonTestAnEnum* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } - self->return_value_ = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(self->return_value))))); + self->return_value_ = static_cast( + fl_value_get_int(reinterpret_cast(const_cast( + fl_value_get_custom_value(self->return_value))))); return &self->return_value_; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAnEnum* an_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAnEnum* an_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, an_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, fl_value_new_int(*an_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, an_enum != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_an_enum_type_id, + fl_value_new_int(*an_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableEnum%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_new( + response); } -struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse { +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse { GObject parent_instance; FlValue* error; @@ -18369,92 +33637,177 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumRespo CoreTestsPigeonTestAnotherEnum return_value_; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(self)); +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + self)); if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { return nullptr; } - self->return_value_ = static_cast(fl_value_get_int(reinterpret_cast(const_cast(fl_value_get_custom_value(self->return_value))))); + self->return_value_ = static_cast( + fl_value_get_int(reinterpret_cast(const_cast( + fl_value_get_custom_value(self->return_value))))); return &self->return_value_; } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, another_enum != nullptr ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, fl_value_new_int(*another_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, + another_enum != nullptr + ? fl_value_new_custom(core_tests_pigeon_test_another_enum_type_id, + fl_value_new_int(*another_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAnotherNullableEnum%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse { @@ -18463,76 +33816,138 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse { FlValue* error; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, + core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_parent_class)->dispose(object); -} - -static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { -} - -static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_dispose; -} - -static CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_type(), nullptr)); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_integration_core_api_noop_async_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_noop_async(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_noop_async( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "noopAsync%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_noop_async_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_noop_async_cb, task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_new( + response); } struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse { @@ -18542,88 +33957,160 @@ struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_class_init(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_dispose; +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_dispose; } -static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( + self)); return fl_value_get_string(self->return_value); } -static void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, const gchar* a_string, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_string(a_string)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAsyncString%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_cb, + task); } -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_new(response); + return core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_new( + response); } struct _CoreTestsPigeonTestHostTrivialApiNoopResponse { @@ -18632,34 +34119,53 @@ struct _CoreTestsPigeonTestHostTrivialApiNoopResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, core_tests_pigeon_test_host_trivial_api_noop_response, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, + core_tests_pigeon_test_host_trivial_api_noop_response, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_trivial_api_noop_response_dispose(GObject* object) { - CoreTestsPigeonTestHostTrivialApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(object); +static void core_tests_pigeon_test_host_trivial_api_noop_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostTrivialApiNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_trivial_api_noop_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_trivial_api_noop_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_trivial_api_noop_response_init(CoreTestsPigeonTestHostTrivialApiNoopResponse* self) { -} +static void core_tests_pigeon_test_host_trivial_api_noop_response_init( + CoreTestsPigeonTestHostTrivialApiNoopResponse* self) {} -static void core_tests_pigeon_test_host_trivial_api_noop_response_class_init(CoreTestsPigeonTestHostTrivialApiNoopResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_trivial_api_noop_response_dispose; +static void core_tests_pigeon_test_host_trivial_api_noop_response_class_init( + CoreTestsPigeonTestHostTrivialApiNoopResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_trivial_api_noop_response_dispose; } -CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivial_api_noop_response_new() { - CoreTestsPigeonTestHostTrivialApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_trivial_api_noop_response_get_type(), nullptr)); +CoreTestsPigeonTestHostTrivialApiNoopResponse* +core_tests_pigeon_test_host_trivial_api_noop_response_new() { + CoreTestsPigeonTestHostTrivialApiNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(g_object_new( + core_tests_pigeon_test_host_trivial_api_noop_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivial_api_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostTrivialApiNoopResponse* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(g_object_new(core_tests_pigeon_test_host_trivial_api_noop_response_get_type(), nullptr)); +CoreTestsPigeonTestHostTrivialApiNoopResponse* +core_tests_pigeon_test_host_trivial_api_noop_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostTrivialApiNoopResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API_NOOP_RESPONSE(g_object_new( + core_tests_pigeon_test_host_trivial_api_noop_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -18671,68 +34177,103 @@ struct _CoreTestsPigeonTestHostTrivialApi { GDestroyNotify user_data_free_func; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostTrivialApi, core_tests_pigeon_test_host_trivial_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostTrivialApi, + core_tests_pigeon_test_host_trivial_api, G_TYPE_OBJECT) static void core_tests_pigeon_test_host_trivial_api_dispose(GObject* object) { - CoreTestsPigeonTestHostTrivialApi* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(object); + CoreTestsPigeonTestHostTrivialApi* self = + CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(object); if (self->user_data != nullptr) { self->user_data_free_func(self->user_data); } self->user_data = nullptr; - G_OBJECT_CLASS(core_tests_pigeon_test_host_trivial_api_parent_class)->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_trivial_api_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_trivial_api_init(CoreTestsPigeonTestHostTrivialApi* self) { -} +static void core_tests_pigeon_test_host_trivial_api_init( + CoreTestsPigeonTestHostTrivialApi* self) {} -static void core_tests_pigeon_test_host_trivial_api_class_init(CoreTestsPigeonTestHostTrivialApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_trivial_api_dispose; +static void core_tests_pigeon_test_host_trivial_api_class_init( + CoreTestsPigeonTestHostTrivialApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_trivial_api_dispose; } -static CoreTestsPigeonTestHostTrivialApi* core_tests_pigeon_test_host_trivial_api_new(const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { - CoreTestsPigeonTestHostTrivialApi* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(g_object_new(core_tests_pigeon_test_host_trivial_api_get_type(), nullptr)); +static CoreTestsPigeonTestHostTrivialApi* +core_tests_pigeon_test_host_trivial_api_new( + const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, + GDestroyNotify user_data_free_func) { + CoreTestsPigeonTestHostTrivialApi* self = + CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(g_object_new( + core_tests_pigeon_test_host_trivial_api_get_type(), nullptr)); self->vtable = vtable; self->user_data = user_data; self->user_data_free_func = user_data_free_func; return self; } -static void core_tests_pigeon_test_host_trivial_api_noop_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostTrivialApi* self = CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(user_data); +static void core_tests_pigeon_test_host_trivial_api_noop_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostTrivialApi* self = + CORE_TESTS_PIGEON_TEST_HOST_TRIVIAL_API(user_data); if (self->vtable == nullptr || self->vtable->noop == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostTrivialApiNoopResponse) response = self->vtable->noop(self->user_data); + g_autoptr(CoreTestsPigeonTestHostTrivialApiNoopResponse) response = + self->vtable->noop(self->user_data); if (response == nullptr) { g_warning("No response returned to %s.%s", "HostTrivialApi", "noop"); return; } g_autoptr(GError) error = NULL; - if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostTrivialApi", "noop", error->message); - } -} - -void core_tests_pigeon_test_host_trivial_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { - g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - g_autoptr(CoreTestsPigeonTestHostTrivialApi) api_data = core_tests_pigeon_test_host_trivial_api_new(vtable, user_data, user_data_free_func); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new(messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_channel, core_tests_pigeon_test_host_trivial_api_noop_cb, g_object_ref(api_data), g_object_unref); -} - -void core_tests_pigeon_test_host_trivial_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix) { - g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* noop_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new(messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(noop_channel, nullptr, nullptr, nullptr); + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostTrivialApi", "noop", + error->message); + } +} + +void core_tests_pigeon_test_host_trivial_api_set_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix, + const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, + GDestroyNotify user_data_free_func) { + g_autofree gchar* dot_suffix = + suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + g_autoptr(CoreTestsPigeonTestHostTrivialApi) api_data = + core_tests_pigeon_test_host_trivial_api_new(vtable, user_data, + user_data_free_func); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* noop_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new( + messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + noop_channel, core_tests_pigeon_test_host_trivial_api_noop_cb, + g_object_ref(api_data), g_object_unref); +} + +void core_tests_pigeon_test_host_trivial_api_clear_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix) { + g_autofree gchar* dot_suffix = + suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* noop_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) noop_channel = fl_basic_message_channel_new( + messenger, noop_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(noop_channel, nullptr, nullptr, + nullptr); } struct _CoreTestsPigeonTestHostSmallApiResponseHandle { @@ -18742,30 +34283,48 @@ struct _CoreTestsPigeonTestHostSmallApiResponseHandle { FlBasicMessageChannelResponseHandle* response_handle; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiResponseHandle, core_tests_pigeon_test_host_small_api_response_handle, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiResponseHandle, + core_tests_pigeon_test_host_small_api_response_handle, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_small_api_response_handle_dispose(GObject* object) { - CoreTestsPigeonTestHostSmallApiResponseHandle* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_RESPONSE_HANDLE(object); +static void core_tests_pigeon_test_host_small_api_response_handle_dispose( + GObject* object) { + CoreTestsPigeonTestHostSmallApiResponseHandle* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_RESPONSE_HANDLE(object); g_clear_object(&self->channel); g_clear_object(&self->response_handle); - G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_response_handle_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_small_api_response_handle_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_small_api_response_handle_init(CoreTestsPigeonTestHostSmallApiResponseHandle* self) { -} +static void core_tests_pigeon_test_host_small_api_response_handle_init( + CoreTestsPigeonTestHostSmallApiResponseHandle* self) {} -static void core_tests_pigeon_test_host_small_api_response_handle_class_init(CoreTestsPigeonTestHostSmallApiResponseHandleClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_small_api_response_handle_dispose; +static void core_tests_pigeon_test_host_small_api_response_handle_class_init( + CoreTestsPigeonTestHostSmallApiResponseHandleClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_small_api_response_handle_dispose; } -static CoreTestsPigeonTestHostSmallApiResponseHandle* core_tests_pigeon_test_host_small_api_response_handle_new(FlBasicMessageChannel* channel, FlBasicMessageChannelResponseHandle* response_handle) { - CoreTestsPigeonTestHostSmallApiResponseHandle* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_RESPONSE_HANDLE(g_object_new(core_tests_pigeon_test_host_small_api_response_handle_get_type(), nullptr)); +static CoreTestsPigeonTestHostSmallApiResponseHandle* +core_tests_pigeon_test_host_small_api_response_handle_new( + FlBasicMessageChannel* channel, + FlBasicMessageChannelResponseHandle* response_handle) { + CoreTestsPigeonTestHostSmallApiResponseHandle* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_RESPONSE_HANDLE(g_object_new( + core_tests_pigeon_test_host_small_api_response_handle_get_type(), + nullptr)); self->channel = FL_BASIC_MESSAGE_CHANNEL(g_object_ref(channel)); - self->response_handle = FL_BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE(g_object_ref(response_handle)); + self->response_handle = + FL_BASIC_MESSAGE_CHANNEL_RESPONSE_HANDLE(g_object_ref(response_handle)); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiEchoResponse, core_tests_pigeon_test_host_small_api_echo_response, CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_ECHO_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiEchoResponse, + core_tests_pigeon_test_host_small_api_echo_response, + CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_ECHO_RESPONSE, + GObject) struct _CoreTestsPigeonTestHostSmallApiEchoResponse { GObject parent_instance; @@ -18773,38 +34332,61 @@ struct _CoreTestsPigeonTestHostSmallApiEchoResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiEchoResponse, core_tests_pigeon_test_host_small_api_echo_response, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiEchoResponse, + core_tests_pigeon_test_host_small_api_echo_response, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_small_api_echo_response_dispose(GObject* object) { - CoreTestsPigeonTestHostSmallApiEchoResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(object); +static void core_tests_pigeon_test_host_small_api_echo_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostSmallApiEchoResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_echo_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_small_api_echo_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_small_api_echo_response_init(CoreTestsPigeonTestHostSmallApiEchoResponse* self) { -} +static void core_tests_pigeon_test_host_small_api_echo_response_init( + CoreTestsPigeonTestHostSmallApiEchoResponse* self) {} -static void core_tests_pigeon_test_host_small_api_echo_response_class_init(CoreTestsPigeonTestHostSmallApiEchoResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_small_api_echo_response_dispose; +static void core_tests_pigeon_test_host_small_api_echo_response_class_init( + CoreTestsPigeonTestHostSmallApiEchoResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_small_api_echo_response_dispose; } -static CoreTestsPigeonTestHostSmallApiEchoResponse* core_tests_pigeon_test_host_small_api_echo_response_new(const gchar* return_value) { - CoreTestsPigeonTestHostSmallApiEchoResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(g_object_new(core_tests_pigeon_test_host_small_api_echo_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostSmallApiEchoResponse* +core_tests_pigeon_test_host_small_api_echo_response_new( + const gchar* return_value) { + CoreTestsPigeonTestHostSmallApiEchoResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(g_object_new( + core_tests_pigeon_test_host_small_api_echo_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(return_value)); return self; } -static CoreTestsPigeonTestHostSmallApiEchoResponse* core_tests_pigeon_test_host_small_api_echo_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostSmallApiEchoResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(g_object_new(core_tests_pigeon_test_host_small_api_echo_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostSmallApiEchoResponse* +core_tests_pigeon_test_host_small_api_echo_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostSmallApiEchoResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_ECHO_RESPONSE(g_object_new( + core_tests_pigeon_test_host_small_api_echo_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiVoidVoidResponse, core_tests_pigeon_test_host_small_api_void_void_response, CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_VOID_VOID_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiVoidVoidResponse, + core_tests_pigeon_test_host_small_api_void_void_response, + CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_VOID_VOID_RESPONSE, + GObject) struct _CoreTestsPigeonTestHostSmallApiVoidVoidResponse { GObject parent_instance; @@ -18812,34 +34394,53 @@ struct _CoreTestsPigeonTestHostSmallApiVoidVoidResponse { FlValue* value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiVoidVoidResponse, core_tests_pigeon_test_host_small_api_void_void_response, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApiVoidVoidResponse, + core_tests_pigeon_test_host_small_api_void_void_response, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_host_small_api_void_void_response_dispose(GObject* object) { - CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(object); +static void core_tests_pigeon_test_host_small_api_void_void_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(object); g_clear_pointer(&self->value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_void_void_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_small_api_void_void_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_small_api_void_void_response_init(CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self) { -} +static void core_tests_pigeon_test_host_small_api_void_void_response_init( + CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self) {} -static void core_tests_pigeon_test_host_small_api_void_void_response_class_init(CoreTestsPigeonTestHostSmallApiVoidVoidResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_small_api_void_void_response_dispose; +static void core_tests_pigeon_test_host_small_api_void_void_response_class_init( + CoreTestsPigeonTestHostSmallApiVoidVoidResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_small_api_void_void_response_dispose; } -static CoreTestsPigeonTestHostSmallApiVoidVoidResponse* core_tests_pigeon_test_host_small_api_void_void_response_new() { - CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_small_api_void_void_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostSmallApiVoidVoidResponse* +core_tests_pigeon_test_host_small_api_void_void_response_new() { + CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(g_object_new( + core_tests_pigeon_test_host_small_api_void_void_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_null()); return self; } -static CoreTestsPigeonTestHostSmallApiVoidVoidResponse* core_tests_pigeon_test_host_small_api_void_void_response_new_error(const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(g_object_new(core_tests_pigeon_test_host_small_api_void_void_response_get_type(), nullptr)); +static CoreTestsPigeonTestHostSmallApiVoidVoidResponse* +core_tests_pigeon_test_host_small_api_void_void_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostSmallApiVoidVoidResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API_VOID_VOID_RESPONSE(g_object_new( + core_tests_pigeon_test_host_small_api_void_void_response_get_type(), + nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); - fl_value_append_take(self->value, fl_value_new_string(message != nullptr ? message : "")); - fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) : fl_value_new_null()); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); return self; } @@ -18851,34 +34452,46 @@ struct _CoreTestsPigeonTestHostSmallApi { GDestroyNotify user_data_free_func; }; -G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApi, core_tests_pigeon_test_host_small_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestHostSmallApi, + core_tests_pigeon_test_host_small_api, G_TYPE_OBJECT) static void core_tests_pigeon_test_host_small_api_dispose(GObject* object) { - CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(object); + CoreTestsPigeonTestHostSmallApi* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(object); if (self->user_data != nullptr) { self->user_data_free_func(self->user_data); } self->user_data = nullptr; - G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_parent_class)->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_host_small_api_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_host_small_api_init(CoreTestsPigeonTestHostSmallApi* self) { -} +static void core_tests_pigeon_test_host_small_api_init( + CoreTestsPigeonTestHostSmallApi* self) {} -static void core_tests_pigeon_test_host_small_api_class_init(CoreTestsPigeonTestHostSmallApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_host_small_api_dispose; +static void core_tests_pigeon_test_host_small_api_class_init( + CoreTestsPigeonTestHostSmallApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_small_api_dispose; } -static CoreTestsPigeonTestHostSmallApi* core_tests_pigeon_test_host_small_api_new(const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { - CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(g_object_new(core_tests_pigeon_test_host_small_api_get_type(), nullptr)); +static CoreTestsPigeonTestHostSmallApi* +core_tests_pigeon_test_host_small_api_new( + const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, + GDestroyNotify user_data_free_func) { + CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API( + g_object_new(core_tests_pigeon_test_host_small_api_get_type(), nullptr)); self->vtable = vtable; self->user_data = user_data; self->user_data_free_func = user_data_free_func; return self; } -static void core_tests_pigeon_test_host_small_api_echo_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(user_data); +static void core_tests_pigeon_test_host_small_api_echo_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostSmallApi* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(user_data); if (self->vtable == nullptr || self->vtable->echo == nullptr) { return; @@ -18886,75 +34499,137 @@ static void core_tests_pigeon_test_host_small_api_echo_cb(FlBasicMessageChannel* FlValue* value0 = fl_value_get_list_value(message_, 0); const gchar* a_string = fl_value_get_string(value0); - g_autoptr(CoreTestsPigeonTestHostSmallApiResponseHandle) handle = core_tests_pigeon_test_host_small_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostSmallApiResponseHandle) handle = + core_tests_pigeon_test_host_small_api_response_handle_new( + channel, response_handle); self->vtable->echo(a_string, handle, self->user_data); } -static void core_tests_pigeon_test_host_small_api_void_void_cb(FlBasicMessageChannel* channel, FlValue* message_, FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { - CoreTestsPigeonTestHostSmallApi* self = CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(user_data); +static void core_tests_pigeon_test_host_small_api_void_void_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostSmallApi* self = + CORE_TESTS_PIGEON_TEST_HOST_SMALL_API(user_data); if (self->vtable == nullptr || self->vtable->void_void == nullptr) { return; } - g_autoptr(CoreTestsPigeonTestHostSmallApiResponseHandle) handle = core_tests_pigeon_test_host_small_api_response_handle_new(channel, response_handle); + g_autoptr(CoreTestsPigeonTestHostSmallApiResponseHandle) handle = + core_tests_pigeon_test_host_small_api_response_handle_new( + channel, response_handle); self->vtable->void_void(handle, self->user_data); } -void core_tests_pigeon_test_host_small_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func) { - g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - g_autoptr(CoreTestsPigeonTestHostSmallApi) api_data = core_tests_pigeon_test_host_small_api_new(vtable, user_data, user_data_free_func); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* echo_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_channel = fl_basic_message_channel_new(messenger, echo_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_channel, core_tests_pigeon_test_host_small_api_echo_cb, g_object_ref(api_data), g_object_unref); - g_autofree gchar* void_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) void_void_channel = fl_basic_message_channel_new(messenger, void_void_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(void_void_channel, core_tests_pigeon_test_host_small_api_void_void_cb, g_object_ref(api_data), g_object_unref); -} - -void core_tests_pigeon_test_host_small_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix) { - g_autofree gchar* dot_suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); - - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - g_autofree gchar* echo_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) echo_channel = fl_basic_message_channel_new(messenger, echo_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(echo_channel, nullptr, nullptr, nullptr); - g_autofree gchar* void_void_channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid%s", dot_suffix); - g_autoptr(FlBasicMessageChannel) void_void_channel = fl_basic_message_channel_new(messenger, void_void_channel_name, FL_MESSAGE_CODEC(codec)); - fl_basic_message_channel_set_message_handler(void_void_channel, nullptr, nullptr, nullptr); -} - -void core_tests_pigeon_test_host_small_api_respond_echo(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* return_value) { - g_autoptr(CoreTestsPigeonTestHostSmallApiEchoResponse) response = core_tests_pigeon_test_host_small_api_echo_response_new(return_value); +void core_tests_pigeon_test_host_small_api_set_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix, + const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, + GDestroyNotify user_data_free_func) { + g_autofree gchar* dot_suffix = + suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + g_autoptr(CoreTestsPigeonTestHostSmallApi) api_data = + core_tests_pigeon_test_host_small_api_new(vtable, user_data, + user_data_free_func); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* echo_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_channel = fl_basic_message_channel_new( + messenger, echo_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_channel, core_tests_pigeon_test_host_small_api_echo_cb, + g_object_ref(api_data), g_object_unref); + g_autofree gchar* void_void_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) void_void_channel = + fl_basic_message_channel_new(messenger, void_void_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + void_void_channel, core_tests_pigeon_test_host_small_api_void_void_cb, + g_object_ref(api_data), g_object_unref); +} + +void core_tests_pigeon_test_host_small_api_clear_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix) { + g_autofree gchar* dot_suffix = + suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + g_autofree gchar* echo_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_channel = fl_basic_message_channel_new( + messenger, echo_channel_name, FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_channel, nullptr, nullptr, + nullptr); + g_autofree gchar* void_void_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) void_void_channel = + fl_basic_message_channel_new(messenger, void_void_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(void_void_channel, nullptr, + nullptr, nullptr); +} + +void core_tests_pigeon_test_host_small_api_respond_echo( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, + const gchar* return_value) { + g_autoptr(CoreTestsPigeonTestHostSmallApiEchoResponse) response = + core_tests_pigeon_test_host_small_api_echo_response_new(return_value); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "echo", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "echo", + error->message); } } -void core_tests_pigeon_test_host_small_api_respond_error_echo(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostSmallApiEchoResponse) response = core_tests_pigeon_test_host_small_api_echo_response_new_error(code, message, details); +void core_tests_pigeon_test_host_small_api_respond_error_echo( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostSmallApiEchoResponse) response = + core_tests_pigeon_test_host_small_api_echo_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "echo", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "echo", + error->message); } } -void core_tests_pigeon_test_host_small_api_respond_void_void(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle) { - g_autoptr(CoreTestsPigeonTestHostSmallApiVoidVoidResponse) response = core_tests_pigeon_test_host_small_api_void_void_response_new(); +void core_tests_pigeon_test_host_small_api_respond_void_void( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle) { + g_autoptr(CoreTestsPigeonTestHostSmallApiVoidVoidResponse) response = + core_tests_pigeon_test_host_small_api_void_void_response_new(); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "voidVoid", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", + "voidVoid", error->message); } } -void core_tests_pigeon_test_host_small_api_respond_error_void_void(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { - g_autoptr(CoreTestsPigeonTestHostSmallApiVoidVoidResponse) response = core_tests_pigeon_test_host_small_api_void_void_response_new_error(code, message, details); +void core_tests_pigeon_test_host_small_api_respond_error_void_void( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr(CoreTestsPigeonTestHostSmallApiVoidVoidResponse) response = + core_tests_pigeon_test_host_small_api_void_void_response_new_error( + code, message, details); g_autoptr(GError) error = nullptr; - if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { - g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", "voidVoid", error->message); + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostSmallApi", + "voidVoid", error->message); } } @@ -18962,29 +34637,39 @@ struct _CoreTestsPigeonTestFlutterSmallApi { GObject parent_instance; FlBinaryMessenger* messenger; - gchar *suffix; + gchar* suffix; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApi, core_tests_pigeon_test_flutter_small_api, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApi, + core_tests_pigeon_test_flutter_small_api, G_TYPE_OBJECT) static void core_tests_pigeon_test_flutter_small_api_dispose(GObject* object) { - CoreTestsPigeonTestFlutterSmallApi* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API(object); + CoreTestsPigeonTestFlutterSmallApi* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API(object); g_clear_object(&self->messenger); g_clear_pointer(&self->suffix, g_free); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_small_api_parent_class)->dispose(object); + G_OBJECT_CLASS(core_tests_pigeon_test_flutter_small_api_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_small_api_init(CoreTestsPigeonTestFlutterSmallApi* self) { -} +static void core_tests_pigeon_test_flutter_small_api_init( + CoreTestsPigeonTestFlutterSmallApi* self) {} -static void core_tests_pigeon_test_flutter_small_api_class_init(CoreTestsPigeonTestFlutterSmallApiClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_small_api_dispose; +static void core_tests_pigeon_test_flutter_small_api_class_init( + CoreTestsPigeonTestFlutterSmallApiClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_small_api_dispose; } -CoreTestsPigeonTestFlutterSmallApi* core_tests_pigeon_test_flutter_small_api_new(FlBinaryMessenger* messenger, const gchar* suffix) { - CoreTestsPigeonTestFlutterSmallApi* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API(g_object_new(core_tests_pigeon_test_flutter_small_api_get_type(), nullptr)); +CoreTestsPigeonTestFlutterSmallApi* +core_tests_pigeon_test_flutter_small_api_new(FlBinaryMessenger* messenger, + const gchar* suffix) { + CoreTestsPigeonTestFlutterSmallApi* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API(g_object_new( + core_tests_pigeon_test_flutter_small_api_get_type(), nullptr)); self->messenger = FL_BINARY_MESSENGER(g_object_ref(messenger)); - self->suffix = suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); + self->suffix = + suffix != nullptr ? g_strdup_printf(".%s", suffix) : g_strdup(""); return self; } @@ -18995,88 +34680,158 @@ struct _CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response, G_TYPE_OBJECT) - -static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(object); +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( + object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_init(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { -} +static void +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_init( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) {} -static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_class_init(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_dispose; +static void +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_class_init( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_dispose; } -static CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_type(), nullptr)); +static CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(g_object_new( + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), FALSE); +gboolean +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( + self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(self)); - return CORE_TESTS_PIGEON_TEST_TEST_MESSAGE(fl_value_get_custom_value_object(self->return_value)); +CoreTestsPigeonTestTestMessage* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( + self)); + return CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( + fl_value_get_custom_value_object(self->return_value)); } -static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list(CoreTestsPigeonTestFlutterSmallApi* self, CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list( + CoreTestsPigeonTestFlutterSmallApi* self, + CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, fl_value_new_custom_object(core_tests_pigeon_test_test_message_type_id, G_OBJECT(msg))); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + fl_value_append_take( + args, fl_value_new_custom_object( + core_tests_pigeon_test_test_message_type_id, G_OBJECT(msg))); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi." + "echoWrappedList%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_cb, task); } -CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish(CoreTestsPigeonTestFlutterSmallApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish( + CoreTestsPigeonTestFlutterSmallApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_new(response); + return core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_new( + response); } struct _CoreTestsPigeonTestFlutterSmallApiEchoStringResponse { @@ -19086,86 +34841,144 @@ struct _CoreTestsPigeonTestFlutterSmallApiEchoStringResponse { FlValue* return_value; }; -G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_flutter_small_api_echo_string_response, G_TYPE_OBJECT) +G_DEFINE_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, + core_tests_pigeon_test_flutter_small_api_echo_string_response, + G_TYPE_OBJECT) -static void core_tests_pigeon_test_flutter_small_api_echo_string_response_dispose(GObject* object) { - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(object); +static void +core_tests_pigeon_test_flutter_small_api_echo_string_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(object); g_clear_pointer(&self->error, fl_value_unref); g_clear_pointer(&self->return_value, fl_value_unref); - G_OBJECT_CLASS(core_tests_pigeon_test_flutter_small_api_echo_string_response_parent_class)->dispose(object); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_small_api_echo_string_response_parent_class) + ->dispose(object); } -static void core_tests_pigeon_test_flutter_small_api_echo_string_response_init(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { -} +static void core_tests_pigeon_test_flutter_small_api_echo_string_response_init( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) {} -static void core_tests_pigeon_test_flutter_small_api_echo_string_response_class_init(CoreTestsPigeonTestFlutterSmallApiEchoStringResponseClass* klass) { - G_OBJECT_CLASS(klass)->dispose = core_tests_pigeon_test_flutter_small_api_echo_string_response_dispose; +static void +core_tests_pigeon_test_flutter_small_api_echo_string_response_class_init( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponseClass* klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_small_api_echo_string_response_dispose; } -static CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_flutter_small_api_echo_string_response_new(FlValue* response) { - CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self = CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(g_object_new(core_tests_pigeon_test_flutter_small_api_echo_string_response_get_type(), nullptr)); +static CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* +core_tests_pigeon_test_flutter_small_api_echo_string_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(g_object_new( + core_tests_pigeon_test_flutter_small_api_echo_string_response_get_type(), + nullptr)); if (fl_value_get_length(response) > 1) { self->error = fl_value_ref(response); - } - else { + } else { FlValue* value = fl_value_get_list_value(response, 0); self->return_value = fl_value_ref(value); } return self; } -gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), FALSE); +gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), + FALSE); return self->error != nullptr; } -const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 0)); } -const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( + self)); return fl_value_get_string(fl_value_get_list_value(self->error, 1)); } -FlValue* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), nullptr); - g_assert(core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(self)); +FlValue* +core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( + self)); return fl_value_get_list_value(self->error, 2); } -const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { - g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), nullptr); - g_assert(!core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(self)); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_SMALL_API_ECHO_STRING_RESPONSE(self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( + self)); return fl_value_get_string(self->return_value); } -static void core_tests_pigeon_test_flutter_small_api_echo_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { +static void core_tests_pigeon_test_flutter_small_api_echo_string_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { GTask* task = G_TASK(user_data); g_task_return_pointer(task, result, g_object_unref); } -void core_tests_pigeon_test_flutter_small_api_echo_string(CoreTestsPigeonTestFlutterSmallApi* self, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { +void core_tests_pigeon_test_flutter_small_api_echo_string( + CoreTestsPigeonTestFlutterSmallApi* self, const gchar* a_string, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, fl_value_new_string(a_string)); - g_autofree gchar* channel_name = g_strdup_printf("dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString%s", self->suffix); - g_autoptr(CoreTestsPigeonTestMessageCodec) codec = core_tests_pigeon_test_message_codec_new(); - FlBasicMessageChannel* channel = fl_basic_message_channel_new(self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString%" + "s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); GTask* task = g_task_new(self, cancellable, callback, user_data); g_task_set_task_data(task, channel, g_object_unref); - fl_basic_message_channel_send(channel, args, cancellable, core_tests_pigeon_test_flutter_small_api_echo_string_cb, task); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_small_api_echo_string_cb, task); } -CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_flutter_small_api_echo_string_finish(CoreTestsPigeonTestFlutterSmallApi* self, GAsyncResult* result, GError** error) { +CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* +core_tests_pigeon_test_flutter_small_api_echo_string_finish( + CoreTestsPigeonTestFlutterSmallApi* self, GAsyncResult* result, + GError** error) { g_autoptr(GTask) task = G_TASK(result); GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); - FlBasicMessageChannel* channel = FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); - g_autoptr(FlValue) response = fl_basic_message_channel_send_finish(channel, r, error); - if (response == nullptr) { + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { return nullptr; } - return core_tests_pigeon_test_flutter_small_api_echo_string_response_new(response); + return core_tests_pigeon_test_flutter_small_api_echo_string_response_new( + response); } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h index 1599f1478325..3a74c31408d9 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h @@ -43,7 +43,9 @@ typedef enum { * */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestUnusedClass, core_tests_pigeon_test_unused_class, CORE_TESTS_PIGEON_TEST, UNUSED_CLASS, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestUnusedClass, + core_tests_pigeon_test_unused_class, + CORE_TESTS_PIGEON_TEST, UNUSED_CLASS, GObject) /** * core_tests_pigeon_test_unused_class_new: @@ -53,7 +55,8 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestUnusedClass, core_tests_pigeon_test_unus * * Returns: a new #CoreTestsPigeonTestUnusedClass */ -CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new(FlValue* a_field); +CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new( + FlValue* a_field); /** * core_tests_pigeon_test_unused_class_get_a_field @@ -63,7 +66,8 @@ CoreTestsPigeonTestUnusedClass* core_tests_pigeon_test_unused_class_new(FlValue* * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_unused_class_get_a_field(CoreTestsPigeonTestUnusedClass* object); +FlValue* core_tests_pigeon_test_unused_class_get_a_field( + CoreTestsPigeonTestUnusedClass* object); /** * core_tests_pigeon_test_unused_class_equals: @@ -74,7 +78,8 @@ FlValue* core_tests_pigeon_test_unused_class_get_a_field(CoreTestsPigeonTestUnus * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_unused_class_equals(CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b); +gboolean core_tests_pigeon_test_unused_class_equals( + CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b); /** * core_tests_pigeon_test_unused_class_hash: @@ -84,7 +89,8 @@ gboolean core_tests_pigeon_test_unused_class_equals(CoreTestsPigeonTestUnusedCla * * Returns: the hash code. */ -guint core_tests_pigeon_test_unused_class_hash(CoreTestsPigeonTestUnusedClass* object); +guint core_tests_pigeon_test_unused_class_hash( + CoreTestsPigeonTestUnusedClass* object); /** * CoreTestsPigeonTestAllTypes: @@ -92,7 +98,9 @@ guint core_tests_pigeon_test_unused_class_hash(CoreTestsPigeonTestUnusedClass* o * A class containing all supported types. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllTypes, core_tests_pigeon_test_all_types, CORE_TESTS_PIGEON_TEST, ALL_TYPES, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllTypes, + core_tests_pigeon_test_all_types, CORE_TESTS_PIGEON_TEST, + ALL_TYPES, GObject) /** * core_tests_pigeon_test_all_types_new: @@ -133,7 +141,19 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllTypes, core_tests_pigeon_test_all_typ * * Returns: a new #CoreTestsPigeonTestAllTypes */ -CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new(gboolean a_bool, int64_t an_int, int64_t an_int64, double a_double, const uint8_t* a_byte_array, size_t a_byte_array_length, const int32_t* a4_byte_array, size_t a4_byte_array_length, const int64_t* a8_byte_array, size_t a8_byte_array_length, const double* a_float_array, size_t a_float_array_length, CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map); +CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( + gboolean a_bool, int64_t an_int, int64_t an_int64, double a_double, + const uint8_t* a_byte_array, size_t a_byte_array_length, + const int32_t* a4_byte_array, size_t a4_byte_array_length, + const int64_t* a8_byte_array, size_t a8_byte_array_length, + const double* a_float_array, size_t a_float_array_length, + CoreTestsPigeonTestAnEnum an_enum, + CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, + FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, + FlValue* double_list, FlValue* bool_list, FlValue* enum_list, + FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, + FlValue* string_map, FlValue* int_map, FlValue* enum_map, + FlValue* object_map, FlValue* list_map, FlValue* map_map); /** * core_tests_pigeon_test_all_types_get_a_bool @@ -143,7 +163,8 @@ CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new(gboolean a_boo * * Returns: the field value. */ -gboolean core_tests_pigeon_test_all_types_get_a_bool(CoreTestsPigeonTestAllTypes* object); +gboolean core_tests_pigeon_test_all_types_get_a_bool( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_an_int @@ -153,7 +174,8 @@ gboolean core_tests_pigeon_test_all_types_get_a_bool(CoreTestsPigeonTestAllTypes * * Returns: the field value. */ -int64_t core_tests_pigeon_test_all_types_get_an_int(CoreTestsPigeonTestAllTypes* object); +int64_t core_tests_pigeon_test_all_types_get_an_int( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_an_int64 @@ -163,7 +185,8 @@ int64_t core_tests_pigeon_test_all_types_get_an_int(CoreTestsPigeonTestAllTypes* * * Returns: the field value. */ -int64_t core_tests_pigeon_test_all_types_get_an_int64(CoreTestsPigeonTestAllTypes* object); +int64_t core_tests_pigeon_test_all_types_get_an_int64( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_a_double @@ -173,7 +196,8 @@ int64_t core_tests_pigeon_test_all_types_get_an_int64(CoreTestsPigeonTestAllType * * Returns: the field value. */ -double core_tests_pigeon_test_all_types_get_a_double(CoreTestsPigeonTestAllTypes* object); +double core_tests_pigeon_test_all_types_get_a_double( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_a_byte_array @@ -184,7 +208,8 @@ double core_tests_pigeon_test_all_types_get_a_double(CoreTestsPigeonTestAllTypes * * Returns: the field value. */ -const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array(CoreTestsPigeonTestAllTypes* object, size_t* length); +const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array( + CoreTestsPigeonTestAllTypes* object, size_t* length); /** * core_tests_pigeon_test_all_types_get_a4_byte_array @@ -195,7 +220,8 @@ const uint8_t* core_tests_pigeon_test_all_types_get_a_byte_array(CoreTestsPigeon * * Returns: the field value. */ -const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array(CoreTestsPigeonTestAllTypes* object, size_t* length); +const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array( + CoreTestsPigeonTestAllTypes* object, size_t* length); /** * core_tests_pigeon_test_all_types_get_a8_byte_array @@ -206,7 +232,8 @@ const int32_t* core_tests_pigeon_test_all_types_get_a4_byte_array(CoreTestsPigeo * * Returns: the field value. */ -const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array(CoreTestsPigeonTestAllTypes* object, size_t* length); +const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array( + CoreTestsPigeonTestAllTypes* object, size_t* length); /** * core_tests_pigeon_test_all_types_get_a_float_array @@ -217,7 +244,8 @@ const int64_t* core_tests_pigeon_test_all_types_get_a8_byte_array(CoreTestsPigeo * * Returns: the field value. */ -const double* core_tests_pigeon_test_all_types_get_a_float_array(CoreTestsPigeonTestAllTypes* object, size_t* length); +const double* core_tests_pigeon_test_all_types_get_a_float_array( + CoreTestsPigeonTestAllTypes* object, size_t* length); /** * core_tests_pigeon_test_all_types_get_an_enum @@ -227,7 +255,8 @@ const double* core_tests_pigeon_test_all_types_get_a_float_array(CoreTestsPigeon * * Returns: the field value. */ -CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum(CoreTestsPigeonTestAllTypes* object); +CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_another_enum @@ -237,7 +266,9 @@ CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum(CoreTests * * Returns: the field value. */ -CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_all_types_get_another_enum(CoreTestsPigeonTestAllTypes* object); +CoreTestsPigeonTestAnotherEnum +core_tests_pigeon_test_all_types_get_another_enum( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_a_string @@ -247,7 +278,8 @@ CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_all_types_get_another_enum * * Returns: the field value. */ -const gchar* core_tests_pigeon_test_all_types_get_a_string(CoreTestsPigeonTestAllTypes* object); +const gchar* core_tests_pigeon_test_all_types_get_a_string( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_an_object @@ -257,7 +289,8 @@ const gchar* core_tests_pigeon_test_all_types_get_a_string(CoreTestsPigeonTestAl * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_an_object(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_an_object( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_list @@ -267,7 +300,8 @@ FlValue* core_tests_pigeon_test_all_types_get_an_object(CoreTestsPigeonTestAllTy * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_string_list @@ -277,7 +311,8 @@ FlValue* core_tests_pigeon_test_all_types_get_list(CoreTestsPigeonTestAllTypes* * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_string_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_string_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_int_list @@ -287,7 +322,8 @@ FlValue* core_tests_pigeon_test_all_types_get_string_list(CoreTestsPigeonTestAll * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_int_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_int_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_double_list @@ -297,7 +333,8 @@ FlValue* core_tests_pigeon_test_all_types_get_int_list(CoreTestsPigeonTestAllTyp * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_double_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_double_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_bool_list @@ -307,7 +344,8 @@ FlValue* core_tests_pigeon_test_all_types_get_double_list(CoreTestsPigeonTestAll * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_bool_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_bool_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_enum_list @@ -317,7 +355,8 @@ FlValue* core_tests_pigeon_test_all_types_get_bool_list(CoreTestsPigeonTestAllTy * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_enum_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_enum_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_object_list @@ -327,7 +366,8 @@ FlValue* core_tests_pigeon_test_all_types_get_enum_list(CoreTestsPigeonTestAllTy * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_object_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_object_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_list_list @@ -337,7 +377,8 @@ FlValue* core_tests_pigeon_test_all_types_get_object_list(CoreTestsPigeonTestAll * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_list_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_list_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_map_list @@ -347,7 +388,8 @@ FlValue* core_tests_pigeon_test_all_types_get_list_list(CoreTestsPigeonTestAllTy * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_map_list(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_map_list( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_map @@ -357,7 +399,8 @@ FlValue* core_tests_pigeon_test_all_types_get_map_list(CoreTestsPigeonTestAllTyp * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_map(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_map( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_string_map @@ -367,7 +410,8 @@ FlValue* core_tests_pigeon_test_all_types_get_map(CoreTestsPigeonTestAllTypes* o * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_string_map(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_string_map( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_int_map @@ -377,7 +421,8 @@ FlValue* core_tests_pigeon_test_all_types_get_string_map(CoreTestsPigeonTestAllT * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_int_map(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_int_map( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_enum_map @@ -387,7 +432,8 @@ FlValue* core_tests_pigeon_test_all_types_get_int_map(CoreTestsPigeonTestAllType * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_enum_map(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_enum_map( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_object_map @@ -397,7 +443,8 @@ FlValue* core_tests_pigeon_test_all_types_get_enum_map(CoreTestsPigeonTestAllTyp * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_object_map(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_object_map( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_list_map @@ -407,7 +454,8 @@ FlValue* core_tests_pigeon_test_all_types_get_object_map(CoreTestsPigeonTestAllT * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_list_map(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_list_map( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_get_map_map @@ -417,7 +465,8 @@ FlValue* core_tests_pigeon_test_all_types_get_list_map(CoreTestsPigeonTestAllTyp * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_types_get_map_map(CoreTestsPigeonTestAllTypes* object); +FlValue* core_tests_pigeon_test_all_types_get_map_map( + CoreTestsPigeonTestAllTypes* object); /** * core_tests_pigeon_test_all_types_equals: @@ -428,7 +477,8 @@ FlValue* core_tests_pigeon_test_all_types_get_map_map(CoreTestsPigeonTestAllType * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_all_types_equals(CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b); +gboolean core_tests_pigeon_test_all_types_equals( + CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b); /** * core_tests_pigeon_test_all_types_hash: @@ -438,7 +488,8 @@ gboolean core_tests_pigeon_test_all_types_equals(CoreTestsPigeonTestAllTypes* a, * * Returns: the hash code. */ -guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* object); +guint core_tests_pigeon_test_all_types_hash( + CoreTestsPigeonTestAllTypes* object); /** * CoreTestsPigeonTestAllNullableTypes: @@ -446,7 +497,9 @@ guint core_tests_pigeon_test_all_types_hash(CoreTestsPigeonTestAllTypes* object) * A class containing all supported nullable types. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypes, core_tests_pigeon_test_all_nullable_types, CORE_TESTS_PIGEON_TEST, ALL_NULLABLE_TYPES, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypes, + core_tests_pigeon_test_all_nullable_types, + CORE_TESTS_PIGEON_TEST, ALL_NULLABLE_TYPES, GObject) /** * core_tests_pigeon_test_all_nullable_types_new: @@ -490,7 +543,24 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypes, core_tests_pigeon_test * * Returns: a new #CoreTestsPigeonTestAllNullableTypes */ -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_new(gboolean* a_nullable_bool, int64_t* a_nullable_int, int64_t* a_nullable_int64, double* a_nullable_double, const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, const double* a_nullable_float_array, size_t a_nullable_float_array_length, CoreTestsPigeonTestAnEnum* a_nullable_enum, CoreTestsPigeonTestAnotherEnum* another_nullable_enum, const gchar* a_nullable_string, FlValue* a_nullable_object, CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* recursive_class_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map, FlValue* recursive_class_map); +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_all_nullable_types_new( + gboolean* a_nullable_bool, int64_t* a_nullable_int, + int64_t* a_nullable_int64, double* a_nullable_double, + const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, + const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, + const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, + const double* a_nullable_float_array, size_t a_nullable_float_array_length, + CoreTestsPigeonTestAnEnum* a_nullable_enum, + CoreTestsPigeonTestAnotherEnum* another_nullable_enum, + const gchar* a_nullable_string, FlValue* a_nullable_object, + CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, + FlValue* string_list, FlValue* int_list, FlValue* double_list, + FlValue* bool_list, FlValue* enum_list, FlValue* object_list, + FlValue* list_list, FlValue* map_list, FlValue* recursive_class_list, + FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, + FlValue* object_map, FlValue* list_map, FlValue* map_map, + FlValue* recursive_class_map); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool @@ -500,7 +570,8 @@ CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_n * * Returns: the field value. */ -gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool(CoreTestsPigeonTestAllNullableTypes* object); +gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_int @@ -510,7 +581,8 @@ gboolean* core_tests_pigeon_test_all_nullable_types_get_a_nullable_bool(CoreTest * * Returns: the field value. */ -int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int(CoreTestsPigeonTestAllNullableTypes* object); +int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64 @@ -520,7 +592,8 @@ int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int(CoreTestsP * * Returns: the field value. */ -int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64(CoreTestsPigeonTestAllNullableTypes* object); +int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_double @@ -530,7 +603,8 @@ int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_int64(CoreTest * * Returns: the field value. */ -double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double(CoreTestsPigeonTestAllNullableTypes* object); +double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array @@ -541,7 +615,9 @@ double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_double(CoreTest * * Returns: the field value. */ -const uint8_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array(CoreTestsPigeonTestAllNullableTypes* object, size_t* length); +const uint8_t* +core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_array( + CoreTestsPigeonTestAllNullableTypes* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array @@ -552,7 +628,9 @@ const uint8_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable_byte_arr * * Returns: the field value. */ -const int32_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array(CoreTestsPigeonTestAllNullableTypes* object, size_t* length); +const int32_t* +core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_array( + CoreTestsPigeonTestAllNullableTypes* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array @@ -563,7 +641,9 @@ const int32_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable4_byte_ar * * Returns: the field value. */ -const int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array(CoreTestsPigeonTestAllNullableTypes* object, size_t* length); +const int64_t* +core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_array( + CoreTestsPigeonTestAllNullableTypes* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array @@ -574,7 +654,9 @@ const int64_t* core_tests_pigeon_test_all_nullable_types_get_a_nullable8_byte_ar * * Returns: the field value. */ -const double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array(CoreTestsPigeonTestAllNullableTypes* object, size_t* length); +const double* +core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_array( + CoreTestsPigeonTestAllNullableTypes* object, size_t* length); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum @@ -584,7 +666,9 @@ const double* core_tests_pigeon_test_all_nullable_types_get_a_nullable_float_arr * * Returns: the field value. */ -CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum(CoreTestsPigeonTestAllNullableTypes* object); +CoreTestsPigeonTestAnEnum* +core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum @@ -594,7 +678,9 @@ CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_get_a_nulla * * Returns: the field value. */ -CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum(CoreTestsPigeonTestAllNullableTypes* object); +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_string @@ -604,7 +690,8 @@ CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_get_an * * Returns: the field value. */ -const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string(CoreTestsPigeonTestAllNullableTypes* object); +const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_object @@ -614,7 +701,8 @@ const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string(Cor * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_all_nullable_types @@ -624,7 +712,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_a_nullable_object(CoreTes * * Returns: the field value. */ -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_get_all_nullable_types(CoreTestsPigeonTestAllNullableTypes* object); +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_all_nullable_types_get_all_nullable_types( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_list @@ -634,7 +724,8 @@ CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_nullable_types_g * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_string_list @@ -644,7 +735,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_list(CoreTestsPigeonTestA * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_int_list @@ -654,7 +746,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_string_list(CoreTestsPige * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_double_list @@ -664,7 +757,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_int_list(CoreTestsPigeonT * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_bool_list @@ -674,7 +768,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_double_list(CoreTestsPige * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_enum_list @@ -684,7 +779,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_bool_list(CoreTestsPigeon * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_object_list @@ -694,7 +790,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_list(CoreTestsPigeon * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_list_list @@ -704,7 +801,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_object_list(CoreTestsPige * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_map_list @@ -714,7 +812,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_list_list(CoreTestsPigeon * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_recursive_class_list @@ -724,7 +823,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_map_list(CoreTestsPigeonT * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_map @@ -734,7 +834,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_list(Core * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_map(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_string_map @@ -744,7 +845,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_map(CoreTestsPigeonTestAl * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_int_map @@ -754,7 +856,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_string_map(CoreTestsPigeo * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_enum_map @@ -764,7 +867,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_int_map(CoreTestsPigeonTe * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_object_map @@ -774,7 +878,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_enum_map(CoreTestsPigeonT * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_list_map @@ -784,7 +889,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_object_map(CoreTestsPigeo * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_map_map @@ -794,7 +900,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_list_map(CoreTestsPigeonT * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_get_recursive_class_map @@ -804,7 +911,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_map_map(CoreTestsPigeonTe * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map(CoreTestsPigeonTestAllNullableTypes* object); +FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map( + CoreTestsPigeonTestAllNullableTypes* object); /** * core_tests_pigeon_test_all_nullable_types_equals: @@ -815,7 +923,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_get_recursive_class_map(CoreT * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_all_nullable_types_equals(CoreTestsPigeonTestAllNullableTypes* a, CoreTestsPigeonTestAllNullableTypes* b); +gboolean core_tests_pigeon_test_all_nullable_types_equals( + CoreTestsPigeonTestAllNullableTypes* a, + CoreTestsPigeonTestAllNullableTypes* b); /** * core_tests_pigeon_test_all_nullable_types_hash: @@ -825,7 +935,8 @@ gboolean core_tests_pigeon_test_all_nullable_types_equals(CoreTestsPigeonTestAll * * Returns: the hash code. */ -guint core_tests_pigeon_test_all_nullable_types_hash(CoreTestsPigeonTestAllNullableTypes* object); +guint core_tests_pigeon_test_all_nullable_types_hash( + CoreTestsPigeonTestAllNullableTypes* object); /** * CoreTestsPigeonTestAllNullableTypesWithoutRecursion: @@ -835,7 +946,10 @@ guint core_tests_pigeon_test_all_nullable_types_hash(CoreTestsPigeonTestAllNulla * test Swift classes. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypesWithoutRecursion, core_tests_pigeon_test_all_nullable_types_without_recursion, CORE_TESTS_PIGEON_TEST, ALL_NULLABLE_TYPES_WITHOUT_RECURSION, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion, + core_tests_pigeon_test_all_nullable_types_without_recursion, + CORE_TESTS_PIGEON_TEST, ALL_NULLABLE_TYPES_WITHOUT_RECURSION, GObject) /** * core_tests_pigeon_test_all_nullable_types_without_recursion_new: @@ -876,7 +990,22 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypesWithoutRecursion, core_t * * Returns: a new #CoreTestsPigeonTestAllNullableTypesWithoutRecursion */ -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_nullable_types_without_recursion_new(gboolean* a_nullable_bool, int64_t* a_nullable_int, int64_t* a_nullable_int64, double* a_nullable_double, const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, const double* a_nullable_float_array, size_t a_nullable_float_array_length, CoreTestsPigeonTestAnEnum* a_nullable_enum, CoreTestsPigeonTestAnotherEnum* another_nullable_enum, const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* enum_list, FlValue* object_list, FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, FlValue* map_map); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_all_nullable_types_without_recursion_new( + gboolean* a_nullable_bool, int64_t* a_nullable_int, + int64_t* a_nullable_int64, double* a_nullable_double, + const uint8_t* a_nullable_byte_array, size_t a_nullable_byte_array_length, + const int32_t* a_nullable4_byte_array, size_t a_nullable4_byte_array_length, + const int64_t* a_nullable8_byte_array, size_t a_nullable8_byte_array_length, + const double* a_nullable_float_array, size_t a_nullable_float_array_length, + CoreTestsPigeonTestAnEnum* a_nullable_enum, + CoreTestsPigeonTestAnotherEnum* another_nullable_enum, + const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, + FlValue* string_list, FlValue* int_list, FlValue* double_list, + FlValue* bool_list, FlValue* enum_list, FlValue* object_list, + FlValue* list_list, FlValue* map_list, FlValue* map, FlValue* string_map, + FlValue* int_map, FlValue* enum_map, FlValue* object_map, FlValue* list_map, + FlValue* map_map); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool @@ -886,7 +1015,9 @@ CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_ * * Returns: the field value. */ -gboolean* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +gboolean* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int @@ -896,7 +1027,9 @@ gboolean* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_null * * Returns: the field value. */ -int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +int64_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64 @@ -906,7 +1039,9 @@ int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nulla * * Returns: the field value. */ -int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +int64_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_int64( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double @@ -916,7 +1051,9 @@ int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nulla * * Returns: the field value. */ -double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +double* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_double( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array @@ -927,7 +1064,10 @@ double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullab * * Returns: the field value. */ -const uint8_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, size_t* length); +const uint8_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_byte_array( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, + size_t* length); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array @@ -938,7 +1078,10 @@ const uint8_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a * * Returns: the field value. */ -const int32_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, size_t* length); +const int32_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable4_byte_array( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, + size_t* length); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array @@ -949,7 +1092,10 @@ const int32_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a * * Returns: the field value. */ -const int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, size_t* length); +const int64_t* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable8_byte_array( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, + size_t* length); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array @@ -960,7 +1106,10 @@ const int64_t* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a * * Returns: the field value. */ -const double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, size_t* length); +const double* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_float_array( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object, + size_t* length); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum @@ -970,7 +1119,9 @@ const double* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_ * * Returns: the field value. */ -CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +CoreTestsPigeonTestAnEnum* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum @@ -980,7 +1131,9 @@ CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_without_rec * * Returns: the field value. */ -CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string @@ -990,7 +1143,9 @@ CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_all_nullable_types_withou * * Returns: the field value. */ -const gchar* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +const gchar* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object @@ -1000,7 +1155,9 @@ const gchar* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_n * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_object( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_list @@ -1010,7 +1167,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nulla * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list @@ -1020,7 +1178,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list(Co * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list @@ -1030,7 +1190,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_ * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list @@ -1040,7 +1202,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_lis * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list @@ -1050,7 +1214,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_double_ * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list @@ -1060,7 +1226,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_bool_li * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list @@ -1070,7 +1238,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_li * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list @@ -1080,7 +1250,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_ * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list @@ -1090,7 +1262,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_li * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_list( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_map @@ -1100,7 +1274,8 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_lis * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map @@ -1110,7 +1285,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map(Cor * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map @@ -1120,7 +1297,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_string_ * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map @@ -1130,7 +1309,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_int_map * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map @@ -1140,7 +1321,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_enum_ma * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map @@ -1150,7 +1333,9 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_object_ * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map @@ -1160,28 +1345,35 @@ FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_list_ma * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +FlValue* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_map_map( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_equals: * @a: a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. * @b: another #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. * - * Checks if two #CoreTestsPigeonTestAllNullableTypesWithoutRecursion objects are equal. + * Checks if two #CoreTestsPigeonTestAllNullableTypesWithoutRecursion objects + * are equal. * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b); +gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_hash: * @object: a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. * - * Calculates a hash code for a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion object. + * Calculates a hash code for a + * #CoreTestsPigeonTestAllNullableTypesWithoutRecursion object. * * Returns: the hash code. */ -guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); /** * CoreTestsPigeonTestAllClassesWrapper: @@ -1193,7 +1385,9 @@ guint core_tests_pigeon_test_all_nullable_types_without_recursion_hash(CoreTests * than `AllTypes` when testing doesn't require both (ie. testing null classes). */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllClassesWrapper, core_tests_pigeon_test_all_classes_wrapper, CORE_TESTS_PIGEON_TEST, ALL_CLASSES_WRAPPER, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllClassesWrapper, + core_tests_pigeon_test_all_classes_wrapper, + CORE_TESTS_PIGEON_TEST, ALL_CLASSES_WRAPPER, GObject) /** * core_tests_pigeon_test_all_classes_wrapper_new: @@ -1209,7 +1403,14 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllClassesWrapper, core_tests_pigeon_tes * * Returns: a new #CoreTestsPigeonTestAllClassesWrapper */ -CoreTestsPigeonTestAllClassesWrapper* core_tests_pigeon_test_all_classes_wrapper_new(CoreTestsPigeonTestAllNullableTypes* all_nullable_types, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* all_nullable_types_without_recursion, CoreTestsPigeonTestAllTypes* all_types, FlValue* class_list, FlValue* nullable_class_list, FlValue* class_map, FlValue* nullable_class_map); +CoreTestsPigeonTestAllClassesWrapper* +core_tests_pigeon_test_all_classes_wrapper_new( + CoreTestsPigeonTestAllNullableTypes* all_nullable_types, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* + all_nullable_types_without_recursion, + CoreTestsPigeonTestAllTypes* all_types, FlValue* class_list, + FlValue* nullable_class_list, FlValue* class_map, + FlValue* nullable_class_map); /** * core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types @@ -1219,7 +1420,9 @@ CoreTestsPigeonTestAllClassesWrapper* core_tests_pigeon_test_all_classes_wrapper * * Returns: the field value. */ -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types(CoreTestsPigeonTestAllClassesWrapper* object); +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types( + CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion @@ -1229,7 +1432,9 @@ CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_all_classes_wrapper_ * * Returns: the field value. */ -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion(CoreTestsPigeonTestAllClassesWrapper* object); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_all_classes_wrapper_get_all_nullable_types_without_recursion( + CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_all_types @@ -1239,7 +1444,9 @@ CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_all_ * * Returns: the field value. */ -CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_types(CoreTestsPigeonTestAllClassesWrapper* object); +CoreTestsPigeonTestAllTypes* +core_tests_pigeon_test_all_classes_wrapper_get_all_types( + CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_class_list @@ -1249,7 +1456,8 @@ CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_classes_wrapper_get_all_ * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list(CoreTestsPigeonTestAllClassesWrapper* object); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list( + CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list @@ -1259,7 +1467,8 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_list(CoreTestsPige * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list(CoreTestsPigeonTestAllClassesWrapper* object); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list( + CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_class_map @@ -1269,7 +1478,8 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_list(Core * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map(CoreTestsPigeonTestAllClassesWrapper* object); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map( + CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map @@ -1279,7 +1489,8 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_class_map(CoreTestsPigeo * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map(CoreTestsPigeonTestAllClassesWrapper* object); +FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map( + CoreTestsPigeonTestAllClassesWrapper* object); /** * core_tests_pigeon_test_all_classes_wrapper_equals: @@ -1290,7 +1501,9 @@ FlValue* core_tests_pigeon_test_all_classes_wrapper_get_nullable_class_map(CoreT * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_all_classes_wrapper_equals(CoreTestsPigeonTestAllClassesWrapper* a, CoreTestsPigeonTestAllClassesWrapper* b); +gboolean core_tests_pigeon_test_all_classes_wrapper_equals( + CoreTestsPigeonTestAllClassesWrapper* a, + CoreTestsPigeonTestAllClassesWrapper* b); /** * core_tests_pigeon_test_all_classes_wrapper_hash: @@ -1300,7 +1513,8 @@ gboolean core_tests_pigeon_test_all_classes_wrapper_equals(CoreTestsPigeonTestAl * * Returns: the hash code. */ -guint core_tests_pigeon_test_all_classes_wrapper_hash(CoreTestsPigeonTestAllClassesWrapper* object); +guint core_tests_pigeon_test_all_classes_wrapper_hash( + CoreTestsPigeonTestAllClassesWrapper* object); /** * CoreTestsPigeonTestTestMessage: @@ -1308,7 +1522,9 @@ guint core_tests_pigeon_test_all_classes_wrapper_hash(CoreTestsPigeonTestAllClas * A data class containing a List, used in unit tests. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestTestMessage, core_tests_pigeon_test_test_message, CORE_TESTS_PIGEON_TEST, TEST_MESSAGE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestTestMessage, + core_tests_pigeon_test_test_message, + CORE_TESTS_PIGEON_TEST, TEST_MESSAGE, GObject) /** * core_tests_pigeon_test_test_message_new: @@ -1318,7 +1534,8 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestTestMessage, core_tests_pigeon_test_test * * Returns: a new #CoreTestsPigeonTestTestMessage */ -CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new(FlValue* test_list); +CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new( + FlValue* test_list); /** * core_tests_pigeon_test_test_message_get_test_list @@ -1328,7 +1545,8 @@ CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_test_message_new(FlValue* * * Returns: the field value. */ -FlValue* core_tests_pigeon_test_test_message_get_test_list(CoreTestsPigeonTestTestMessage* object); +FlValue* core_tests_pigeon_test_test_message_get_test_list( + CoreTestsPigeonTestTestMessage* object); /** * core_tests_pigeon_test_test_message_equals: @@ -1339,7 +1557,8 @@ FlValue* core_tests_pigeon_test_test_message_get_test_list(CoreTestsPigeonTestTe * * Returns: TRUE if @a and @b are equal. */ -gboolean core_tests_pigeon_test_test_message_equals(CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b); +gboolean core_tests_pigeon_test_test_message_equals( + CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b); /** * core_tests_pigeon_test_test_message_hash: @@ -1349,9 +1568,13 @@ gboolean core_tests_pigeon_test_test_message_equals(CoreTestsPigeonTestTestMessa * * Returns: the hash code. */ -guint core_tests_pigeon_test_test_message_hash(CoreTestsPigeonTestTestMessage* object); +guint core_tests_pigeon_test_test_message_hash( + CoreTestsPigeonTestTestMessage* object); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestMessageCodec, core_tests_pigeon_test_message_codec, CORE_TESTS_PIGEON_TEST, MESSAGE_CODEC, FlStandardMessageCodec) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestMessageCodec, + core_tests_pigeon_test_message_codec, + CORE_TESTS_PIGEON_TEST, MESSAGE_CODEC, + FlStandardMessageCodec) /** * Custom type ID constants: @@ -1365,15 +1588,24 @@ extern const int core_tests_pigeon_test_another_enum_type_id; extern const int core_tests_pigeon_test_unused_class_type_id; extern const int core_tests_pigeon_test_all_types_type_id; extern const int core_tests_pigeon_test_all_nullable_types_type_id; -extern const int core_tests_pigeon_test_all_nullable_types_without_recursion_type_id; +extern const int + core_tests_pigeon_test_all_nullable_types_without_recursion_type_id; extern const int core_tests_pigeon_test_all_classes_wrapper_type_id; extern const int core_tests_pigeon_test_test_message_type_id; -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApi, core_tests_pigeon_test_host_integration_core_api, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApi, + core_tests_pigeon_test_host_integration_core_api, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API, GObject) -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle, core_tests_pigeon_test_host_integration_core_api_response_handle, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle, + core_tests_pigeon_test_host_integration_core_api_response_handle, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_RESPONSE_HANDLE, GObject) -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, core_tests_pigeon_test_host_integration_core_api_noop_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_NOOP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, + core_tests_pigeon_test_host_integration_core_api_noop_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_NOOP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_noop_response_new: @@ -1382,7 +1614,8 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse, core * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_host_integration_core_api_noop_response_new(); +CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* +core_tests_pigeon_test_host_integration_core_api_noop_response_new(); /** * core_tests_pigeon_test_host_integration_core_api_noop_response_new_error: @@ -1394,9 +1627,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_ho * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* core_tests_pigeon_test_host_integration_core_api_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* +core_tests_pigeon_test_host_integration_core_api_noop_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse, + core_tests_pigeon_test_host_integration_core_api_echo_all_types_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new: @@ -1405,7 +1644,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesRespon * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new(CoreTestsPigeonTestAllTypes* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new( + CoreTestsPigeonTestAllTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error: @@ -1417,9 +1658,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse, + core_tests_pigeon_test_host_integration_core_api_throw_error_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_throw_error_response_new: @@ -1428,7 +1675,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_error_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error: @@ -1440,18 +1689,26 @@ CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_t * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_error_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse, core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse, + core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new: * * Creates a new response to HostIntegrationCoreApi.throwErrorFromVoid. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new(); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* +core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new(); /** * core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error: @@ -1461,20 +1718,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_ * * Creates a new error response to HostIntegrationCoreApi.throwErrorFromVoid. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* +core_tests_pigeon_test_host_integration_core_api_throw_error_from_void_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse, + core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_THROW_FLUTTER_ERROR_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new: * * Creates a new response to HostIntegrationCoreApi.throwFlutterError. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error: @@ -1484,11 +1751,18 @@ CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_p * * Creates a new error response to HostIntegrationCoreApi.throwFlutterError. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* +core_tests_pigeon_test_host_integration_core_api_throw_flutter_error_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_int_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_INT_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_int_response_new: @@ -1497,7 +1771,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse, c * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_response_new(int64_t return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_int_response_new( + int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error: @@ -1509,9 +1785,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_double_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_double_response_new: @@ -1520,7 +1802,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_double_response_new(double return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_double_response_new( + double return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error: @@ -1532,9 +1816,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_t * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, + core_tests_pigeon_test_host_integration_core_api_echo_bool_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new: @@ -1543,7 +1833,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse, * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new(gboolean return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new( + gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error: @@ -1555,9 +1847,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_tes * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_bool_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_string_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_string_response_new: @@ -1566,7 +1864,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_response_new(const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_string_response_new( + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error: @@ -1578,18 +1878,27 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_t * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoUint8List. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length); +CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new( + const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error: @@ -1599,11 +1908,18 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeo * * Creates a new error response to HostIntegrationCoreApi.echoUint8List. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_uint8_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_object_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse, + core_tests_pigeon_test_host_integration_core_api_echo_object_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_OBJECT_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_object_response_new: @@ -1612,7 +1928,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_object_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_object_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error: @@ -1624,9 +1942,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_t * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_object_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, core_tests_pigeon_test_host_integration_core_api_echo_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_list_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_list_response_new: @@ -1635,7 +1959,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse, * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_host_integration_core_api_echo_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error: @@ -1647,9 +1973,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_tes * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new: @@ -1658,7 +1990,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListRespon * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error: @@ -1670,18 +2004,27 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_class_list_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoClassList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error: @@ -1691,20 +2034,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeo * * Creates a new error response to HostIntegrationCoreApi.echoClassList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullEnumList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error: @@ -1714,20 +2067,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests * * Creates a new error response to HostIntegrationCoreApi.echoNonNullEnumList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullClassList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error: @@ -1737,11 +2100,18 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_test * * Creates a new error response to HostIntegrationCoreApi.echoNonNullClassList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_map_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_map_response_new: @@ -1750,7 +2120,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse, c * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error: @@ -1762,18 +2134,27 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_string_map_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoStringMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error: @@ -1783,11 +2164,18 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeo * * Creates a new error response to HostIntegrationCoreApi.echoStringMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_int_map_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new: @@ -1796,7 +2184,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error: @@ -1808,9 +2198,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_t * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new: @@ -1819,7 +2215,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapRespons * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error: @@ -1831,9 +2229,15 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_ * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_class_map_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new: @@ -1842,7 +2246,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapRespon * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error: @@ -1854,18 +2260,27 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullStringMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error: @@ -1875,20 +2290,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_test * * Creates a new error response to HostIntegrationCoreApi.echoNonNullStringMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullIntMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error: @@ -1898,20 +2323,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_p * * Creates a new error response to HostIntegrationCoreApi.echoNonNullIntMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullEnumMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error: @@ -1921,20 +2356,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_ * * Creates a new error response to HostIntegrationCoreApi.echoNonNullEnumMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNonNullClassMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error: @@ -1944,20 +2389,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests * * Creates a new error response to HostIntegrationCoreApi.echoNonNullClassMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_non_null_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse, core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse, + core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_CLASS_WRAPPER_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new: * * Creates a new response to HostIntegrationCoreApi.echoClassWrapper. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new(CoreTestsPigeonTestAllClassesWrapper* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new( + CoreTestsPigeonTestAllClassesWrapper* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error: @@ -1967,11 +2422,18 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pi * * Creates a new error response to HostIntegrationCoreApi.echoClassWrapper. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* +core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_enum_response, + CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new: @@ -1980,7 +2442,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse, * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new(CoreTestsPigeonTestAnEnum return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new( + CoreTestsPigeonTestAnEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error: @@ -1992,18 +2456,27 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_tes * * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new: * * Creates a new response to HostIntegrationCoreApi.echoAnotherEnum. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new(CoreTestsPigeonTestAnotherEnum return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( + CoreTestsPigeonTestAnotherEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error: @@ -2013,20 +2486,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pig * * Creates a new error response to HostIntegrationCoreApi.echoAnotherEnum. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NAMED_DEFAULT_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNamedDefaultString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new(const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new( + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error: @@ -2034,22 +2517,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_te * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoNamedDefaultString. + * Creates a new error response to + * HostIntegrationCoreApi.echoNamedDefaultString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_DEFAULT_DOUBLE_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new: * * Creates a new response to HostIntegrationCoreApi.echoOptionalDefaultDouble. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new(double return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new( + double return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error: @@ -2057,22 +2551,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoOptionalDefaultDouble. + * Creates a new error response to + * HostIntegrationCoreApi.echoOptionalDefaultDouble. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_optional_default_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_required_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_required_int_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_REQUIRED_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new: * * Creates a new response to HostIntegrationCoreApi.echoRequiredInt. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new(int64_t return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new( + int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error: @@ -2082,20 +2587,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pig * * Creates a new error response to HostIntegrationCoreApi.echoRequiredInt. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_required_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse, core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse, + core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ARE_ALL_NULLABLE_TYPES_EQUAL_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new: * * Creates a new response to HostIntegrationCoreApi.areAllNullableTypesEqual. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new(gboolean return_value); +CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* +core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new( + gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new_error: @@ -2103,22 +2618,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.areAllNullableTypesEqual. + * Creates a new error response to + * HostIntegrationCoreApi.areAllNullableTypesEqual. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* +core_tests_pigeon_test_host_integration_core_api_are_all_nullable_types_equal_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse, core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse, + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_HASH_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new: * * Creates a new response to HostIntegrationCoreApi.getAllNullableTypesHash. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new(int64_t return_value); +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new( + int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error: @@ -2126,22 +2652,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_t * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.getAllNullableTypesHash. + * Creates a new error response to + * HostIntegrationCoreApi.getAllNullableTypesHash. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new: * * Creates a new response to HostIntegrationCoreApi.echoAllNullableTypes. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new( + CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error: @@ -2151,20 +2688,32 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_test * * Creates a new error response to HostIntegrationCoreApi.echoAllNullableTypes. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new: * - * Creates a new response to HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion. + * Creates a new response to + * HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error: @@ -2172,22 +2721,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionRes * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion. + * Creates a new error response to + * HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without_recursion_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_EXTRACT_NESTED_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new: * * Creates a new response to HostIntegrationCoreApi.extractNestedNullableString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new(const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new( + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error: @@ -2195,22 +2755,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* co * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.extractNestedNullableString. + * Creates a new error response to + * HostIntegrationCoreApi.extractNestedNullableString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_extract_nested_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CREATE_NESTED_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new: * * Creates a new response to HostIntegrationCoreApi.createNestedNullableString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new(CoreTestsPigeonTestAllClassesWrapper* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new( + CoreTestsPigeonTestAllClassesWrapper* return_value); /** * core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error: @@ -2218,22 +2789,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* cor * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.createNestedNullableString. + * Creates a new error response to + * HostIntegrationCoreApi.createNestedNullableString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse, + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new: * * Creates a new response to HostIntegrationCoreApi.sendMultipleNullableTypes. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new(CoreTestsPigeonTestAllNullableTypes* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new( + CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error: @@ -2241,22 +2823,35 @@ CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.sendMultipleNullableTypes. + * Creates a new error response to + * HostIntegrationCoreApi.sendMultipleNullableTypes. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new: * - * Creates a new response to HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion. + * Creates a new response to + * HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error: @@ -2264,22 +2859,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursi * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion. + * Creates a new error response to + * HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableInt. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new(int64_t* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new( + int64_t* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error: @@ -2289,20 +2895,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pig * * Creates a new error response to HostIntegrationCoreApi.echoNullableInt. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableDouble. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new(double* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new( + double* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error: @@ -2312,20 +2928,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_ * * Creates a new error response to HostIntegrationCoreApi.echoNullableDouble. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_double_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableBool. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new(gboolean* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new( + gboolean* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error: @@ -2335,20 +2961,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pi * * Creates a new error response to HostIntegrationCoreApi.echoNullableBool. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_bool_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new(const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new( + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error: @@ -2358,20 +2994,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_ * * Creates a new error response to HostIntegrationCoreApi.echoNullableString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableUint8List. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new(const uint8_t* return_value, size_t return_value_length); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new( + const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error: @@ -2381,20 +3027,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tes * * Creates a new error response to HostIntegrationCoreApi.echoNullableUint8List. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_uint8_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_OBJECT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableObject. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error: @@ -2404,20 +3060,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_ * * Creates a new error response to HostIntegrationCoreApi.echoNullableObject. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_object_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error: @@ -2427,20 +3093,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pi * * Creates a new error response to HostIntegrationCoreApi.echoNullableList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableEnumList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error: @@ -2450,20 +3126,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_test * * Creates a new error response to HostIntegrationCoreApi.echoNullableEnumList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableClassList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error: @@ -2473,20 +3159,31 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tes * * Creates a new error response to HostIntegrationCoreApi.echoNullableClassList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullEnumList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error: @@ -2494,22 +3191,35 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* co * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullEnumList. + * Creates a new error response to + * HostIntegrationCoreApi.echoNullableNonNullEnumList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new: * - * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullClassList. + * Creates a new response to + * HostIntegrationCoreApi.echoNullableNonNullClassList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error: @@ -2517,22 +3227,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* c * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullClassList. + * Creates a new error response to + * HostIntegrationCoreApi.echoNullableNonNullClassList. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_list_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error: @@ -2542,20 +3263,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pig * * Creates a new error response to HostIntegrationCoreApi.echoNullableMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableStringMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error: @@ -2565,20 +3296,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tes * * Creates a new error response to HostIntegrationCoreApi.echoNullableStringMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableIntMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error: @@ -2588,20 +3329,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_ * * Creates a new error response to HostIntegrationCoreApi.echoNullableIntMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableEnumMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error: @@ -2611,20 +3362,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests * * Creates a new error response to HostIntegrationCoreApi.echoNullableEnumMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableClassMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error: @@ -2634,20 +3395,32 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_test * * Creates a new error response to HostIntegrationCoreApi.echoNullableClassMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new: * - * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullStringMap. + * Creates a new response to + * HostIntegrationCoreApi.echoNullableNonNullStringMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error: @@ -2655,22 +3428,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* c * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullStringMap. + * Creates a new error response to + * HostIntegrationCoreApi.echoNullableNonNullStringMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_string_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullIntMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error: @@ -2678,22 +3462,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullIntMap. + * Creates a new error response to + * HostIntegrationCoreApi.echoNullableNonNullIntMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_int_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullEnumMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error: @@ -2701,22 +3496,34 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* cor * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullEnumMap. + * Creates a new error response to + * HostIntegrationCoreApi.echoNullableNonNullEnumMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_enum_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableNonNullClassMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new(FlValue* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new( + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error: @@ -2724,22 +3531,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* co * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoNullableNonNullClassMap. + * Creates a new error response to + * HostIntegrationCoreApi.echoNullableNonNullClassMap. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_non_null_class_map_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNullableEnum. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new(CoreTestsPigeonTestAnEnum* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new( + CoreTestsPigeonTestAnEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error: @@ -2749,20 +3567,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pi * * Creates a new error response to HostIntegrationCoreApi.echoNullableEnum. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new: * * Creates a new response to HostIntegrationCoreApi.echoAnotherNullableEnum. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new(CoreTestsPigeonTestAnotherEnum* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new( + CoreTestsPigeonTestAnotherEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error: @@ -2770,22 +3598,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_t * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoAnotherNullableEnum. + * Creates a new error response to + * HostIntegrationCoreApi.echoAnotherNullableEnum. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, + core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_OPTIONAL_NULLABLE_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new: * * Creates a new response to HostIntegrationCoreApi.echoOptionalNullableInt. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new(int64_t* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new( + int64_t* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error: @@ -2793,22 +3632,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_t * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoOptionalNullableInt. + * Creates a new error response to + * HostIntegrationCoreApi.echoOptionalNullableInt. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* +core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse, + core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_NAMED_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new: * * Creates a new response to HostIntegrationCoreApi.echoNamedNullableString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new(const gchar* return_value); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new( + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error: @@ -2816,22 +3666,33 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_t * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.echoNamedNullableString. + * Creates a new error response to + * HostIntegrationCoreApi.echoNamedNullableString. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* +core_tests_pigeon_test_host_integration_core_api_echo_named_nullable_string_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse, core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse, + core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_DEFAULT_IS_MAIN_THREAD_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new: * * Creates a new response to HostIntegrationCoreApi.defaultIsMainThread. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new(gboolean return_value); +CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* +core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new( + gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error: @@ -2841,20 +3702,30 @@ CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests * * Creates a new error response to HostIntegrationCoreApi.defaultIsMainThread. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* +core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new_error( + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse, core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response, CORE_TESTS_PIGEON_TEST, HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse, + core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_TASK_QUEUE_IS_BACKGROUND_THREAD_RESPONSE, GObject) /** * core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new: * * Creates a new response to HostIntegrationCoreApi.taskQueueIsBackgroundThread. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new(gboolean return_value); +CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* +core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new( + gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error: @@ -2862,173 +3733,535 @@ CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* co * @message: error message. * @details: (allow-none): error details or %NULL. * - * Creates a new error response to HostIntegrationCoreApi.taskQueueIsBackgroundThread. + * Creates a new error response to + * HostIntegrationCoreApi.taskQueueIsBackgroundThread. * - * Returns: a new #CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse */ -CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* +core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new_error( + const gchar* code, const gchar* message, FlValue* details); /** * CoreTestsPigeonTestHostIntegrationCoreApiVTable: * - * Table of functions exposed by HostIntegrationCoreApi to be implemented by the API provider. + * Table of functions exposed by HostIntegrationCoreApi to be implemented by the + * API provider. */ typedef struct { - CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* (*noop)(gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* (*echo_all_types)(CoreTestsPigeonTestAllTypes* everything, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* (*throw_error)(gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* (*throw_error_from_void)(gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* (*throw_flutter_error)(gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* (*echo_int)(int64_t an_int, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* (*echo_double)(double a_double, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* (*echo_bool)(gboolean a_bool, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* (*echo_string)(const gchar* a_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* (*echo_uint8_list)(const uint8_t* a_uint8_list, size_t a_uint8_list_length, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* (*echo_object)(FlValue* an_object, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* (*echo_list)(FlValue* list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* (*echo_enum_list)(FlValue* enum_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* (*echo_class_list)(FlValue* class_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* (*echo_non_null_enum_list)(FlValue* enum_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* (*echo_non_null_class_list)(FlValue* class_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* (*echo_map)(FlValue* map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* (*echo_string_map)(FlValue* string_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* (*echo_int_map)(FlValue* int_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* (*echo_enum_map)(FlValue* enum_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* (*echo_class_map)(FlValue* class_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* (*echo_non_null_string_map)(FlValue* string_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* (*echo_non_null_int_map)(FlValue* int_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* (*echo_non_null_enum_map)(FlValue* enum_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* (*echo_non_null_class_map)(FlValue* class_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* (*echo_class_wrapper)(CoreTestsPigeonTestAllClassesWrapper* wrapper, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* (*echo_enum)(CoreTestsPigeonTestAnEnum an_enum, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* (*echo_another_enum)(CoreTestsPigeonTestAnotherEnum another_enum, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* (*echo_named_default_string)(const gchar* a_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* (*echo_optional_default_double)(double a_double, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* (*echo_required_int)(int64_t an_int, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* (*are_all_nullable_types_equal)(CoreTestsPigeonTestAllNullableTypes* a, CoreTestsPigeonTestAllNullableTypes* b, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* (*get_all_nullable_types_hash)(CoreTestsPigeonTestAllNullableTypes* value, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* (*echo_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* (*echo_all_nullable_types_without_recursion)(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* (*extract_nested_nullable_string)(CoreTestsPigeonTestAllClassesWrapper* wrapper, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* (*create_nested_nullable_string)(const gchar* nullable_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* (*send_multiple_nullable_types)(gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* (*send_multiple_nullable_types_without_recursion)(gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* (*echo_nullable_int)(int64_t* a_nullable_int, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* (*echo_nullable_double)(double* a_nullable_double, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* (*echo_nullable_bool)(gboolean* a_nullable_bool, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* (*echo_nullable_string)(const gchar* a_nullable_string, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* (*echo_nullable_uint8_list)(const uint8_t* a_nullable_uint8_list, size_t a_nullable_uint8_list_length, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* (*echo_nullable_object)(FlValue* a_nullable_object, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* (*echo_nullable_list)(FlValue* a_nullable_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* (*echo_nullable_enum_list)(FlValue* enum_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* (*echo_nullable_class_list)(FlValue* class_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* (*echo_nullable_non_null_enum_list)(FlValue* enum_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* (*echo_nullable_non_null_class_list)(FlValue* class_list, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* (*echo_nullable_map)(FlValue* map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* (*echo_nullable_string_map)(FlValue* string_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* (*echo_nullable_int_map)(FlValue* int_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* (*echo_nullable_enum_map)(FlValue* enum_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* (*echo_nullable_class_map)(FlValue* class_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* (*echo_nullable_non_null_string_map)(FlValue* string_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* (*echo_nullable_non_null_int_map)(FlValue* int_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* (*echo_nullable_non_null_enum_map)(FlValue* enum_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* (*echo_nullable_non_null_class_map)(FlValue* class_map, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* (*echo_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* (*echo_another_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* (*echo_optional_nullable_int)(int64_t* a_nullable_int, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* (*echo_named_nullable_string)(const gchar* a_nullable_string, gpointer user_data); - void (*noop_async)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_int)(int64_t an_int, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_double)(double a_double, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_bool)(gboolean a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_uint8_list)(const uint8_t* a_uint8_list, size_t a_uint8_list_length, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_object)(FlValue* an_object, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_list)(FlValue* list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_map)(FlValue* map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_enum)(CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_another_async_enum)(CoreTestsPigeonTestAnotherEnum another_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*throw_async_error)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*throw_async_error_from_void)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*throw_async_flutter_error)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_all_types)(CoreTestsPigeonTestAllTypes* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_all_nullable_types_without_recursion)(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_int)(int64_t* an_int, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_double)(double* a_double, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_bool)(gboolean* a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_uint8_list)(const uint8_t* a_uint8_list, size_t a_uint8_list_length, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_object)(FlValue* an_object, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_list)(FlValue* list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_map)(FlValue* map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_async_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*echo_another_async_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* (*default_is_main_thread)(gpointer user_data); - CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* (*task_queue_is_background_thread)(gpointer user_data); - void (*call_flutter_noop)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_throw_error)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_throw_error_from_void)(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_all_types)(CoreTestsPigeonTestAllTypes* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_send_multiple_nullable_types)(gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_all_nullable_types_without_recursion)(CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_send_multiple_nullable_types_without_recursion)(gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_bool)(gboolean a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_int)(int64_t an_int, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_double)(double a_double, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_uint8_list)(const uint8_t* list, size_t list_length, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_list)(FlValue* list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_non_null_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_non_null_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_map)(FlValue* map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_non_null_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_non_null_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_non_null_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_non_null_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_enum)(CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_another_enum)(CoreTestsPigeonTestAnotherEnum another_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_bool)(gboolean* a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_int)(int64_t* an_int, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_double)(double* a_double, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_uint8_list)(const uint8_t* list, size_t list_length, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_list)(FlValue* list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_non_null_enum_list)(FlValue* enum_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_non_null_class_list)(FlValue* class_list, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_map)(FlValue* map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_non_null_string_map)(FlValue* string_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_non_null_int_map)(FlValue* int_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_non_null_enum_map)(FlValue* enum_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_non_null_class_map)(FlValue* class_map, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_echo_another_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); - void (*call_flutter_small_api_echo_string)(const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiNoopResponse* (*noop)( + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllTypesResponse* ( + *echo_all_types)(CoreTestsPigeonTestAllTypes* everything, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorResponse* (*throw_error)( + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiThrowErrorFromVoidResponse* ( + *throw_error_from_void)(gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiThrowFlutterErrorResponse* ( + *throw_flutter_error)(gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntResponse* (*echo_int)( + int64_t an_int, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoDoubleResponse* (*echo_double)( + double a_double, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoBoolResponse* (*echo_bool)( + gboolean a_bool, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringResponse* (*echo_string)( + const gchar* a_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoUint8ListResponse* ( + *echo_uint8_list)(const uint8_t* a_uint8_list, size_t a_uint8_list_length, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoObjectResponse* (*echo_object)( + FlValue* an_object, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoListResponse* (*echo_list)( + FlValue* list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumListResponse* ( + *echo_enum_list)(FlValue* enum_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassListResponse* ( + *echo_class_list)(FlValue* class_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumListResponse* ( + *echo_non_null_enum_list)(FlValue* enum_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassListResponse* ( + *echo_non_null_class_list)(FlValue* class_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoMapResponse* (*echo_map)( + FlValue* map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoStringMapResponse* ( + *echo_string_map)(FlValue* string_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoIntMapResponse* (*echo_int_map)( + FlValue* int_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumMapResponse* ( + *echo_enum_map)(FlValue* enum_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassMapResponse* ( + *echo_class_map)(FlValue* class_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullStringMapResponse* ( + *echo_non_null_string_map)(FlValue* string_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullIntMapResponse* ( + *echo_non_null_int_map)(FlValue* int_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullEnumMapResponse* ( + *echo_non_null_enum_map)(FlValue* enum_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNonNullClassMapResponse* ( + *echo_non_null_class_map)(FlValue* class_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoClassWrapperResponse* ( + *echo_class_wrapper)(CoreTestsPigeonTestAllClassesWrapper* wrapper, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* (*echo_enum)( + CoreTestsPigeonTestAnEnum an_enum, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* ( + *echo_another_enum)(CoreTestsPigeonTestAnotherEnum another_enum, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* ( + *echo_named_default_string)(const gchar* a_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* ( + *echo_optional_default_double)(double a_double, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoRequiredIntResponse* ( + *echo_required_int)(int64_t an_int, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiAreAllNullableTypesEqualResponse* ( + *are_all_nullable_types_equal)(CoreTestsPigeonTestAllNullableTypes* a, + CoreTestsPigeonTestAllNullableTypes* b, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* ( + *get_all_nullable_types_hash)(CoreTestsPigeonTestAllNullableTypes* value, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* ( + *echo_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* ( + *echo_all_nullable_types_without_recursion)( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiExtractNestedNullableStringResponse* ( + *extract_nested_nullable_string)( + CoreTestsPigeonTestAllClassesWrapper* wrapper, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiCreateNestedNullableStringResponse* ( + *create_nested_nullable_string)(const gchar* nullable_string, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesResponse* ( + *send_multiple_nullable_types)(gboolean* a_nullable_bool, + int64_t* a_nullable_int, + const gchar* a_nullable_string, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* ( + *send_multiple_nullable_types_without_recursion)( + gboolean* a_nullable_bool, int64_t* a_nullable_int, + const gchar* a_nullable_string, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntResponse* ( + *echo_nullable_int)(int64_t* a_nullable_int, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableDoubleResponse* ( + *echo_nullable_double)(double* a_nullable_double, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableBoolResponse* ( + *echo_nullable_bool)(gboolean* a_nullable_bool, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringResponse* ( + *echo_nullable_string)(const gchar* a_nullable_string, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableUint8ListResponse* ( + *echo_nullable_uint8_list)(const uint8_t* a_nullable_uint8_list, + size_t a_nullable_uint8_list_length, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableObjectResponse* ( + *echo_nullable_object)(FlValue* a_nullable_object, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableListResponse* ( + *echo_nullable_list)(FlValue* a_nullable_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumListResponse* ( + *echo_nullable_enum_list)(FlValue* enum_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassListResponse* ( + *echo_nullable_class_list)(FlValue* class_list, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumListResponse* ( + *echo_nullable_non_null_enum_list)(FlValue* enum_list, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassListResponse* ( + *echo_nullable_non_null_class_list)(FlValue* class_list, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableMapResponse* ( + *echo_nullable_map)(FlValue* map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableStringMapResponse* ( + *echo_nullable_string_map)(FlValue* string_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableIntMapResponse* ( + *echo_nullable_int_map)(FlValue* int_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumMapResponse* ( + *echo_nullable_enum_map)(FlValue* enum_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableClassMapResponse* ( + *echo_nullable_class_map)(FlValue* class_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullStringMapResponse* ( + *echo_nullable_non_null_string_map)(FlValue* string_map, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullIntMapResponse* ( + *echo_nullable_non_null_int_map)(FlValue* int_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullEnumMapResponse* ( + *echo_nullable_non_null_enum_map)(FlValue* enum_map, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableNonNullClassMapResponse* ( + *echo_nullable_non_null_class_map)(FlValue* class_map, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* ( + *echo_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* ( + *echo_another_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* ( + *echo_optional_nullable_int)(int64_t* a_nullable_int, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* ( + *echo_named_nullable_string)(const gchar* a_nullable_string, + gpointer user_data); + void (*noop_async)( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_int)( + int64_t an_int, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_double)( + double a_double, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_bool)( + gboolean a_bool, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_string)( + const gchar* a_string, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_uint8_list)( + const uint8_t* a_uint8_list, size_t a_uint8_list_length, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_object)( + FlValue* an_object, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_list)( + FlValue* list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_enum_list)( + FlValue* enum_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_class_list)( + FlValue* class_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_map)( + FlValue* map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_string_map)( + FlValue* string_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_int_map)( + FlValue* int_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_enum_map)( + FlValue* enum_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_class_map)( + FlValue* class_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_enum)( + CoreTestsPigeonTestAnEnum an_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_another_async_enum)( + CoreTestsPigeonTestAnotherEnum another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*throw_async_error)( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*throw_async_error_from_void)( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*throw_async_flutter_error)( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_all_types)( + CoreTestsPigeonTestAllTypes* everything, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_all_nullable_types)( + CoreTestsPigeonTestAllNullableTypes* everything, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_all_nullable_types_without_recursion)( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_int)( + int64_t* an_int, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_double)( + double* a_double, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_bool)( + gboolean* a_bool, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_string)( + const gchar* a_string, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_uint8_list)( + const uint8_t* a_uint8_list, size_t a_uint8_list_length, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_object)( + FlValue* an_object, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_list)( + FlValue* list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_enum_list)( + FlValue* enum_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_class_list)( + FlValue* class_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_map)( + FlValue* map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_string_map)( + FlValue* string_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_int_map)( + FlValue* int_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_enum_map)( + FlValue* enum_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_class_map)( + FlValue* class_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_async_nullable_enum)( + CoreTestsPigeonTestAnEnum* an_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*echo_another_async_nullable_enum)( + CoreTestsPigeonTestAnotherEnum* another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse* ( + *default_is_main_thread)(gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse* ( + *task_queue_is_background_thread)(gpointer user_data); + void (*call_flutter_noop)( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_throw_error)( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_throw_error_from_void)( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_all_types)( + CoreTestsPigeonTestAllTypes* everything, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_all_nullable_types)( + CoreTestsPigeonTestAllNullableTypes* everything, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_send_multiple_nullable_types)( + gboolean* a_nullable_bool, int64_t* a_nullable_int, + const gchar* a_nullable_string, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_all_nullable_types_without_recursion)( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_send_multiple_nullable_types_without_recursion)( + gboolean* a_nullable_bool, int64_t* a_nullable_int, + const gchar* a_nullable_string, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_bool)( + gboolean a_bool, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_int)( + int64_t an_int, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_double)( + double a_double, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_string)( + const gchar* a_string, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_uint8_list)( + const uint8_t* list, size_t list_length, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_list)( + FlValue* list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_enum_list)( + FlValue* enum_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_class_list)( + FlValue* class_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_non_null_enum_list)( + FlValue* enum_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_non_null_class_list)( + FlValue* class_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_map)( + FlValue* map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_string_map)( + FlValue* string_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_int_map)( + FlValue* int_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_enum_map)( + FlValue* enum_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_class_map)( + FlValue* class_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_non_null_string_map)( + FlValue* string_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_non_null_int_map)( + FlValue* int_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_non_null_enum_map)( + FlValue* enum_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_non_null_class_map)( + FlValue* class_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_enum)( + CoreTestsPigeonTestAnEnum an_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_another_enum)( + CoreTestsPigeonTestAnotherEnum another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_bool)( + gboolean* a_bool, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_int)( + int64_t* an_int, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_double)( + double* a_double, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_string)( + const gchar* a_string, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_uint8_list)( + const uint8_t* list, size_t list_length, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_list)( + FlValue* list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_enum_list)( + FlValue* enum_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_class_list)( + FlValue* class_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_non_null_enum_list)( + FlValue* enum_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_non_null_class_list)( + FlValue* class_list, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_map)( + FlValue* map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_string_map)( + FlValue* string_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_int_map)( + FlValue* int_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_enum_map)( + FlValue* enum_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_class_map)( + FlValue* class_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_non_null_string_map)( + FlValue* string_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_non_null_int_map)( + FlValue* int_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_non_null_enum_map)( + FlValue* enum_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_non_null_class_map)( + FlValue* class_map, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_nullable_enum)( + CoreTestsPigeonTestAnEnum* an_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_echo_another_nullable_enum)( + CoreTestsPigeonTestAnotherEnum* another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); + void (*call_flutter_small_api_echo_string)( + const gchar* a_string, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); } CoreTestsPigeonTestHostIntegrationCoreApiVTable; /** @@ -3038,11 +4271,15 @@ typedef struct { * @suffix: (allow-none): a suffix to add to the API or %NULL for none. * @vtable: implementations of the methods in this API. * @user_data: (closure): user data to pass to the functions in @vtable. - * @user_data_free_func: (allow-none): a function which gets called to free @user_data, or %NULL. + * @user_data_free_func: (allow-none): a function which gets called to free + * @user_data, or %NULL. * * Connects the method handlers in the HostIntegrationCoreApi API. */ -void core_tests_pigeon_test_host_integration_core_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func); +void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix, + const CoreTestsPigeonTestHostIntegrationCoreApiVTable* vtable, + gpointer user_data, GDestroyNotify user_data_free_func); /** * core_tests_pigeon_test_host_integration_core_api_clear_method_handlers: @@ -3052,15 +4289,17 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers(FlBina * * Clears the method handlers in the HostIntegrationCoreApi API. */ -void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix); +void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix); /** * core_tests_pigeon_test_host_integration_core_api_respond_noop_async: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * - * Responds to HostIntegrationCoreApi.noopAsync. + * Responds to HostIntegrationCoreApi.noopAsync. */ -void core_tests_pigeon_test_host_integration_core_api_respond_noop_async(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_integration_core_api_respond_noop_async( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async: @@ -3069,18 +4308,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_noop_async(CoreTes * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.noopAsync. + * Responds with an error to HostIntegrationCoreApi.noopAsync. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_noop_async( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncInt. + * Responds to HostIntegrationCoreApi.echoAsyncInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int: @@ -3089,18 +4332,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int(Cor * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncInt. + * Responds with an error to HostIntegrationCoreApi.echoAsyncInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncDouble. + * Responds to HostIntegrationCoreApi.echoAsyncDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + double return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double: @@ -3109,18 +4356,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_double( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncDouble. + * Responds with an error to HostIntegrationCoreApi.echoAsyncDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncBool. + * Responds to HostIntegrationCoreApi.echoAsyncBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool: @@ -3129,18 +4380,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_bool(Co * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncBool. + * Responds with an error to HostIntegrationCoreApi.echoAsyncBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncString. + * Responds to HostIntegrationCoreApi.echoAsyncString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string: @@ -3149,19 +4404,24 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncString. + * Responds with an error to HostIntegrationCoreApi.echoAsyncString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. - * @return_value_length: (allow-none): location to write length of @return_value or %NULL to ignore. + * @return_value_length: (allow-none): location to write length of @return_value + * or %NULL to ignore. * - * Responds to HostIntegrationCoreApi.echoAsyncUint8List. + * Responds to HostIntegrationCoreApi.echoAsyncUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list: @@ -3170,18 +4430,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_uint8_l * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncUint8List. + * Responds with an error to HostIntegrationCoreApi.echoAsyncUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncObject. + * Responds to HostIntegrationCoreApi.echoAsyncObject. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object: @@ -3190,18 +4454,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_object( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncObject. + * Responds with an error to HostIntegrationCoreApi.echoAsyncObject. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_object( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncList. + * Responds to HostIntegrationCoreApi.echoAsyncList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list: @@ -3210,18 +4478,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_list(Co * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncEnumList. + * Responds to HostIntegrationCoreApi.echoAsyncEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list: @@ -3230,18 +4502,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_li * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncEnumList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncClassList. + * Responds to HostIntegrationCoreApi.echoAsyncClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list: @@ -3250,18 +4526,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_l * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncClassList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncMap. + * Responds to HostIntegrationCoreApi.echoAsyncMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map: @@ -3270,18 +4550,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_map(Cor * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncStringMap. + * Responds to HostIntegrationCoreApi.echoAsyncStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map: @@ -3290,18 +4574,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_string_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncStringMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncIntMap. + * Responds to HostIntegrationCoreApi.echoAsyncIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map: @@ -3310,18 +4598,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_int_map * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncIntMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncEnumMap. + * Responds to HostIntegrationCoreApi.echoAsyncEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map: @@ -3330,18 +4622,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum_ma * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncEnumMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncClassMap. + * Responds to HostIntegrationCoreApi.echoAsyncClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map: @@ -3350,18 +4646,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_class_m * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncClassMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncEnum. + * Responds to HostIntegrationCoreApi.echoAsyncEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum: @@ -3370,18 +4670,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_enum(Co * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncEnum. + * Responds with an error to HostIntegrationCoreApi.echoAsyncEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAnotherAsyncEnum. + * Responds to HostIntegrationCoreApi.echoAnotherAsyncEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum: @@ -3390,18 +4694,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAnotherAsyncEnum. + * Responds with an error to HostIntegrationCoreApi.echoAnotherAsyncEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.throwAsyncError. + * Responds to HostIntegrationCoreApi.throwAsyncError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error: @@ -3410,17 +4718,20 @@ void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.throwAsyncError. + * Responds with an error to HostIntegrationCoreApi.throwAsyncError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * - * Responds to HostIntegrationCoreApi.throwAsyncErrorFromVoid. + * Responds to HostIntegrationCoreApi.throwAsyncErrorFromVoid. */ -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_from_void( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void: @@ -3429,18 +4740,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.throwAsyncErrorFromVoid. + * Responds with an error to HostIntegrationCoreApi.throwAsyncErrorFromVoid. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_error_from_void( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.throwAsyncFlutterError. + * Responds to HostIntegrationCoreApi.throwAsyncFlutterError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutter_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error: @@ -3449,18 +4764,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_flutte * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.throwAsyncFlutterError. + * Responds with an error to HostIntegrationCoreApi.throwAsyncFlutterError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_throw_async_flutter_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncAllTypes. + * Responds to HostIntegrationCoreApi.echoAsyncAllTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types: @@ -3469,18 +4788,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_all_typ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncAllTypes. + * Responds with an error to HostIntegrationCoreApi.echoAsyncAllTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_all_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes. + * Responds to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types: @@ -3489,18 +4812,24 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes. + * Responds with an error to + * HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion. + * Responds to + * HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_all_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion: @@ -3509,18 +4838,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion. + * Responds with an error to + * HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_all_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableInt. + * Responds to HostIntegrationCoreApi.echoAsyncNullableInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + int64_t* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int: @@ -3529,18 +4863,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableInt. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableDouble. + * Responds to HostIntegrationCoreApi.echoAsyncNullableDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + double* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double: @@ -3549,18 +4887,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableDouble. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableBool. + * Responds to HostIntegrationCoreApi.echoAsyncNullableBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gboolean* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool: @@ -3569,18 +4911,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableBool. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableString. + * Responds to HostIntegrationCoreApi.echoAsyncNullableString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string: @@ -3589,19 +4935,24 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableString. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. - * @return_value_length: (allow-none): location to write length of @return_value or %NULL to ignore. + * @return_value_length: (allow-none): location to write length of @return_value + * or %NULL to ignore. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableUint8List. + * Responds to HostIntegrationCoreApi.echoAsyncNullableUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list: @@ -3610,18 +4961,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableUint8List. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableObject. + * Responds to HostIntegrationCoreApi.echoAsyncNullableObject. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_object( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object: @@ -3630,18 +4985,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableObject. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableObject. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_object( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableList. + * Responds to HostIntegrationCoreApi.echoAsyncNullableList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list: @@ -3650,18 +5009,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableEnumList. + * Responds to HostIntegrationCoreApi.echoAsyncNullableEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list: @@ -3670,18 +5033,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnumList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableClassList. + * Responds to HostIntegrationCoreApi.echoAsyncNullableClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list: @@ -3690,18 +5057,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableClassList. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map: @@ -3710,18 +5081,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableStringMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map: @@ -3730,18 +5105,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableStringMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableIntMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map: @@ -3750,18 +5129,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableIntMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableEnumMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map: @@ -3770,18 +5153,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnumMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableClassMap. + * Responds to HostIntegrationCoreApi.echoAsyncNullableClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map: @@ -3790,18 +5177,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableClassMap. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAsyncNullableEnum. + * Responds to HostIntegrationCoreApi.echoAsyncNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum: @@ -3810,18 +5201,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_async_nullabl * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnum. + * Responds with an error to HostIntegrationCoreApi.echoAsyncNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. + * Responds to HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum: @@ -3830,17 +5225,21 @@ void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. + * Responds with an error to + * HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * - * Responds to HostIntegrationCoreApi.callFlutterNoop. + * Responds to HostIntegrationCoreApi.callFlutterNoop. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop: @@ -3849,18 +5248,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop( * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterNoop. + * Responds with an error to HostIntegrationCoreApi.callFlutterNoop. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_noop( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterThrowError. + * Responds to HostIntegrationCoreApi.callFlutterThrowError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error: @@ -3869,17 +5272,20 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterThrowError. + * Responds with an error to HostIntegrationCoreApi.callFlutterThrowError. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * - * Responds to HostIntegrationCoreApi.callFlutterThrowErrorFromVoid. + * Responds to HostIntegrationCoreApi.callFlutterThrowErrorFromVoid. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw_error_from_void( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void: @@ -3888,18 +5294,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_throw * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterThrowErrorFromVoid. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterThrowErrorFromVoid. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_throw_error_from_void( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAllTypes. + * Responds to HostIntegrationCoreApi.callFlutterEchoAllTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types: @@ -3908,18 +5319,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAllTypes. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAllTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAllNullableTypes. + * Responds to HostIntegrationCoreApi.callFlutterEchoAllNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types: @@ -3928,18 +5343,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAllNullableTypes. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoAllNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes. + * Responds to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypes* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypes* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types: @@ -3948,18 +5368,24 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion. + * Responds to + * HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_all_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion: @@ -3968,18 +5394,24 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_all_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion. + * Responds to + * HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_multiple_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion: @@ -3988,18 +5420,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_send_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_send_multiple_nullable_types_without_recursion( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoBool. + * Responds to HostIntegrationCoreApi.callFlutterEchoBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gboolean return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool: @@ -4008,18 +5445,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoBool. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoInt. + * Responds to HostIntegrationCoreApi.callFlutterEchoInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + int64_t return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int: @@ -4028,18 +5469,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoInt. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoDouble. + * Responds to HostIntegrationCoreApi.callFlutterEchoDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + double return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double: @@ -4048,18 +5493,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoDouble. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoString. + * Responds to HostIntegrationCoreApi.callFlutterEchoString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string: @@ -4068,19 +5517,24 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoString. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. - * @return_value_length: (allow-none): location to write length of @return_value or %NULL to ignore. + * @return_value_length: (allow-none): location to write length of @return_value + * or %NULL to ignore. * - * Responds to HostIntegrationCoreApi.callFlutterEchoUint8List. + * Responds to HostIntegrationCoreApi.callFlutterEchoUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list: @@ -4089,18 +5543,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoUint8List. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoList. + * Responds to HostIntegrationCoreApi.callFlutterEchoList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list: @@ -4109,18 +5567,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoEnumList. + * Responds to HostIntegrationCoreApi.callFlutterEchoEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list: @@ -4129,18 +5591,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnumList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoClassList. + * Responds to HostIntegrationCoreApi.callFlutterEchoClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list: @@ -4149,18 +5615,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoClassList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullEnumList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list: @@ -4169,18 +5639,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullEnumList. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNonNullEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullClassList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list: @@ -4189,18 +5664,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullClassList. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNonNullClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map: @@ -4209,18 +5689,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoStringMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map: @@ -4229,18 +5713,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoStringMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoIntMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map: @@ -4249,18 +5737,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoIntMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoEnumMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map: @@ -4269,18 +5761,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnumMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoClassMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map: @@ -4289,18 +5785,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoClassMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullStringMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map: @@ -4309,18 +5809,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullStringMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNonNullStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullIntMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map: @@ -4329,18 +5834,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullIntMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNonNullIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map: @@ -4349,18 +5859,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullClassMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNonNullClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_non_null_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map: @@ -4369,18 +5884,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNonNullClassMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNonNullClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_non_null_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoEnum. + * Responds to HostIntegrationCoreApi.callFlutterEchoEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum: @@ -4389,18 +5909,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnum. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. + * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum: @@ -4409,18 +5933,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableBool. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gboolean* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool: @@ -4429,18 +5957,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableBool. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableBool. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_bool( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableInt. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, int64_t* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + int64_t* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int: @@ -4449,18 +5981,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableInt. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableInt. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableDouble. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, double* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + double* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double: @@ -4469,18 +6005,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableDouble. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableDouble. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_double( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableString. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string: @@ -4489,19 +6030,25 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableString. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. - * @return_value_length: (allow-none): location to write length of @return_value or %NULL to ignore. + * @return_value_length: (allow-none): location to write length of @return_value + * or %NULL to ignore. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableUint8List. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const uint8_t* return_value, size_t return_value_length); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const uint8_t* return_value, size_t return_value_length); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list: @@ -4510,18 +6057,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableUint8List. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableUint8List. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_uint8_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list: @@ -4530,18 +6082,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableList. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnumList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list: @@ -4550,18 +6106,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableEnumList. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableClassList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list: @@ -4570,18 +6131,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableClassList. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list: @@ -4590,18 +6156,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list: @@ -4610,18 +6181,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_list( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map: @@ -4630,18 +6206,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableMap. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableStringMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map: @@ -4650,18 +6230,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableStringMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableIntMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map: @@ -4670,18 +6255,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableIntMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnumMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map: @@ -4690,18 +6280,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableEnumMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableClassMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map: @@ -4710,18 +6305,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableClassMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map: @@ -4730,18 +6330,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_string_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map: @@ -4750,18 +6355,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_int_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map: @@ -4770,18 +6380,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_enum_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_non_null_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + FlValue* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map: @@ -4790,18 +6405,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_non_null_class_map( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnum. + * Responds to HostIntegrationCoreApi.callFlutterEchoNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnEnum* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum: @@ -4810,18 +6430,22 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableEnum. + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. + * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, CoreTestsPigeonTestAnotherEnum* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum: @@ -4830,18 +6454,23 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostIntegrationCoreApi.callFlutterSmallApiEchoString. + * Responds to HostIntegrationCoreApi.callFlutterSmallApiEchoString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* return_value); +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* return_value); /** * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string: @@ -4850,11 +6479,17 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostIntegrationCoreApi.callFlutterSmallApiEchoString. + * Responds with an error to + * HostIntegrationCoreApi.callFlutterSmallApiEchoString. */ -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_small_api_echo_string( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, + core_tests_pigeon_test_flutter_integration_core_api_noop_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_NOOP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error: @@ -4864,7 +6499,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse, c * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code: @@ -4874,7 +6511,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_response_is_er * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message: @@ -4884,7 +6523,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_g * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details: @@ -4894,9 +6535,15 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_response_g * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_noop_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse, core_tests_pigeon_test_flutter_integration_core_api_throw_error_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse, + core_tests_pigeon_test_flutter_integration_core_api_throw_error_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error: @@ -4906,7 +6553,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorRespo * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code: @@ -4916,7 +6565,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_respons * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message: @@ -4926,7 +6577,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_res * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details: @@ -4936,7 +6589,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_res * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value: @@ -4946,311 +6601,460 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_respons * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse, core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse, + core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_THROW_ERROR_FROM_VOID_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. * - * Checks if a response to FlutterIntegrationCoreApi.throwErrorFromVoid is an error. + * Checks if a response to FlutterIntegrationCoreApi.throwErrorFromVoid is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoAllTypes is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse. * * Get the return value for this response. * * Returns: a return value. */ -CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); +CoreTestsPigeonTestAllTypes* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAllNullableTypes is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoAllNullableTypes is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* response); +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse, + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * - * Checks if a response to FlutterIntegrationCoreApi.sendMultipleNullableTypes is an error. + * Checks if a response to FlutterIntegrationCoreApi.sendMultipleNullableTypes + * is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse. * * Get the return value for this response. * * Returns: a return value. */ -CoreTestsPigeonTestAllNullableTypes* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* response); +CoreTestsPigeonTestAllNullableTypes* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion is an error. + * Checks if a response to + * FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* response); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse, + core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_SEND_MULTIPLE_NULLABLE_TYPES_WITHOUT_RECURSION_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * - * Checks if a response to FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion is an error. + * Checks if a response to + * FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse. * * Get the return value for this response. * * Returns: a return value. */ -CoreTestsPigeonTestAllNullableTypesWithoutRecursion* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* response); +CoreTestsPigeonTestAllNullableTypesWithoutRecursion* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_BOOL_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error: @@ -5260,7 +7064,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolRespons * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code: @@ -5270,7 +7076,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_ * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message: @@ -5280,7 +7088,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_respo * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details: @@ -5290,7 +7100,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_respo * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value: @@ -5300,9 +7112,15 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_ * * Returns: a return value. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_int_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_int_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_INT_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error: @@ -5312,7 +7130,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code: @@ -5322,7 +7142,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_i * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message: @@ -5332,7 +7154,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_respon * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details: @@ -5342,7 +7166,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_respon * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value: @@ -5352,9 +7178,15 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_g * * Returns: a return value. */ -int64_t core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); +int64_t +core_tests_pigeon_test_flutter_integration_core_api_echo_int_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_double_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_double_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_DOUBLE_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error: @@ -5364,7 +7196,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleRespo * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code: @@ -5374,7 +7208,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_double_respons * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message: @@ -5384,7 +7220,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_res * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details: @@ -5394,7 +7232,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_double_res * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value: @@ -5404,9 +7244,15 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_double_respons * * Returns: a return value. */ -double core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); +double +core_tests_pigeon_test_flutter_integration_core_api_echo_double_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_string_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_string_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error: @@ -5416,7 +7262,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringRespo * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code: @@ -5426,7 +7274,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_respons * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message: @@ -5436,7 +7286,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_res * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details: @@ -5446,7 +7298,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_res * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value: @@ -5456,62 +7310,93 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_respons * * Returns: a return value. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_UINT8_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoUint8List is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. - * @return_value_length: (allow-none): location to write length of the return value or %NULL to ignore. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse. + * @return_value_length: (allow-none): location to write length of the return + * value or %NULL to ignore. * * Get the return value for this response. * * Returns: a return value. */ -const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response, size_t* return_value_length); +const uint8_t* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* response, + size_t* return_value_length); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_list_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error: @@ -5521,7 +7406,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListRespons * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code: @@ -5531,7 +7418,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_ * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message: @@ -5541,7 +7430,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_respo * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details: @@ -5551,7 +7442,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_list_respo * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value: @@ -5561,217 +7454,316 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_ * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoEnumList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoClassList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullEnumList is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullEnumList is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullClassList is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullClassList is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_map_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error: @@ -5781,7 +7773,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code: @@ -5791,7 +7785,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_i * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message: @@ -5801,7 +7797,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_respon * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details: @@ -5811,7 +7809,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_map_respon * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value: @@ -5821,61 +7821,91 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_g * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoStringMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_INT_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error: @@ -5885,7 +7915,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapRespo * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code: @@ -5895,7 +7927,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_respon * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message: @@ -5905,7 +7939,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_re * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details: @@ -5915,7 +7951,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_re * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value: @@ -5925,321 +7963,465 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_respon * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoEnumMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Checks if a response to FlutterIntegrationCoreApi.echoClassMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullStringMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullStringMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullIntMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullIntMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullEnumMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullEnumMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NON_NULL_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNonNullClassMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNonNullClassMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse. * * Get the return value for this response. * * Returns: a return value. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ENUM_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error: @@ -6249,7 +8431,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumRespons * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code: @@ -6259,7 +8443,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_ * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message: @@ -6269,7 +8455,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_respo * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details: @@ -6279,7 +8467,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_respo * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value: @@ -6289,1154 +8479,1718 @@ FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_ * * Returns: a return value. */ -CoreTestsPigeonTestAnEnum core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +CoreTestsPigeonTestAnEnum +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAnotherEnum is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoAnotherEnum is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. * * Get the return value for this response. * * Returns: a return value. */ -CoreTestsPigeonTestAnotherEnum core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* response); +CoreTestsPigeonTestAnotherEnum +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_BOOL_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableBool is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableBool is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -gboolean* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* response); +gboolean* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableInt is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableInt is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -int64_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* response); +int64_t* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_DOUBLE_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableDouble is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableDouble is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -double* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* response); +double* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableString is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableString is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_UINT8_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableUint8List is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableUint8List is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. - * @return_value_length: (allow-none): location to write length of the return value or %NULL to ignore. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse. + * @return_value_length: (allow-none): location to write length of the return + * value or %NULL to ignore. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -const uint8_t* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* response, size_t* return_value_length); +const uint8_t* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* + response, + size_t* return_value_length); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableList is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableList is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnumList is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnumList is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_LIST_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableClassList is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableClassList is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullEnumList is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullEnumList + * is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullClassList is an error. + * Checks if a response to + * FlutterIntegrationCoreApi.echoNullableNonNullClassList is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_STRING_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableStringMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableStringMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_INT_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableIntMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableIntMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnumMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnumMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_CLASS_MAP_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableClassMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableClassMap is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_STRING_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullStringMap is an error. + * Checks if a response to + * FlutterIntegrationCoreApi.echoNullableNonNullStringMap is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_INT_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullIntMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullIntMap + * is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_ENUM_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullEnumMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullEnumMap + * is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_NON_NULL_CLASS_MAP_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullClassMap is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableNonNullClassMap + * is an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnum is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoNullableEnum is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); +CoreTestsPigeonTestAnEnum* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAnotherNullableEnum is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoAnotherNullableEnum is + * an error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. * * Get the return value for this response. * * Returns: (allow-none): a return value or %NULL. */ -CoreTestsPigeonTestAnotherEnum* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* response); +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, + core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_NOOP_ASYNC_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error: @@ -7446,7 +10200,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncRespon * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code: @@ -7456,7 +10212,9 @@ gboolean core_tests_pigeon_test_flutter_integration_core_api_noop_async_response * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message: @@ -7466,7 +10224,9 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_resp * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details: @@ -7476,59 +10236,86 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_noop_async_resp * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ASYNC_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * - * Checks if a response to FlutterIntegrationCoreApi.echoAsyncString is an error. + * Checks if a response to FlutterIntegrationCoreApi.echoAsyncString is an + * error. * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * * Get the error code for this response. * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * * Get the error message for this response. * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * * Get the error details for this response. * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* + response); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value: - * @response: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse. * * Get the return value for this response. * * Returns: a return value. */ -const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* + response); /** * CoreTestsPigeonTestFlutterIntegrationCoreApi: @@ -7537,7 +10324,10 @@ const gchar* core_tests_pigeon_test_flutter_integration_core_api_echo_async_stri * integration tests to call into. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, core_tests_pigeon_test_flutter_integration_core_api, CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, + core_tests_pigeon_test_flutter_integration_core_api, + CORE_TESTS_PIGEON_TEST, FLUTTER_INTEGRATION_CORE_API, + GObject) /** * core_tests_pigeon_test_flutter_integration_core_api_new: @@ -7548,125 +10338,180 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterIntegrationCoreApi, core_tests_pi * * Returns: a new #CoreTestsPigeonTestFlutterIntegrationCoreApi */ -CoreTestsPigeonTestFlutterIntegrationCoreApi* core_tests_pigeon_test_flutter_integration_core_api_new(FlBinaryMessenger* messenger, const gchar* suffix); +CoreTestsPigeonTestFlutterIntegrationCoreApi* +core_tests_pigeon_test_flutter_integration_core_api_new( + FlBinaryMessenger* messenger, const gchar* suffix); /** * core_tests_pigeon_test_flutter_integration_core_api_noop: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * A no-op function taking no arguments and returning no value, to sanity * test basic calling. */ -void core_tests_pigeon_test_flutter_integration_core_api_noop(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_noop( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * * Completes a core_tests_pigeon_test_flutter_integration_core_api_noop() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse or %NULL + * on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiNoopResponse* +core_tests_pigeon_test_flutter_integration_core_api_noop_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Responds with an error from an async function returning a value. */ -void core_tests_pigeon_test_flutter_integration_core_api_throw_error(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_throw_error( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_throw_error() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_throw_error() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorResponse* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Responds with an error from an async void function. */ -void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiThrowErrorFromVoidResponse* +core_tests_pigeon_test_flutter_integration_core_api_throw_error_from_void_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @everything: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed object, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAllTypes* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAllTypes* everything, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_all_types() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_all_types() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_types_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @everything: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed object, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAllNullableTypes* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAllNullableTypes* everything, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types: @@ -7675,50 +10520,76 @@ CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesResponse* core_t * @a_nullable_int: (allow-none): parameter for this method. * @a_nullable_string: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns passed in arguments of multiple types. * * Tests multiple-arity FlutterApi handling. */ -void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + gboolean* a_nullable_bool, int64_t* a_nullable_int, + const gchar* a_nullable_string, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesResponse* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @everything: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed object, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* everything, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types_without_recursion_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion: @@ -7727,122 +10598,175 @@ CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAllNullableTypesWithoutRecursion * @a_nullable_int: (allow-none): parameter for this method. * @a_nullable_string: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns passed in arguments of multiple types. * * Tests multiple-arity FlutterApi handling. */ -void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean* a_nullable_bool, int64_t* a_nullable_int, const gchar* a_nullable_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + gboolean* a_nullable_bool, int64_t* a_nullable_int, + const gchar* a_nullable_string, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiSendMultipleNullableTypesWithoutRecursionResponse* +core_tests_pigeon_test_flutter_integration_core_api_send_multiple_nullable_types_without_recursion_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_bool: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed boolean, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_bool(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean a_bool, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_bool( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean a_bool, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_bool() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_bool() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoBoolResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_bool_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @an_int: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed int, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_int(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, int64_t an_int, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_int( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, int64_t an_int, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_int() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_int() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_double: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed double, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_double(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, double a_double, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_double( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, double a_double, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_double() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_double() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoDoubleResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_double_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_string: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed string, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_string( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_string() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_string() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list: @@ -7850,504 +10774,734 @@ CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringResponse* core_tests_pigeo * @list: parameter for this method. * @list_length: length of list. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed byte list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const uint8_t* list, size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const uint8_t* list, + size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoUint8ListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_uint8_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_list() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_class_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_class_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_class_list() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_list: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_map() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @string_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_string_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_string_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_string_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_string_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @int_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_int_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_int_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_int_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_int_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_class_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_class_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_class_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_class_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @string_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_string_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @int_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_int_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_enum_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_map: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNonNullClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_non_null_class_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @an_enum: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed enum to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAnEnum an_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAnEnum an_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_enum() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_enum() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @another_enum: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed enum to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse or %NULL + * on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_bool: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed boolean, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean* a_bool, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, gboolean* a_bool, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @an_int: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed int, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, int64_t* an_int, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, int64_t* an_int, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse or %NULL + * on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_double: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed double, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, double* a_double, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, double* a_double, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableDoubleResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_double_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_string: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed string, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list: @@ -8355,460 +11509,689 @@ CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringResponse* core_tes * @list: (allow-none): parameter for this method. * @list_length: length of list. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed byte list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const uint8_t* list, size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const uint8_t* list, + size_t list_length, GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableUint8ListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_uint8_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_list: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed list, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_list, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassListResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_list_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse or %NULL + * on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @string_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_string_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @int_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_int_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_class_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @string_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* string_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullStringMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_string_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @int_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* int_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullIntMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_int_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @enum_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* enum_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullEnumMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_enum_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @class_map: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed map, to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, FlValue* class_map, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableNonNullClassMapResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_non_null_class_map_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @an_enum: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed enum to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAnEnum* an_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAnEnum* an_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @another_enum: (allow-none): parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed enum to test serialization and deserialization. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse + * or %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * A no-op function taking no arguments and returning no value, to sanity * test basic asynchronous calling. */ -void core_tests_pigeon_test_flutter_integration_core_api_noop_async(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_noop_async( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_noop_async() call. + * Completes a core_tests_pigeon_test_flutter_integration_core_api_noop_async() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse* +core_tests_pigeon_test_flutter_integration_core_api_noop_async_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @a_string: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * * Returns the passed in generic Object asynchronously. */ -void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_integration_core_api_echo_async_string( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, const gchar* a_string, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_integration_core_api_echo_async_string() call. + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_async_string() call. * - * Returns: a #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse or %NULL on error. + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse or %NULL + * on error. */ -CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish(CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAsyncStringResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_async_string_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApi, core_tests_pigeon_test_host_trivial_api, CORE_TESTS_PIGEON_TEST, HOST_TRIVIAL_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApi, + core_tests_pigeon_test_host_trivial_api, + CORE_TESTS_PIGEON_TEST, HOST_TRIVIAL_API, GObject) -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, core_tests_pigeon_test_host_trivial_api_noop_response, CORE_TESTS_PIGEON_TEST, HOST_TRIVIAL_API_NOOP_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, + core_tests_pigeon_test_host_trivial_api_noop_response, + CORE_TESTS_PIGEON_TEST, HOST_TRIVIAL_API_NOOP_RESPONSE, + GObject) /** * core_tests_pigeon_test_host_trivial_api_noop_response_new: @@ -8817,7 +12200,8 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostTrivialApiNoopResponse, core_tests_p * * Returns: a new #CoreTestsPigeonTestHostTrivialApiNoopResponse */ -CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivial_api_noop_response_new(); +CoreTestsPigeonTestHostTrivialApiNoopResponse* +core_tests_pigeon_test_host_trivial_api_noop_response_new(); /** * core_tests_pigeon_test_host_trivial_api_noop_response_new_error: @@ -8829,12 +12213,15 @@ CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivi * * Returns: a new #CoreTestsPigeonTestHostTrivialApiNoopResponse */ -CoreTestsPigeonTestHostTrivialApiNoopResponse* core_tests_pigeon_test_host_trivial_api_noop_response_new_error(const gchar* code, const gchar* message, FlValue* details); +CoreTestsPigeonTestHostTrivialApiNoopResponse* +core_tests_pigeon_test_host_trivial_api_noop_response_new_error( + const gchar* code, const gchar* message, FlValue* details); /** * CoreTestsPigeonTestHostTrivialApiVTable: * - * Table of functions exposed by HostTrivialApi to be implemented by the API provider. + * Table of functions exposed by HostTrivialApi to be implemented by the API + * provider. */ typedef struct { CoreTestsPigeonTestHostTrivialApiNoopResponse* (*noop)(gpointer user_data); @@ -8847,11 +12234,15 @@ typedef struct { * @suffix: (allow-none): a suffix to add to the API or %NULL for none. * @vtable: implementations of the methods in this API. * @user_data: (closure): user data to pass to the functions in @vtable. - * @user_data_free_func: (allow-none): a function which gets called to free @user_data, or %NULL. + * @user_data_free_func: (allow-none): a function which gets called to free + * @user_data, or %NULL. * * Connects the method handlers in the HostTrivialApi API. */ -void core_tests_pigeon_test_host_trivial_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func); +void core_tests_pigeon_test_host_trivial_api_set_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix, + const CoreTestsPigeonTestHostTrivialApiVTable* vtable, gpointer user_data, + GDestroyNotify user_data_free_func); /** * core_tests_pigeon_test_host_trivial_api_clear_method_handlers: @@ -8861,20 +12252,31 @@ void core_tests_pigeon_test_host_trivial_api_set_method_handlers(FlBinaryMesseng * * Clears the method handlers in the HostTrivialApi API. */ -void core_tests_pigeon_test_host_trivial_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix); +void core_tests_pigeon_test_host_trivial_api_clear_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApi, core_tests_pigeon_test_host_small_api, CORE_TESTS_PIGEON_TEST, HOST_SMALL_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApi, + core_tests_pigeon_test_host_small_api, + CORE_TESTS_PIGEON_TEST, HOST_SMALL_API, GObject) -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiResponseHandle, core_tests_pigeon_test_host_small_api_response_handle, CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_RESPONSE_HANDLE, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestHostSmallApiResponseHandle, + core_tests_pigeon_test_host_small_api_response_handle, + CORE_TESTS_PIGEON_TEST, HOST_SMALL_API_RESPONSE_HANDLE, + GObject) /** * CoreTestsPigeonTestHostSmallApiVTable: * - * Table of functions exposed by HostSmallApi to be implemented by the API provider. + * Table of functions exposed by HostSmallApi to be implemented by the API + * provider. */ typedef struct { - void (*echo)(const gchar* a_string, CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, gpointer user_data); - void (*void_void)(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, gpointer user_data); + void (*echo)(const gchar* a_string, + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, + gpointer user_data); + void (*void_void)( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, + gpointer user_data); } CoreTestsPigeonTestHostSmallApiVTable; /** @@ -8884,11 +12286,15 @@ typedef struct { * @suffix: (allow-none): a suffix to add to the API or %NULL for none. * @vtable: implementations of the methods in this API. * @user_data: (closure): user data to pass to the functions in @vtable. - * @user_data_free_func: (allow-none): a function which gets called to free @user_data, or %NULL. + * @user_data_free_func: (allow-none): a function which gets called to free + * @user_data, or %NULL. * * Connects the method handlers in the HostSmallApi API. */ -void core_tests_pigeon_test_host_small_api_set_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix, const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, GDestroyNotify user_data_free_func); +void core_tests_pigeon_test_host_small_api_set_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix, + const CoreTestsPigeonTestHostSmallApiVTable* vtable, gpointer user_data, + GDestroyNotify user_data_free_func); /** * core_tests_pigeon_test_host_small_api_clear_method_handlers: @@ -8898,16 +12304,19 @@ void core_tests_pigeon_test_host_small_api_set_method_handlers(FlBinaryMessenger * * Clears the method handlers in the HostSmallApi API. */ -void core_tests_pigeon_test_host_small_api_clear_method_handlers(FlBinaryMessenger* messenger, const gchar* suffix); +void core_tests_pigeon_test_host_small_api_clear_method_handlers( + FlBinaryMessenger* messenger, const gchar* suffix); /** * core_tests_pigeon_test_host_small_api_respond_echo: * @response_handle: a #CoreTestsPigeonTestHostSmallApiResponseHandle. * @return_value: location to write the value returned by this method. * - * Responds to HostSmallApi.echo. + * Responds to HostSmallApi.echo. */ -void core_tests_pigeon_test_host_small_api_respond_echo(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* return_value); +void core_tests_pigeon_test_host_small_api_respond_echo( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, + const gchar* return_value); /** * core_tests_pigeon_test_host_small_api_respond_error_echo: @@ -8916,17 +12325,20 @@ void core_tests_pigeon_test_host_small_api_respond_echo(CoreTestsPigeonTestHostS * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostSmallApi.echo. + * Responds with an error to HostSmallApi.echo. */ -void core_tests_pigeon_test_host_small_api_respond_error_echo(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_small_api_respond_error_echo( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); /** * core_tests_pigeon_test_host_small_api_respond_void_void: * @response_handle: a #CoreTestsPigeonTestHostSmallApiResponseHandle. * - * Responds to HostSmallApi.voidVoid. + * Responds to HostSmallApi.voidVoid. */ -void core_tests_pigeon_test_host_small_api_respond_void_void(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle); +void core_tests_pigeon_test_host_small_api_respond_void_void( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle); /** * core_tests_pigeon_test_host_small_api_respond_error_void_void: @@ -8935,11 +12347,17 @@ void core_tests_pigeon_test_host_small_api_respond_void_void(CoreTestsPigeonTest * @message: error message. * @details: (allow-none): error details or %NULL. * - * Responds with an error to HostSmallApi.voidVoid. + * Responds with an error to HostSmallApi.voidVoid. */ -void core_tests_pigeon_test_host_small_api_respond_error_void_void(CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +void core_tests_pigeon_test_host_small_api_respond_error_void_void( + CoreTestsPigeonTestHostSmallApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response, CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, + core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API_ECHO_WRAPPED_LIST_RESPONSE, + GObject) /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error: @@ -8949,7 +12367,9 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse, * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +gboolean +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_error( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code: @@ -8959,7 +12379,9 @@ gboolean core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_is_ * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_code( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message: @@ -8969,7 +12391,9 @@ const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_message( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details: @@ -8979,7 +12403,9 @@ const gchar* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +FlValue* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_error_details( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value: @@ -8989,9 +12415,14 @@ FlValue* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get * * Returns: a return value. */ -CoreTestsPigeonTestTestMessage* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value(CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); +CoreTestsPigeonTestTestMessage* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_response_get_return_value( + CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* response); -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_flutter_small_api_echo_string_response, CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API_ECHO_STRING_RESPONSE, GObject) +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, + core_tests_pigeon_test_flutter_small_api_echo_string_response, + CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API_ECHO_STRING_RESPONSE, GObject) /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error: @@ -9001,7 +12432,8 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse, core_ * * Returns: a %TRUE if this response is an error. */ -gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code: @@ -9011,7 +12443,9 @@ gboolean core_tests_pigeon_test_flutter_small_api_echo_string_response_is_error( * * Returns: an error code or %NULL if not an error. */ -const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_code( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message: @@ -9021,7 +12455,9 @@ const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_e * * Returns: an error message. */ -const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_message( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details: @@ -9031,7 +12467,9 @@ const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_e * * Returns: (allow-none): an error details or %NULL. */ -FlValue* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +FlValue* +core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error_details( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value: @@ -9041,7 +12479,9 @@ FlValue* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_error * * Returns: a return value. */ -const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value(CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); +const gchar* +core_tests_pigeon_test_flutter_small_api_echo_string_response_get_return_value( + CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* response); /** * CoreTestsPigeonTestFlutterSmallApi: @@ -9049,7 +12489,9 @@ const gchar* core_tests_pigeon_test_flutter_small_api_echo_string_response_get_r * A simple API called in some unit tests. */ -G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApi, core_tests_pigeon_test_flutter_small_api, CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API, GObject) +G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApi, + core_tests_pigeon_test_flutter_small_api, + CORE_TESTS_PIGEON_TEST, FLUTTER_SMALL_API, GObject) /** * core_tests_pigeon_test_flutter_small_api_new: @@ -9060,53 +12502,74 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestFlutterSmallApi, core_tests_pigeon_test_ * * Returns: a new #CoreTestsPigeonTestFlutterSmallApi */ -CoreTestsPigeonTestFlutterSmallApi* core_tests_pigeon_test_flutter_small_api_new(FlBinaryMessenger* messenger, const gchar* suffix); +CoreTestsPigeonTestFlutterSmallApi* +core_tests_pigeon_test_flutter_small_api_new(FlBinaryMessenger* messenger, + const gchar* suffix); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list: * @api: a #CoreTestsPigeonTestFlutterSmallApi. * @msg: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * */ -void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list(CoreTestsPigeonTestFlutterSmallApi* api, CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list( + CoreTestsPigeonTestFlutterSmallApi* api, + CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); /** * core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish: * @api: a #CoreTestsPigeonTestFlutterSmallApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * - * Completes a core_tests_pigeon_test_flutter_small_api_echo_wrapped_list() call. + * Completes a core_tests_pigeon_test_flutter_small_api_echo_wrapped_list() + * call. * - * Returns: a #CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse or + * %NULL on error. */ -CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish(CoreTestsPigeonTestFlutterSmallApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterSmallApiEchoWrappedListResponse* +core_tests_pigeon_test_flutter_small_api_echo_wrapped_list_finish( + CoreTestsPigeonTestFlutterSmallApi* api, GAsyncResult* result, + GError** error); /** * core_tests_pigeon_test_flutter_small_api_echo_string: * @api: a #CoreTestsPigeonTestFlutterSmallApi. * @a_string: parameter for this method. * @cancellable: (allow-none): a #GCancellable or %NULL. - * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when the call is complete or %NULL to ignore the response. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. * @user_data: (closure): user data to pass to @callback. * */ -void core_tests_pigeon_test_flutter_small_api_echo_string(CoreTestsPigeonTestFlutterSmallApi* api, const gchar* a_string, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data); +void core_tests_pigeon_test_flutter_small_api_echo_string( + CoreTestsPigeonTestFlutterSmallApi* api, const gchar* a_string, + GCancellable* cancellable, GAsyncReadyCallback callback, + gpointer user_data); /** * core_tests_pigeon_test_flutter_small_api_echo_string_finish: * @api: a #CoreTestsPigeonTestFlutterSmallApi. * @result: a #GAsyncResult. - * @error: (allow-none): #GError location to store the error occurring, or %NULL to ignore. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. * * Completes a core_tests_pigeon_test_flutter_small_api_echo_string() call. * - * Returns: a #CoreTestsPigeonTestFlutterSmallApiEchoStringResponse or %NULL on error. + * Returns: a #CoreTestsPigeonTestFlutterSmallApiEchoStringResponse or %NULL on + * error. */ -CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* core_tests_pigeon_test_flutter_small_api_echo_string_finish(CoreTestsPigeonTestFlutterSmallApi* api, GAsyncResult* result, GError** error); +CoreTestsPigeonTestFlutterSmallApiEchoStringResponse* +core_tests_pigeon_test_flutter_small_api_echo_string_finish( + CoreTestsPigeonTestFlutterSmallApi* api, GAsyncResult* result, + GError** error); G_END_DECLS diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 4809c18112a5..1b6c480d48dd 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -33,13 +33,14 @@ FlutterError CreateConnectionError(const std::string channel_name) { EncodableValue("")); } -template +template bool PigeonInternalDeepEquals(const T& a, const T& b) { return a == b; } -template -bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) { +template +bool PigeonInternalDeepEquals(const std::vector& a, + const std::vector& b) { if (a.size() != b.size()) return false; for (size_t i = 0; i < a.size(); ++i) { if (!PigeonInternalDeepEquals(a[i], b[i])) return false; @@ -47,8 +48,9 @@ bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) return true; } -template -bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { +template +bool PigeonInternalDeepEquals(const std::map& a, + const std::map& b) { if (a.size() != b.size()) return false; for (const auto& kv : a) { auto it = b.find(kv.first); @@ -62,27 +64,32 @@ inline bool PigeonInternalDeepEquals(const double& a, const double& b) { return (a == b) || (std::isnan(a) && std::isnan(b)); } -template -bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& b) { +template +bool PigeonInternalDeepEquals(const std::optional& a, + const std::optional& b) { if (!a && !b) return true; if (!a || !b) return false; return PigeonInternalDeepEquals(*a, *b); } -template -bool PigeonInternalDeepEquals(const std::unique_ptr& a, const std::unique_ptr& b) { +template +bool PigeonInternalDeepEquals(const std::unique_ptr& a, + const std::unique_ptr& b) { if (!a && !b) return true; if (!a || !b) return false; return PigeonInternalDeepEquals(*a, *b); } -inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { +inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, + const ::flutter::EncodableValue& b) { if (a.index() != b.index()) return false; if (const double* da = std::get_if(&a)) { return PigeonInternalDeepEquals(*da, std::get(b)); - } else if (const ::flutter::EncodableList* la = std::get_if<::flutter::EncodableList>(&a)) { + } else if (const ::flutter::EncodableList* la = + std::get_if<::flutter::EncodableList>(&a)) { return PigeonInternalDeepEquals(*la, std::get<::flutter::EncodableList>(b)); - } else if (const ::flutter::EncodableMap* ma = std::get_if<::flutter::EncodableMap>(&a)) { + } else if (const ::flutter::EncodableMap* ma = + std::get_if<::flutter::EncodableMap>(&a)) { return PigeonInternalDeepEquals(*ma, std::get<::flutter::EncodableMap>(b)); } return a == b; @@ -93,21 +100,22 @@ inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const : UnusedClass::UnusedClass() {} UnusedClass::UnusedClass(const EncodableValue* a_field) - : a_field_(a_field ? std::optional(*a_field) : std::nullopt) {} + : a_field_(a_field ? std::optional(*a_field) + : std::nullopt) {} const EncodableValue* UnusedClass::a_field() const { return a_field_ ? &(*a_field_) : nullptr; } void UnusedClass::set_a_field(const EncodableValue* value_arg) { - a_field_ = value_arg ? std::optional(*value_arg) : std::nullopt; + a_field_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void UnusedClass::set_a_field(const EncodableValue& value_arg) { a_field_ = value_arg; } - EncodableList UnusedClass::ToEncodableList() const { EncodableList list; list.reserve(1); @@ -134,99 +142,68 @@ bool UnusedClass::operator!=(const UnusedClass& other) const { // AllTypes -AllTypes::AllTypes( - bool a_bool, - int64_t an_int, - int64_t an_int64, - double a_double, - const std::vector& a_byte_array, - const std::vector& a4_byte_array, - const std::vector& a8_byte_array, - const std::vector& a_float_array, - const AnEnum& an_enum, - const AnotherEnum& another_enum, - const std::string& a_string, - const EncodableValue& an_object, - const EncodableList& list, - const EncodableList& string_list, - const EncodableList& int_list, - const EncodableList& double_list, - const EncodableList& bool_list, - const EncodableList& enum_list, - const EncodableList& object_list, - const EncodableList& list_list, - const EncodableList& map_list, - const EncodableMap& map, - const EncodableMap& string_map, - const EncodableMap& int_map, - const EncodableMap& enum_map, - const EncodableMap& object_map, - const EncodableMap& list_map, - const EncodableMap& map_map) - : a_bool_(a_bool), - an_int_(an_int), - an_int64_(an_int64), - a_double_(a_double), - a_byte_array_(a_byte_array), - a4_byte_array_(a4_byte_array), - a8_byte_array_(a8_byte_array), - a_float_array_(a_float_array), - an_enum_(an_enum), - another_enum_(another_enum), - a_string_(a_string), - an_object_(an_object), - list_(list), - string_list_(string_list), - int_list_(int_list), - double_list_(double_list), - bool_list_(bool_list), - enum_list_(enum_list), - object_list_(object_list), - list_list_(list_list), - map_list_(map_list), - map_(map), - string_map_(string_map), - int_map_(int_map), - enum_map_(enum_map), - object_map_(object_map), - list_map_(list_map), - map_map_(map_map) {} - -bool AllTypes::a_bool() const { - return a_bool_; -} - -void AllTypes::set_a_bool(bool value_arg) { - a_bool_ = value_arg; -} - - -int64_t AllTypes::an_int() const { - return an_int_; -} - -void AllTypes::set_an_int(int64_t value_arg) { - an_int_ = value_arg; -} - - -int64_t AllTypes::an_int64() const { - return an_int64_; -} - -void AllTypes::set_an_int64(int64_t value_arg) { - an_int64_ = value_arg; -} - - -double AllTypes::a_double() const { - return a_double_; -} - -void AllTypes::set_a_double(double value_arg) { - a_double_ = value_arg; -} - +AllTypes::AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, + double a_double, const std::vector& a_byte_array, + const std::vector& a4_byte_array, + const std::vector& a8_byte_array, + const std::vector& a_float_array, + const AnEnum& an_enum, const AnotherEnum& another_enum, + const std::string& a_string, const EncodableValue& an_object, + const EncodableList& list, const EncodableList& string_list, + const EncodableList& int_list, + const EncodableList& double_list, + const EncodableList& bool_list, + const EncodableList& enum_list, + const EncodableList& object_list, + const EncodableList& list_list, + const EncodableList& map_list, const EncodableMap& map, + const EncodableMap& string_map, const EncodableMap& int_map, + const EncodableMap& enum_map, const EncodableMap& object_map, + const EncodableMap& list_map, const EncodableMap& map_map) + : a_bool_(a_bool), + an_int_(an_int), + an_int64_(an_int64), + a_double_(a_double), + a_byte_array_(a_byte_array), + a4_byte_array_(a4_byte_array), + a8_byte_array_(a8_byte_array), + a_float_array_(a_float_array), + an_enum_(an_enum), + another_enum_(another_enum), + a_string_(a_string), + an_object_(an_object), + list_(list), + string_list_(string_list), + int_list_(int_list), + double_list_(double_list), + bool_list_(bool_list), + enum_list_(enum_list), + object_list_(object_list), + list_list_(list_list), + map_list_(map_list), + map_(map), + string_map_(string_map), + int_map_(int_map), + enum_map_(enum_map), + object_map_(object_map), + list_map_(list_map), + map_map_(map_map) {} + +bool AllTypes::a_bool() const { return a_bool_; } + +void AllTypes::set_a_bool(bool value_arg) { a_bool_ = value_arg; } + +int64_t AllTypes::an_int() const { return an_int_; } + +void AllTypes::set_an_int(int64_t value_arg) { an_int_ = value_arg; } + +int64_t AllTypes::an_int64() const { return an_int64_; } + +void AllTypes::set_an_int64(int64_t value_arg) { an_int64_ = value_arg; } + +double AllTypes::a_double() const { return a_double_; } + +void AllTypes::set_a_double(double value_arg) { a_double_ = value_arg; } const std::vector& AllTypes::a_byte_array() const { return a_byte_array_; @@ -236,7 +213,6 @@ void AllTypes::set_a_byte_array(const std::vector& value_arg) { a_byte_array_ = value_arg; } - const std::vector& AllTypes::a4_byte_array() const { return a4_byte_array_; } @@ -245,7 +221,6 @@ void AllTypes::set_a4_byte_array(const std::vector& value_arg) { a4_byte_array_ = value_arg; } - const std::vector& AllTypes::a8_byte_array() const { return a8_byte_array_; } @@ -254,7 +229,6 @@ void AllTypes::set_a8_byte_array(const std::vector& value_arg) { a8_byte_array_ = value_arg; } - const std::vector& AllTypes::a_float_array() const { return a_float_array_; } @@ -263,187 +237,120 @@ void AllTypes::set_a_float_array(const std::vector& value_arg) { a_float_array_ = value_arg; } +const AnEnum& AllTypes::an_enum() const { return an_enum_; } -const AnEnum& AllTypes::an_enum() const { - return an_enum_; -} - -void AllTypes::set_an_enum(const AnEnum& value_arg) { - an_enum_ = value_arg; -} - +void AllTypes::set_an_enum(const AnEnum& value_arg) { an_enum_ = value_arg; } -const AnotherEnum& AllTypes::another_enum() const { - return another_enum_; -} +const AnotherEnum& AllTypes::another_enum() const { return another_enum_; } void AllTypes::set_another_enum(const AnotherEnum& value_arg) { another_enum_ = value_arg; } - -const std::string& AllTypes::a_string() const { - return a_string_; -} +const std::string& AllTypes::a_string() const { return a_string_; } void AllTypes::set_a_string(std::string_view value_arg) { a_string_ = value_arg; } - -const EncodableValue& AllTypes::an_object() const { - return an_object_; -} +const EncodableValue& AllTypes::an_object() const { return an_object_; } void AllTypes::set_an_object(const EncodableValue& value_arg) { an_object_ = value_arg; } +const EncodableList& AllTypes::list() const { return list_; } -const EncodableList& AllTypes::list() const { - return list_; -} - -void AllTypes::set_list(const EncodableList& value_arg) { - list_ = value_arg; -} - +void AllTypes::set_list(const EncodableList& value_arg) { list_ = value_arg; } -const EncodableList& AllTypes::string_list() const { - return string_list_; -} +const EncodableList& AllTypes::string_list() const { return string_list_; } void AllTypes::set_string_list(const EncodableList& value_arg) { string_list_ = value_arg; } - -const EncodableList& AllTypes::int_list() const { - return int_list_; -} +const EncodableList& AllTypes::int_list() const { return int_list_; } void AllTypes::set_int_list(const EncodableList& value_arg) { int_list_ = value_arg; } - -const EncodableList& AllTypes::double_list() const { - return double_list_; -} +const EncodableList& AllTypes::double_list() const { return double_list_; } void AllTypes::set_double_list(const EncodableList& value_arg) { double_list_ = value_arg; } - -const EncodableList& AllTypes::bool_list() const { - return bool_list_; -} +const EncodableList& AllTypes::bool_list() const { return bool_list_; } void AllTypes::set_bool_list(const EncodableList& value_arg) { bool_list_ = value_arg; } - -const EncodableList& AllTypes::enum_list() const { - return enum_list_; -} +const EncodableList& AllTypes::enum_list() const { return enum_list_; } void AllTypes::set_enum_list(const EncodableList& value_arg) { enum_list_ = value_arg; } - -const EncodableList& AllTypes::object_list() const { - return object_list_; -} +const EncodableList& AllTypes::object_list() const { return object_list_; } void AllTypes::set_object_list(const EncodableList& value_arg) { object_list_ = value_arg; } - -const EncodableList& AllTypes::list_list() const { - return list_list_; -} +const EncodableList& AllTypes::list_list() const { return list_list_; } void AllTypes::set_list_list(const EncodableList& value_arg) { list_list_ = value_arg; } - -const EncodableList& AllTypes::map_list() const { - return map_list_; -} +const EncodableList& AllTypes::map_list() const { return map_list_; } void AllTypes::set_map_list(const EncodableList& value_arg) { map_list_ = value_arg; } +const EncodableMap& AllTypes::map() const { return map_; } -const EncodableMap& AllTypes::map() const { - return map_; -} - -void AllTypes::set_map(const EncodableMap& value_arg) { - map_ = value_arg; -} - +void AllTypes::set_map(const EncodableMap& value_arg) { map_ = value_arg; } -const EncodableMap& AllTypes::string_map() const { - return string_map_; -} +const EncodableMap& AllTypes::string_map() const { return string_map_; } void AllTypes::set_string_map(const EncodableMap& value_arg) { string_map_ = value_arg; } - -const EncodableMap& AllTypes::int_map() const { - return int_map_; -} +const EncodableMap& AllTypes::int_map() const { return int_map_; } void AllTypes::set_int_map(const EncodableMap& value_arg) { int_map_ = value_arg; } - -const EncodableMap& AllTypes::enum_map() const { - return enum_map_; -} +const EncodableMap& AllTypes::enum_map() const { return enum_map_; } void AllTypes::set_enum_map(const EncodableMap& value_arg) { enum_map_ = value_arg; } - -const EncodableMap& AllTypes::object_map() const { - return object_map_; -} +const EncodableMap& AllTypes::object_map() const { return object_map_; } void AllTypes::set_object_map(const EncodableMap& value_arg) { object_map_ = value_arg; } - -const EncodableMap& AllTypes::list_map() const { - return list_map_; -} +const EncodableMap& AllTypes::list_map() const { return list_map_; } void AllTypes::set_list_map(const EncodableMap& value_arg) { list_map_ = value_arg; } - -const EncodableMap& AllTypes::map_map() const { - return map_map_; -} +const EncodableMap& AllTypes::map_map() const { return map_map_; } void AllTypes::set_map_map(const EncodableMap& value_arg) { map_map_ = value_arg; } - EncodableList AllTypes::ToEncodableList() const { EncodableList list; list.reserve(28); @@ -480,39 +387,56 @@ EncodableList AllTypes::ToEncodableList() const { AllTypes AllTypes::FromEncodableList(const EncodableList& list) { AllTypes decoded( - std::get(list[0]), - std::get(list[1]), - std::get(list[2]), - std::get(list[3]), - std::get>(list[4]), - std::get>(list[5]), - std::get>(list[6]), - std::get>(list[7]), - std::any_cast(std::get(list[8])), - std::any_cast(std::get(list[9])), - std::get(list[10]), - list[11], - std::get(list[12]), - std::get(list[13]), - std::get(list[14]), - std::get(list[15]), - std::get(list[16]), - std::get(list[17]), - std::get(list[18]), - std::get(list[19]), - std::get(list[20]), - std::get(list[21]), - std::get(list[22]), - std::get(list[23]), - std::get(list[24]), - std::get(list[25]), - std::get(list[26]), - std::get(list[27])); + std::get(list[0]), std::get(list[1]), + std::get(list[2]), std::get(list[3]), + std::get>(list[4]), + std::get>(list[5]), + std::get>(list[6]), + std::get>(list[7]), + std::any_cast(std::get(list[8])), + std::any_cast( + std::get(list[9])), + std::get(list[10]), list[11], + std::get(list[12]), std::get(list[13]), + std::get(list[14]), std::get(list[15]), + std::get(list[16]), std::get(list[17]), + std::get(list[18]), std::get(list[19]), + std::get(list[20]), std::get(list[21]), + std::get(list[22]), std::get(list[23]), + std::get(list[24]), std::get(list[25]), + std::get(list[26]), std::get(list[27])); return decoded; } bool AllTypes::operator==(const AllTypes& other) const { - return PigeonInternalDeepEquals(a_bool_, other.a_bool_) && PigeonInternalDeepEquals(an_int_, other.an_int_) && PigeonInternalDeepEquals(an_int64_, other.an_int64_) && PigeonInternalDeepEquals(a_double_, other.a_double_) && PigeonInternalDeepEquals(a_byte_array_, other.a_byte_array_) && PigeonInternalDeepEquals(a4_byte_array_, other.a4_byte_array_) && PigeonInternalDeepEquals(a8_byte_array_, other.a8_byte_array_) && PigeonInternalDeepEquals(a_float_array_, other.a_float_array_) && PigeonInternalDeepEquals(an_enum_, other.an_enum_) && PigeonInternalDeepEquals(another_enum_, other.another_enum_) && PigeonInternalDeepEquals(a_string_, other.a_string_) && PigeonInternalDeepEquals(an_object_, other.an_object_) && PigeonInternalDeepEquals(list_, other.list_) && PigeonInternalDeepEquals(string_list_, other.string_list_) && PigeonInternalDeepEquals(int_list_, other.int_list_) && PigeonInternalDeepEquals(double_list_, other.double_list_) && PigeonInternalDeepEquals(bool_list_, other.bool_list_) && PigeonInternalDeepEquals(enum_list_, other.enum_list_) && PigeonInternalDeepEquals(object_list_, other.object_list_) && PigeonInternalDeepEquals(list_list_, other.list_list_) && PigeonInternalDeepEquals(map_list_, other.map_list_) && PigeonInternalDeepEquals(map_, other.map_) && PigeonInternalDeepEquals(string_map_, other.string_map_) && PigeonInternalDeepEquals(int_map_, other.int_map_) && PigeonInternalDeepEquals(enum_map_, other.enum_map_) && PigeonInternalDeepEquals(object_map_, other.object_map_) && PigeonInternalDeepEquals(list_map_, other.list_map_) && PigeonInternalDeepEquals(map_map_, other.map_map_); + return PigeonInternalDeepEquals(a_bool_, other.a_bool_) && + PigeonInternalDeepEquals(an_int_, other.an_int_) && + PigeonInternalDeepEquals(an_int64_, other.an_int64_) && + PigeonInternalDeepEquals(a_double_, other.a_double_) && + PigeonInternalDeepEquals(a_byte_array_, other.a_byte_array_) && + PigeonInternalDeepEquals(a4_byte_array_, other.a4_byte_array_) && + PigeonInternalDeepEquals(a8_byte_array_, other.a8_byte_array_) && + PigeonInternalDeepEquals(a_float_array_, other.a_float_array_) && + PigeonInternalDeepEquals(an_enum_, other.an_enum_) && + PigeonInternalDeepEquals(another_enum_, other.another_enum_) && + PigeonInternalDeepEquals(a_string_, other.a_string_) && + PigeonInternalDeepEquals(an_object_, other.an_object_) && + PigeonInternalDeepEquals(list_, other.list_) && + PigeonInternalDeepEquals(string_list_, other.string_list_) && + PigeonInternalDeepEquals(int_list_, other.int_list_) && + PigeonInternalDeepEquals(double_list_, other.double_list_) && + PigeonInternalDeepEquals(bool_list_, other.bool_list_) && + PigeonInternalDeepEquals(enum_list_, other.enum_list_) && + PigeonInternalDeepEquals(object_list_, other.object_list_) && + PigeonInternalDeepEquals(list_list_, other.list_list_) && + PigeonInternalDeepEquals(map_list_, other.map_list_) && + PigeonInternalDeepEquals(map_, other.map_) && + PigeonInternalDeepEquals(string_map_, other.string_map_) && + PigeonInternalDeepEquals(int_map_, other.int_map_) && + PigeonInternalDeepEquals(enum_map_, other.enum_map_) && + PigeonInternalDeepEquals(object_map_, other.object_map_) && + PigeonInternalDeepEquals(list_map_, other.list_map_) && + PigeonInternalDeepEquals(map_map_, other.map_map_); } bool AllTypes::operator!=(const AllTypes& other) const { @@ -524,101 +448,197 @@ bool AllTypes::operator!=(const AllTypes& other) const { AllNullableTypes::AllNullableTypes() {} AllNullableTypes::AllNullableTypes( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const int64_t* a_nullable_int64, - const double* a_nullable_double, - const std::vector* a_nullable_byte_array, - const std::vector* a_nullable4_byte_array, - const std::vector* a_nullable8_byte_array, - const std::vector* a_nullable_float_array, - const AnEnum* a_nullable_enum, - const AnotherEnum* another_nullable_enum, - const std::string* a_nullable_string, - const EncodableValue* a_nullable_object, - const AllNullableTypes* all_nullable_types, - const EncodableList* list, - const EncodableList* string_list, - const EncodableList* int_list, - const EncodableList* double_list, - const EncodableList* bool_list, - const EncodableList* enum_list, - const EncodableList* object_list, - const EncodableList* list_list, - const EncodableList* map_list, - const EncodableList* recursive_class_list, - const EncodableMap* map, - const EncodableMap* string_map, - const EncodableMap* int_map, - const EncodableMap* enum_map, - const EncodableMap* object_map, - const EncodableMap* list_map, - const EncodableMap* map_map, - const EncodableMap* recursive_class_map) - : a_nullable_bool_(a_nullable_bool ? std::optional(*a_nullable_bool) : std::nullopt), - a_nullable_int_(a_nullable_int ? std::optional(*a_nullable_int) : std::nullopt), - a_nullable_int64_(a_nullable_int64 ? std::optional(*a_nullable_int64) : std::nullopt), - a_nullable_double_(a_nullable_double ? std::optional(*a_nullable_double) : std::nullopt), - a_nullable_byte_array_(a_nullable_byte_array ? std::optional>(*a_nullable_byte_array) : std::nullopt), - a_nullable4_byte_array_(a_nullable4_byte_array ? std::optional>(*a_nullable4_byte_array) : std::nullopt), - a_nullable8_byte_array_(a_nullable8_byte_array ? std::optional>(*a_nullable8_byte_array) : std::nullopt), - a_nullable_float_array_(a_nullable_float_array ? std::optional>(*a_nullable_float_array) : std::nullopt), - a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) : std::nullopt), - another_nullable_enum_(another_nullable_enum ? std::optional(*another_nullable_enum) : std::nullopt), - a_nullable_string_(a_nullable_string ? std::optional(*a_nullable_string) : std::nullopt), - a_nullable_object_(a_nullable_object ? std::optional(*a_nullable_object) : std::nullopt), - all_nullable_types_(all_nullable_types ? std::make_unique(*all_nullable_types) : nullptr), - list_(list ? std::optional(*list) : std::nullopt), - string_list_(string_list ? std::optional(*string_list) : std::nullopt), - int_list_(int_list ? std::optional(*int_list) : std::nullopt), - double_list_(double_list ? std::optional(*double_list) : std::nullopt), - bool_list_(bool_list ? std::optional(*bool_list) : std::nullopt), - enum_list_(enum_list ? std::optional(*enum_list) : std::nullopt), - object_list_(object_list ? std::optional(*object_list) : std::nullopt), - list_list_(list_list ? std::optional(*list_list) : std::nullopt), - map_list_(map_list ? std::optional(*map_list) : std::nullopt), - recursive_class_list_(recursive_class_list ? std::optional(*recursive_class_list) : std::nullopt), - map_(map ? std::optional(*map) : std::nullopt), - string_map_(string_map ? std::optional(*string_map) : std::nullopt), - int_map_(int_map ? std::optional(*int_map) : std::nullopt), - enum_map_(enum_map ? std::optional(*enum_map) : std::nullopt), - object_map_(object_map ? std::optional(*object_map) : std::nullopt), - list_map_(list_map ? std::optional(*list_map) : std::nullopt), - map_map_(map_map ? std::optional(*map_map) : std::nullopt), - recursive_class_map_(recursive_class_map ? std::optional(*recursive_class_map) : std::nullopt) {} + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const int64_t* a_nullable_int64, const double* a_nullable_double, + const std::vector* a_nullable_byte_array, + const std::vector* a_nullable4_byte_array, + const std::vector* a_nullable8_byte_array, + const std::vector* a_nullable_float_array, + const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, + const EncodableValue* a_nullable_object, + const AllNullableTypes* all_nullable_types, const EncodableList* list, + const EncodableList* string_list, const EncodableList* int_list, + const EncodableList* double_list, const EncodableList* bool_list, + const EncodableList* enum_list, const EncodableList* object_list, + const EncodableList* list_list, const EncodableList* map_list, + const EncodableList* recursive_class_list, const EncodableMap* map, + const EncodableMap* string_map, const EncodableMap* int_map, + const EncodableMap* enum_map, const EncodableMap* object_map, + const EncodableMap* list_map, const EncodableMap* map_map, + const EncodableMap* recursive_class_map) + : a_nullable_bool_(a_nullable_bool ? std::optional(*a_nullable_bool) + : std::nullopt), + a_nullable_int_(a_nullable_int ? std::optional(*a_nullable_int) + : std::nullopt), + a_nullable_int64_(a_nullable_int64 + ? std::optional(*a_nullable_int64) + : std::nullopt), + a_nullable_double_(a_nullable_double + ? std::optional(*a_nullable_double) + : std::nullopt), + a_nullable_byte_array_( + a_nullable_byte_array + ? std::optional>(*a_nullable_byte_array) + : std::nullopt), + a_nullable4_byte_array_( + a_nullable4_byte_array + ? std::optional>(*a_nullable4_byte_array) + : std::nullopt), + a_nullable8_byte_array_( + a_nullable8_byte_array + ? std::optional>(*a_nullable8_byte_array) + : std::nullopt), + a_nullable_float_array_( + a_nullable_float_array + ? std::optional>(*a_nullable_float_array) + : std::nullopt), + a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) + : std::nullopt), + another_nullable_enum_(another_nullable_enum ? std::optional( + *another_nullable_enum) + : std::nullopt), + a_nullable_string_(a_nullable_string + ? std::optional(*a_nullable_string) + : std::nullopt), + a_nullable_object_(a_nullable_object + ? std::optional(*a_nullable_object) + : std::nullopt), + all_nullable_types_( + all_nullable_types + ? std::make_unique(*all_nullable_types) + : nullptr), + list_(list ? std::optional(*list) : std::nullopt), + string_list_(string_list ? std::optional(*string_list) + : std::nullopt), + int_list_(int_list ? std::optional(*int_list) + : std::nullopt), + double_list_(double_list ? std::optional(*double_list) + : std::nullopt), + bool_list_(bool_list ? std::optional(*bool_list) + : std::nullopt), + enum_list_(enum_list ? std::optional(*enum_list) + : std::nullopt), + object_list_(object_list ? std::optional(*object_list) + : std::nullopt), + list_list_(list_list ? std::optional(*list_list) + : std::nullopt), + map_list_(map_list ? std::optional(*map_list) + : std::nullopt), + recursive_class_list_(recursive_class_list ? std::optional( + *recursive_class_list) + : std::nullopt), + map_(map ? std::optional(*map) : std::nullopt), + string_map_(string_map ? std::optional(*string_map) + : std::nullopt), + int_map_(int_map ? std::optional(*int_map) : std::nullopt), + enum_map_(enum_map ? std::optional(*enum_map) + : std::nullopt), + object_map_(object_map ? std::optional(*object_map) + : std::nullopt), + list_map_(list_map ? std::optional(*list_map) + : std::nullopt), + map_map_(map_map ? std::optional(*map_map) : std::nullopt), + recursive_class_map_(recursive_class_map ? std::optional( + *recursive_class_map) + : std::nullopt) {} AllNullableTypes::AllNullableTypes(const AllNullableTypes& other) - : a_nullable_bool_(other.a_nullable_bool_ ? std::optional(*other.a_nullable_bool_) : std::nullopt), - a_nullable_int_(other.a_nullable_int_ ? std::optional(*other.a_nullable_int_) : std::nullopt), - a_nullable_int64_(other.a_nullable_int64_ ? std::optional(*other.a_nullable_int64_) : std::nullopt), - a_nullable_double_(other.a_nullable_double_ ? std::optional(*other.a_nullable_double_) : std::nullopt), - a_nullable_byte_array_(other.a_nullable_byte_array_ ? std::optional>(*other.a_nullable_byte_array_) : std::nullopt), - a_nullable4_byte_array_(other.a_nullable4_byte_array_ ? std::optional>(*other.a_nullable4_byte_array_) : std::nullopt), - a_nullable8_byte_array_(other.a_nullable8_byte_array_ ? std::optional>(*other.a_nullable8_byte_array_) : std::nullopt), - a_nullable_float_array_(other.a_nullable_float_array_ ? std::optional>(*other.a_nullable_float_array_) : std::nullopt), - a_nullable_enum_(other.a_nullable_enum_ ? std::optional(*other.a_nullable_enum_) : std::nullopt), - another_nullable_enum_(other.another_nullable_enum_ ? std::optional(*other.another_nullable_enum_) : std::nullopt), - a_nullable_string_(other.a_nullable_string_ ? std::optional(*other.a_nullable_string_) : std::nullopt), - a_nullable_object_(other.a_nullable_object_ ? std::optional(*other.a_nullable_object_) : std::nullopt), - all_nullable_types_(other.all_nullable_types_ ? std::make_unique(*other.all_nullable_types_) : nullptr), - list_(other.list_ ? std::optional(*other.list_) : std::nullopt), - string_list_(other.string_list_ ? std::optional(*other.string_list_) : std::nullopt), - int_list_(other.int_list_ ? std::optional(*other.int_list_) : std::nullopt), - double_list_(other.double_list_ ? std::optional(*other.double_list_) : std::nullopt), - bool_list_(other.bool_list_ ? std::optional(*other.bool_list_) : std::nullopt), - enum_list_(other.enum_list_ ? std::optional(*other.enum_list_) : std::nullopt), - object_list_(other.object_list_ ? std::optional(*other.object_list_) : std::nullopt), - list_list_(other.list_list_ ? std::optional(*other.list_list_) : std::nullopt), - map_list_(other.map_list_ ? std::optional(*other.map_list_) : std::nullopt), - recursive_class_list_(other.recursive_class_list_ ? std::optional(*other.recursive_class_list_) : std::nullopt), - map_(other.map_ ? std::optional(*other.map_) : std::nullopt), - string_map_(other.string_map_ ? std::optional(*other.string_map_) : std::nullopt), - int_map_(other.int_map_ ? std::optional(*other.int_map_) : std::nullopt), - enum_map_(other.enum_map_ ? std::optional(*other.enum_map_) : std::nullopt), - object_map_(other.object_map_ ? std::optional(*other.object_map_) : std::nullopt), - list_map_(other.list_map_ ? std::optional(*other.list_map_) : std::nullopt), - map_map_(other.map_map_ ? std::optional(*other.map_map_) : std::nullopt), - recursive_class_map_(other.recursive_class_map_ ? std::optional(*other.recursive_class_map_) : std::nullopt) {} + : a_nullable_bool_(other.a_nullable_bool_ + ? std::optional(*other.a_nullable_bool_) + : std::nullopt), + a_nullable_int_(other.a_nullable_int_ + ? std::optional(*other.a_nullable_int_) + : std::nullopt), + a_nullable_int64_(other.a_nullable_int64_ + ? std::optional(*other.a_nullable_int64_) + : std::nullopt), + a_nullable_double_(other.a_nullable_double_ + ? std::optional(*other.a_nullable_double_) + : std::nullopt), + a_nullable_byte_array_(other.a_nullable_byte_array_ + ? std::optional>( + *other.a_nullable_byte_array_) + : std::nullopt), + a_nullable4_byte_array_(other.a_nullable4_byte_array_ + ? std::optional>( + *other.a_nullable4_byte_array_) + : std::nullopt), + a_nullable8_byte_array_(other.a_nullable8_byte_array_ + ? std::optional>( + *other.a_nullable8_byte_array_) + : std::nullopt), + a_nullable_float_array_(other.a_nullable_float_array_ + ? std::optional>( + *other.a_nullable_float_array_) + : std::nullopt), + a_nullable_enum_(other.a_nullable_enum_ + ? std::optional(*other.a_nullable_enum_) + : std::nullopt), + another_nullable_enum_( + other.another_nullable_enum_ + ? std::optional(*other.another_nullable_enum_) + : std::nullopt), + a_nullable_string_( + other.a_nullable_string_ + ? std::optional(*other.a_nullable_string_) + : std::nullopt), + a_nullable_object_( + other.a_nullable_object_ + ? std::optional(*other.a_nullable_object_) + : std::nullopt), + all_nullable_types_( + other.all_nullable_types_ + ? std::make_unique(*other.all_nullable_types_) + : nullptr), + list_(other.list_ ? std::optional(*other.list_) + : std::nullopt), + string_list_(other.string_list_ + ? std::optional(*other.string_list_) + : std::nullopt), + int_list_(other.int_list_ ? std::optional(*other.int_list_) + : std::nullopt), + double_list_(other.double_list_ + ? std::optional(*other.double_list_) + : std::nullopt), + bool_list_(other.bool_list_ + ? std::optional(*other.bool_list_) + : std::nullopt), + enum_list_(other.enum_list_ + ? std::optional(*other.enum_list_) + : std::nullopt), + object_list_(other.object_list_ + ? std::optional(*other.object_list_) + : std::nullopt), + list_list_(other.list_list_ + ? std::optional(*other.list_list_) + : std::nullopt), + map_list_(other.map_list_ ? std::optional(*other.map_list_) + : std::nullopt), + recursive_class_list_( + other.recursive_class_list_ + ? std::optional(*other.recursive_class_list_) + : std::nullopt), + map_(other.map_ ? std::optional(*other.map_) + : std::nullopt), + string_map_(other.string_map_ + ? std::optional(*other.string_map_) + : std::nullopt), + int_map_(other.int_map_ ? std::optional(*other.int_map_) + : std::nullopt), + enum_map_(other.enum_map_ ? std::optional(*other.enum_map_) + : std::nullopt), + object_map_(other.object_map_ + ? std::optional(*other.object_map_) + : std::nullopt), + list_map_(other.list_map_ ? std::optional(*other.list_map_) + : std::nullopt), + map_map_(other.map_map_ ? std::optional(*other.map_map_) + : std::nullopt), + recursive_class_map_( + other.recursive_class_map_ + ? std::optional(*other.recursive_class_map_) + : std::nullopt) {} AllNullableTypes& AllNullableTypes::operator=(const AllNullableTypes& other) { a_nullable_bool_ = other.a_nullable_bool_; @@ -633,7 +653,10 @@ AllNullableTypes& AllNullableTypes::operator=(const AllNullableTypes& other) { another_nullable_enum_ = other.another_nullable_enum_; a_nullable_string_ = other.a_nullable_string_; a_nullable_object_ = other.a_nullable_object_; - all_nullable_types_ = other.all_nullable_types_ ? std::make_unique(*other.all_nullable_types_) : nullptr; + all_nullable_types_ = + other.all_nullable_types_ + ? std::make_unique(*other.all_nullable_types_) + : nullptr; list_ = other.list_; string_list_ = other.string_list_; int_list_ = other.int_list_; @@ -667,163 +690,176 @@ void AllNullableTypes::set_a_nullable_bool(bool value_arg) { a_nullable_bool_ = value_arg; } - const int64_t* AllNullableTypes::a_nullable_int() const { return a_nullable_int_ ? &(*a_nullable_int_) : nullptr; } void AllNullableTypes::set_a_nullable_int(const int64_t* value_arg) { - a_nullable_int_ = value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_int_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_int(int64_t value_arg) { a_nullable_int_ = value_arg; } - const int64_t* AllNullableTypes::a_nullable_int64() const { return a_nullable_int64_ ? &(*a_nullable_int64_) : nullptr; } void AllNullableTypes::set_a_nullable_int64(const int64_t* value_arg) { - a_nullable_int64_ = value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_int64_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_int64(int64_t value_arg) { a_nullable_int64_ = value_arg; } - const double* AllNullableTypes::a_nullable_double() const { return a_nullable_double_ ? &(*a_nullable_double_) : nullptr; } void AllNullableTypes::set_a_nullable_double(const double* value_arg) { - a_nullable_double_ = value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_double_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_double(double value_arg) { a_nullable_double_ = value_arg; } - const std::vector* AllNullableTypes::a_nullable_byte_array() const { return a_nullable_byte_array_ ? &(*a_nullable_byte_array_) : nullptr; } -void AllNullableTypes::set_a_nullable_byte_array(const std::vector* value_arg) { - a_nullable_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypes::set_a_nullable_byte_array( + const std::vector* value_arg) { + a_nullable_byte_array_ = value_arg + ? std::optional>(*value_arg) + : std::nullopt; } -void AllNullableTypes::set_a_nullable_byte_array(const std::vector& value_arg) { +void AllNullableTypes::set_a_nullable_byte_array( + const std::vector& value_arg) { a_nullable_byte_array_ = value_arg; } - const std::vector* AllNullableTypes::a_nullable4_byte_array() const { return a_nullable4_byte_array_ ? &(*a_nullable4_byte_array_) : nullptr; } -void AllNullableTypes::set_a_nullable4_byte_array(const std::vector* value_arg) { - a_nullable4_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypes::set_a_nullable4_byte_array( + const std::vector* value_arg) { + a_nullable4_byte_array_ = + value_arg ? std::optional>(*value_arg) + : std::nullopt; } -void AllNullableTypes::set_a_nullable4_byte_array(const std::vector& value_arg) { +void AllNullableTypes::set_a_nullable4_byte_array( + const std::vector& value_arg) { a_nullable4_byte_array_ = value_arg; } - const std::vector* AllNullableTypes::a_nullable8_byte_array() const { return a_nullable8_byte_array_ ? &(*a_nullable8_byte_array_) : nullptr; } -void AllNullableTypes::set_a_nullable8_byte_array(const std::vector* value_arg) { - a_nullable8_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypes::set_a_nullable8_byte_array( + const std::vector* value_arg) { + a_nullable8_byte_array_ = + value_arg ? std::optional>(*value_arg) + : std::nullopt; } -void AllNullableTypes::set_a_nullable8_byte_array(const std::vector& value_arg) { +void AllNullableTypes::set_a_nullable8_byte_array( + const std::vector& value_arg) { a_nullable8_byte_array_ = value_arg; } - const std::vector* AllNullableTypes::a_nullable_float_array() const { return a_nullable_float_array_ ? &(*a_nullable_float_array_) : nullptr; } -void AllNullableTypes::set_a_nullable_float_array(const std::vector* value_arg) { - a_nullable_float_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypes::set_a_nullable_float_array( + const std::vector* value_arg) { + a_nullable_float_array_ = + value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypes::set_a_nullable_float_array(const std::vector& value_arg) { +void AllNullableTypes::set_a_nullable_float_array( + const std::vector& value_arg) { a_nullable_float_array_ = value_arg; } - const AnEnum* AllNullableTypes::a_nullable_enum() const { return a_nullable_enum_ ? &(*a_nullable_enum_) : nullptr; } void AllNullableTypes::set_a_nullable_enum(const AnEnum* value_arg) { - a_nullable_enum_ = value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_enum_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_enum(const AnEnum& value_arg) { a_nullable_enum_ = value_arg; } - const AnotherEnum* AllNullableTypes::another_nullable_enum() const { return another_nullable_enum_ ? &(*another_nullable_enum_) : nullptr; } void AllNullableTypes::set_another_nullable_enum(const AnotherEnum* value_arg) { - another_nullable_enum_ = value_arg ? std::optional(*value_arg) : std::nullopt; + another_nullable_enum_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_another_nullable_enum(const AnotherEnum& value_arg) { another_nullable_enum_ = value_arg; } - const std::string* AllNullableTypes::a_nullable_string() const { return a_nullable_string_ ? &(*a_nullable_string_) : nullptr; } -void AllNullableTypes::set_a_nullable_string(const std::string_view* value_arg) { - a_nullable_string_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypes::set_a_nullable_string( + const std::string_view* value_arg) { + a_nullable_string_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_string(std::string_view value_arg) { a_nullable_string_ = value_arg; } - const EncodableValue* AllNullableTypes::a_nullable_object() const { return a_nullable_object_ ? &(*a_nullable_object_) : nullptr; } void AllNullableTypes::set_a_nullable_object(const EncodableValue* value_arg) { - a_nullable_object_ = value_arg ? std::optional(*value_arg) : std::nullopt; + a_nullable_object_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_a_nullable_object(const EncodableValue& value_arg) { a_nullable_object_ = value_arg; } - const AllNullableTypes* AllNullableTypes::all_nullable_types() const { return all_nullable_types_.get(); } -void AllNullableTypes::set_all_nullable_types(const AllNullableTypes* value_arg) { - all_nullable_types_ = value_arg ? std::make_unique(*value_arg) : nullptr; +void AllNullableTypes::set_all_nullable_types( + const AllNullableTypes* value_arg) { + all_nullable_types_ = + value_arg ? std::make_unique(*value_arg) : nullptr; } -void AllNullableTypes::set_all_nullable_types(const AllNullableTypes& value_arg) { +void AllNullableTypes::set_all_nullable_types( + const AllNullableTypes& value_arg) { all_nullable_types_ = std::make_unique(value_arg); } - const EncodableList* AllNullableTypes::list() const { return list_ ? &(*list_) : nullptr; } @@ -836,124 +872,125 @@ void AllNullableTypes::set_list(const EncodableList& value_arg) { list_ = value_arg; } - const EncodableList* AllNullableTypes::string_list() const { return string_list_ ? &(*string_list_) : nullptr; } void AllNullableTypes::set_string_list(const EncodableList* value_arg) { - string_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + string_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_string_list(const EncodableList& value_arg) { string_list_ = value_arg; } - const EncodableList* AllNullableTypes::int_list() const { return int_list_ ? &(*int_list_) : nullptr; } void AllNullableTypes::set_int_list(const EncodableList* value_arg) { - int_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + int_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_int_list(const EncodableList& value_arg) { int_list_ = value_arg; } - const EncodableList* AllNullableTypes::double_list() const { return double_list_ ? &(*double_list_) : nullptr; } void AllNullableTypes::set_double_list(const EncodableList* value_arg) { - double_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + double_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_double_list(const EncodableList& value_arg) { double_list_ = value_arg; } - const EncodableList* AllNullableTypes::bool_list() const { return bool_list_ ? &(*bool_list_) : nullptr; } void AllNullableTypes::set_bool_list(const EncodableList* value_arg) { - bool_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + bool_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_bool_list(const EncodableList& value_arg) { bool_list_ = value_arg; } - const EncodableList* AllNullableTypes::enum_list() const { return enum_list_ ? &(*enum_list_) : nullptr; } void AllNullableTypes::set_enum_list(const EncodableList* value_arg) { - enum_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + enum_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_enum_list(const EncodableList& value_arg) { enum_list_ = value_arg; } - const EncodableList* AllNullableTypes::object_list() const { return object_list_ ? &(*object_list_) : nullptr; } void AllNullableTypes::set_object_list(const EncodableList* value_arg) { - object_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + object_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_object_list(const EncodableList& value_arg) { object_list_ = value_arg; } - const EncodableList* AllNullableTypes::list_list() const { return list_list_ ? &(*list_list_) : nullptr; } void AllNullableTypes::set_list_list(const EncodableList* value_arg) { - list_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + list_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_list_list(const EncodableList& value_arg) { list_list_ = value_arg; } - const EncodableList* AllNullableTypes::map_list() const { return map_list_ ? &(*map_list_) : nullptr; } void AllNullableTypes::set_map_list(const EncodableList* value_arg) { - map_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + map_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_map_list(const EncodableList& value_arg) { map_list_ = value_arg; } - const EncodableList* AllNullableTypes::recursive_class_list() const { return recursive_class_list_ ? &(*recursive_class_list_) : nullptr; } -void AllNullableTypes::set_recursive_class_list(const EncodableList* value_arg) { - recursive_class_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypes::set_recursive_class_list( + const EncodableList* value_arg) { + recursive_class_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypes::set_recursive_class_list(const EncodableList& value_arg) { +void AllNullableTypes::set_recursive_class_list( + const EncodableList& value_arg) { recursive_class_list_ = value_arg; } - const EncodableMap* AllNullableTypes::map() const { return map_ ? &(*map_) : nullptr; } @@ -966,20 +1003,19 @@ void AllNullableTypes::set_map(const EncodableMap& value_arg) { map_ = value_arg; } - const EncodableMap* AllNullableTypes::string_map() const { return string_map_ ? &(*string_map_) : nullptr; } void AllNullableTypes::set_string_map(const EncodableMap* value_arg) { - string_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; + string_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_string_map(const EncodableMap& value_arg) { string_map_ = value_arg; } - const EncodableMap* AllNullableTypes::int_map() const { return int_map_ ? &(*int_map_) : nullptr; } @@ -992,46 +1028,45 @@ void AllNullableTypes::set_int_map(const EncodableMap& value_arg) { int_map_ = value_arg; } - const EncodableMap* AllNullableTypes::enum_map() const { return enum_map_ ? &(*enum_map_) : nullptr; } void AllNullableTypes::set_enum_map(const EncodableMap* value_arg) { - enum_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; + enum_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_enum_map(const EncodableMap& value_arg) { enum_map_ = value_arg; } - const EncodableMap* AllNullableTypes::object_map() const { return object_map_ ? &(*object_map_) : nullptr; } void AllNullableTypes::set_object_map(const EncodableMap* value_arg) { - object_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; + object_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_object_map(const EncodableMap& value_arg) { object_map_ = value_arg; } - const EncodableMap* AllNullableTypes::list_map() const { return list_map_ ? &(*list_map_) : nullptr; } void AllNullableTypes::set_list_map(const EncodableMap* value_arg) { - list_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; + list_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_list_map(const EncodableMap& value_arg) { list_map_ = value_arg; } - const EncodableMap* AllNullableTypes::map_map() const { return map_map_ ? &(*map_map_) : nullptr; } @@ -1044,46 +1079,67 @@ void AllNullableTypes::set_map_map(const EncodableMap& value_arg) { map_map_ = value_arg; } - const EncodableMap* AllNullableTypes::recursive_class_map() const { return recursive_class_map_ ? &(*recursive_class_map_) : nullptr; } void AllNullableTypes::set_recursive_class_map(const EncodableMap* value_arg) { - recursive_class_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; + recursive_class_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypes::set_recursive_class_map(const EncodableMap& value_arg) { recursive_class_map_ = value_arg; } - EncodableList AllNullableTypes::ToEncodableList() const { EncodableList list; list.reserve(31); - list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) : EncodableValue()); - list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) : EncodableValue()); - list.push_back(a_nullable_int64_ ? EncodableValue(*a_nullable_int64_) : EncodableValue()); - list.push_back(a_nullable_double_ ? EncodableValue(*a_nullable_double_) : EncodableValue()); - list.push_back(a_nullable_byte_array_ ? EncodableValue(*a_nullable_byte_array_) : EncodableValue()); - list.push_back(a_nullable4_byte_array_ ? EncodableValue(*a_nullable4_byte_array_) : EncodableValue()); - list.push_back(a_nullable8_byte_array_ ? EncodableValue(*a_nullable8_byte_array_) : EncodableValue()); - list.push_back(a_nullable_float_array_ ? EncodableValue(*a_nullable_float_array_) : EncodableValue()); - list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) : EncodableValue()); - list.push_back(another_nullable_enum_ ? CustomEncodableValue(*another_nullable_enum_) : EncodableValue()); - list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) : EncodableValue()); + list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) + : EncodableValue()); + list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) + : EncodableValue()); + list.push_back(a_nullable_int64_ ? EncodableValue(*a_nullable_int64_) + : EncodableValue()); + list.push_back(a_nullable_double_ ? EncodableValue(*a_nullable_double_) + : EncodableValue()); + list.push_back(a_nullable_byte_array_ + ? EncodableValue(*a_nullable_byte_array_) + : EncodableValue()); + list.push_back(a_nullable4_byte_array_ + ? EncodableValue(*a_nullable4_byte_array_) + : EncodableValue()); + list.push_back(a_nullable8_byte_array_ + ? EncodableValue(*a_nullable8_byte_array_) + : EncodableValue()); + list.push_back(a_nullable_float_array_ + ? EncodableValue(*a_nullable_float_array_) + : EncodableValue()); + list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) + : EncodableValue()); + list.push_back(another_nullable_enum_ + ? CustomEncodableValue(*another_nullable_enum_) + : EncodableValue()); + list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) + : EncodableValue()); list.push_back(a_nullable_object_ ? *a_nullable_object_ : EncodableValue()); - list.push_back(all_nullable_types_ ? CustomEncodableValue(*all_nullable_types_) : EncodableValue()); + list.push_back(all_nullable_types_ + ? CustomEncodableValue(*all_nullable_types_) + : EncodableValue()); list.push_back(list_ ? EncodableValue(*list_) : EncodableValue()); - list.push_back(string_list_ ? EncodableValue(*string_list_) : EncodableValue()); + list.push_back(string_list_ ? EncodableValue(*string_list_) + : EncodableValue()); list.push_back(int_list_ ? EncodableValue(*int_list_) : EncodableValue()); - list.push_back(double_list_ ? EncodableValue(*double_list_) : EncodableValue()); + list.push_back(double_list_ ? EncodableValue(*double_list_) + : EncodableValue()); list.push_back(bool_list_ ? EncodableValue(*bool_list_) : EncodableValue()); list.push_back(enum_list_ ? EncodableValue(*enum_list_) : EncodableValue()); - list.push_back(object_list_ ? EncodableValue(*object_list_) : EncodableValue()); + list.push_back(object_list_ ? EncodableValue(*object_list_) + : EncodableValue()); list.push_back(list_list_ ? EncodableValue(*list_list_) : EncodableValue()); list.push_back(map_list_ ? EncodableValue(*map_list_) : EncodableValue()); - list.push_back(recursive_class_list_ ? EncodableValue(*recursive_class_list_) : EncodableValue()); + list.push_back(recursive_class_list_ ? EncodableValue(*recursive_class_list_) + : EncodableValue()); list.push_back(map_ ? EncodableValue(*map_) : EncodableValue()); list.push_back(string_map_ ? EncodableValue(*string_map_) : EncodableValue()); list.push_back(int_map_ ? EncodableValue(*int_map_) : EncodableValue()); @@ -1091,11 +1147,13 @@ EncodableList AllNullableTypes::ToEncodableList() const { list.push_back(object_map_ ? EncodableValue(*object_map_) : EncodableValue()); list.push_back(list_map_ ? EncodableValue(*list_map_) : EncodableValue()); list.push_back(map_map_ ? EncodableValue(*map_map_) : EncodableValue()); - list.push_back(recursive_class_map_ ? EncodableValue(*recursive_class_map_) : EncodableValue()); + list.push_back(recursive_class_map_ ? EncodableValue(*recursive_class_map_) + : EncodableValue()); return list; } -AllNullableTypes AllNullableTypes::FromEncodableList(const EncodableList& list) { +AllNullableTypes AllNullableTypes::FromEncodableList( + const EncodableList& list) { AllNullableTypes decoded; auto& encodable_a_nullable_bool = list[0]; if (!encodable_a_nullable_bool.IsNull()) { @@ -1111,35 +1169,43 @@ AllNullableTypes AllNullableTypes::FromEncodableList(const EncodableList& list) } auto& encodable_a_nullable_double = list[3]; if (!encodable_a_nullable_double.IsNull()) { - decoded.set_a_nullable_double(std::get(encodable_a_nullable_double)); + decoded.set_a_nullable_double( + std::get(encodable_a_nullable_double)); } auto& encodable_a_nullable_byte_array = list[4]; if (!encodable_a_nullable_byte_array.IsNull()) { - decoded.set_a_nullable_byte_array(std::get>(encodable_a_nullable_byte_array)); + decoded.set_a_nullable_byte_array( + std::get>(encodable_a_nullable_byte_array)); } auto& encodable_a_nullable4_byte_array = list[5]; if (!encodable_a_nullable4_byte_array.IsNull()) { - decoded.set_a_nullable4_byte_array(std::get>(encodable_a_nullable4_byte_array)); + decoded.set_a_nullable4_byte_array( + std::get>(encodable_a_nullable4_byte_array)); } auto& encodable_a_nullable8_byte_array = list[6]; if (!encodable_a_nullable8_byte_array.IsNull()) { - decoded.set_a_nullable8_byte_array(std::get>(encodable_a_nullable8_byte_array)); + decoded.set_a_nullable8_byte_array( + std::get>(encodable_a_nullable8_byte_array)); } auto& encodable_a_nullable_float_array = list[7]; if (!encodable_a_nullable_float_array.IsNull()) { - decoded.set_a_nullable_float_array(std::get>(encodable_a_nullable_float_array)); + decoded.set_a_nullable_float_array( + std::get>(encodable_a_nullable_float_array)); } auto& encodable_a_nullable_enum = list[8]; if (!encodable_a_nullable_enum.IsNull()) { - decoded.set_a_nullable_enum(std::any_cast(std::get(encodable_a_nullable_enum))); + decoded.set_a_nullable_enum(std::any_cast( + std::get(encodable_a_nullable_enum))); } auto& encodable_another_nullable_enum = list[9]; if (!encodable_another_nullable_enum.IsNull()) { - decoded.set_another_nullable_enum(std::any_cast(std::get(encodable_another_nullable_enum))); + decoded.set_another_nullable_enum(std::any_cast( + std::get(encodable_another_nullable_enum))); } auto& encodable_a_nullable_string = list[10]; if (!encodable_a_nullable_string.IsNull()) { - decoded.set_a_nullable_string(std::get(encodable_a_nullable_string)); + decoded.set_a_nullable_string( + std::get(encodable_a_nullable_string)); } auto& encodable_a_nullable_object = list[11]; if (!encodable_a_nullable_object.IsNull()) { @@ -1147,7 +1213,8 @@ AllNullableTypes AllNullableTypes::FromEncodableList(const EncodableList& list) } auto& encodable_all_nullable_types = list[12]; if (!encodable_all_nullable_types.IsNull()) { - decoded.set_all_nullable_types(std::any_cast(std::get(encodable_all_nullable_types))); + decoded.set_all_nullable_types(std::any_cast( + std::get(encodable_all_nullable_types))); } auto& encodable_list = list[13]; if (!encodable_list.IsNull()) { @@ -1187,7 +1254,8 @@ AllNullableTypes AllNullableTypes::FromEncodableList(const EncodableList& list) } auto& encodable_recursive_class_list = list[22]; if (!encodable_recursive_class_list.IsNull()) { - decoded.set_recursive_class_list(std::get(encodable_recursive_class_list)); + decoded.set_recursive_class_list( + std::get(encodable_recursive_class_list)); } auto& encodable_map = list[23]; if (!encodable_map.IsNull()) { @@ -1219,13 +1287,55 @@ AllNullableTypes AllNullableTypes::FromEncodableList(const EncodableList& list) } auto& encodable_recursive_class_map = list[30]; if (!encodable_recursive_class_map.IsNull()) { - decoded.set_recursive_class_map(std::get(encodable_recursive_class_map)); + decoded.set_recursive_class_map( + std::get(encodable_recursive_class_map)); } return decoded; } bool AllNullableTypes::operator==(const AllNullableTypes& other) const { - return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && PigeonInternalDeepEquals(a_nullable_double_, other.a_nullable_double_) && PigeonInternalDeepEquals(a_nullable_byte_array_, other.a_nullable_byte_array_) && PigeonInternalDeepEquals(a_nullable4_byte_array_, other.a_nullable4_byte_array_) && PigeonInternalDeepEquals(a_nullable8_byte_array_, other.a_nullable8_byte_array_) && PigeonInternalDeepEquals(a_nullable_float_array_, other.a_nullable_float_array_) && PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && PigeonInternalDeepEquals(another_nullable_enum_, other.another_nullable_enum_) && PigeonInternalDeepEquals(a_nullable_string_, other.a_nullable_string_) && PigeonInternalDeepEquals(a_nullable_object_, other.a_nullable_object_) && PigeonInternalDeepEquals(all_nullable_types_, other.all_nullable_types_) && PigeonInternalDeepEquals(list_, other.list_) && PigeonInternalDeepEquals(string_list_, other.string_list_) && PigeonInternalDeepEquals(int_list_, other.int_list_) && PigeonInternalDeepEquals(double_list_, other.double_list_) && PigeonInternalDeepEquals(bool_list_, other.bool_list_) && PigeonInternalDeepEquals(enum_list_, other.enum_list_) && PigeonInternalDeepEquals(object_list_, other.object_list_) && PigeonInternalDeepEquals(list_list_, other.list_list_) && PigeonInternalDeepEquals(map_list_, other.map_list_) && PigeonInternalDeepEquals(recursive_class_list_, other.recursive_class_list_) && PigeonInternalDeepEquals(map_, other.map_) && PigeonInternalDeepEquals(string_map_, other.string_map_) && PigeonInternalDeepEquals(int_map_, other.int_map_) && PigeonInternalDeepEquals(enum_map_, other.enum_map_) && PigeonInternalDeepEquals(object_map_, other.object_map_) && PigeonInternalDeepEquals(list_map_, other.list_map_) && PigeonInternalDeepEquals(map_map_, other.map_map_) && PigeonInternalDeepEquals(recursive_class_map_, other.recursive_class_map_); + return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && + PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && + PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && + PigeonInternalDeepEquals(a_nullable_double_, + other.a_nullable_double_) && + PigeonInternalDeepEquals(a_nullable_byte_array_, + other.a_nullable_byte_array_) && + PigeonInternalDeepEquals(a_nullable4_byte_array_, + other.a_nullable4_byte_array_) && + PigeonInternalDeepEquals(a_nullable8_byte_array_, + other.a_nullable8_byte_array_) && + PigeonInternalDeepEquals(a_nullable_float_array_, + other.a_nullable_float_array_) && + PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && + PigeonInternalDeepEquals(another_nullable_enum_, + other.another_nullable_enum_) && + PigeonInternalDeepEquals(a_nullable_string_, + other.a_nullable_string_) && + PigeonInternalDeepEquals(a_nullable_object_, + other.a_nullable_object_) && + PigeonInternalDeepEquals(all_nullable_types_, + other.all_nullable_types_) && + PigeonInternalDeepEquals(list_, other.list_) && + PigeonInternalDeepEquals(string_list_, other.string_list_) && + PigeonInternalDeepEquals(int_list_, other.int_list_) && + PigeonInternalDeepEquals(double_list_, other.double_list_) && + PigeonInternalDeepEquals(bool_list_, other.bool_list_) && + PigeonInternalDeepEquals(enum_list_, other.enum_list_) && + PigeonInternalDeepEquals(object_list_, other.object_list_) && + PigeonInternalDeepEquals(list_list_, other.list_list_) && + PigeonInternalDeepEquals(map_list_, other.map_list_) && + PigeonInternalDeepEquals(recursive_class_list_, + other.recursive_class_list_) && + PigeonInternalDeepEquals(map_, other.map_) && + PigeonInternalDeepEquals(string_map_, other.string_map_) && + PigeonInternalDeepEquals(int_map_, other.int_map_) && + PigeonInternalDeepEquals(enum_map_, other.enum_map_) && + PigeonInternalDeepEquals(object_map_, other.object_map_) && + PigeonInternalDeepEquals(list_map_, other.list_map_) && + PigeonInternalDeepEquals(map_map_, other.map_map_) && + PigeonInternalDeepEquals(recursive_class_map_, + other.recursive_class_map_); } bool AllNullableTypes::operator!=(const AllNullableTypes& other) const { @@ -1237,68 +1347,96 @@ bool AllNullableTypes::operator!=(const AllNullableTypes& other) const { AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion() {} AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const int64_t* a_nullable_int64, - const double* a_nullable_double, - const std::vector* a_nullable_byte_array, - const std::vector* a_nullable4_byte_array, - const std::vector* a_nullable8_byte_array, - const std::vector* a_nullable_float_array, - const AnEnum* a_nullable_enum, - const AnotherEnum* another_nullable_enum, - const std::string* a_nullable_string, - const EncodableValue* a_nullable_object, - const EncodableList* list, - const EncodableList* string_list, - const EncodableList* int_list, - const EncodableList* double_list, - const EncodableList* bool_list, - const EncodableList* enum_list, - const EncodableList* object_list, - const EncodableList* list_list, - const EncodableList* map_list, - const EncodableMap* map, - const EncodableMap* string_map, - const EncodableMap* int_map, - const EncodableMap* enum_map, - const EncodableMap* object_map, - const EncodableMap* list_map, - const EncodableMap* map_map) - : a_nullable_bool_(a_nullable_bool ? std::optional(*a_nullable_bool) : std::nullopt), - a_nullable_int_(a_nullable_int ? std::optional(*a_nullable_int) : std::nullopt), - a_nullable_int64_(a_nullable_int64 ? std::optional(*a_nullable_int64) : std::nullopt), - a_nullable_double_(a_nullable_double ? std::optional(*a_nullable_double) : std::nullopt), - a_nullable_byte_array_(a_nullable_byte_array ? std::optional>(*a_nullable_byte_array) : std::nullopt), - a_nullable4_byte_array_(a_nullable4_byte_array ? std::optional>(*a_nullable4_byte_array) : std::nullopt), - a_nullable8_byte_array_(a_nullable8_byte_array ? std::optional>(*a_nullable8_byte_array) : std::nullopt), - a_nullable_float_array_(a_nullable_float_array ? std::optional>(*a_nullable_float_array) : std::nullopt), - a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) : std::nullopt), - another_nullable_enum_(another_nullable_enum ? std::optional(*another_nullable_enum) : std::nullopt), - a_nullable_string_(a_nullable_string ? std::optional(*a_nullable_string) : std::nullopt), - a_nullable_object_(a_nullable_object ? std::optional(*a_nullable_object) : std::nullopt), - list_(list ? std::optional(*list) : std::nullopt), - string_list_(string_list ? std::optional(*string_list) : std::nullopt), - int_list_(int_list ? std::optional(*int_list) : std::nullopt), - double_list_(double_list ? std::optional(*double_list) : std::nullopt), - bool_list_(bool_list ? std::optional(*bool_list) : std::nullopt), - enum_list_(enum_list ? std::optional(*enum_list) : std::nullopt), - object_list_(object_list ? std::optional(*object_list) : std::nullopt), - list_list_(list_list ? std::optional(*list_list) : std::nullopt), - map_list_(map_list ? std::optional(*map_list) : std::nullopt), - map_(map ? std::optional(*map) : std::nullopt), - string_map_(string_map ? std::optional(*string_map) : std::nullopt), - int_map_(int_map ? std::optional(*int_map) : std::nullopt), - enum_map_(enum_map ? std::optional(*enum_map) : std::nullopt), - object_map_(object_map ? std::optional(*object_map) : std::nullopt), - list_map_(list_map ? std::optional(*list_map) : std::nullopt), - map_map_(map_map ? std::optional(*map_map) : std::nullopt) {} + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const int64_t* a_nullable_int64, const double* a_nullable_double, + const std::vector* a_nullable_byte_array, + const std::vector* a_nullable4_byte_array, + const std::vector* a_nullable8_byte_array, + const std::vector* a_nullable_float_array, + const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, + const EncodableValue* a_nullable_object, const EncodableList* list, + const EncodableList* string_list, const EncodableList* int_list, + const EncodableList* double_list, const EncodableList* bool_list, + const EncodableList* enum_list, const EncodableList* object_list, + const EncodableList* list_list, const EncodableList* map_list, + const EncodableMap* map, const EncodableMap* string_map, + const EncodableMap* int_map, const EncodableMap* enum_map, + const EncodableMap* object_map, const EncodableMap* list_map, + const EncodableMap* map_map) + : a_nullable_bool_(a_nullable_bool ? std::optional(*a_nullable_bool) + : std::nullopt), + a_nullable_int_(a_nullable_int ? std::optional(*a_nullable_int) + : std::nullopt), + a_nullable_int64_(a_nullable_int64 + ? std::optional(*a_nullable_int64) + : std::nullopt), + a_nullable_double_(a_nullable_double + ? std::optional(*a_nullable_double) + : std::nullopt), + a_nullable_byte_array_( + a_nullable_byte_array + ? std::optional>(*a_nullable_byte_array) + : std::nullopt), + a_nullable4_byte_array_( + a_nullable4_byte_array + ? std::optional>(*a_nullable4_byte_array) + : std::nullopt), + a_nullable8_byte_array_( + a_nullable8_byte_array + ? std::optional>(*a_nullable8_byte_array) + : std::nullopt), + a_nullable_float_array_( + a_nullable_float_array + ? std::optional>(*a_nullable_float_array) + : std::nullopt), + a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) + : std::nullopt), + another_nullable_enum_(another_nullable_enum ? std::optional( + *another_nullable_enum) + : std::nullopt), + a_nullable_string_(a_nullable_string + ? std::optional(*a_nullable_string) + : std::nullopt), + a_nullable_object_(a_nullable_object + ? std::optional(*a_nullable_object) + : std::nullopt), + list_(list ? std::optional(*list) : std::nullopt), + string_list_(string_list ? std::optional(*string_list) + : std::nullopt), + int_list_(int_list ? std::optional(*int_list) + : std::nullopt), + double_list_(double_list ? std::optional(*double_list) + : std::nullopt), + bool_list_(bool_list ? std::optional(*bool_list) + : std::nullopt), + enum_list_(enum_list ? std::optional(*enum_list) + : std::nullopt), + object_list_(object_list ? std::optional(*object_list) + : std::nullopt), + list_list_(list_list ? std::optional(*list_list) + : std::nullopt), + map_list_(map_list ? std::optional(*map_list) + : std::nullopt), + map_(map ? std::optional(*map) : std::nullopt), + string_map_(string_map ? std::optional(*string_map) + : std::nullopt), + int_map_(int_map ? std::optional(*int_map) : std::nullopt), + enum_map_(enum_map ? std::optional(*enum_map) + : std::nullopt), + object_map_(object_map ? std::optional(*object_map) + : std::nullopt), + list_map_(list_map ? std::optional(*list_map) + : std::nullopt), + map_map_(map_map ? std::optional(*map_map) : std::nullopt) { +} const bool* AllNullableTypesWithoutRecursion::a_nullable_bool() const { return a_nullable_bool_ ? &(*a_nullable_bool_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_bool(const bool* value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_bool( + const bool* value_arg) { a_nullable_bool_ = value_arg ? std::optional(*value_arg) : std::nullopt; } @@ -1306,267 +1444,311 @@ void AllNullableTypesWithoutRecursion::set_a_nullable_bool(bool value_arg) { a_nullable_bool_ = value_arg; } - const int64_t* AllNullableTypesWithoutRecursion::a_nullable_int() const { return a_nullable_int_ ? &(*a_nullable_int_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_int(const int64_t* value_arg) { - a_nullable_int_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_int( + const int64_t* value_arg) { + a_nullable_int_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypesWithoutRecursion::set_a_nullable_int(int64_t value_arg) { a_nullable_int_ = value_arg; } - const int64_t* AllNullableTypesWithoutRecursion::a_nullable_int64() const { return a_nullable_int64_ ? &(*a_nullable_int64_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_int64(const int64_t* value_arg) { - a_nullable_int64_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_int64( + const int64_t* value_arg) { + a_nullable_int64_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypesWithoutRecursion::set_a_nullable_int64(int64_t value_arg) { a_nullable_int64_ = value_arg; } - const double* AllNullableTypesWithoutRecursion::a_nullable_double() const { return a_nullable_double_ ? &(*a_nullable_double_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_double(const double* value_arg) { - a_nullable_double_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_double( + const double* value_arg) { + a_nullable_double_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllNullableTypesWithoutRecursion::set_a_nullable_double(double value_arg) { a_nullable_double_ = value_arg; } - -const std::vector* AllNullableTypesWithoutRecursion::a_nullable_byte_array() const { +const std::vector* +AllNullableTypesWithoutRecursion::a_nullable_byte_array() const { return a_nullable_byte_array_ ? &(*a_nullable_byte_array_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_byte_array(const std::vector* value_arg) { - a_nullable_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_byte_array( + const std::vector* value_arg) { + a_nullable_byte_array_ = value_arg + ? std::optional>(*value_arg) + : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_byte_array(const std::vector& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_byte_array( + const std::vector& value_arg) { a_nullable_byte_array_ = value_arg; } - -const std::vector* AllNullableTypesWithoutRecursion::a_nullable4_byte_array() const { +const std::vector* +AllNullableTypesWithoutRecursion::a_nullable4_byte_array() const { return a_nullable4_byte_array_ ? &(*a_nullable4_byte_array_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable4_byte_array(const std::vector* value_arg) { - a_nullable4_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable4_byte_array( + const std::vector* value_arg) { + a_nullable4_byte_array_ = + value_arg ? std::optional>(*value_arg) + : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable4_byte_array(const std::vector& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable4_byte_array( + const std::vector& value_arg) { a_nullable4_byte_array_ = value_arg; } - -const std::vector* AllNullableTypesWithoutRecursion::a_nullable8_byte_array() const { +const std::vector* +AllNullableTypesWithoutRecursion::a_nullable8_byte_array() const { return a_nullable8_byte_array_ ? &(*a_nullable8_byte_array_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable8_byte_array(const std::vector* value_arg) { - a_nullable8_byte_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable8_byte_array( + const std::vector* value_arg) { + a_nullable8_byte_array_ = + value_arg ? std::optional>(*value_arg) + : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable8_byte_array(const std::vector& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable8_byte_array( + const std::vector& value_arg) { a_nullable8_byte_array_ = value_arg; } - -const std::vector* AllNullableTypesWithoutRecursion::a_nullable_float_array() const { +const std::vector* +AllNullableTypesWithoutRecursion::a_nullable_float_array() const { return a_nullable_float_array_ ? &(*a_nullable_float_array_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_float_array(const std::vector* value_arg) { - a_nullable_float_array_ = value_arg ? std::optional>(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_float_array( + const std::vector* value_arg) { + a_nullable_float_array_ = + value_arg ? std::optional>(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_float_array(const std::vector& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_float_array( + const std::vector& value_arg) { a_nullable_float_array_ = value_arg; } - const AnEnum* AllNullableTypesWithoutRecursion::a_nullable_enum() const { return a_nullable_enum_ ? &(*a_nullable_enum_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_enum(const AnEnum* value_arg) { - a_nullable_enum_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_enum( + const AnEnum* value_arg) { + a_nullable_enum_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_enum(const AnEnum& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_enum( + const AnEnum& value_arg) { a_nullable_enum_ = value_arg; } - -const AnotherEnum* AllNullableTypesWithoutRecursion::another_nullable_enum() const { +const AnotherEnum* AllNullableTypesWithoutRecursion::another_nullable_enum() + const { return another_nullable_enum_ ? &(*another_nullable_enum_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_another_nullable_enum(const AnotherEnum* value_arg) { - another_nullable_enum_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_another_nullable_enum( + const AnotherEnum* value_arg) { + another_nullable_enum_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_another_nullable_enum(const AnotherEnum& value_arg) { +void AllNullableTypesWithoutRecursion::set_another_nullable_enum( + const AnotherEnum& value_arg) { another_nullable_enum_ = value_arg; } - const std::string* AllNullableTypesWithoutRecursion::a_nullable_string() const { return a_nullable_string_ ? &(*a_nullable_string_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_string(const std::string_view* value_arg) { - a_nullable_string_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_string( + const std::string_view* value_arg) { + a_nullable_string_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_string(std::string_view value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_string( + std::string_view value_arg) { a_nullable_string_ = value_arg; } - -const EncodableValue* AllNullableTypesWithoutRecursion::a_nullable_object() const { +const EncodableValue* AllNullableTypesWithoutRecursion::a_nullable_object() + const { return a_nullable_object_ ? &(*a_nullable_object_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_a_nullable_object(const EncodableValue* value_arg) { - a_nullable_object_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_a_nullable_object( + const EncodableValue* value_arg) { + a_nullable_object_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_a_nullable_object(const EncodableValue& value_arg) { +void AllNullableTypesWithoutRecursion::set_a_nullable_object( + const EncodableValue& value_arg) { a_nullable_object_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::list() const { return list_ ? &(*list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_list(const EncodableList* value_arg) { +void AllNullableTypesWithoutRecursion::set_list( + const EncodableList* value_arg) { list_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_list( + const EncodableList& value_arg) { list_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::string_list() const { return string_list_ ? &(*string_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_string_list(const EncodableList* value_arg) { - string_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_string_list( + const EncodableList* value_arg) { + string_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_string_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_string_list( + const EncodableList& value_arg) { string_list_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::int_list() const { return int_list_ ? &(*int_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_int_list(const EncodableList* value_arg) { - int_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_int_list( + const EncodableList* value_arg) { + int_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_int_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_int_list( + const EncodableList& value_arg) { int_list_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::double_list() const { return double_list_ ? &(*double_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_double_list(const EncodableList* value_arg) { - double_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_double_list( + const EncodableList* value_arg) { + double_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_double_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_double_list( + const EncodableList& value_arg) { double_list_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::bool_list() const { return bool_list_ ? &(*bool_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_bool_list(const EncodableList* value_arg) { - bool_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_bool_list( + const EncodableList* value_arg) { + bool_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_bool_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_bool_list( + const EncodableList& value_arg) { bool_list_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::enum_list() const { return enum_list_ ? &(*enum_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_enum_list(const EncodableList* value_arg) { - enum_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_enum_list( + const EncodableList* value_arg) { + enum_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_enum_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_enum_list( + const EncodableList& value_arg) { enum_list_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::object_list() const { return object_list_ ? &(*object_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_object_list(const EncodableList* value_arg) { - object_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_object_list( + const EncodableList* value_arg) { + object_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_object_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_object_list( + const EncodableList& value_arg) { object_list_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::list_list() const { return list_list_ ? &(*list_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_list_list(const EncodableList* value_arg) { - list_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_list_list( + const EncodableList* value_arg) { + list_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_list_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_list_list( + const EncodableList& value_arg) { list_list_ = value_arg; } - const EncodableList* AllNullableTypesWithoutRecursion::map_list() const { return map_list_ ? &(*map_list_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_map_list(const EncodableList* value_arg) { - map_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_map_list( + const EncodableList* value_arg) { + map_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_map_list(const EncodableList& value_arg) { +void AllNullableTypesWithoutRecursion::set_map_list( + const EncodableList& value_arg) { map_list_ = value_arg; } - const EncodableMap* AllNullableTypesWithoutRecursion::map() const { return map_ ? &(*map_) : nullptr; } @@ -1579,107 +1761,135 @@ void AllNullableTypesWithoutRecursion::set_map(const EncodableMap& value_arg) { map_ = value_arg; } - const EncodableMap* AllNullableTypesWithoutRecursion::string_map() const { return string_map_ ? &(*string_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_string_map(const EncodableMap* value_arg) { - string_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_string_map( + const EncodableMap* value_arg) { + string_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_string_map(const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_string_map( + const EncodableMap& value_arg) { string_map_ = value_arg; } - const EncodableMap* AllNullableTypesWithoutRecursion::int_map() const { return int_map_ ? &(*int_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_int_map(const EncodableMap* value_arg) { +void AllNullableTypesWithoutRecursion::set_int_map( + const EncodableMap* value_arg) { int_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_int_map(const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_int_map( + const EncodableMap& value_arg) { int_map_ = value_arg; } - const EncodableMap* AllNullableTypesWithoutRecursion::enum_map() const { return enum_map_ ? &(*enum_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_enum_map(const EncodableMap* value_arg) { - enum_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_enum_map( + const EncodableMap* value_arg) { + enum_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_enum_map(const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_enum_map( + const EncodableMap& value_arg) { enum_map_ = value_arg; } - const EncodableMap* AllNullableTypesWithoutRecursion::object_map() const { return object_map_ ? &(*object_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_object_map(const EncodableMap* value_arg) { - object_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_object_map( + const EncodableMap* value_arg) { + object_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_object_map(const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_object_map( + const EncodableMap& value_arg) { object_map_ = value_arg; } - const EncodableMap* AllNullableTypesWithoutRecursion::list_map() const { return list_map_ ? &(*list_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_list_map(const EncodableMap* value_arg) { - list_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllNullableTypesWithoutRecursion::set_list_map( + const EncodableMap* value_arg) { + list_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_list_map(const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_list_map( + const EncodableMap& value_arg) { list_map_ = value_arg; } - const EncodableMap* AllNullableTypesWithoutRecursion::map_map() const { return map_map_ ? &(*map_map_) : nullptr; } -void AllNullableTypesWithoutRecursion::set_map_map(const EncodableMap* value_arg) { +void AllNullableTypesWithoutRecursion::set_map_map( + const EncodableMap* value_arg) { map_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllNullableTypesWithoutRecursion::set_map_map(const EncodableMap& value_arg) { +void AllNullableTypesWithoutRecursion::set_map_map( + const EncodableMap& value_arg) { map_map_ = value_arg; } - EncodableList AllNullableTypesWithoutRecursion::ToEncodableList() const { EncodableList list; list.reserve(28); - list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) : EncodableValue()); - list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) : EncodableValue()); - list.push_back(a_nullable_int64_ ? EncodableValue(*a_nullable_int64_) : EncodableValue()); - list.push_back(a_nullable_double_ ? EncodableValue(*a_nullable_double_) : EncodableValue()); - list.push_back(a_nullable_byte_array_ ? EncodableValue(*a_nullable_byte_array_) : EncodableValue()); - list.push_back(a_nullable4_byte_array_ ? EncodableValue(*a_nullable4_byte_array_) : EncodableValue()); - list.push_back(a_nullable8_byte_array_ ? EncodableValue(*a_nullable8_byte_array_) : EncodableValue()); - list.push_back(a_nullable_float_array_ ? EncodableValue(*a_nullable_float_array_) : EncodableValue()); - list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) : EncodableValue()); - list.push_back(another_nullable_enum_ ? CustomEncodableValue(*another_nullable_enum_) : EncodableValue()); - list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) : EncodableValue()); + list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) + : EncodableValue()); + list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) + : EncodableValue()); + list.push_back(a_nullable_int64_ ? EncodableValue(*a_nullable_int64_) + : EncodableValue()); + list.push_back(a_nullable_double_ ? EncodableValue(*a_nullable_double_) + : EncodableValue()); + list.push_back(a_nullable_byte_array_ + ? EncodableValue(*a_nullable_byte_array_) + : EncodableValue()); + list.push_back(a_nullable4_byte_array_ + ? EncodableValue(*a_nullable4_byte_array_) + : EncodableValue()); + list.push_back(a_nullable8_byte_array_ + ? EncodableValue(*a_nullable8_byte_array_) + : EncodableValue()); + list.push_back(a_nullable_float_array_ + ? EncodableValue(*a_nullable_float_array_) + : EncodableValue()); + list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) + : EncodableValue()); + list.push_back(another_nullable_enum_ + ? CustomEncodableValue(*another_nullable_enum_) + : EncodableValue()); + list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) + : EncodableValue()); list.push_back(a_nullable_object_ ? *a_nullable_object_ : EncodableValue()); list.push_back(list_ ? EncodableValue(*list_) : EncodableValue()); - list.push_back(string_list_ ? EncodableValue(*string_list_) : EncodableValue()); + list.push_back(string_list_ ? EncodableValue(*string_list_) + : EncodableValue()); list.push_back(int_list_ ? EncodableValue(*int_list_) : EncodableValue()); - list.push_back(double_list_ ? EncodableValue(*double_list_) : EncodableValue()); + list.push_back(double_list_ ? EncodableValue(*double_list_) + : EncodableValue()); list.push_back(bool_list_ ? EncodableValue(*bool_list_) : EncodableValue()); list.push_back(enum_list_ ? EncodableValue(*enum_list_) : EncodableValue()); - list.push_back(object_list_ ? EncodableValue(*object_list_) : EncodableValue()); + list.push_back(object_list_ ? EncodableValue(*object_list_) + : EncodableValue()); list.push_back(list_list_ ? EncodableValue(*list_list_) : EncodableValue()); list.push_back(map_list_ ? EncodableValue(*map_list_) : EncodableValue()); list.push_back(map_ ? EncodableValue(*map_) : EncodableValue()); @@ -1692,7 +1902,8 @@ EncodableList AllNullableTypesWithoutRecursion::ToEncodableList() const { return list; } -AllNullableTypesWithoutRecursion AllNullableTypesWithoutRecursion::FromEncodableList(const EncodableList& list) { +AllNullableTypesWithoutRecursion +AllNullableTypesWithoutRecursion::FromEncodableList(const EncodableList& list) { AllNullableTypesWithoutRecursion decoded; auto& encodable_a_nullable_bool = list[0]; if (!encodable_a_nullable_bool.IsNull()) { @@ -1708,35 +1919,43 @@ AllNullableTypesWithoutRecursion AllNullableTypesWithoutRecursion::FromEncodable } auto& encodable_a_nullable_double = list[3]; if (!encodable_a_nullable_double.IsNull()) { - decoded.set_a_nullable_double(std::get(encodable_a_nullable_double)); + decoded.set_a_nullable_double( + std::get(encodable_a_nullable_double)); } auto& encodable_a_nullable_byte_array = list[4]; if (!encodable_a_nullable_byte_array.IsNull()) { - decoded.set_a_nullable_byte_array(std::get>(encodable_a_nullable_byte_array)); + decoded.set_a_nullable_byte_array( + std::get>(encodable_a_nullable_byte_array)); } auto& encodable_a_nullable4_byte_array = list[5]; if (!encodable_a_nullable4_byte_array.IsNull()) { - decoded.set_a_nullable4_byte_array(std::get>(encodable_a_nullable4_byte_array)); + decoded.set_a_nullable4_byte_array( + std::get>(encodable_a_nullable4_byte_array)); } auto& encodable_a_nullable8_byte_array = list[6]; if (!encodable_a_nullable8_byte_array.IsNull()) { - decoded.set_a_nullable8_byte_array(std::get>(encodable_a_nullable8_byte_array)); + decoded.set_a_nullable8_byte_array( + std::get>(encodable_a_nullable8_byte_array)); } auto& encodable_a_nullable_float_array = list[7]; if (!encodable_a_nullable_float_array.IsNull()) { - decoded.set_a_nullable_float_array(std::get>(encodable_a_nullable_float_array)); + decoded.set_a_nullable_float_array( + std::get>(encodable_a_nullable_float_array)); } auto& encodable_a_nullable_enum = list[8]; if (!encodable_a_nullable_enum.IsNull()) { - decoded.set_a_nullable_enum(std::any_cast(std::get(encodable_a_nullable_enum))); + decoded.set_a_nullable_enum(std::any_cast( + std::get(encodable_a_nullable_enum))); } auto& encodable_another_nullable_enum = list[9]; if (!encodable_another_nullable_enum.IsNull()) { - decoded.set_another_nullable_enum(std::any_cast(std::get(encodable_another_nullable_enum))); + decoded.set_another_nullable_enum(std::any_cast( + std::get(encodable_another_nullable_enum))); } auto& encodable_a_nullable_string = list[10]; if (!encodable_a_nullable_string.IsNull()) { - decoded.set_a_nullable_string(std::get(encodable_a_nullable_string)); + decoded.set_a_nullable_string( + std::get(encodable_a_nullable_string)); } auto& encodable_a_nullable_object = list[11]; if (!encodable_a_nullable_object.IsNull()) { @@ -1809,53 +2028,119 @@ AllNullableTypesWithoutRecursion AllNullableTypesWithoutRecursion::FromEncodable return decoded; } -bool AllNullableTypesWithoutRecursion::operator==(const AllNullableTypesWithoutRecursion& other) const { - return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && PigeonInternalDeepEquals(a_nullable_double_, other.a_nullable_double_) && PigeonInternalDeepEquals(a_nullable_byte_array_, other.a_nullable_byte_array_) && PigeonInternalDeepEquals(a_nullable4_byte_array_, other.a_nullable4_byte_array_) && PigeonInternalDeepEquals(a_nullable8_byte_array_, other.a_nullable8_byte_array_) && PigeonInternalDeepEquals(a_nullable_float_array_, other.a_nullable_float_array_) && PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && PigeonInternalDeepEquals(another_nullable_enum_, other.another_nullable_enum_) && PigeonInternalDeepEquals(a_nullable_string_, other.a_nullable_string_) && PigeonInternalDeepEquals(a_nullable_object_, other.a_nullable_object_) && PigeonInternalDeepEquals(list_, other.list_) && PigeonInternalDeepEquals(string_list_, other.string_list_) && PigeonInternalDeepEquals(int_list_, other.int_list_) && PigeonInternalDeepEquals(double_list_, other.double_list_) && PigeonInternalDeepEquals(bool_list_, other.bool_list_) && PigeonInternalDeepEquals(enum_list_, other.enum_list_) && PigeonInternalDeepEquals(object_list_, other.object_list_) && PigeonInternalDeepEquals(list_list_, other.list_list_) && PigeonInternalDeepEquals(map_list_, other.map_list_) && PigeonInternalDeepEquals(map_, other.map_) && PigeonInternalDeepEquals(string_map_, other.string_map_) && PigeonInternalDeepEquals(int_map_, other.int_map_) && PigeonInternalDeepEquals(enum_map_, other.enum_map_) && PigeonInternalDeepEquals(object_map_, other.object_map_) && PigeonInternalDeepEquals(list_map_, other.list_map_) && PigeonInternalDeepEquals(map_map_, other.map_map_); -} - -bool AllNullableTypesWithoutRecursion::operator!=(const AllNullableTypesWithoutRecursion& other) const { +bool AllNullableTypesWithoutRecursion::operator==( + const AllNullableTypesWithoutRecursion& other) const { + return PigeonInternalDeepEquals(a_nullable_bool_, other.a_nullable_bool_) && + PigeonInternalDeepEquals(a_nullable_int_, other.a_nullable_int_) && + PigeonInternalDeepEquals(a_nullable_int64_, other.a_nullable_int64_) && + PigeonInternalDeepEquals(a_nullable_double_, + other.a_nullable_double_) && + PigeonInternalDeepEquals(a_nullable_byte_array_, + other.a_nullable_byte_array_) && + PigeonInternalDeepEquals(a_nullable4_byte_array_, + other.a_nullable4_byte_array_) && + PigeonInternalDeepEquals(a_nullable8_byte_array_, + other.a_nullable8_byte_array_) && + PigeonInternalDeepEquals(a_nullable_float_array_, + other.a_nullable_float_array_) && + PigeonInternalDeepEquals(a_nullable_enum_, other.a_nullable_enum_) && + PigeonInternalDeepEquals(another_nullable_enum_, + other.another_nullable_enum_) && + PigeonInternalDeepEquals(a_nullable_string_, + other.a_nullable_string_) && + PigeonInternalDeepEquals(a_nullable_object_, + other.a_nullable_object_) && + PigeonInternalDeepEquals(list_, other.list_) && + PigeonInternalDeepEquals(string_list_, other.string_list_) && + PigeonInternalDeepEquals(int_list_, other.int_list_) && + PigeonInternalDeepEquals(double_list_, other.double_list_) && + PigeonInternalDeepEquals(bool_list_, other.bool_list_) && + PigeonInternalDeepEquals(enum_list_, other.enum_list_) && + PigeonInternalDeepEquals(object_list_, other.object_list_) && + PigeonInternalDeepEquals(list_list_, other.list_list_) && + PigeonInternalDeepEquals(map_list_, other.map_list_) && + PigeonInternalDeepEquals(map_, other.map_) && + PigeonInternalDeepEquals(string_map_, other.string_map_) && + PigeonInternalDeepEquals(int_map_, other.int_map_) && + PigeonInternalDeepEquals(enum_map_, other.enum_map_) && + PigeonInternalDeepEquals(object_map_, other.object_map_) && + PigeonInternalDeepEquals(list_map_, other.list_map_) && + PigeonInternalDeepEquals(map_map_, other.map_map_); +} + +bool AllNullableTypesWithoutRecursion::operator!=( + const AllNullableTypesWithoutRecursion& other) const { return !(*this == other); } // AllClassesWrapper -AllClassesWrapper::AllClassesWrapper( - const AllNullableTypes& all_nullable_types, - const EncodableList& class_list, - const EncodableMap& class_map) - : all_nullable_types_(std::make_unique(all_nullable_types)), - class_list_(class_list), - class_map_(class_map) {} - -AllClassesWrapper::AllClassesWrapper( - const AllNullableTypes& all_nullable_types, - const AllNullableTypesWithoutRecursion* all_nullable_types_without_recursion, - const AllTypes* all_types, - const EncodableList& class_list, - const EncodableList* nullable_class_list, - const EncodableMap& class_map, - const EncodableMap* nullable_class_map) - : all_nullable_types_(std::make_unique(all_nullable_types)), - all_nullable_types_without_recursion_(all_nullable_types_without_recursion ? std::make_unique(*all_nullable_types_without_recursion) : nullptr), - all_types_(all_types ? std::make_unique(*all_types) : nullptr), - class_list_(class_list), - nullable_class_list_(nullable_class_list ? std::optional(*nullable_class_list) : std::nullopt), - class_map_(class_map), - nullable_class_map_(nullable_class_map ? std::optional(*nullable_class_map) : std::nullopt) {} +AllClassesWrapper::AllClassesWrapper(const AllNullableTypes& all_nullable_types, + const EncodableList& class_list, + const EncodableMap& class_map) + : all_nullable_types_( + std::make_unique(all_nullable_types)), + class_list_(class_list), + class_map_(class_map) {} + +AllClassesWrapper::AllClassesWrapper(const AllNullableTypes& all_nullable_types, + const AllNullableTypesWithoutRecursion* + all_nullable_types_without_recursion, + const AllTypes* all_types, + const EncodableList& class_list, + const EncodableList* nullable_class_list, + const EncodableMap& class_map, + const EncodableMap* nullable_class_map) + : all_nullable_types_( + std::make_unique(all_nullable_types)), + all_nullable_types_without_recursion_( + all_nullable_types_without_recursion + ? std::make_unique( + *all_nullable_types_without_recursion) + : nullptr), + all_types_(all_types ? std::make_unique(*all_types) : nullptr), + class_list_(class_list), + nullable_class_list_(nullable_class_list ? std::optional( + *nullable_class_list) + : std::nullopt), + class_map_(class_map), + nullable_class_map_(nullable_class_map + ? std::optional(*nullable_class_map) + : std::nullopt) {} AllClassesWrapper::AllClassesWrapper(const AllClassesWrapper& other) - : all_nullable_types_(std::make_unique(*other.all_nullable_types_)), - all_nullable_types_without_recursion_(other.all_nullable_types_without_recursion_ ? std::make_unique(*other.all_nullable_types_without_recursion_) : nullptr), - all_types_(other.all_types_ ? std::make_unique(*other.all_types_) : nullptr), - class_list_(other.class_list_), - nullable_class_list_(other.nullable_class_list_ ? std::optional(*other.nullable_class_list_) : std::nullopt), - class_map_(other.class_map_), - nullable_class_map_(other.nullable_class_map_ ? std::optional(*other.nullable_class_map_) : std::nullopt) {} - -AllClassesWrapper& AllClassesWrapper::operator=(const AllClassesWrapper& other) { - all_nullable_types_ = std::make_unique(*other.all_nullable_types_); - all_nullable_types_without_recursion_ = other.all_nullable_types_without_recursion_ ? std::make_unique(*other.all_nullable_types_without_recursion_) : nullptr; - all_types_ = other.all_types_ ? std::make_unique(*other.all_types_) : nullptr; + : all_nullable_types_( + std::make_unique(*other.all_nullable_types_)), + all_nullable_types_without_recursion_( + other.all_nullable_types_without_recursion_ + ? std::make_unique( + *other.all_nullable_types_without_recursion_) + : nullptr), + all_types_(other.all_types_ + ? std::make_unique(*other.all_types_) + : nullptr), + class_list_(other.class_list_), + nullable_class_list_( + other.nullable_class_list_ + ? std::optional(*other.nullable_class_list_) + : std::nullopt), + class_map_(other.class_map_), + nullable_class_map_( + other.nullable_class_map_ + ? std::optional(*other.nullable_class_map_) + : std::nullopt) {} + +AllClassesWrapper& AllClassesWrapper::operator=( + const AllClassesWrapper& other) { + all_nullable_types_ = + std::make_unique(*other.all_nullable_types_); + all_nullable_types_without_recursion_ = + other.all_nullable_types_without_recursion_ + ? std::make_unique( + *other.all_nullable_types_without_recursion_) + : nullptr; + all_types_ = other.all_types_ ? std::make_unique(*other.all_types_) + : nullptr; class_list_ = other.class_list_; nullable_class_list_ = other.nullable_class_list_; class_map_ = other.class_map_; @@ -1867,24 +2152,29 @@ const AllNullableTypes& AllClassesWrapper::all_nullable_types() const { return *all_nullable_types_; } -void AllClassesWrapper::set_all_nullable_types(const AllNullableTypes& value_arg) { +void AllClassesWrapper::set_all_nullable_types( + const AllNullableTypes& value_arg) { all_nullable_types_ = std::make_unique(value_arg); } - -const AllNullableTypesWithoutRecursion* AllClassesWrapper::all_nullable_types_without_recursion() const { +const AllNullableTypesWithoutRecursion* +AllClassesWrapper::all_nullable_types_without_recursion() const { return all_nullable_types_without_recursion_.get(); } -void AllClassesWrapper::set_all_nullable_types_without_recursion(const AllNullableTypesWithoutRecursion* value_arg) { - all_nullable_types_without_recursion_ = value_arg ? std::make_unique(*value_arg) : nullptr; +void AllClassesWrapper::set_all_nullable_types_without_recursion( + const AllNullableTypesWithoutRecursion* value_arg) { + all_nullable_types_without_recursion_ = + value_arg ? std::make_unique(*value_arg) + : nullptr; } -void AllClassesWrapper::set_all_nullable_types_without_recursion(const AllNullableTypesWithoutRecursion& value_arg) { - all_nullable_types_without_recursion_ = std::make_unique(value_arg); +void AllClassesWrapper::set_all_nullable_types_without_recursion( + const AllNullableTypesWithoutRecursion& value_arg) { + all_nullable_types_without_recursion_ = + std::make_unique(value_arg); } - const AllTypes* AllClassesWrapper::all_types() const { return all_types_.get(); } @@ -1897,7 +2187,6 @@ void AllClassesWrapper::set_all_types(const AllTypes& value_arg) { all_types_ = std::make_unique(value_arg); } - const EncodableList& AllClassesWrapper::class_list() const { return class_list_; } @@ -1906,81 +2195,103 @@ void AllClassesWrapper::set_class_list(const EncodableList& value_arg) { class_list_ = value_arg; } - const EncodableList* AllClassesWrapper::nullable_class_list() const { return nullable_class_list_ ? &(*nullable_class_list_) : nullptr; } -void AllClassesWrapper::set_nullable_class_list(const EncodableList* value_arg) { - nullable_class_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; +void AllClassesWrapper::set_nullable_class_list( + const EncodableList* value_arg) { + nullable_class_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } -void AllClassesWrapper::set_nullable_class_list(const EncodableList& value_arg) { +void AllClassesWrapper::set_nullable_class_list( + const EncodableList& value_arg) { nullable_class_list_ = value_arg; } - -const EncodableMap& AllClassesWrapper::class_map() const { - return class_map_; -} +const EncodableMap& AllClassesWrapper::class_map() const { return class_map_; } void AllClassesWrapper::set_class_map(const EncodableMap& value_arg) { class_map_ = value_arg; } - const EncodableMap* AllClassesWrapper::nullable_class_map() const { return nullable_class_map_ ? &(*nullable_class_map_) : nullptr; } void AllClassesWrapper::set_nullable_class_map(const EncodableMap* value_arg) { - nullable_class_map_ = value_arg ? std::optional(*value_arg) : std::nullopt; + nullable_class_map_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void AllClassesWrapper::set_nullable_class_map(const EncodableMap& value_arg) { nullable_class_map_ = value_arg; } - EncodableList AllClassesWrapper::ToEncodableList() const { EncodableList list; list.reserve(7); list.push_back(CustomEncodableValue(*all_nullable_types_)); - list.push_back(all_nullable_types_without_recursion_ ? CustomEncodableValue(*all_nullable_types_without_recursion_) : EncodableValue()); - list.push_back(all_types_ ? CustomEncodableValue(*all_types_) : EncodableValue()); + list.push_back( + all_nullable_types_without_recursion_ + ? CustomEncodableValue(*all_nullable_types_without_recursion_) + : EncodableValue()); + list.push_back(all_types_ ? CustomEncodableValue(*all_types_) + : EncodableValue()); list.push_back(EncodableValue(class_list_)); - list.push_back(nullable_class_list_ ? EncodableValue(*nullable_class_list_) : EncodableValue()); + list.push_back(nullable_class_list_ ? EncodableValue(*nullable_class_list_) + : EncodableValue()); list.push_back(EncodableValue(class_map_)); - list.push_back(nullable_class_map_ ? EncodableValue(*nullable_class_map_) : EncodableValue()); + list.push_back(nullable_class_map_ ? EncodableValue(*nullable_class_map_) + : EncodableValue()); return list; } -AllClassesWrapper AllClassesWrapper::FromEncodableList(const EncodableList& list) { - AllClassesWrapper decoded( - std::any_cast(std::get(list[0])), - std::get(list[3]), - std::get(list[5])); +AllClassesWrapper AllClassesWrapper::FromEncodableList( + const EncodableList& list) { + AllClassesWrapper decoded(std::any_cast( + std::get(list[0])), + std::get(list[3]), + std::get(list[5])); auto& encodable_all_nullable_types_without_recursion = list[1]; if (!encodable_all_nullable_types_without_recursion.IsNull()) { - decoded.set_all_nullable_types_without_recursion(std::any_cast(std::get(encodable_all_nullable_types_without_recursion))); + decoded.set_all_nullable_types_without_recursion( + std::any_cast( + std::get( + encodable_all_nullable_types_without_recursion))); } auto& encodable_all_types = list[2]; if (!encodable_all_types.IsNull()) { - decoded.set_all_types(std::any_cast(std::get(encodable_all_types))); + decoded.set_all_types(std::any_cast( + std::get(encodable_all_types))); } auto& encodable_nullable_class_list = list[4]; if (!encodable_nullable_class_list.IsNull()) { - decoded.set_nullable_class_list(std::get(encodable_nullable_class_list)); + decoded.set_nullable_class_list( + std::get(encodable_nullable_class_list)); } auto& encodable_nullable_class_map = list[6]; if (!encodable_nullable_class_map.IsNull()) { - decoded.set_nullable_class_map(std::get(encodable_nullable_class_map)); + decoded.set_nullable_class_map( + std::get(encodable_nullable_class_map)); } return decoded; } bool AllClassesWrapper::operator==(const AllClassesWrapper& other) const { - return PigeonInternalDeepEquals(all_nullable_types_, other.all_nullable_types_) && PigeonInternalDeepEquals(all_nullable_types_without_recursion_, other.all_nullable_types_without_recursion_) && PigeonInternalDeepEquals(all_types_, other.all_types_) && PigeonInternalDeepEquals(class_list_, other.class_list_) && PigeonInternalDeepEquals(nullable_class_list_, other.nullable_class_list_) && PigeonInternalDeepEquals(class_map_, other.class_map_) && PigeonInternalDeepEquals(nullable_class_map_, other.nullable_class_map_); + return PigeonInternalDeepEquals(all_nullable_types_, + other.all_nullable_types_) && + PigeonInternalDeepEquals( + all_nullable_types_without_recursion_, + other.all_nullable_types_without_recursion_) && + PigeonInternalDeepEquals(all_types_, other.all_types_) && + PigeonInternalDeepEquals(class_list_, other.class_list_) && + PigeonInternalDeepEquals(nullable_class_list_, + other.nullable_class_list_) && + PigeonInternalDeepEquals(class_map_, other.class_map_) && + PigeonInternalDeepEquals(nullable_class_map_, + other.nullable_class_map_); } bool AllClassesWrapper::operator!=(const AllClassesWrapper& other) const { @@ -1992,21 +2303,22 @@ bool AllClassesWrapper::operator!=(const AllClassesWrapper& other) const { TestMessage::TestMessage() {} TestMessage::TestMessage(const EncodableList* test_list) - : test_list_(test_list ? std::optional(*test_list) : std::nullopt) {} + : test_list_(test_list ? std::optional(*test_list) + : std::nullopt) {} const EncodableList* TestMessage::test_list() const { return test_list_ ? &(*test_list_) : nullptr; } void TestMessage::set_test_list(const EncodableList* value_arg) { - test_list_ = value_arg ? std::optional(*value_arg) : std::nullopt; + test_list_ = + value_arg ? std::optional(*value_arg) : std::nullopt; } void TestMessage::set_test_list(const EncodableList& value_arg) { test_list_ = value_arg; } - EncodableList TestMessage::ToEncodableList() const { EncodableList list; list.reserve(1); @@ -2031,88 +2343,120 @@ bool TestMessage::operator!=(const TestMessage& other) const { return !(*this == other); } - PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( - uint8_t type, - ::flutter::ByteStreamReader* stream) const { + uint8_t type, ::flutter::ByteStreamReader* stream) const { switch (type) { case 129: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() ? EncodableValue() : CustomEncodableValue(static_cast(enum_arg_value)); - } + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue(static_cast(enum_arg_value)); + } case 130: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() ? EncodableValue() : CustomEncodableValue(static_cast(enum_arg_value)); - } + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } case 131: { - return CustomEncodableValue(UnusedClass::FromEncodableList(std::get(ReadValue(stream)))); - } + return CustomEncodableValue(UnusedClass::FromEncodableList( + std::get(ReadValue(stream)))); + } case 132: { - return CustomEncodableValue(AllTypes::FromEncodableList(std::get(ReadValue(stream)))); - } + return CustomEncodableValue(AllTypes::FromEncodableList( + std::get(ReadValue(stream)))); + } case 133: { - return CustomEncodableValue(AllNullableTypes::FromEncodableList(std::get(ReadValue(stream)))); - } + return CustomEncodableValue(AllNullableTypes::FromEncodableList( + std::get(ReadValue(stream)))); + } case 134: { - return CustomEncodableValue(AllNullableTypesWithoutRecursion::FromEncodableList(std::get(ReadValue(stream)))); - } + return CustomEncodableValue( + AllNullableTypesWithoutRecursion::FromEncodableList( + std::get(ReadValue(stream)))); + } case 135: { - return CustomEncodableValue(AllClassesWrapper::FromEncodableList(std::get(ReadValue(stream)))); - } + return CustomEncodableValue(AllClassesWrapper::FromEncodableList( + std::get(ReadValue(stream)))); + } case 136: { - return CustomEncodableValue(TestMessage::FromEncodableList(std::get(ReadValue(stream)))); - } + return CustomEncodableValue(TestMessage::FromEncodableList( + std::get(ReadValue(stream)))); + } default: return ::flutter::StandardCodecSerializer::ReadValueOfType(type, stream); - } + } } void PigeonInternalCodecSerializer::WriteValue( - const EncodableValue& value, - ::flutter::ByteStreamWriter* stream) const { - if (const CustomEncodableValue* custom_value = std::get_if(&value)) { + const EncodableValue& value, ::flutter::ByteStreamWriter* stream) const { + if (const CustomEncodableValue* custom_value = + std::get_if(&value)) { if (custom_value->type() == typeid(AnEnum)) { stream->WriteByte(129); - WriteValue(EncodableValue(static_cast(std::any_cast(*custom_value))), stream); + WriteValue(EncodableValue( + static_cast(std::any_cast(*custom_value))), + stream); return; } if (custom_value->type() == typeid(AnotherEnum)) { stream->WriteByte(130); - WriteValue(EncodableValue(static_cast(std::any_cast(*custom_value))), stream); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); return; } if (custom_value->type() == typeid(UnusedClass)) { stream->WriteByte(131); - WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); + WriteValue( + EncodableValue( + std::any_cast(*custom_value).ToEncodableList()), + stream); return; } if (custom_value->type() == typeid(AllTypes)) { stream->WriteByte(132); - WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); + WriteValue(EncodableValue( + std::any_cast(*custom_value).ToEncodableList()), + stream); return; } if (custom_value->type() == typeid(AllNullableTypes)) { stream->WriteByte(133); - WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); + WriteValue( + EncodableValue( + std::any_cast(*custom_value).ToEncodableList()), + stream); return; } if (custom_value->type() == typeid(AllNullableTypesWithoutRecursion)) { stream->WriteByte(134); - WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); + WriteValue(EncodableValue(std::any_cast( + *custom_value) + .ToEncodableList()), + stream); return; } if (custom_value->type() == typeid(AllClassesWrapper)) { stream->WriteByte(135); - WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); + WriteValue(EncodableValue(std::any_cast(*custom_value) + .ToEncodableList()), + stream); return; } if (custom_value->type() == typeid(TestMessage)) { stream->WriteByte(136); - WriteValue(EncodableValue(std::any_cast(*custom_value).ToEncodableList()), stream); + WriteValue( + EncodableValue( + std::any_cast(*custom_value).ToEncodableList()), + stream); return; } } @@ -2121,942 +2465,1250 @@ void PigeonInternalCodecSerializer::WriteValue( /// The codec used by HostIntegrationCoreApi. const ::flutter::StandardMessageCodec& HostIntegrationCoreApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance( + &PigeonInternalCodecSerializer::GetInstance()); } -// Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binary_messenger`. -void HostIntegrationCoreApi::SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api) { +// Sets up an instance of `HostIntegrationCoreApi` to handle messages through +// the `binary_messenger`. +void HostIntegrationCoreApi::SetUp(::flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api) { HostIntegrationCoreApi::SetUp(binary_messenger, api, ""); } -void HostIntegrationCoreApi::SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api, - const std::string& message_channel_suffix) { - const std::string prepended_suffix = message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : ""; +void HostIntegrationCoreApi::SetUp(::flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api, + const std::string& message_channel_suffix) { + const std::string prepended_suffix = + message_channel_suffix.length() > 0 + ? std::string(".") + message_channel_suffix + : ""; + { + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.noop" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + std::optional output = api->Noop(); + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - std::optional output = api->Noop(); - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAllTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + if (encodable_everything_arg.IsNull()) { + reply(WrapError("everything_arg unexpectedly null.")); + return; + } + const auto& everything_arg = std::any_cast( + std::get(encodable_everything_arg)); + ErrorOr output = api->EchoAllTypes(everything_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - if (encodable_everything_arg.IsNull()) { - reply(WrapError("everything_arg unexpectedly null.")); - return; - } - const auto& everything_arg = std::any_cast(std::get(encodable_everything_arg)); - ErrorOr output = api->EchoAllTypes(everything_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.throwError" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + ErrorOr> output = api->ThrowError(); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.throwErrorFromVoid" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - ErrorOr> output = api->ThrowError(); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + std::optional output = api->ThrowErrorFromVoid(); + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - std::optional output = api->ThrowErrorFromVoid(); - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.throwFlutterError" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + ErrorOr> output = + api->ThrowFlutterError(); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - ErrorOr> output = api->ThrowFlutterError(); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoInt" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + if (encodable_an_int_arg.IsNull()) { + reply(WrapError("an_int_arg unexpectedly null.")); + return; + } + const int64_t an_int_arg = encodable_an_int_arg.LongValue(); + ErrorOr output = api->EchoInt(an_int_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); - return; - } - const int64_t an_int_arg = encodable_an_int_arg.LongValue(); - ErrorOr output = api->EchoInt(an_int_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoDouble" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + if (encodable_a_double_arg.IsNull()) { + reply(WrapError("a_double_arg unexpectedly null.")); + return; + } + const auto& a_double_arg = + std::get(encodable_a_double_arg); + ErrorOr output = api->EchoDouble(a_double_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); - return; - } - const auto& a_double_arg = std::get(encodable_a_double_arg); - ErrorOr output = api->EchoDouble(a_double_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoBool" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + if (encodable_a_bool_arg.IsNull()) { + reply(WrapError("a_bool_arg unexpectedly null.")); + return; + } + const auto& a_bool_arg = std::get(encodable_a_bool_arg); + ErrorOr output = api->EchoBool(a_bool_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - if (encodable_a_bool_arg.IsNull()) { - reply(WrapError("a_bool_arg unexpectedly null.")); - return; - } - const auto& a_bool_arg = std::get(encodable_a_bool_arg); - ErrorOr output = api->EchoBool(a_bool_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = + std::get(encodable_a_string_arg); + ErrorOr output = api->EchoString(a_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = std::get(encodable_a_string_arg); - ErrorOr output = api->EchoString(a_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoUint8List" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_uint8_list_arg = args.at(0); + if (encodable_a_uint8_list_arg.IsNull()) { + reply(WrapError("a_uint8_list_arg unexpectedly null.")); + return; + } + const auto& a_uint8_list_arg = + std::get>(encodable_a_uint8_list_arg); + ErrorOr> output = + api->EchoUint8List(a_uint8_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_uint8_list_arg = args.at(0); - if (encodable_a_uint8_list_arg.IsNull()) { - reply(WrapError("a_uint8_list_arg unexpectedly null.")); - return; - } - const auto& a_uint8_list_arg = std::get>(encodable_a_uint8_list_arg); - ErrorOr> output = api->EchoUint8List(a_uint8_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoObject" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_object_arg = args.at(0); + if (encodable_an_object_arg.IsNull()) { + reply(WrapError("an_object_arg unexpectedly null.")); + return; + } + const auto& an_object_arg = encodable_an_object_arg; + ErrorOr output = api->EchoObject(an_object_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_object_arg = args.at(0); - if (encodable_an_object_arg.IsNull()) { - reply(WrapError("an_object_arg unexpectedly null.")); - return; - } - const auto& an_object_arg = encodable_an_object_arg; - ErrorOr output = api->EchoObject(an_object_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + if (encodable_list_arg.IsNull()) { + reply(WrapError("list_arg unexpectedly null.")); + return; + } + const auto& list_arg = + std::get(encodable_list_arg); + ErrorOr output = api->EchoList(list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - if (encodable_list_arg.IsNull()) { - reply(WrapError("list_arg unexpectedly null.")); - return; - } - const auto& list_arg = std::get(encodable_list_arg); - ErrorOr output = api->EchoList(list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = + std::get(encodable_enum_list_arg); + ErrorOr output = api->EchoEnumList(enum_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = std::get(encodable_enum_list_arg); - ErrorOr output = api->EchoEnumList(enum_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = + std::get(encodable_class_list_arg); + ErrorOr output = + api->EchoClassList(class_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = std::get(encodable_class_list_arg); - ErrorOr output = api->EchoClassList(class_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNonNullEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = + std::get(encodable_enum_list_arg); + ErrorOr output = + api->EchoNonNullEnumList(enum_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = std::get(encodable_enum_list_arg); - ErrorOr output = api->EchoNonNullEnumList(enum_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = + std::get(encodable_class_list_arg); + ErrorOr output = + api->EchoNonNullClassList(class_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = std::get(encodable_class_list_arg); - ErrorOr output = api->EchoNonNullClassList(class_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + if (encodable_map_arg.IsNull()) { + reply(WrapError("map_arg unexpectedly null.")); + return; + } + const auto& map_arg = std::get(encodable_map_arg); + ErrorOr output = api->EchoMap(map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - if (encodable_map_arg.IsNull()) { - reply(WrapError("map_arg unexpectedly null.")); - return; - } - const auto& map_arg = std::get(encodable_map_arg); - ErrorOr output = api->EchoMap(map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = + std::get(encodable_string_map_arg); + ErrorOr output = api->EchoStringMap(string_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = std::get(encodable_string_map_arg); - ErrorOr output = api->EchoStringMap(string_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = + std::get(encodable_int_map_arg); + ErrorOr output = api->EchoIntMap(int_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = std::get(encodable_int_map_arg); - ErrorOr output = api->EchoIntMap(int_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = + std::get(encodable_enum_map_arg); + ErrorOr output = api->EchoEnumMap(enum_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = std::get(encodable_enum_map_arg); - ErrorOr output = api->EchoEnumMap(enum_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = + std::get(encodable_class_map_arg); + ErrorOr output = api->EchoClassMap(class_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = std::get(encodable_class_map_arg); - ErrorOr output = api->EchoClassMap(class_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNonNullStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = + std::get(encodable_string_map_arg); + ErrorOr output = + api->EchoNonNullStringMap(string_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = std::get(encodable_string_map_arg); - ErrorOr output = api->EchoNonNullStringMap(string_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNonNullIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = + std::get(encodable_int_map_arg); + ErrorOr output = + api->EchoNonNullIntMap(int_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = std::get(encodable_int_map_arg); - ErrorOr output = api->EchoNonNullIntMap(int_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNonNullEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = + std::get(encodable_enum_map_arg); + ErrorOr output = + api->EchoNonNullEnumMap(enum_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = std::get(encodable_enum_map_arg); - ErrorOr output = api->EchoNonNullEnumMap(enum_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNonNullClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = + std::get(encodable_class_map_arg); + ErrorOr output = + api->EchoNonNullClassMap(class_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNonNullClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = std::get(encodable_class_map_arg); - ErrorOr output = api->EchoNonNullClassMap(class_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoClassWrapper" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_wrapper_arg = args.at(0); + if (encodable_wrapper_arg.IsNull()) { + reply(WrapError("wrapper_arg unexpectedly null.")); + return; + } + const auto& wrapper_arg = std::any_cast( + std::get(encodable_wrapper_arg)); + ErrorOr output = + api->EchoClassWrapper(wrapper_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_wrapper_arg = args.at(0); - if (encodable_wrapper_arg.IsNull()) { - reply(WrapError("wrapper_arg unexpectedly null.")); - return; - } - const auto& wrapper_arg = std::any_cast(std::get(encodable_wrapper_arg)); - ErrorOr output = api->EchoClassWrapper(wrapper_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + if (encodable_an_enum_arg.IsNull()) { + reply(WrapError("an_enum_arg unexpectedly null.")); + return; + } + const auto& an_enum_arg = std::any_cast( + std::get(encodable_an_enum_arg)); + ErrorOr output = api->EchoEnum(an_enum_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - if (encodable_an_enum_arg.IsNull()) { - reply(WrapError("an_enum_arg unexpectedly null.")); - return; - } - const auto& an_enum_arg = std::any_cast(std::get(encodable_an_enum_arg)); - ErrorOr output = api->EchoEnum(an_enum_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAnotherEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); + return; + } + const auto& another_enum_arg = std::any_cast( + std::get(encodable_another_enum_arg)); + ErrorOr output = + api->EchoAnotherEnum(another_enum_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - if (encodable_another_enum_arg.IsNull()) { - reply(WrapError("another_enum_arg unexpectedly null.")); - return; - } - const auto& another_enum_arg = std::any_cast(std::get(encodable_another_enum_arg)); - ErrorOr output = api->EchoAnotherEnum(another_enum_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNamedDefaultString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = + std::get(encodable_a_string_arg); + ErrorOr output = + api->EchoNamedDefaultString(a_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = std::get(encodable_a_string_arg); - ErrorOr output = api->EchoNamedDefaultString(a_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoOptionalDefaultDouble" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + if (encodable_a_double_arg.IsNull()) { + reply(WrapError("a_double_arg unexpectedly null.")); + return; + } + const auto& a_double_arg = + std::get(encodable_a_double_arg); + ErrorOr output = + api->EchoOptionalDefaultDouble(a_double_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); - return; - } - const auto& a_double_arg = std::get(encodable_a_double_arg); - ErrorOr output = api->EchoOptionalDefaultDouble(a_double_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoRequiredInt" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + if (encodable_an_int_arg.IsNull()) { + reply(WrapError("an_int_arg unexpectedly null.")); + return; + } + const int64_t an_int_arg = encodable_an_int_arg.LongValue(); + ErrorOr output = api->EchoRequiredInt(an_int_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); - return; - } - const int64_t an_int_arg = encodable_an_int_arg.LongValue(); - ErrorOr output = api->EchoRequiredInt(an_int_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "areAllNullableTypesEqual" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_arg = args.at(0); + if (encodable_a_arg.IsNull()) { + reply(WrapError("a_arg unexpectedly null.")); + return; + } + const auto& a_arg = std::any_cast( + std::get(encodable_a_arg)); + const auto& encodable_b_arg = args.at(1); + if (encodable_b_arg.IsNull()) { + reply(WrapError("b_arg unexpectedly null.")); + return; + } + const auto& b_arg = std::any_cast( + std::get(encodable_b_arg)); + ErrorOr output = + api->AreAllNullableTypesEqual(a_arg, b_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.areAllNullableTypesEqual" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_arg = args.at(0); - if (encodable_a_arg.IsNull()) { - reply(WrapError("a_arg unexpectedly null.")); - return; - } - const auto& a_arg = std::any_cast(std::get(encodable_a_arg)); - const auto& encodable_b_arg = args.at(1); - if (encodable_b_arg.IsNull()) { - reply(WrapError("b_arg unexpectedly null.")); - return; - } - const auto& b_arg = std::any_cast(std::get(encodable_b_arg)); - ErrorOr output = api->AreAllNullableTypesEqual(a_arg, b_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "getAllNullableTypesHash" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_value_arg = args.at(0); + if (encodable_value_arg.IsNull()) { + reply(WrapError("value_arg unexpectedly null.")); + return; + } + const auto& value_arg = std::any_cast( + std::get(encodable_value_arg)); + ErrorOr output = api->GetAllNullableTypesHash(value_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesHash" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_value_arg = args.at(0); - if (encodable_value_arg.IsNull()) { - reply(WrapError("value_arg unexpectedly null.")); - return; - } - const auto& value_arg = std::any_cast(std::get(encodable_value_arg)); - ErrorOr output = api->GetAllNullableTypesHash(value_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAllNullableTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = + encodable_everything_arg.IsNull() + ? nullptr + : &(std::any_cast( + std::get( + encodable_everything_arg))); + ErrorOr> output = + api->EchoAllNullableTypes(everything_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAllNullableTypesWithoutRecursion" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + channel.SetMessageHandler([api](const EncodableValue& message, + const ::flutter::MessageReply< + EncodableValue>& reply) { try { const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); - ErrorOr> output = api->EchoAllNullableTypes(everything_arg); + const auto* everything_arg = + encodable_everything_arg.IsNull() + ? nullptr + : &(std::any_cast( + std::get( + encodable_everything_arg))); + ErrorOr> output = + api->EchoAllNullableTypesWithoutRecursion(everything_arg); if (output.has_error()) { reply(WrapError(output.error())); return; @@ -3064,7 +3716,8 @@ void HostIntegrationCoreApi::SetUp( EncodableList wrapped; auto output_optional = std::move(output).TakeValue(); if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); + wrapped.push_back( + CustomEncodableValue(std::move(output_optional).value())); } else { wrapped.push_back(EncodableValue()); } @@ -3078,4954 +3731,6769 @@ void HostIntegrationCoreApi::SetUp( } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "extractNestedNullableString" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); - ErrorOr> output = api->EchoAllNullableTypesWithoutRecursion(everything_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_wrapper_arg = args.at(0); + if (encodable_wrapper_arg.IsNull()) { + reply(WrapError("wrapper_arg unexpectedly null.")); + return; + } + const auto& wrapper_arg = std::any_cast( + std::get(encodable_wrapper_arg)); + ErrorOr> output = + api->ExtractNestedNullableString(wrapper_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_wrapper_arg = args.at(0); - if (encodable_wrapper_arg.IsNull()) { - reply(WrapError("wrapper_arg unexpectedly null.")); - return; - } - const auto& wrapper_arg = std::any_cast(std::get(encodable_wrapper_arg)); - ErrorOr> output = api->ExtractNestedNullableString(wrapper_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "createNestedNullableString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_nullable_string_arg = args.at(0); + const auto* nullable_string_arg = + std::get_if(&encodable_nullable_string_arg); + ErrorOr output = + api->CreateNestedNullableString(nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_nullable_string_arg = args.at(0); - const auto* nullable_string_arg = std::get_if(&encodable_nullable_string_arg); - ErrorOr output = api->CreateNestedNullableString(nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "sendMultipleNullableTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = + std::get_if(&encodable_a_nullable_bool_arg); + const auto& encodable_a_nullable_int_arg = args.at(1); + const auto* a_nullable_int_arg = + std::get_if(&encodable_a_nullable_int_arg); + const auto& encodable_a_nullable_string_arg = args.at(2); + const auto* a_nullable_string_arg = + std::get_if(&encodable_a_nullable_string_arg); + ErrorOr output = api->SendMultipleNullableTypes( + a_nullable_bool_arg, a_nullable_int_arg, + a_nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); - const auto& encodable_a_nullable_int_arg = args.at(1); - const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); - const auto& encodable_a_nullable_string_arg = args.at(2); - const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); - ErrorOr output = api->SendMultipleNullableTypes(a_nullable_bool_arg, a_nullable_int_arg, a_nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); - const auto& encodable_a_nullable_int_arg = args.at(1); - const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); - const auto& encodable_a_nullable_string_arg = args.at(2); - const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); - ErrorOr output = api->SendMultipleNullableTypesWithoutRecursion(a_nullable_bool_arg, a_nullable_int_arg, a_nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_int_arg = args.at(0); - const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); - ErrorOr> output = api->EchoNullableInt(a_nullable_int_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_double_arg = args.at(0); - const auto* a_nullable_double_arg = std::get_if(&encodable_a_nullable_double_arg); - ErrorOr> output = api->EchoNullableDouble(a_nullable_double_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); - } - } - { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); - ErrorOr> output = api->EchoNullableBool(a_nullable_bool_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "sendMultipleNullableTypesWithoutRecursion" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = + std::get_if(&encodable_a_nullable_bool_arg); + const auto& encodable_a_nullable_int_arg = args.at(1); + const auto* a_nullable_int_arg = + std::get_if(&encodable_a_nullable_int_arg); + const auto& encodable_a_nullable_string_arg = args.at(2); + const auto* a_nullable_string_arg = + std::get_if(&encodable_a_nullable_string_arg); + ErrorOr output = + api->SendMultipleNullableTypesWithoutRecursion( + a_nullable_bool_arg, a_nullable_int_arg, + a_nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_string_arg = args.at(0); - const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); - ErrorOr> output = api->EchoNullableString(a_nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableInt" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_int_arg = args.at(0); + const auto* a_nullable_int_arg = + std::get_if(&encodable_a_nullable_int_arg); + ErrorOr> output = + api->EchoNullableInt(a_nullable_int_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_uint8_list_arg = args.at(0); - const auto* a_nullable_uint8_list_arg = std::get_if>(&encodable_a_nullable_uint8_list_arg); - ErrorOr>> output = api->EchoNullableUint8List(a_nullable_uint8_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableDouble" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_double_arg = args.at(0); + const auto* a_nullable_double_arg = + std::get_if(&encodable_a_nullable_double_arg); + ErrorOr> output = + api->EchoNullableDouble(a_nullable_double_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_object_arg = args.at(0); - const auto* a_nullable_object_arg = &encodable_a_nullable_object_arg; - ErrorOr> output = api->EchoNullableObject(a_nullable_object_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableBool" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = + std::get_if(&encodable_a_nullable_bool_arg); + ErrorOr> output = + api->EchoNullableBool(a_nullable_bool_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_list_arg = args.at(0); - const auto* a_nullable_list_arg = std::get_if(&encodable_a_nullable_list_arg); - ErrorOr> output = api->EchoNullableList(a_nullable_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_string_arg = args.at(0); + const auto* a_nullable_string_arg = + std::get_if(&encodable_a_nullable_string_arg); + ErrorOr> output = + api->EchoNullableString(a_nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); - ErrorOr> output = api->EchoNullableEnumList(enum_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableUint8List" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_uint8_list_arg = args.at(0); + const auto* a_nullable_uint8_list_arg = + std::get_if>( + &encodable_a_nullable_uint8_list_arg); + ErrorOr>> output = + api->EchoNullableUint8List(a_nullable_uint8_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = std::get_if(&encodable_class_list_arg); - ErrorOr> output = api->EchoNullableClassList(class_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableObject" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_object_arg = args.at(0); + const auto* a_nullable_object_arg = + &encodable_a_nullable_object_arg; + ErrorOr> output = + api->EchoNullableObject(a_nullable_object_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); - ErrorOr> output = api->EchoNullableNonNullEnumList(enum_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_list_arg = args.at(0); + const auto* a_nullable_list_arg = + std::get_if(&encodable_a_nullable_list_arg); + ErrorOr> output = + api->EchoNullableList(a_nullable_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = std::get_if(&encodable_class_list_arg); - ErrorOr> output = api->EchoNullableNonNullClassList(class_list_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = + std::get_if(&encodable_enum_list_arg); + ErrorOr> output = + api->EchoNullableEnumList(enum_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - const auto* map_arg = std::get_if(&encodable_map_arg); - ErrorOr> output = api->EchoNullableMap(map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = + std::get_if(&encodable_class_list_arg); + ErrorOr> output = + api->EchoNullableClassList(class_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = std::get_if(&encodable_string_map_arg); - ErrorOr> output = api->EchoNullableStringMap(string_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = + std::get_if(&encodable_enum_list_arg); + ErrorOr> output = + api->EchoNullableNonNullEnumList(enum_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = std::get_if(&encodable_int_map_arg); - ErrorOr> output = api->EchoNullableIntMap(int_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = + std::get_if(&encodable_class_list_arg); + ErrorOr> output = + api->EchoNullableNonNullClassList(class_list_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); - ErrorOr> output = api->EchoNullableEnumMap(enum_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + const auto* map_arg = + std::get_if(&encodable_map_arg); + ErrorOr> output = + api->EchoNullableMap(map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = std::get_if(&encodable_class_map_arg); - ErrorOr> output = api->EchoNullableClassMap(class_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = + std::get_if(&encodable_string_map_arg); + ErrorOr> output = + api->EchoNullableStringMap(string_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = std::get_if(&encodable_string_map_arg); - ErrorOr> output = api->EchoNullableNonNullStringMap(string_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = + std::get_if(&encodable_int_map_arg); + ErrorOr> output = + api->EchoNullableIntMap(int_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = std::get_if(&encodable_int_map_arg); - ErrorOr> output = api->EchoNullableNonNullIntMap(int_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = + std::get_if(&encodable_enum_map_arg); + ErrorOr> output = + api->EchoNullableEnumMap(enum_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); - ErrorOr> output = api->EchoNullableNonNullEnumMap(enum_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = + std::get_if(&encodable_class_map_arg); + ErrorOr> output = + api->EchoNullableClassMap(class_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableNonNullClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = std::get_if(&encodable_class_map_arg); - ErrorOr> output = api->EchoNullableNonNullClassMap(class_map_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = + std::get_if(&encodable_string_map_arg); + ErrorOr> output = + api->EchoNullableNonNullStringMap(string_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - AnEnum an_enum_arg_value; - const AnEnum* an_enum_arg = nullptr; - if (!encodable_an_enum_arg.IsNull()) { - an_enum_arg_value = std::any_cast(std::get(encodable_an_enum_arg)); - an_enum_arg = &an_enum_arg_value; - } - ErrorOr> output = api->EchoNullableEnum(an_enum_arg ? &(*an_enum_arg) : nullptr); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = + std::get_if(&encodable_int_map_arg); + ErrorOr> output = + api->EchoNullableNonNullIntMap(int_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - AnotherEnum another_enum_arg_value; - const AnotherEnum* another_enum_arg = nullptr; - if (!encodable_another_enum_arg.IsNull()) { - another_enum_arg_value = std::any_cast(std::get(encodable_another_enum_arg)); - another_enum_arg = &another_enum_arg_value; - } - ErrorOr> output = api->EchoAnotherNullableEnum(another_enum_arg ? &(*another_enum_arg) : nullptr); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = + std::get_if(&encodable_enum_map_arg); + ErrorOr> output = + api->EchoNullableNonNullEnumMap(enum_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_int_arg = args.at(0); - const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); - ErrorOr> output = api->EchoOptionalNullableInt(a_nullable_int_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNullableNonNullClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = + std::get_if(&encodable_class_map_arg); + ErrorOr> output = + api->EchoNullableNonNullClassMap(class_map_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_string_arg = args.at(0); - const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); - ErrorOr> output = api->EchoNamedNullableString(a_nullable_string_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + AnEnum an_enum_arg_value; + const AnEnum* an_enum_arg = nullptr; + if (!encodable_an_enum_arg.IsNull()) { + an_enum_arg_value = std::any_cast( + std::get(encodable_an_enum_arg)); + an_enum_arg = &an_enum_arg_value; + } + ErrorOr> output = api->EchoNullableEnum( + an_enum_arg ? &(*an_enum_arg) : nullptr); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - api->NoopAsync([reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast( + std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + ErrorOr> output = + api->EchoAnotherNullableEnum( + another_enum_arg ? &(*another_enum_arg) : nullptr); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); - return; - } - const int64_t an_int_arg = encodable_an_int_arg.LongValue(); - api->EchoAsyncInt(an_int_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoOptionalNullableInt" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_int_arg = args.at(0); + const auto* a_nullable_int_arg = + std::get_if(&encodable_a_nullable_int_arg); + ErrorOr> output = + api->EchoOptionalNullableInt(a_nullable_int_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); - return; - } - const auto& a_double_arg = std::get(encodable_a_double_arg); - api->EchoAsyncDouble(a_double_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoNamedNullableString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_string_arg = args.at(0); + const auto* a_nullable_string_arg = + std::get_if(&encodable_a_nullable_string_arg); + ErrorOr> output = + api->EchoNamedNullableString(a_nullable_string_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.noopAsync" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - if (encodable_a_bool_arg.IsNull()) { - reply(WrapError("a_bool_arg unexpectedly null.")); - return; - } - const auto& a_bool_arg = std::get(encodable_a_bool_arg); - api->EchoAsyncBool(a_bool_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + api->NoopAsync([reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = std::get(encodable_a_string_arg); - api->EchoAsyncString(a_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncInt" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + if (encodable_an_int_arg.IsNull()) { + reply(WrapError("an_int_arg unexpectedly null.")); + return; + } + const int64_t an_int_arg = encodable_an_int_arg.LongValue(); + api->EchoAsyncInt(an_int_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_uint8_list_arg = args.at(0); - if (encodable_a_uint8_list_arg.IsNull()) { - reply(WrapError("a_uint8_list_arg unexpectedly null.")); - return; - } - const auto& a_uint8_list_arg = std::get>(encodable_a_uint8_list_arg); - api->EchoAsyncUint8List(a_uint8_list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncDouble" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + if (encodable_a_double_arg.IsNull()) { + reply(WrapError("a_double_arg unexpectedly null.")); + return; + } + const auto& a_double_arg = + std::get(encodable_a_double_arg); + api->EchoAsyncDouble( + a_double_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_object_arg = args.at(0); - if (encodable_an_object_arg.IsNull()) { - reply(WrapError("an_object_arg unexpectedly null.")); - return; - } - const auto& an_object_arg = encodable_an_object_arg; - api->EchoAsyncObject(an_object_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncBool" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + if (encodable_a_bool_arg.IsNull()) { + reply(WrapError("a_bool_arg unexpectedly null.")); + return; + } + const auto& a_bool_arg = std::get(encodable_a_bool_arg); + api->EchoAsyncBool(a_bool_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - if (encodable_list_arg.IsNull()) { - reply(WrapError("list_arg unexpectedly null.")); - return; - } - const auto& list_arg = std::get(encodable_list_arg); - api->EchoAsyncList(list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = + std::get(encodable_a_string_arg); + api->EchoAsyncString( + a_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = std::get(encodable_enum_list_arg); - api->EchoAsyncEnumList(enum_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncUint8List" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_uint8_list_arg = args.at(0); + if (encodable_a_uint8_list_arg.IsNull()) { + reply(WrapError("a_uint8_list_arg unexpectedly null.")); + return; + } + const auto& a_uint8_list_arg = + std::get>(encodable_a_uint8_list_arg); + api->EchoAsyncUint8List( + a_uint8_list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = std::get(encodable_class_list_arg); - api->EchoAsyncClassList(class_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncObject" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_object_arg = args.at(0); + if (encodable_an_object_arg.IsNull()) { + reply(WrapError("an_object_arg unexpectedly null.")); + return; + } + const auto& an_object_arg = encodable_an_object_arg; + api->EchoAsyncObject( + an_object_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - if (encodable_map_arg.IsNull()) { - reply(WrapError("map_arg unexpectedly null.")); - return; - } - const auto& map_arg = std::get(encodable_map_arg); - api->EchoAsyncMap(map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + if (encodable_list_arg.IsNull()) { + reply(WrapError("list_arg unexpectedly null.")); + return; + } + const auto& list_arg = + std::get(encodable_list_arg); + api->EchoAsyncList( + list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = std::get(encodable_string_map_arg); - api->EchoAsyncStringMap(string_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = + std::get(encodable_enum_list_arg); + api->EchoAsyncEnumList( + enum_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = std::get(encodable_int_map_arg); - api->EchoAsyncIntMap(int_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = + std::get(encodable_class_list_arg); + api->EchoAsyncClassList( + class_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = std::get(encodable_enum_map_arg); - api->EchoAsyncEnumMap(enum_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + if (encodable_map_arg.IsNull()) { + reply(WrapError("map_arg unexpectedly null.")); + return; + } + const auto& map_arg = std::get(encodable_map_arg); + api->EchoAsyncMap( + map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = std::get(encodable_class_map_arg); - api->EchoAsyncClassMap(class_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = + std::get(encodable_string_map_arg); + api->EchoAsyncStringMap( + string_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - if (encodable_an_enum_arg.IsNull()) { - reply(WrapError("an_enum_arg unexpectedly null.")); - return; - } - const auto& an_enum_arg = std::any_cast(std::get(encodable_an_enum_arg)); - api->EchoAsyncEnum(an_enum_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = + std::get(encodable_int_map_arg); + api->EchoAsyncIntMap( + int_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - if (encodable_another_enum_arg.IsNull()) { - reply(WrapError("another_enum_arg unexpectedly null.")); - return; - } - const auto& another_enum_arg = std::any_cast(std::get(encodable_another_enum_arg)); - api->EchoAnotherAsyncEnum(another_enum_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = + std::get(encodable_enum_map_arg); + api->EchoAsyncEnumMap( + enum_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - api->ThrowAsyncError([reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = + std::get(encodable_class_map_arg); + api->EchoAsyncClassMap( + class_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - api->ThrowAsyncErrorFromVoid([reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + if (encodable_an_enum_arg.IsNull()) { + reply(WrapError("an_enum_arg unexpectedly null.")); + return; + } + const auto& an_enum_arg = std::any_cast( + std::get(encodable_an_enum_arg)); + api->EchoAsyncEnum( + an_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - api->ThrowAsyncFlutterError([reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); + return; + } + const auto& another_enum_arg = std::any_cast( + std::get(encodable_another_enum_arg)); + api->EchoAnotherAsyncEnum( + another_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - if (encodable_everything_arg.IsNull()) { - reply(WrapError("everything_arg unexpectedly null.")); - return; - } - const auto& everything_arg = std::any_cast(std::get(encodable_everything_arg)); - api->EchoAsyncAllTypes(everything_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.throwAsyncError" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + api->ThrowAsyncError( + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwAsyncErrorFromVoid" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); - api->EchoAsyncNullableAllNullableTypes(everything_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + api->ThrowAsyncErrorFromVoid( + [reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); - api->EchoAsyncNullableAllNullableTypesWithoutRecursion(everything_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "throwAsyncFlutterError" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + api->ThrowAsyncFlutterError( + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - const auto* an_int_arg = std::get_if(&encodable_an_int_arg); - api->EchoAsyncNullableInt(an_int_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAsyncAllTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + if (encodable_everything_arg.IsNull()) { + reply(WrapError("everything_arg unexpectedly null.")); + return; + } + const auto& everything_arg = std::any_cast( + std::get(encodable_everything_arg)); + api->EchoAsyncAllTypes( + everything_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - const auto* a_double_arg = std::get_if(&encodable_a_double_arg); - api->EchoAsyncNullableDouble(a_double_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableAllNullableTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = + encodable_everything_arg.IsNull() + ? nullptr + : &(std::any_cast( + std::get( + encodable_everything_arg))); + api->EchoAsyncNullableAllNullableTypes( + everything_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue( + std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableAllNullableTypesWithoutRecursion" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + channel.SetMessageHandler([api](const EncodableValue& message, + const ::flutter::MessageReply< + EncodableValue>& reply) { try { const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - const auto* a_bool_arg = std::get_if(&encodable_a_bool_arg); - api->EchoAsyncNullableBool(a_bool_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = + encodable_everything_arg.IsNull() + ? nullptr + : &(std::any_cast( + std::get( + encodable_everything_arg))); + api->EchoAsyncNullableAllNullableTypesWithoutRecursion( + everything_arg, + [reply](ErrorOr>&& + output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableInt" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + const auto* an_int_arg = + std::get_if(&encodable_an_int_arg); + api->EchoAsyncNullableInt( + an_int_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - const auto* a_string_arg = std::get_if(&encodable_a_string_arg); - api->EchoAsyncNullableString(a_string_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableDouble" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + const auto* a_double_arg = + std::get_if(&encodable_a_double_arg); + api->EchoAsyncNullableDouble( + a_double_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_uint8_list_arg = args.at(0); - const auto* a_uint8_list_arg = std::get_if>(&encodable_a_uint8_list_arg); - api->EchoAsyncNullableUint8List(a_uint8_list_arg, [reply](ErrorOr>>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableBool" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + const auto* a_bool_arg = std::get_if(&encodable_a_bool_arg); + api->EchoAsyncNullableBool( + a_bool_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + const auto* a_string_arg = + std::get_if(&encodable_a_string_arg); + api->EchoAsyncNullableString( + a_string_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_object_arg = args.at(0); - const auto* an_object_arg = &encodable_an_object_arg; - api->EchoAsyncNullableObject(an_object_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableUint8List" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_uint8_list_arg = args.at(0); + const auto* a_uint8_list_arg = std::get_if>( + &encodable_a_uint8_list_arg); + api->EchoAsyncNullableUint8List( + a_uint8_list_arg, + [reply]( + ErrorOr>>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - const auto* list_arg = std::get_if(&encodable_list_arg); - api->EchoAsyncNullableList(list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableObject" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_object_arg = args.at(0); + const auto* an_object_arg = &encodable_an_object_arg; + api->EchoAsyncNullableObject( + an_object_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); - api->EchoAsyncNullableEnumList(enum_list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + const auto* list_arg = + std::get_if(&encodable_list_arg); + api->EchoAsyncNullableList( + list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = std::get_if(&encodable_class_list_arg); - api->EchoAsyncNullableClassList(class_list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = + std::get_if(&encodable_enum_list_arg); + api->EchoAsyncNullableEnumList( + enum_list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - const auto* map_arg = std::get_if(&encodable_map_arg); - api->EchoAsyncNullableMap(map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = + std::get_if(&encodable_class_list_arg); + api->EchoAsyncNullableClassList( + class_list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = std::get_if(&encodable_string_map_arg); - api->EchoAsyncNullableStringMap(string_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + const auto* map_arg = + std::get_if(&encodable_map_arg); + api->EchoAsyncNullableMap( + map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = std::get_if(&encodable_int_map_arg); - api->EchoAsyncNullableIntMap(int_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = + std::get_if(&encodable_string_map_arg); + api->EchoAsyncNullableStringMap( + string_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); - api->EchoAsyncNullableEnumMap(enum_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = + std::get_if(&encodable_int_map_arg); + api->EchoAsyncNullableIntMap( + int_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = std::get_if(&encodable_class_map_arg); - api->EchoAsyncNullableClassMap(class_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = + std::get_if(&encodable_enum_map_arg); + api->EchoAsyncNullableEnumMap( + enum_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - AnEnum an_enum_arg_value; - const AnEnum* an_enum_arg = nullptr; - if (!encodable_an_enum_arg.IsNull()) { - an_enum_arg_value = std::any_cast(std::get(encodable_an_enum_arg)); - an_enum_arg = &an_enum_arg_value; - } - api->EchoAsyncNullableEnum(an_enum_arg ? &(*an_enum_arg) : nullptr, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = + std::get_if(&encodable_class_map_arg); + api->EchoAsyncNullableClassMap( + class_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - AnotherEnum another_enum_arg_value; - const AnotherEnum* another_enum_arg = nullptr; - if (!encodable_another_enum_arg.IsNull()) { - another_enum_arg_value = std::any_cast(std::get(encodable_another_enum_arg)); - another_enum_arg = &another_enum_arg_value; - } - api->EchoAnotherAsyncNullableEnum(another_enum_arg ? &(*another_enum_arg) : nullptr, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAsyncNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + AnEnum an_enum_arg_value; + const AnEnum* an_enum_arg = nullptr; + if (!encodable_an_enum_arg.IsNull()) { + an_enum_arg_value = std::any_cast( + std::get(encodable_an_enum_arg)); + an_enum_arg = &an_enum_arg_value; + } + api->EchoAsyncNullableEnum( + an_enum_arg ? &(*an_enum_arg) : nullptr, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue( + std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.defaultIsMainThread" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - ErrorOr output = api->DefaultIsMainThread(); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast( + std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + api->EchoAnotherAsyncNullableEnum( + another_enum_arg ? &(*another_enum_arg) : nullptr, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue( + std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.taskQueueIsBackgroundThread" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.defaultIsMainThread" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - ErrorOr output = api->TaskQueueIsBackgroundThread(); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + ErrorOr output = api->DefaultIsMainThread(); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "taskQueueIsBackgroundThread" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - api->CallFlutterNoop([reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + ErrorOr output = api->TaskQueueIsBackgroundThread(); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterNoop" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - api->CallFlutterThrowError([reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + api->CallFlutterNoop( + [reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - api->CallFlutterThrowErrorFromVoid([reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterThrowError" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + api->CallFlutterThrowError( + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterThrowErrorFromVoid" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - if (encodable_everything_arg.IsNull()) { - reply(WrapError("everything_arg unexpectedly null.")); - return; - } - const auto& everything_arg = std::any_cast(std::get(encodable_everything_arg)); - api->CallFlutterEchoAllTypes(everything_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + api->CallFlutterThrowErrorFromVoid( + [reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); - api->CallFlutterEchoAllNullableTypes(everything_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAllTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + if (encodable_everything_arg.IsNull()) { + reply(WrapError("everything_arg unexpectedly null.")); + return; + } + const auto& everything_arg = std::any_cast( + std::get(encodable_everything_arg)); + api->CallFlutterEchoAllTypes( + everything_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); - const auto& encodable_a_nullable_int_arg = args.at(1); - const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); - const auto& encodable_a_nullable_string_arg = args.at(2); - const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); - api->CallFlutterSendMultipleNullableTypes(a_nullable_bool_arg, a_nullable_int_arg, a_nullable_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAllNullableTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = + encodable_everything_arg.IsNull() + ? nullptr + : &(std::any_cast( + std::get( + encodable_everything_arg))); + api->CallFlutterEchoAllNullableTypes( + everything_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue( + std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - const auto* everything_arg = encodable_everything_arg.IsNull() ? nullptr : &(std::any_cast(std::get(encodable_everything_arg))); - api->CallFlutterEchoAllNullableTypesWithoutRecursion(everything_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterSendMultipleNullableTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = + std::get_if(&encodable_a_nullable_bool_arg); + const auto& encodable_a_nullable_int_arg = args.at(1); + const auto* a_nullable_int_arg = + std::get_if(&encodable_a_nullable_int_arg); + const auto& encodable_a_nullable_string_arg = args.at(2); + const auto* a_nullable_string_arg = + std::get_if(&encodable_a_nullable_string_arg); + api->CallFlutterSendMultipleNullableTypes( + a_nullable_bool_arg, a_nullable_int_arg, + a_nullable_string_arg, + [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAllNullableTypesWithoutRecursion" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { + channel.SetMessageHandler([api](const EncodableValue& message, + const ::flutter::MessageReply< + EncodableValue>& reply) { try { const auto& args = std::get(message); - const auto& encodable_a_nullable_bool_arg = args.at(0); - const auto* a_nullable_bool_arg = std::get_if(&encodable_a_nullable_bool_arg); - const auto& encodable_a_nullable_int_arg = args.at(1); - const auto* a_nullable_int_arg = std::get_if(&encodable_a_nullable_int_arg); - const auto& encodable_a_nullable_string_arg = args.at(2); - const auto* a_nullable_string_arg = std::get_if(&encodable_a_nullable_string_arg); - api->CallFlutterSendMultipleNullableTypesWithoutRecursion(a_nullable_bool_arg, a_nullable_int_arg, a_nullable_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); + const auto& encodable_everything_arg = args.at(0); + const auto* everything_arg = + encodable_everything_arg.IsNull() + ? nullptr + : &(std::any_cast( + std::get( + encodable_everything_arg))); + api->CallFlutterEchoAllNullableTypesWithoutRecursion( + everything_arg, + [reply](ErrorOr>&& + output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterSendMultipleNullableTypesWithoutRecursion" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_nullable_bool_arg = args.at(0); + const auto* a_nullable_bool_arg = + std::get_if(&encodable_a_nullable_bool_arg); + const auto& encodable_a_nullable_int_arg = args.at(1); + const auto* a_nullable_int_arg = + std::get_if(&encodable_a_nullable_int_arg); + const auto& encodable_a_nullable_string_arg = args.at(2); + const auto* a_nullable_string_arg = + std::get_if(&encodable_a_nullable_string_arg); + api->CallFlutterSendMultipleNullableTypesWithoutRecursion( + a_nullable_bool_arg, a_nullable_int_arg, + a_nullable_string_arg, + [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - if (encodable_a_bool_arg.IsNull()) { - reply(WrapError("a_bool_arg unexpectedly null.")); - return; - } - const auto& a_bool_arg = std::get(encodable_a_bool_arg); - api->CallFlutterEchoBool(a_bool_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoBool" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + if (encodable_a_bool_arg.IsNull()) { + reply(WrapError("a_bool_arg unexpectedly null.")); + return; + } + const auto& a_bool_arg = std::get(encodable_a_bool_arg); + api->CallFlutterEchoBool( + a_bool_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); - return; - } - const int64_t an_int_arg = encodable_an_int_arg.LongValue(); - api->CallFlutterEchoInt(an_int_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoInt" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + if (encodable_an_int_arg.IsNull()) { + reply(WrapError("an_int_arg unexpectedly null.")); + return; + } + const int64_t an_int_arg = encodable_an_int_arg.LongValue(); + api->CallFlutterEchoInt( + an_int_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); - return; - } - const auto& a_double_arg = std::get(encodable_a_double_arg); - api->CallFlutterEchoDouble(a_double_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoDouble" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + if (encodable_a_double_arg.IsNull()) { + reply(WrapError("a_double_arg unexpectedly null.")); + return; + } + const auto& a_double_arg = + std::get(encodable_a_double_arg); + api->CallFlutterEchoDouble( + a_double_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = std::get(encodable_a_string_arg); - api->CallFlutterEchoString(a_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = + std::get(encodable_a_string_arg); + api->CallFlutterEchoString( + a_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - if (encodable_list_arg.IsNull()) { - reply(WrapError("list_arg unexpectedly null.")); - return; - } - const auto& list_arg = std::get>(encodable_list_arg); - api->CallFlutterEchoUint8List(list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoUint8List" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + if (encodable_list_arg.IsNull()) { + reply(WrapError("list_arg unexpectedly null.")); + return; + } + const auto& list_arg = + std::get>(encodable_list_arg); + api->CallFlutterEchoUint8List( + list_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - if (encodable_list_arg.IsNull()) { - reply(WrapError("list_arg unexpectedly null.")); - return; - } - const auto& list_arg = std::get(encodable_list_arg); - api->CallFlutterEchoList(list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + if (encodable_list_arg.IsNull()) { + reply(WrapError("list_arg unexpectedly null.")); + return; + } + const auto& list_arg = + std::get(encodable_list_arg); + api->CallFlutterEchoList( + list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = std::get(encodable_enum_list_arg); - api->CallFlutterEchoEnumList(enum_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = + std::get(encodable_enum_list_arg); + api->CallFlutterEchoEnumList( + enum_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = std::get(encodable_class_list_arg); - api->CallFlutterEchoClassList(class_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = + std::get(encodable_class_list_arg); + api->CallFlutterEchoClassList( + class_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - if (encodable_enum_list_arg.IsNull()) { - reply(WrapError("enum_list_arg unexpectedly null.")); - return; - } - const auto& enum_list_arg = std::get(encodable_enum_list_arg); - api->CallFlutterEchoNonNullEnumList(enum_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + if (encodable_enum_list_arg.IsNull()) { + reply(WrapError("enum_list_arg unexpectedly null.")); + return; + } + const auto& enum_list_arg = + std::get(encodable_enum_list_arg); + api->CallFlutterEchoNonNullEnumList( + enum_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - if (encodable_class_list_arg.IsNull()) { - reply(WrapError("class_list_arg unexpectedly null.")); - return; - } - const auto& class_list_arg = std::get(encodable_class_list_arg); - api->CallFlutterEchoNonNullClassList(class_list_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + if (encodable_class_list_arg.IsNull()) { + reply(WrapError("class_list_arg unexpectedly null.")); + return; + } + const auto& class_list_arg = + std::get(encodable_class_list_arg); + api->CallFlutterEchoNonNullClassList( + class_list_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - if (encodable_map_arg.IsNull()) { - reply(WrapError("map_arg unexpectedly null.")); - return; - } - const auto& map_arg = std::get(encodable_map_arg); - api->CallFlutterEchoMap(map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + if (encodable_map_arg.IsNull()) { + reply(WrapError("map_arg unexpectedly null.")); + return; + } + const auto& map_arg = std::get(encodable_map_arg); + api->CallFlutterEchoMap( + map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = std::get(encodable_string_map_arg); - api->CallFlutterEchoStringMap(string_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = + std::get(encodable_string_map_arg); + api->CallFlutterEchoStringMap( + string_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = std::get(encodable_int_map_arg); - api->CallFlutterEchoIntMap(int_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = + std::get(encodable_int_map_arg); + api->CallFlutterEchoIntMap( + int_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = std::get(encodable_enum_map_arg); - api->CallFlutterEchoEnumMap(enum_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = + std::get(encodable_enum_map_arg); + api->CallFlutterEchoEnumMap( + enum_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = std::get(encodable_class_map_arg); - api->CallFlutterEchoClassMap(class_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = + std::get(encodable_class_map_arg); + api->CallFlutterEchoClassMap( + class_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - if (encodable_string_map_arg.IsNull()) { - reply(WrapError("string_map_arg unexpectedly null.")); - return; - } - const auto& string_map_arg = std::get(encodable_string_map_arg); - api->CallFlutterEchoNonNullStringMap(string_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + if (encodable_string_map_arg.IsNull()) { + reply(WrapError("string_map_arg unexpectedly null.")); + return; + } + const auto& string_map_arg = + std::get(encodable_string_map_arg); + api->CallFlutterEchoNonNullStringMap( + string_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - if (encodable_int_map_arg.IsNull()) { - reply(WrapError("int_map_arg unexpectedly null.")); - return; - } - const auto& int_map_arg = std::get(encodable_int_map_arg); - api->CallFlutterEchoNonNullIntMap(int_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + if (encodable_int_map_arg.IsNull()) { + reply(WrapError("int_map_arg unexpectedly null.")); + return; + } + const auto& int_map_arg = + std::get(encodable_int_map_arg); + api->CallFlutterEchoNonNullIntMap( + int_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - if (encodable_enum_map_arg.IsNull()) { - reply(WrapError("enum_map_arg unexpectedly null.")); - return; - } - const auto& enum_map_arg = std::get(encodable_enum_map_arg); - api->CallFlutterEchoNonNullEnumMap(enum_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + if (encodable_enum_map_arg.IsNull()) { + reply(WrapError("enum_map_arg unexpectedly null.")); + return; + } + const auto& enum_map_arg = + std::get(encodable_enum_map_arg); + api->CallFlutterEchoNonNullEnumMap( + enum_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNonNullClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - if (encodable_class_map_arg.IsNull()) { - reply(WrapError("class_map_arg unexpectedly null.")); - return; - } - const auto& class_map_arg = std::get(encodable_class_map_arg); - api->CallFlutterEchoNonNullClassMap(class_map_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNonNullClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + if (encodable_class_map_arg.IsNull()) { + reply(WrapError("class_map_arg unexpectedly null.")); + return; + } + const auto& class_map_arg = + std::get(encodable_class_map_arg); + api->CallFlutterEchoNonNullClassMap( + class_map_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - if (encodable_an_enum_arg.IsNull()) { - reply(WrapError("an_enum_arg unexpectedly null.")); - return; - } - const auto& an_enum_arg = std::any_cast(std::get(encodable_an_enum_arg)); - api->CallFlutterEchoEnum(an_enum_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.callFlutterEchoEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + if (encodable_an_enum_arg.IsNull()) { + reply(WrapError("an_enum_arg unexpectedly null.")); + return; + } + const auto& an_enum_arg = std::any_cast( + std::get(encodable_an_enum_arg)); + api->CallFlutterEchoEnum( + an_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - if (encodable_another_enum_arg.IsNull()) { - reply(WrapError("another_enum_arg unexpectedly null.")); - return; - } - const auto& another_enum_arg = std::any_cast(std::get(encodable_another_enum_arg)); - api->CallFlutterEchoAnotherEnum(another_enum_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); + return; + } + const auto& another_enum_arg = std::any_cast( + std::get(encodable_another_enum_arg)); + api->CallFlutterEchoAnotherEnum( + another_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_bool_arg = args.at(0); - const auto* a_bool_arg = std::get_if(&encodable_a_bool_arg); - api->CallFlutterEchoNullableBool(a_bool_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableBool" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_bool_arg = args.at(0); + const auto* a_bool_arg = std::get_if(&encodable_a_bool_arg); + api->CallFlutterEchoNullableBool( + a_bool_arg, [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_int_arg = args.at(0); - const auto* an_int_arg = std::get_if(&encodable_an_int_arg); - api->CallFlutterEchoNullableInt(an_int_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableInt" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_int_arg = args.at(0); + const auto* an_int_arg = + std::get_if(&encodable_an_int_arg); + api->CallFlutterEchoNullableInt( + an_int_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_double_arg = args.at(0); - const auto* a_double_arg = std::get_if(&encodable_a_double_arg); - api->CallFlutterEchoNullableDouble(a_double_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableDouble" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_double_arg = args.at(0); + const auto* a_double_arg = + std::get_if(&encodable_a_double_arg); + api->CallFlutterEchoNullableDouble( + a_double_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - const auto* a_string_arg = std::get_if(&encodable_a_string_arg); - api->CallFlutterEchoNullableString(a_string_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + const auto* a_string_arg = + std::get_if(&encodable_a_string_arg); + api->CallFlutterEchoNullableString( + a_string_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - const auto* list_arg = std::get_if>(&encodable_list_arg); - api->CallFlutterEchoNullableUint8List(list_arg, [reply](ErrorOr>>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableUint8List" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + const auto* list_arg = + std::get_if>(&encodable_list_arg); + api->CallFlutterEchoNullableUint8List( + list_arg, + [reply]( + ErrorOr>>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_list_arg = args.at(0); - const auto* list_arg = std::get_if(&encodable_list_arg); - api->CallFlutterEchoNullableList(list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_list_arg = args.at(0); + const auto* list_arg = + std::get_if(&encodable_list_arg); + api->CallFlutterEchoNullableList( + list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); - api->CallFlutterEchoNullableEnumList(enum_list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = + std::get_if(&encodable_enum_list_arg); + api->CallFlutterEchoNullableEnumList( + enum_list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = std::get_if(&encodable_class_list_arg); - api->CallFlutterEchoNullableClassList(class_list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = + std::get_if(&encodable_class_list_arg); + api->CallFlutterEchoNullableClassList( + class_list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_list_arg = args.at(0); - const auto* enum_list_arg = std::get_if(&encodable_enum_list_arg); - api->CallFlutterEchoNullableNonNullEnumList(enum_list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullEnumList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_list_arg = args.at(0); + const auto* enum_list_arg = + std::get_if(&encodable_enum_list_arg); + api->CallFlutterEchoNullableNonNullEnumList( + enum_list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassList" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_list_arg = args.at(0); - const auto* class_list_arg = std::get_if(&encodable_class_list_arg); - api->CallFlutterEchoNullableNonNullClassList(class_list_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullClassList" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_list_arg = args.at(0); + const auto* class_list_arg = + std::get_if(&encodable_class_list_arg); + api->CallFlutterEchoNullableNonNullClassList( + class_list_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_map_arg = args.at(0); - const auto* map_arg = std::get_if(&encodable_map_arg); - api->CallFlutterEchoNullableMap(map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_map_arg = args.at(0); + const auto* map_arg = + std::get_if(&encodable_map_arg); + api->CallFlutterEchoNullableMap( + map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = std::get_if(&encodable_string_map_arg); - api->CallFlutterEchoNullableStringMap(string_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = + std::get_if(&encodable_string_map_arg); + api->CallFlutterEchoNullableStringMap( + string_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = std::get_if(&encodable_int_map_arg); - api->CallFlutterEchoNullableIntMap(int_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = + std::get_if(&encodable_int_map_arg); + api->CallFlutterEchoNullableIntMap( + int_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); - api->CallFlutterEchoNullableEnumMap(enum_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = + std::get_if(&encodable_enum_map_arg); + api->CallFlutterEchoNullableEnumMap( + enum_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = std::get_if(&encodable_class_map_arg); - api->CallFlutterEchoNullableClassMap(class_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = + std::get_if(&encodable_class_map_arg); + api->CallFlutterEchoNullableClassMap( + class_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullStringMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_string_map_arg = args.at(0); - const auto* string_map_arg = std::get_if(&encodable_string_map_arg); - api->CallFlutterEchoNullableNonNullStringMap(string_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullStringMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_string_map_arg = args.at(0); + const auto* string_map_arg = + std::get_if(&encodable_string_map_arg); + api->CallFlutterEchoNullableNonNullStringMap( + string_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } - { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullIntMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_int_map_arg = args.at(0); - const auto* int_map_arg = std::get_if(&encodable_int_map_arg); - api->CallFlutterEchoNullableNonNullIntMap(int_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); - } - reply(EncodableValue(std::move(wrapped))); - }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullIntMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_int_map_arg = args.at(0); + const auto* int_map_arg = + std::get_if(&encodable_int_map_arg); + api->CallFlutterEchoNullableNonNullIntMap( + int_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullEnumMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_enum_map_arg = args.at(0); - const auto* enum_map_arg = std::get_if(&encodable_enum_map_arg); - api->CallFlutterEchoNullableNonNullEnumMap(enum_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullEnumMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_enum_map_arg = args.at(0); + const auto* enum_map_arg = + std::get_if(&encodable_enum_map_arg); + api->CallFlutterEchoNullableNonNullEnumMap( + enum_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableNonNullClassMap" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_class_map_arg = args.at(0); - const auto* class_map_arg = std::get_if(&encodable_class_map_arg); - api->CallFlutterEchoNullableNonNullClassMap(class_map_arg, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(EncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableNonNullClassMap" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_class_map_arg = args.at(0); + const auto* class_map_arg = + std::get_if(&encodable_class_map_arg); + api->CallFlutterEchoNullableNonNullClassMap( + class_map_arg, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + EncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - AnEnum an_enum_arg_value; - const AnEnum* an_enum_arg = nullptr; - if (!encodable_an_enum_arg.IsNull()) { - an_enum_arg_value = std::any_cast(std::get(encodable_an_enum_arg)); - an_enum_arg = &an_enum_arg_value; - } - api->CallFlutterEchoNullableEnum(an_enum_arg ? &(*an_enum_arg) : nullptr, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_an_enum_arg = args.at(0); + AnEnum an_enum_arg_value; + const AnEnum* an_enum_arg = nullptr; + if (!encodable_an_enum_arg.IsNull()) { + an_enum_arg_value = std::any_cast( + std::get(encodable_an_enum_arg)); + an_enum_arg = &an_enum_arg_value; + } + api->CallFlutterEchoNullableEnum( + an_enum_arg ? &(*an_enum_arg) : nullptr, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue( + std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_another_enum_arg = args.at(0); - AnotherEnum another_enum_arg_value; - const AnotherEnum* another_enum_arg = nullptr; - if (!encodable_another_enum_arg.IsNull()) { - another_enum_arg_value = std::any_cast(std::get(encodable_another_enum_arg)); - another_enum_arg = &another_enum_arg_value; - } - api->CallFlutterEchoAnotherNullableEnum(another_enum_arg ? &(*another_enum_arg) : nullptr, [reply](ErrorOr>&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - auto output_optional = std::move(output).TakeValue(); - if (output_optional) { - wrapped.push_back(CustomEncodableValue(std::move(output_optional).value())); - } else { - wrapped.push_back(EncodableValue()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast( + std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + api->CallFlutterEchoAnotherNullableEnum( + another_enum_arg ? &(*another_enum_arg) : nullptr, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue( + std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = std::get(encodable_a_string_arg); - api->CallFlutterSmallApiEchoString(a_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterSmallApiEchoString" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = + std::get(encodable_a_string_arg); + api->CallFlutterSmallApiEchoString( + a_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } } -EncodableValue HostIntegrationCoreApi::WrapError(std::string_view error_message) { - return EncodableValue(EncodableList{ - EncodableValue(std::string(error_message)), - EncodableValue("Error"), - EncodableValue() - }); +EncodableValue HostIntegrationCoreApi::WrapError( + std::string_view error_message) { + return EncodableValue( + EncodableList{EncodableValue(std::string(error_message)), + EncodableValue("Error"), EncodableValue()}); } EncodableValue HostIntegrationCoreApi::WrapError(const FlutterError& error) { - return EncodableValue(EncodableList{ - EncodableValue(error.code()), - EncodableValue(error.message()), - error.details() - }); + return EncodableValue(EncodableList{EncodableValue(error.code()), + EncodableValue(error.message()), + error.details()}); } -// Generated class from Pigeon that represents Flutter messages that can be called from C++. -FlutterIntegrationCoreApi::FlutterIntegrationCoreApi(::flutter::BinaryMessenger* binary_messenger) - : binary_messenger_(binary_messenger), - message_channel_suffix_("") {} +// Generated class from Pigeon that represents Flutter messages that can be +// called from C++. +FlutterIntegrationCoreApi::FlutterIntegrationCoreApi( + ::flutter::BinaryMessenger* binary_messenger) + : binary_messenger_(binary_messenger), message_channel_suffix_("") {} FlutterIntegrationCoreApi::FlutterIntegrationCoreApi( - ::flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix) - : binary_messenger_(binary_messenger), - message_channel_suffix_(message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : "") {} + ::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix) + : binary_messenger_(binary_messenger), + message_channel_suffix_(message_channel_suffix.length() > 0 + ? std::string(".") + message_channel_suffix + : "") {} const ::flutter::StandardMessageCodec& FlutterIntegrationCoreApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance( + &PigeonInternalCodecSerializer::GetInstance()); } void FlutterIntegrationCoreApi::Noop( - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop" + message_channel_suffix_; + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "noop" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - on_success(); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + on_success(); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::ThrowError( - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError" + message_channel_suffix_; + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "throwError" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = &list_return_value->at(0); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = &list_return_value->at(0); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::ThrowErrorFromVoid( - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid" + message_channel_suffix_; + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "throwErrorFromVoid" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - on_success(); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + on_success(); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoAllTypes( - const AllTypes& everything_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes" + message_channel_suffix_; + const AllTypes& everything_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAllTypes" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - CustomEncodableValue(everything_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + CustomEncodableValue(everything_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast( + std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoAllNullableTypes( - const AllNullableTypes* everything_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes" + message_channel_suffix_; + const AllNullableTypes* everything_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAllNullableTypes" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - everything_arg ? CustomEncodableValue(*everything_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = list_return_value->at(0).IsNull() ? nullptr : &(std::any_cast(std::get(list_return_value->at(0)))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + everything_arg ? CustomEncodableValue(*everything_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + list_return_value->at(0).IsNull() + ? nullptr + : &(std::any_cast( + std::get( + list_return_value->at(0)))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::SendMultipleNullableTypes( - const bool* a_nullable_bool_arg, - const int64_t* a_nullable_int_arg, - const std::string* a_nullable_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes" + message_channel_suffix_; + const bool* a_nullable_bool_arg, const int64_t* a_nullable_int_arg, + const std::string* a_nullable_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "sendMultipleNullableTypes" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_nullable_bool_arg ? EncodableValue(*a_nullable_bool_arg) : EncodableValue(), - a_nullable_int_arg ? EncodableValue(*a_nullable_int_arg) : EncodableValue(), - a_nullable_string_arg ? EncodableValue(*a_nullable_string_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + a_nullable_bool_arg ? EncodableValue(*a_nullable_bool_arg) + : EncodableValue(), + a_nullable_int_arg ? EncodableValue(*a_nullable_int_arg) + : EncodableValue(), + a_nullable_string_arg ? EncodableValue(*a_nullable_string_arg) + : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast( + std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion" + message_channel_suffix_; + const AllNullableTypesWithoutRecursion* everything_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAllNullableTypesWithoutRecursion" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - everything_arg ? CustomEncodableValue(*everything_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = list_return_value->at(0).IsNull() ? nullptr : &(std::any_cast(std::get(list_return_value->at(0)))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + everything_arg ? CustomEncodableValue(*everything_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + list_return_value->at(0).IsNull() + ? nullptr + : &(std::any_cast( + std::get( + list_return_value->at(0)))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::SendMultipleNullableTypesWithoutRecursion( - const bool* a_nullable_bool_arg, - const int64_t* a_nullable_int_arg, - const std::string* a_nullable_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion" + message_channel_suffix_; + const bool* a_nullable_bool_arg, const int64_t* a_nullable_int_arg, + const std::string* a_nullable_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "sendMultipleNullableTypesWithoutRecursion" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_nullable_bool_arg ? EncodableValue(*a_nullable_bool_arg) : EncodableValue(), - a_nullable_int_arg ? EncodableValue(*a_nullable_int_arg) : EncodableValue(), - a_nullable_string_arg ? EncodableValue(*a_nullable_string_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + a_nullable_bool_arg ? EncodableValue(*a_nullable_bool_arg) + : EncodableValue(), + a_nullable_int_arg ? EncodableValue(*a_nullable_int_arg) + : EncodableValue(), + a_nullable_string_arg ? EncodableValue(*a_nullable_string_arg) + : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::any_cast( + std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoBool( - bool a_bool_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool" + message_channel_suffix_; + bool a_bool_arg, std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoBool" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_bool_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(a_bool_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoInt( - int64_t an_int_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt" + message_channel_suffix_; + int64_t an_int_arg, std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoInt" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(an_int_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const int64_t return_value = list_return_value->at(0).LongValue(); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(an_int_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const int64_t return_value = list_return_value->at(0).LongValue(); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoDouble( - double a_double_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble" + message_channel_suffix_; + double a_double_arg, std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoDouble" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_double_arg), + EncodableValue(a_double_arg), }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + channel.Send(encoded_api_arguments, [channel_name, + on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, + size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); + const auto* list_return_value = + std::get_if(&encodable_return_value); if (list_return_value) { if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + on_error(FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); } else { const auto& return_value = std::get(list_return_value->at(0)); on_success(return_value); } } else { on_error(CreateConnectionError(channel_name)); - } + } }); } void FlutterIntegrationCoreApi::EchoString( - const std::string& a_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString" + message_channel_suffix_; + const std::string& a_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoString" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_string_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(a_string_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoUint8List( - const std::vector& list_arg, - std::function&)>&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List" + message_channel_suffix_; + const std::vector& list_arg, + std::function&)>&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoUint8List" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(list_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get>(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(list_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get>(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoList( - const EncodableList& list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList" + message_channel_suffix_; + const EncodableList& list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(list_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(list_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoEnumList( - const EncodableList& enum_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumList" + message_channel_suffix_; + const EncodableList& enum_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoEnumList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(enum_list_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(enum_list_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoClassList( - const EncodableList& class_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassList" + message_channel_suffix_; - BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); - EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(class_list_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); -} - -void FlutterIntegrationCoreApi::EchoNonNullEnumList( - const EncodableList& enum_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumList" + message_channel_suffix_; + const EncodableList& class_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoClassList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(enum_list_arg), + EncodableValue(class_list_arg), }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); +} + +void FlutterIntegrationCoreApi::EchoNonNullEnumList( + const EncodableList& enum_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullEnumList" + + message_channel_suffix_; + BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); + EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ + EncodableValue(enum_list_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNonNullClassList( - const EncodableList& class_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassList" + message_channel_suffix_; + const EncodableList& class_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullClassList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(class_list_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(class_list_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoMap( - const EncodableMap& map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap" + message_channel_suffix_; + const EncodableMap& map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoStringMap( - const EncodableMap& string_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoStringMap" + message_channel_suffix_; + const EncodableMap& string_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoStringMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(string_map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(string_map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoIntMap( - const EncodableMap& int_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoIntMap" + message_channel_suffix_; + const EncodableMap& int_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoIntMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(int_map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(int_map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoEnumMap( - const EncodableMap& enum_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnumMap" + message_channel_suffix_; + const EncodableMap& enum_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoEnumMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(enum_map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(enum_map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoClassMap( - const EncodableMap& class_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoClassMap" + message_channel_suffix_; + const EncodableMap& class_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoClassMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(class_map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(class_map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNonNullStringMap( - const EncodableMap& string_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullStringMap" + message_channel_suffix_; + const EncodableMap& string_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullStringMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(string_map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(string_map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNonNullIntMap( - const EncodableMap& int_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullIntMap" + message_channel_suffix_; + const EncodableMap& int_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullIntMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(int_map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(int_map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNonNullEnumMap( - const EncodableMap& enum_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullEnumMap" + message_channel_suffix_; + const EncodableMap& enum_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullEnumMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(enum_map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(enum_map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNonNullClassMap( - const EncodableMap& class_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNonNullClassMap" + message_channel_suffix_; + const EncodableMap& class_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNonNullClassMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(class_map_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(class_map_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoEnum( - const AnEnum& an_enum_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum" + message_channel_suffix_; + const AnEnum& an_enum_arg, std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoEnum" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - CustomEncodableValue(an_enum_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + CustomEncodableValue(an_enum_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast( + std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoAnotherEnum( - const AnotherEnum& another_enum_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum" + message_channel_suffix_; + const AnotherEnum& another_enum_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAnotherEnum" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - CustomEncodableValue(another_enum_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + CustomEncodableValue(another_enum_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast( + std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableBool( - const bool* a_bool_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool" + message_channel_suffix_; + const bool* a_bool_arg, std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableBool" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_bool_arg ? EncodableValue(*a_bool_arg) : EncodableValue(), + a_bool_arg ? EncodableValue(*a_bool_arg) : EncodableValue(), }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); + channel.Send(encoded_api_arguments, [channel_name, + on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, + size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); + const auto* list_return_value = + std::get_if(&encodable_return_value); if (list_return_value) { if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); + on_error(FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); } else { const auto* return_value = std::get_if(&list_return_value->at(0)); on_success(return_value); } } else { on_error(CreateConnectionError(channel_name)); - } + } }); } void FlutterIntegrationCoreApi::EchoNullableInt( - const int64_t* an_int_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt" + message_channel_suffix_; + const int64_t* an_int_arg, std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableInt" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - an_int_arg ? EncodableValue(*an_int_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + an_int_arg ? EncodableValue(*an_int_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableDouble( - const double* a_double_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble" + message_channel_suffix_; + const double* a_double_arg, std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableDouble" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_double_arg ? EncodableValue(*a_double_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + a_double_arg ? EncodableValue(*a_double_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableString( - const std::string* a_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString" + message_channel_suffix_; + const std::string* a_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableString" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - a_string_arg ? EncodableValue(*a_string_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + a_string_arg ? EncodableValue(*a_string_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableUint8List( - const std::vector* list_arg, - std::function*)>&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List" + message_channel_suffix_; + const std::vector* list_arg, + std::function*)>&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableUint8List" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - list_arg ? EncodableValue(*list_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if>(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + list_arg ? EncodableValue(*list_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if>(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableList( - const EncodableList* list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList" + message_channel_suffix_; + const EncodableList* list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - list_arg ? EncodableValue(*list_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + list_arg ? EncodableValue(*list_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableEnumList( - const EncodableList* enum_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumList" + message_channel_suffix_; + const EncodableList* enum_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableEnumList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - enum_list_arg ? EncodableValue(*enum_list_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + enum_list_arg ? EncodableValue(*enum_list_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableClassList( - const EncodableList* class_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassList" + message_channel_suffix_; + const EncodableList* class_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableClassList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - class_list_arg ? EncodableValue(*class_list_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + class_list_arg ? EncodableValue(*class_list_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableNonNullEnumList( - const EncodableList* enum_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumList" + message_channel_suffix_; + const EncodableList* enum_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullEnumList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - enum_list_arg ? EncodableValue(*enum_list_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + enum_list_arg ? EncodableValue(*enum_list_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableNonNullClassList( - const EncodableList* class_list_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassList" + message_channel_suffix_; + const EncodableList* class_list_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullClassList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - class_list_arg ? EncodableValue(*class_list_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + class_list_arg ? EncodableValue(*class_list_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableMap( - const EncodableMap* map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap" + message_channel_suffix_; + const EncodableMap* map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - map_arg ? EncodableValue(*map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + map_arg ? EncodableValue(*map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableStringMap( - const EncodableMap* string_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableStringMap" + message_channel_suffix_; + const EncodableMap* string_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableStringMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - string_map_arg ? EncodableValue(*string_map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + string_map_arg ? EncodableValue(*string_map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableIntMap( - const EncodableMap* int_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableIntMap" + message_channel_suffix_; + const EncodableMap* int_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableIntMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - int_map_arg ? EncodableValue(*int_map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + int_map_arg ? EncodableValue(*int_map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableEnumMap( - const EncodableMap* enum_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnumMap" + message_channel_suffix_; + const EncodableMap* enum_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableEnumMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - enum_map_arg ? EncodableValue(*enum_map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + enum_map_arg ? EncodableValue(*enum_map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableClassMap( - const EncodableMap* class_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableClassMap" + message_channel_suffix_; + const EncodableMap* class_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableClassMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - class_map_arg ? EncodableValue(*class_map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + class_map_arg ? EncodableValue(*class_map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableNonNullStringMap( - const EncodableMap* string_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullStringMap" + message_channel_suffix_; + const EncodableMap* string_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullStringMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - string_map_arg ? EncodableValue(*string_map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + string_map_arg ? EncodableValue(*string_map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableNonNullIntMap( - const EncodableMap* int_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullIntMap" + message_channel_suffix_; + const EncodableMap* int_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullIntMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - int_map_arg ? EncodableValue(*int_map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + int_map_arg ? EncodableValue(*int_map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableNonNullEnumMap( - const EncodableMap* enum_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullEnumMap" + message_channel_suffix_; + const EncodableMap* enum_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullEnumMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - enum_map_arg ? EncodableValue(*enum_map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + enum_map_arg ? EncodableValue(*enum_map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableNonNullClassMap( - const EncodableMap* class_map_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableNonNullClassMap" + message_channel_suffix_; + const EncodableMap* class_map_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableNonNullClassMap" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - class_map_arg ? EncodableValue(*class_map_arg) : EncodableValue(), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto* return_value = std::get_if(&list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + class_map_arg ? EncodableValue(*class_map_arg) : EncodableValue(), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto* return_value = + std::get_if(&list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoNullableEnum( - const AnEnum* an_enum_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum" + message_channel_suffix_; + const AnEnum* an_enum_arg, std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoNullableEnum" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - an_enum_arg ? CustomEncodableValue(*an_enum_arg) : EncodableValue(), + an_enum_arg ? CustomEncodableValue(*an_enum_arg) : EncodableValue(), }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - AnEnum return_value_value; - const AnEnum* return_value = nullptr; - if (!list_return_value->at(0).IsNull()) { - return_value_value = std::any_cast(std::get(list_return_value->at(0))); - return_value = &return_value_value; + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + AnEnum return_value_value; + const AnEnum* return_value = nullptr; + if (!list_return_value->at(0).IsNull()) { + return_value_value = std::any_cast( + std::get(list_return_value->at(0))); + return_value = &return_value_value; + } + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); } - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + }); } void FlutterIntegrationCoreApi::EchoAnotherNullableEnum( - const AnotherEnum* another_enum_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum" + message_channel_suffix_; + const AnotherEnum* another_enum_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAnotherNullableEnum" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - another_enum_arg ? CustomEncodableValue(*another_enum_arg) : EncodableValue(), + another_enum_arg ? CustomEncodableValue(*another_enum_arg) + : EncodableValue(), }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - AnotherEnum return_value_value; - const AnotherEnum* return_value = nullptr; - if (!list_return_value->at(0).IsNull()) { - return_value_value = std::any_cast(std::get(list_return_value->at(0))); - return_value = &return_value_value; + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + AnotherEnum return_value_value; + const AnotherEnum* return_value = nullptr; + if (!list_return_value->at(0).IsNull()) { + return_value_value = std::any_cast( + std::get(list_return_value->at(0))); + return_value = &return_value_value; + } + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); } - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + }); } void FlutterIntegrationCoreApi::NoopAsync( - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync" + message_channel_suffix_; + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "noopAsync" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - on_success(); - } - } else { - on_error(CreateConnectionError(channel_name)); - } - }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + on_success(); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterIntegrationCoreApi::EchoAsyncString( - const std::string& a_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString" + message_channel_suffix_; + const std::string& a_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAsyncString" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_string_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(a_string_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } /// The codec used by HostTrivialApi. const ::flutter::StandardMessageCodec& HostTrivialApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance( + &PigeonInternalCodecSerializer::GetInstance()); } -// Sets up an instance of `HostTrivialApi` to handle messages through the `binary_messenger`. -void HostTrivialApi::SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostTrivialApi* api) { +// Sets up an instance of `HostTrivialApi` to handle messages through the +// `binary_messenger`. +void HostTrivialApi::SetUp(::flutter::BinaryMessenger* binary_messenger, + HostTrivialApi* api) { HostTrivialApi::SetUp(binary_messenger, api, ""); } -void HostTrivialApi::SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostTrivialApi* api, - const std::string& message_channel_suffix) { - const std::string prepended_suffix = message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : ""; - { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - std::optional output = api->Noop(); - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); +void HostTrivialApi::SetUp(::flutter::BinaryMessenger* binary_messenger, + HostTrivialApi* api, + const std::string& message_channel_suffix) { + const std::string prepended_suffix = + message_channel_suffix.length() > 0 + ? std::string(".") + message_channel_suffix + : ""; + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + std::optional output = api->Noop(); + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); } else { channel.SetMessageHandler(nullptr); } @@ -8033,85 +10501,98 @@ void HostTrivialApi::SetUp( } EncodableValue HostTrivialApi::WrapError(std::string_view error_message) { - return EncodableValue(EncodableList{ - EncodableValue(std::string(error_message)), - EncodableValue("Error"), - EncodableValue() - }); + return EncodableValue( + EncodableList{EncodableValue(std::string(error_message)), + EncodableValue("Error"), EncodableValue()}); } EncodableValue HostTrivialApi::WrapError(const FlutterError& error) { - return EncodableValue(EncodableList{ - EncodableValue(error.code()), - EncodableValue(error.message()), - error.details() - }); + return EncodableValue(EncodableList{EncodableValue(error.code()), + EncodableValue(error.message()), + error.details()}); } /// The codec used by HostSmallApi. const ::flutter::StandardMessageCodec& HostSmallApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance( + &PigeonInternalCodecSerializer::GetInstance()); } -// Sets up an instance of `HostSmallApi` to handle messages through the `binary_messenger`. -void HostSmallApi::SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostSmallApi* api) { +// Sets up an instance of `HostSmallApi` to handle messages through the +// `binary_messenger`. +void HostSmallApi::SetUp(::flutter::BinaryMessenger* binary_messenger, + HostSmallApi* api) { HostSmallApi::SetUp(binary_messenger, api, ""); } -void HostSmallApi::SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostSmallApi* api, - const std::string& message_channel_suffix) { - const std::string prepended_suffix = message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : ""; - { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo" + prepended_suffix, &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_a_string_arg = args.at(0); - if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); - return; - } - const auto& a_string_arg = std::get(encodable_a_string_arg); - api->Echo(a_string_arg, [reply](ErrorOr&& output) { - if (output.has_error()) { - reply(WrapError(output.error())); - return; +void HostSmallApi::SetUp(::flutter::BinaryMessenger* binary_messenger, + HostSmallApi* api, + const std::string& message_channel_suffix) { + const std::string prepended_suffix = + message_channel_suffix.length() > 0 + ? std::string(".") + message_channel_suffix + : ""; + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_a_string_arg = args.at(0); + if (encodable_a_string_arg.IsNull()) { + reply(WrapError("a_string_arg unexpectedly null.")); + return; + } + const auto& a_string_arg = + std::get(encodable_a_string_arg); + api->Echo(a_string_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } } { - BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid" + prepended_suffix, &GetCodec()); + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid" + + prepended_suffix, + &GetCodec()); if (api != nullptr) { - channel.SetMessageHandler([api](const EncodableValue& message, const ::flutter::MessageReply& reply) { - try { - api->VoidVoid([reply](std::optional&& output) { - if (output.has_value()) { - reply(WrapError(output.value())); - return; + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + api->VoidVoid([reply](std::optional&& output) { + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); }); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); } else { channel.SetMessageHandler(nullptr); } @@ -8119,86 +10600,107 @@ void HostSmallApi::SetUp( } EncodableValue HostSmallApi::WrapError(std::string_view error_message) { - return EncodableValue(EncodableList{ - EncodableValue(std::string(error_message)), - EncodableValue("Error"), - EncodableValue() - }); + return EncodableValue( + EncodableList{EncodableValue(std::string(error_message)), + EncodableValue("Error"), EncodableValue()}); } EncodableValue HostSmallApi::WrapError(const FlutterError& error) { - return EncodableValue(EncodableList{ - EncodableValue(error.code()), - EncodableValue(error.message()), - error.details() - }); + return EncodableValue(EncodableList{EncodableValue(error.code()), + EncodableValue(error.message()), + error.details()}); } -// Generated class from Pigeon that represents Flutter messages that can be called from C++. +// Generated class from Pigeon that represents Flutter messages that can be +// called from C++. FlutterSmallApi::FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger) - : binary_messenger_(binary_messenger), - message_channel_suffix_("") {} + : binary_messenger_(binary_messenger), message_channel_suffix_("") {} -FlutterSmallApi::FlutterSmallApi( - ::flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix) - : binary_messenger_(binary_messenger), - message_channel_suffix_(message_channel_suffix.length() > 0 ? std::string(".") + message_channel_suffix : "") {} +FlutterSmallApi::FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix) + : binary_messenger_(binary_messenger), + message_channel_suffix_(message_channel_suffix.length() > 0 + ? std::string(".") + message_channel_suffix + : "") {} const ::flutter::StandardMessageCodec& FlutterSmallApi::GetCodec() { - return ::flutter::StandardMessageCodec::GetInstance(&PigeonInternalCodecSerializer::GetInstance()); + return ::flutter::StandardMessageCodec::GetInstance( + &PigeonInternalCodecSerializer::GetInstance()); } void FlutterSmallApi::EchoWrappedList( - const TestMessage& msg_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList" + message_channel_suffix_; + const TestMessage& msg_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi." + "echoWrappedList" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - CustomEncodableValue(msg_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::any_cast(std::get(list_return_value->at(0))); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + CustomEncodableValue(msg_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast( + std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } void FlutterSmallApi::EchoString( - const std::string& a_string_arg, - std::function&& on_success, - std::function&& on_error) { - const std::string channel_name = "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString" + message_channel_suffix_; + const std::string& a_string_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString" + + message_channel_suffix_; BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ - EncodableValue(a_string_arg), - }); - channel.Send(encoded_api_arguments, [channel_name, on_success = std::move(on_success), on_error = std::move(on_error)](const uint8_t* reply, size_t reply_size) { - std::unique_ptr response = GetCodec().DecodeMessage(reply, reply_size); - const auto& encodable_return_value = *response; - const auto* list_return_value = std::get_if(&encodable_return_value); - if (list_return_value) { - if (list_return_value->size() > 1) { - on_error(FlutterError(std::get(list_return_value->at(0)), std::get(list_return_value->at(1)), list_return_value->at(2))); - } else { - const auto& return_value = std::get(list_return_value->at(0)); - on_success(return_value); - } - } else { - on_error(CreateConnectionError(channel_name)); - } + EncodableValue(a_string_arg), }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = + std::get(list_return_value->at(0)); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); } } // namespace core_tests_pigeontest diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index 83130d348354..ccadcf93fd1c 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -24,12 +24,12 @@ class CoreTestsTest; class FlutterError { public: - explicit FlutterError(const std::string& code) - : code_(code) {} + explicit FlutterError(const std::string& code) : code_(code) {} explicit FlutterError(const std::string& code, const std::string& message) - : code_(code), message_(message) {} - explicit FlutterError(const std::string& code, const std::string& message, const ::flutter::EncodableValue& details) - : code_(code), message_(message), details_(details) {} + : code_(code), message_(message) {} + explicit FlutterError(const std::string& code, const std::string& message, + const ::flutter::EncodableValue& details) + : code_(code), message_(message), details_(details) {} const std::string& code() const { return code_; } const std::string& message() const { return message_; } @@ -41,7 +41,8 @@ class FlutterError { ::flutter::EncodableValue details_; }; -template class ErrorOr { +template +class ErrorOr { public: ErrorOr(const T& rhs) : v_(rhs) {} ErrorOr(const T&& rhs) : v_(std::move(rhs)) {} @@ -64,7 +65,6 @@ template class ErrorOr { std::variant v_; }; - enum class AnEnum { kOne = 0, kTwo = 1, @@ -73,10 +73,7 @@ enum class AnEnum { kFourHundredTwentyTwo = 4 }; -enum class AnotherEnum { - kJustInCase = 0 -}; - +enum class AnotherEnum { kJustInCase = 0 }; // Generated class from Pigeon that represents data sent in messages. class UnusedClass { @@ -93,6 +90,7 @@ class UnusedClass { bool operator==(const UnusedClass& other) const; bool operator!=(const UnusedClass& other) const; + private: static UnusedClass FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; @@ -106,42 +104,36 @@ class UnusedClass { std::optional<::flutter::EncodableValue> a_field_; }; - // A class containing all supported types. // // Generated class from Pigeon that represents data sent in messages. class AllTypes { public: // Constructs an object setting all fields. - explicit AllTypes( - bool a_bool, - int64_t an_int, - int64_t an_int64, - double a_double, - const std::vector& a_byte_array, - const std::vector& a4_byte_array, - const std::vector& a8_byte_array, - const std::vector& a_float_array, - const AnEnum& an_enum, - const AnotherEnum& another_enum, - const std::string& a_string, - const ::flutter::EncodableValue& an_object, - const ::flutter::EncodableList& list, - const ::flutter::EncodableList& string_list, - const ::flutter::EncodableList& int_list, - const ::flutter::EncodableList& double_list, - const ::flutter::EncodableList& bool_list, - const ::flutter::EncodableList& enum_list, - const ::flutter::EncodableList& object_list, - const ::flutter::EncodableList& list_list, - const ::flutter::EncodableList& map_list, - const ::flutter::EncodableMap& map, - const ::flutter::EncodableMap& string_map, - const ::flutter::EncodableMap& int_map, - const ::flutter::EncodableMap& enum_map, - const ::flutter::EncodableMap& object_map, - const ::flutter::EncodableMap& list_map, - const ::flutter::EncodableMap& map_map); + explicit AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, + double a_double, const std::vector& a_byte_array, + const std::vector& a4_byte_array, + const std::vector& a8_byte_array, + const std::vector& a_float_array, + const AnEnum& an_enum, const AnotherEnum& another_enum, + const std::string& a_string, + const ::flutter::EncodableValue& an_object, + const ::flutter::EncodableList& list, + const ::flutter::EncodableList& string_list, + const ::flutter::EncodableList& int_list, + const ::flutter::EncodableList& double_list, + const ::flutter::EncodableList& bool_list, + const ::flutter::EncodableList& enum_list, + const ::flutter::EncodableList& object_list, + const ::flutter::EncodableList& list_list, + const ::flutter::EncodableList& map_list, + const ::flutter::EncodableMap& map, + const ::flutter::EncodableMap& string_map, + const ::flutter::EncodableMap& int_map, + const ::flutter::EncodableMap& enum_map, + const ::flutter::EncodableMap& object_map, + const ::flutter::EncodableMap& list_map, + const ::flutter::EncodableMap& map_map); bool a_bool() const; void set_a_bool(bool value_arg); @@ -229,6 +221,7 @@ class AllTypes { bool operator==(const AllTypes& other) const; bool operator!=(const AllTypes& other) const; + private: static AllTypes FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; @@ -270,7 +263,6 @@ class AllTypes { ::flutter::EncodableMap map_map_; }; - // A class containing all supported nullable types. // // Generated class from Pigeon that represents data sent in messages. @@ -281,37 +273,34 @@ class AllNullableTypes { // Constructs an object setting all fields. explicit AllNullableTypes( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const int64_t* a_nullable_int64, - const double* a_nullable_double, - const std::vector* a_nullable_byte_array, - const std::vector* a_nullable4_byte_array, - const std::vector* a_nullable8_byte_array, - const std::vector* a_nullable_float_array, - const AnEnum* a_nullable_enum, - const AnotherEnum* another_nullable_enum, - const std::string* a_nullable_string, - const ::flutter::EncodableValue* a_nullable_object, - const AllNullableTypes* all_nullable_types, - const ::flutter::EncodableList* list, - const ::flutter::EncodableList* string_list, - const ::flutter::EncodableList* int_list, - const ::flutter::EncodableList* double_list, - const ::flutter::EncodableList* bool_list, - const ::flutter::EncodableList* enum_list, - const ::flutter::EncodableList* object_list, - const ::flutter::EncodableList* list_list, - const ::flutter::EncodableList* map_list, - const ::flutter::EncodableList* recursive_class_list, - const ::flutter::EncodableMap* map, - const ::flutter::EncodableMap* string_map, - const ::flutter::EncodableMap* int_map, - const ::flutter::EncodableMap* enum_map, - const ::flutter::EncodableMap* object_map, - const ::flutter::EncodableMap* list_map, - const ::flutter::EncodableMap* map_map, - const ::flutter::EncodableMap* recursive_class_map); + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const int64_t* a_nullable_int64, const double* a_nullable_double, + const std::vector* a_nullable_byte_array, + const std::vector* a_nullable4_byte_array, + const std::vector* a_nullable8_byte_array, + const std::vector* a_nullable_float_array, + const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, + const ::flutter::EncodableValue* a_nullable_object, + const AllNullableTypes* all_nullable_types, + const ::flutter::EncodableList* list, + const ::flutter::EncodableList* string_list, + const ::flutter::EncodableList* int_list, + const ::flutter::EncodableList* double_list, + const ::flutter::EncodableList* bool_list, + const ::flutter::EncodableList* enum_list, + const ::flutter::EncodableList* object_list, + const ::flutter::EncodableList* list_list, + const ::flutter::EncodableList* map_list, + const ::flutter::EncodableList* recursive_class_list, + const ::flutter::EncodableMap* map, + const ::flutter::EncodableMap* string_map, + const ::flutter::EncodableMap* int_map, + const ::flutter::EncodableMap* enum_map, + const ::flutter::EncodableMap* object_map, + const ::flutter::EncodableMap* list_map, + const ::flutter::EncodableMap* map_map, + const ::flutter::EncodableMap* recursive_class_map); ~AllNullableTypes() = default; AllNullableTypes(const AllNullableTypes& other); @@ -444,8 +433,10 @@ class AllNullableTypes { bool operator==(const AllNullableTypes& other) const; bool operator!=(const AllNullableTypes& other) const; + private: - static AllNullableTypes FromEncodableList(const ::flutter::EncodableList& list); + static AllNullableTypes FromEncodableList( + const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; @@ -488,7 +479,6 @@ class AllNullableTypes { std::optional<::flutter::EncodableMap> recursive_class_map_; }; - // The primary purpose for this class is to ensure coverage of Swift structs // with nullable items, as the primary [AllNullableTypes] class is being used to // test Swift classes. @@ -501,34 +491,31 @@ class AllNullableTypesWithoutRecursion { // Constructs an object setting all fields. explicit AllNullableTypesWithoutRecursion( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const int64_t* a_nullable_int64, - const double* a_nullable_double, - const std::vector* a_nullable_byte_array, - const std::vector* a_nullable4_byte_array, - const std::vector* a_nullable8_byte_array, - const std::vector* a_nullable_float_array, - const AnEnum* a_nullable_enum, - const AnotherEnum* another_nullable_enum, - const std::string* a_nullable_string, - const ::flutter::EncodableValue* a_nullable_object, - const ::flutter::EncodableList* list, - const ::flutter::EncodableList* string_list, - const ::flutter::EncodableList* int_list, - const ::flutter::EncodableList* double_list, - const ::flutter::EncodableList* bool_list, - const ::flutter::EncodableList* enum_list, - const ::flutter::EncodableList* object_list, - const ::flutter::EncodableList* list_list, - const ::flutter::EncodableList* map_list, - const ::flutter::EncodableMap* map, - const ::flutter::EncodableMap* string_map, - const ::flutter::EncodableMap* int_map, - const ::flutter::EncodableMap* enum_map, - const ::flutter::EncodableMap* object_map, - const ::flutter::EncodableMap* list_map, - const ::flutter::EncodableMap* map_map); + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const int64_t* a_nullable_int64, const double* a_nullable_double, + const std::vector* a_nullable_byte_array, + const std::vector* a_nullable4_byte_array, + const std::vector* a_nullable8_byte_array, + const std::vector* a_nullable_float_array, + const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, + const ::flutter::EncodableValue* a_nullable_object, + const ::flutter::EncodableList* list, + const ::flutter::EncodableList* string_list, + const ::flutter::EncodableList* int_list, + const ::flutter::EncodableList* double_list, + const ::flutter::EncodableList* bool_list, + const ::flutter::EncodableList* enum_list, + const ::flutter::EncodableList* object_list, + const ::flutter::EncodableList* list_list, + const ::flutter::EncodableList* map_list, + const ::flutter::EncodableMap* map, + const ::flutter::EncodableMap* string_map, + const ::flutter::EncodableMap* int_map, + const ::flutter::EncodableMap* enum_map, + const ::flutter::EncodableMap* object_map, + const ::flutter::EncodableMap* list_map, + const ::flutter::EncodableMap* map_map); const bool* a_nullable_bool() const; void set_a_nullable_bool(const bool* value_arg); @@ -644,8 +631,10 @@ class AllNullableTypesWithoutRecursion { bool operator==(const AllNullableTypesWithoutRecursion& other) const; bool operator!=(const AllNullableTypesWithoutRecursion& other) const; + private: - static AllNullableTypesWithoutRecursion FromEncodableList(const ::flutter::EncodableList& list); + static AllNullableTypesWithoutRecursion FromEncodableList( + const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; @@ -685,7 +674,6 @@ class AllNullableTypesWithoutRecursion { std::optional<::flutter::EncodableMap> map_map_; }; - // A class for testing nested class handling. // // This is needed to test nested nullable and non-nullable classes, @@ -696,20 +684,19 @@ class AllNullableTypesWithoutRecursion { class AllClassesWrapper { public: // Constructs an object setting all non-nullable fields. - explicit AllClassesWrapper( - const AllNullableTypes& all_nullable_types, - const ::flutter::EncodableList& class_list, - const ::flutter::EncodableMap& class_map); + explicit AllClassesWrapper(const AllNullableTypes& all_nullable_types, + const ::flutter::EncodableList& class_list, + const ::flutter::EncodableMap& class_map); // Constructs an object setting all fields. explicit AllClassesWrapper( - const AllNullableTypes& all_nullable_types, - const AllNullableTypesWithoutRecursion* all_nullable_types_without_recursion, - const AllTypes* all_types, - const ::flutter::EncodableList& class_list, - const ::flutter::EncodableList* nullable_class_list, - const ::flutter::EncodableMap& class_map, - const ::flutter::EncodableMap* nullable_class_map); + const AllNullableTypes& all_nullable_types, + const AllNullableTypesWithoutRecursion* + all_nullable_types_without_recursion, + const AllTypes* all_types, const ::flutter::EncodableList& class_list, + const ::flutter::EncodableList* nullable_class_list, + const ::flutter::EncodableMap& class_map, + const ::flutter::EncodableMap* nullable_class_map); ~AllClassesWrapper() = default; AllClassesWrapper(const AllClassesWrapper& other); @@ -719,9 +706,12 @@ class AllClassesWrapper { const AllNullableTypes& all_nullable_types() const; void set_all_nullable_types(const AllNullableTypes& value_arg); - const AllNullableTypesWithoutRecursion* all_nullable_types_without_recursion() const; - void set_all_nullable_types_without_recursion(const AllNullableTypesWithoutRecursion* value_arg); - void set_all_nullable_types_without_recursion(const AllNullableTypesWithoutRecursion& value_arg); + const AllNullableTypesWithoutRecursion* all_nullable_types_without_recursion() + const; + void set_all_nullable_types_without_recursion( + const AllNullableTypesWithoutRecursion* value_arg); + void set_all_nullable_types_without_recursion( + const AllNullableTypesWithoutRecursion& value_arg); const AllTypes* all_types() const; void set_all_types(const AllTypes* value_arg); @@ -743,8 +733,10 @@ class AllClassesWrapper { bool operator==(const AllClassesWrapper& other) const; bool operator!=(const AllClassesWrapper& other) const; + private: - static AllClassesWrapper FromEncodableList(const ::flutter::EncodableList& list); + static AllClassesWrapper FromEncodableList( + const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -754,7 +746,8 @@ class AllClassesWrapper { friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; std::unique_ptr all_nullable_types_; - std::unique_ptr all_nullable_types_without_recursion_; + std::unique_ptr + all_nullable_types_without_recursion_; std::unique_ptr all_types_; ::flutter::EncodableList class_list_; std::optional<::flutter::EncodableList> nullable_class_list_; @@ -762,7 +755,6 @@ class AllClassesWrapper { std::optional<::flutter::EncodableMap> nullable_class_map_; }; - // A data class containing a List, used in unit tests. // // Generated class from Pigeon that represents data sent in messages. @@ -780,6 +772,7 @@ class TestMessage { bool operator==(const TestMessage& other) const; bool operator!=(const TestMessage& other) const; + private: static TestMessage FromEncodableList(const ::flutter::EncodableList& list); ::flutter::EncodableList ToEncodableList() const; @@ -793,8 +786,8 @@ class TestMessage { std::optional<::flutter::EncodableList> test_list_; }; - -class PigeonInternalCodecSerializer : public ::flutter::StandardCodecSerializer { +class PigeonInternalCodecSerializer + : public ::flutter::StandardCodecSerializer { public: PigeonInternalCodecSerializer(); inline static PigeonInternalCodecSerializer& GetInstance() { @@ -802,19 +795,19 @@ class PigeonInternalCodecSerializer : public ::flutter::StandardCodecSerializer return sInstance; } - void WriteValue( - const ::flutter::EncodableValue& value, - ::flutter::ByteStreamWriter* stream) const override; + void WriteValue(const ::flutter::EncodableValue& value, + ::flutter::ByteStreamWriter* stream) const override; + protected: ::flutter::EncodableValue ReadValueOfType( - uint8_t type, - ::flutter::ByteStreamReader* stream) const override; + uint8_t type, ::flutter::ByteStreamReader* stream) const override; }; // The core interface that each host language plugin must implement in // platform_test integration tests. // -// Generated interface from Pigeon that represents a handler of messages from Flutter. +// Generated interface from Pigeon that represents a handler of messages from +// Flutter. class HostIntegrationCoreApi { public: HostIntegrationCoreApi(const HostIntegrationCoreApi&) = delete; @@ -830,7 +823,8 @@ class HostIntegrationCoreApi { // Returns an error from a void function, to test error handling. virtual std::optional ThrowErrorFromVoid() = 0; // Returns a Flutter error, to test error handling. - virtual ErrorOr> ThrowFlutterError() = 0; + virtual ErrorOr> + ThrowFlutterError() = 0; // Returns passed in int. virtual ErrorOr EchoInt(int64_t an_int) = 0; // Returns passed in double. @@ -840,720 +834,817 @@ class HostIntegrationCoreApi { // Returns the passed in string. virtual ErrorOr EchoString(const std::string& a_string) = 0; // Returns the passed in Uint8List. - virtual ErrorOr> EchoUint8List(const std::vector& a_uint8_list) = 0; + virtual ErrorOr> EchoUint8List( + const std::vector& a_uint8_list) = 0; // Returns the passed in generic Object. - virtual ErrorOr<::flutter::EncodableValue> EchoObject(const ::flutter::EncodableValue& an_object) = 0; + virtual ErrorOr<::flutter::EncodableValue> EchoObject( + const ::flutter::EncodableValue& an_object) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoList(const ::flutter::EncodableList& list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoList( + const ::flutter::EncodableList& list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoEnumList(const ::flutter::EncodableList& enum_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoEnumList( + const ::flutter::EncodableList& enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoClassList(const ::flutter::EncodableList& class_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoClassList( + const ::flutter::EncodableList& class_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoNonNullEnumList(const ::flutter::EncodableList& enum_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoNonNullEnumList( + const ::flutter::EncodableList& enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableList> EchoNonNullClassList(const ::flutter::EncodableList& class_list) = 0; + virtual ErrorOr<::flutter::EncodableList> EchoNonNullClassList( + const ::flutter::EncodableList& class_list) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoMap(const ::flutter::EncodableMap& map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoMap( + const ::flutter::EncodableMap& map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoStringMap(const ::flutter::EncodableMap& string_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoStringMap( + const ::flutter::EncodableMap& string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoIntMap(const ::flutter::EncodableMap& int_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoIntMap( + const ::flutter::EncodableMap& int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoEnumMap(const ::flutter::EncodableMap& enum_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoEnumMap( + const ::flutter::EncodableMap& enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoClassMap(const ::flutter::EncodableMap& class_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoClassMap( + const ::flutter::EncodableMap& class_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoNonNullStringMap(const ::flutter::EncodableMap& string_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullStringMap( + const ::flutter::EncodableMap& string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoNonNullIntMap(const ::flutter::EncodableMap& int_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullIntMap( + const ::flutter::EncodableMap& int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoNonNullEnumMap(const ::flutter::EncodableMap& enum_map) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullEnumMap( + const ::flutter::EncodableMap& enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr<::flutter::EncodableMap> EchoNonNullClassMap(const ::flutter::EncodableMap& class_map) = 0; - // Returns the passed class to test nested class serialization and deserialization. - virtual ErrorOr EchoClassWrapper(const AllClassesWrapper& wrapper) = 0; + virtual ErrorOr<::flutter::EncodableMap> EchoNonNullClassMap( + const ::flutter::EncodableMap& class_map) = 0; + // Returns the passed class to test nested class serialization and + // deserialization. + virtual ErrorOr EchoClassWrapper( + const AllClassesWrapper& wrapper) = 0; // Returns the passed enum to test serialization and deserialization. virtual ErrorOr EchoEnum(const AnEnum& an_enum) = 0; // Returns the passed enum to test serialization and deserialization. - virtual ErrorOr EchoAnotherEnum(const AnotherEnum& another_enum) = 0; + virtual ErrorOr EchoAnotherEnum( + const AnotherEnum& another_enum) = 0; // Returns the default string. - virtual ErrorOr EchoNamedDefaultString(const std::string& a_string) = 0; + virtual ErrorOr EchoNamedDefaultString( + const std::string& a_string) = 0; // Returns passed in double. virtual ErrorOr EchoOptionalDefaultDouble(double a_double) = 0; // Returns passed in int. virtual ErrorOr EchoRequiredInt(int64_t an_int) = 0; // Returns the result of platform-side equality check. - virtual ErrorOr AreAllNullableTypesEqual( - const AllNullableTypes& a, - const AllNullableTypes& b) = 0; + virtual ErrorOr AreAllNullableTypesEqual(const AllNullableTypes& a, + const AllNullableTypes& b) = 0; // Returns the platform-side hash code for the given object. - virtual ErrorOr GetAllNullableTypesHash(const AllNullableTypes& value) = 0; + virtual ErrorOr GetAllNullableTypesHash( + const AllNullableTypes& value) = 0; // Returns the passed object, to test serialization and deserialization. - virtual ErrorOr> EchoAllNullableTypes(const AllNullableTypes* everything) = 0; + virtual ErrorOr> EchoAllNullableTypes( + const AllNullableTypes* everything) = 0; // Returns the passed object, to test serialization and deserialization. - virtual ErrorOr> EchoAllNullableTypesWithoutRecursion(const AllNullableTypesWithoutRecursion* everything) = 0; + virtual ErrorOr> + EchoAllNullableTypesWithoutRecursion( + const AllNullableTypesWithoutRecursion* everything) = 0; // Returns the inner `aString` value from the wrapped object, to test // sending of nested objects. - virtual ErrorOr> ExtractNestedNullableString(const AllClassesWrapper& wrapper) = 0; + virtual ErrorOr> ExtractNestedNullableString( + const AllClassesWrapper& wrapper) = 0; // Returns the inner `aString` value from the wrapped object, to test // sending of nested objects. - virtual ErrorOr CreateNestedNullableString(const std::string* nullable_string) = 0; + virtual ErrorOr CreateNestedNullableString( + const std::string* nullable_string) = 0; // Returns passed in arguments of multiple types. virtual ErrorOr SendMultipleNullableTypes( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const std::string* a_nullable_string) = 0; + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const std::string* a_nullable_string) = 0; // Returns passed in arguments of multiple types. - virtual ErrorOr SendMultipleNullableTypesWithoutRecursion( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const std::string* a_nullable_string) = 0; + virtual ErrorOr + SendMultipleNullableTypesWithoutRecursion( + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const std::string* a_nullable_string) = 0; // Returns passed in int. - virtual ErrorOr> EchoNullableInt(const int64_t* a_nullable_int) = 0; + virtual ErrorOr> EchoNullableInt( + const int64_t* a_nullable_int) = 0; // Returns passed in double. - virtual ErrorOr> EchoNullableDouble(const double* a_nullable_double) = 0; + virtual ErrorOr> EchoNullableDouble( + const double* a_nullable_double) = 0; // Returns the passed in boolean. - virtual ErrorOr> EchoNullableBool(const bool* a_nullable_bool) = 0; + virtual ErrorOr> EchoNullableBool( + const bool* a_nullable_bool) = 0; // Returns the passed in string. - virtual ErrorOr> EchoNullableString(const std::string* a_nullable_string) = 0; + virtual ErrorOr> EchoNullableString( + const std::string* a_nullable_string) = 0; // Returns the passed in Uint8List. - virtual ErrorOr>> EchoNullableUint8List(const std::vector* a_nullable_uint8_list) = 0; + virtual ErrorOr>> EchoNullableUint8List( + const std::vector* a_nullable_uint8_list) = 0; // Returns the passed in generic Object. - virtual ErrorOr> EchoNullableObject(const ::flutter::EncodableValue* a_nullable_object) = 0; + virtual ErrorOr> EchoNullableObject( + const ::flutter::EncodableValue* a_nullable_object) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableList(const ::flutter::EncodableList* a_nullable_list) = 0; + virtual ErrorOr> EchoNullableList( + const ::flutter::EncodableList* a_nullable_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableEnumList(const ::flutter::EncodableList* enum_list) = 0; + virtual ErrorOr> EchoNullableEnumList( + const ::flutter::EncodableList* enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableClassList(const ::flutter::EncodableList* class_list) = 0; + virtual ErrorOr> + EchoNullableClassList(const ::flutter::EncodableList* class_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableNonNullEnumList(const ::flutter::EncodableList* enum_list) = 0; + virtual ErrorOr> + EchoNullableNonNullEnumList(const ::flutter::EncodableList* enum_list) = 0; // Returns the passed list, to test serialization and deserialization. - virtual ErrorOr> EchoNullableNonNullClassList(const ::flutter::EncodableList* class_list) = 0; + virtual ErrorOr> + EchoNullableNonNullClassList(const ::flutter::EncodableList* class_list) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableMap(const ::flutter::EncodableMap* map) = 0; + virtual ErrorOr> EchoNullableMap( + const ::flutter::EncodableMap* map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableStringMap(const ::flutter::EncodableMap* string_map) = 0; + virtual ErrorOr> EchoNullableStringMap( + const ::flutter::EncodableMap* string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableIntMap(const ::flutter::EncodableMap* int_map) = 0; + virtual ErrorOr> EchoNullableIntMap( + const ::flutter::EncodableMap* int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableEnumMap(const ::flutter::EncodableMap* enum_map) = 0; + virtual ErrorOr> EchoNullableEnumMap( + const ::flutter::EncodableMap* enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableClassMap(const ::flutter::EncodableMap* class_map) = 0; + virtual ErrorOr> EchoNullableClassMap( + const ::flutter::EncodableMap* class_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableNonNullStringMap(const ::flutter::EncodableMap* string_map) = 0; + virtual ErrorOr> + EchoNullableNonNullStringMap(const ::flutter::EncodableMap* string_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableNonNullIntMap(const ::flutter::EncodableMap* int_map) = 0; + virtual ErrorOr> + EchoNullableNonNullIntMap(const ::flutter::EncodableMap* int_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableNonNullEnumMap(const ::flutter::EncodableMap* enum_map) = 0; + virtual ErrorOr> + EchoNullableNonNullEnumMap(const ::flutter::EncodableMap* enum_map) = 0; // Returns the passed map, to test serialization and deserialization. - virtual ErrorOr> EchoNullableNonNullClassMap(const ::flutter::EncodableMap* class_map) = 0; - virtual ErrorOr> EchoNullableEnum(const AnEnum* an_enum) = 0; - virtual ErrorOr> EchoAnotherNullableEnum(const AnotherEnum* another_enum) = 0; + virtual ErrorOr> + EchoNullableNonNullClassMap(const ::flutter::EncodableMap* class_map) = 0; + virtual ErrorOr> EchoNullableEnum( + const AnEnum* an_enum) = 0; + virtual ErrorOr> EchoAnotherNullableEnum( + const AnotherEnum* another_enum) = 0; // Returns passed in int. - virtual ErrorOr> EchoOptionalNullableInt(const int64_t* a_nullable_int) = 0; + virtual ErrorOr> EchoOptionalNullableInt( + const int64_t* a_nullable_int) = 0; // Returns the passed in string. - virtual ErrorOr> EchoNamedNullableString(const std::string* a_nullable_string) = 0; + virtual ErrorOr> EchoNamedNullableString( + const std::string* a_nullable_string) = 0; // A no-op function taking no arguments and returning no value, to sanity // test basic asynchronous calling. - virtual void NoopAsync(std::function reply)> result) = 0; + virtual void NoopAsync( + std::function reply)> result) = 0; // Returns passed in int asynchronously. virtual void EchoAsyncInt( - int64_t an_int, - std::function reply)> result) = 0; + int64_t an_int, std::function reply)> result) = 0; // Returns passed in double asynchronously. virtual void EchoAsyncDouble( - double a_double, - std::function reply)> result) = 0; + double a_double, std::function reply)> result) = 0; // Returns the passed in boolean asynchronously. virtual void EchoAsyncBool( - bool a_bool, - std::function reply)> result) = 0; + bool a_bool, std::function reply)> result) = 0; // Returns the passed string asynchronously. virtual void EchoAsyncString( - const std::string& a_string, - std::function reply)> result) = 0; + const std::string& a_string, + std::function reply)> result) = 0; // Returns the passed in Uint8List asynchronously. virtual void EchoAsyncUint8List( - const std::vector& a_uint8_list, - std::function> reply)> result) = 0; + const std::vector& a_uint8_list, + std::function> reply)> result) = 0; // Returns the passed in generic Object asynchronously. virtual void EchoAsyncObject( - const ::flutter::EncodableValue& an_object, - std::function reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and deserialization. + const ::flutter::EncodableValue& an_object, + std::function reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncList( - const ::flutter::EncodableList& list, - std::function reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and deserialization. + const ::flutter::EncodableList& list, + std::function reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncEnumList( - const ::flutter::EncodableList& enum_list, - std::function reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and deserialization. + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; + // Returns the passed list, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncClassList( - const ::flutter::EncodableList& class_list, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncMap( - const ::flutter::EncodableMap& map, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap& map, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncStringMap( - const ::flutter::EncodableMap& string_map, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncIntMap( - const ::flutter::EncodableMap& int_map, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncClassMap( - const ::flutter::EncodableMap& class_map, - std::function reply)> result) = 0; - // Returns the passed enum, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncEnum( - const AnEnum& an_enum, - std::function reply)> result) = 0; - // Returns the passed enum, to test asynchronous serialization and deserialization. + const AnEnum& an_enum, + std::function reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and + // deserialization. virtual void EchoAnotherAsyncEnum( - const AnotherEnum& another_enum, - std::function reply)> result) = 0; + const AnotherEnum& another_enum, + std::function reply)> result) = 0; // Responds with an error from an async function returning a value. - virtual void ThrowAsyncError(std::function> reply)> result) = 0; + virtual void ThrowAsyncError( + std::function< + void(ErrorOr> reply)> + result) = 0; // Responds with an error from an async void function. - virtual void ThrowAsyncErrorFromVoid(std::function reply)> result) = 0; + virtual void ThrowAsyncErrorFromVoid( + std::function reply)> result) = 0; // Responds with a Flutter error from an async function returning a value. - virtual void ThrowAsyncFlutterError(std::function> reply)> result) = 0; + virtual void ThrowAsyncFlutterError( + std::function< + void(ErrorOr> reply)> + result) = 0; // Returns the passed object, to test async serialization and deserialization. virtual void EchoAsyncAllTypes( - const AllTypes& everything, - std::function reply)> result) = 0; + const AllTypes& everything, + std::function reply)> result) = 0; // Returns the passed object, to test serialization and deserialization. virtual void EchoAsyncNullableAllNullableTypes( - const AllNullableTypes* everything, - std::function> reply)> result) = 0; + const AllNullableTypes* everything, + std::function> reply)> + result) = 0; // Returns the passed object, to test serialization and deserialization. virtual void EchoAsyncNullableAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything, - std::function> reply)> result) = 0; + const AllNullableTypesWithoutRecursion* everything, + std::function< + void(ErrorOr> reply)> + result) = 0; // Returns passed in int asynchronously. virtual void EchoAsyncNullableInt( - const int64_t* an_int, - std::function> reply)> result) = 0; + const int64_t* an_int, + std::function> reply)> result) = 0; // Returns passed in double asynchronously. virtual void EchoAsyncNullableDouble( - const double* a_double, - std::function> reply)> result) = 0; + const double* a_double, + std::function> reply)> result) = 0; // Returns the passed in boolean asynchronously. virtual void EchoAsyncNullableBool( - const bool* a_bool, - std::function> reply)> result) = 0; + const bool* a_bool, + std::function> reply)> result) = 0; // Returns the passed string asynchronously. virtual void EchoAsyncNullableString( - const std::string* a_string, - std::function> reply)> result) = 0; + const std::string* a_string, + std::function> reply)> + result) = 0; // Returns the passed in Uint8List asynchronously. virtual void EchoAsyncNullableUint8List( - const std::vector* a_uint8_list, - std::function>> reply)> result) = 0; + const std::vector* a_uint8_list, + std::function>> reply)> + result) = 0; // Returns the passed in generic Object asynchronously. virtual void EchoAsyncNullableObject( - const ::flutter::EncodableValue* an_object, - std::function> reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and deserialization. + const ::flutter::EncodableValue* an_object, + std::function< + void(ErrorOr> reply)> + result) = 0; + // Returns the passed list, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableList( - const ::flutter::EncodableList* list, - std::function> reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and deserialization. + const ::flutter::EncodableList* list, + std::function< + void(ErrorOr> reply)> + result) = 0; + // Returns the passed list, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableEnumList( - const ::flutter::EncodableList* enum_list, - std::function> reply)> result) = 0; - // Returns the passed list, to test asynchronous serialization and deserialization. + const ::flutter::EncodableList* enum_list, + std::function< + void(ErrorOr> reply)> + result) = 0; + // Returns the passed list, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableClassList( - const ::flutter::EncodableList* class_list, - std::function> reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableList* class_list, + std::function< + void(ErrorOr> reply)> + result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableMap( - const ::flutter::EncodableMap* map, - std::function> reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap* map, + std::function> reply)> + result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableStringMap( - const ::flutter::EncodableMap* string_map, - std::function> reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap* string_map, + std::function> reply)> + result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableIntMap( - const ::flutter::EncodableMap* int_map, - std::function> reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap* int_map, + std::function> reply)> + result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function> reply)> result) = 0; - // Returns the passed map, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap* enum_map, + std::function> reply)> + result) = 0; + // Returns the passed map, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableClassMap( - const ::flutter::EncodableMap* class_map, - std::function> reply)> result) = 0; - // Returns the passed enum, to test asynchronous serialization and deserialization. + const ::flutter::EncodableMap* class_map, + std::function> reply)> + result) = 0; + // Returns the passed enum, to test asynchronous serialization and + // deserialization. virtual void EchoAsyncNullableEnum( - const AnEnum* an_enum, - std::function> reply)> result) = 0; - // Returns the passed enum, to test asynchronous serialization and deserialization. + const AnEnum* an_enum, + std::function> reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and + // deserialization. virtual void EchoAnotherAsyncNullableEnum( - const AnotherEnum* another_enum, - std::function> reply)> result) = 0; + const AnotherEnum* another_enum, + std::function> reply)> + result) = 0; // Returns true if the handler is run on a main thread, which should be // true since there is no TaskQueue annotation. virtual ErrorOr DefaultIsMainThread() = 0; // Returns true if the handler is run on a non-main thread, which should be // true for any platform with TaskQueue support. virtual ErrorOr TaskQueueIsBackgroundThread() = 0; - virtual void CallFlutterNoop(std::function reply)> result) = 0; - virtual void CallFlutterThrowError(std::function> reply)> result) = 0; - virtual void CallFlutterThrowErrorFromVoid(std::function reply)> result) = 0; + virtual void CallFlutterNoop( + std::function reply)> result) = 0; + virtual void CallFlutterThrowError( + std::function< + void(ErrorOr> reply)> + result) = 0; + virtual void CallFlutterThrowErrorFromVoid( + std::function reply)> result) = 0; virtual void CallFlutterEchoAllTypes( - const AllTypes& everything, - std::function reply)> result) = 0; + const AllTypes& everything, + std::function reply)> result) = 0; virtual void CallFlutterEchoAllNullableTypes( - const AllNullableTypes* everything, - std::function> reply)> result) = 0; + const AllNullableTypes* everything, + std::function> reply)> + result) = 0; virtual void CallFlutterSendMultipleNullableTypes( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const std::string* a_nullable_string, - std::function reply)> result) = 0; + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const std::string* a_nullable_string, + std::function reply)> result) = 0; virtual void CallFlutterEchoAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything, - std::function> reply)> result) = 0; + const AllNullableTypesWithoutRecursion* everything, + std::function< + void(ErrorOr> reply)> + result) = 0; virtual void CallFlutterSendMultipleNullableTypesWithoutRecursion( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const std::string* a_nullable_string, - std::function reply)> result) = 0; + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const std::string* a_nullable_string, + std::function reply)> + result) = 0; virtual void CallFlutterEchoBool( - bool a_bool, - std::function reply)> result) = 0; + bool a_bool, std::function reply)> result) = 0; virtual void CallFlutterEchoInt( - int64_t an_int, - std::function reply)> result) = 0; + int64_t an_int, std::function reply)> result) = 0; virtual void CallFlutterEchoDouble( - double a_double, - std::function reply)> result) = 0; + double a_double, std::function reply)> result) = 0; virtual void CallFlutterEchoString( - const std::string& a_string, - std::function reply)> result) = 0; + const std::string& a_string, + std::function reply)> result) = 0; virtual void CallFlutterEchoUint8List( - const std::vector& list, - std::function> reply)> result) = 0; + const std::vector& list, + std::function> reply)> result) = 0; virtual void CallFlutterEchoList( - const ::flutter::EncodableList& list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& list, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnumList( - const ::flutter::EncodableList& enum_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoClassList( - const ::flutter::EncodableList& class_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullEnumList( - const ::flutter::EncodableList& enum_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& enum_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullClassList( - const ::flutter::EncodableList& class_list, - std::function reply)> result) = 0; + const ::flutter::EncodableList& class_list, + std::function reply)> result) = 0; virtual void CallFlutterEchoMap( - const ::flutter::EncodableMap& map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& map, + std::function reply)> result) = 0; virtual void CallFlutterEchoStringMap( - const ::flutter::EncodableMap& string_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoIntMap( - const ::flutter::EncodableMap& int_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoClassMap( - const ::flutter::EncodableMap& class_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullStringMap( - const ::flutter::EncodableMap& string_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& string_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullIntMap( - const ::flutter::EncodableMap& int_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& int_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& enum_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoNonNullClassMap( - const ::flutter::EncodableMap& class_map, - std::function reply)> result) = 0; + const ::flutter::EncodableMap& class_map, + std::function reply)> result) = 0; virtual void CallFlutterEchoEnum( - const AnEnum& an_enum, - std::function reply)> result) = 0; + const AnEnum& an_enum, + std::function reply)> result) = 0; virtual void CallFlutterEchoAnotherEnum( - const AnotherEnum& another_enum, - std::function reply)> result) = 0; + const AnotherEnum& another_enum, + std::function reply)> result) = 0; virtual void CallFlutterEchoNullableBool( - const bool* a_bool, - std::function> reply)> result) = 0; + const bool* a_bool, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableInt( - const int64_t* an_int, - std::function> reply)> result) = 0; + const int64_t* an_int, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableDouble( - const double* a_double, - std::function> reply)> result) = 0; + const double* a_double, + std::function> reply)> result) = 0; virtual void CallFlutterEchoNullableString( - const std::string* a_string, - std::function> reply)> result) = 0; + const std::string* a_string, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableUint8List( - const std::vector* list, - std::function>> reply)> result) = 0; + const std::vector* list, + std::function>> reply)> + result) = 0; virtual void CallFlutterEchoNullableList( - const ::flutter::EncodableList* list, - std::function> reply)> result) = 0; + const ::flutter::EncodableList* list, + std::function< + void(ErrorOr> reply)> + result) = 0; virtual void CallFlutterEchoNullableEnumList( - const ::flutter::EncodableList* enum_list, - std::function> reply)> result) = 0; + const ::flutter::EncodableList* enum_list, + std::function< + void(ErrorOr> reply)> + result) = 0; virtual void CallFlutterEchoNullableClassList( - const ::flutter::EncodableList* class_list, - std::function> reply)> result) = 0; + const ::flutter::EncodableList* class_list, + std::function< + void(ErrorOr> reply)> + result) = 0; virtual void CallFlutterEchoNullableNonNullEnumList( - const ::flutter::EncodableList* enum_list, - std::function> reply)> result) = 0; + const ::flutter::EncodableList* enum_list, + std::function< + void(ErrorOr> reply)> + result) = 0; virtual void CallFlutterEchoNullableNonNullClassList( - const ::flutter::EncodableList* class_list, - std::function> reply)> result) = 0; + const ::flutter::EncodableList* class_list, + std::function< + void(ErrorOr> reply)> + result) = 0; virtual void CallFlutterEchoNullableMap( - const ::flutter::EncodableMap* map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableStringMap( - const ::flutter::EncodableMap* string_map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* string_map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableIntMap( - const ::flutter::EncodableMap* int_map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* int_map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* enum_map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableClassMap( - const ::flutter::EncodableMap* class_map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* class_map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableNonNullStringMap( - const ::flutter::EncodableMap* string_map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* string_map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableNonNullIntMap( - const ::flutter::EncodableMap* int_map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* int_map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableNonNullEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* enum_map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableNonNullClassMap( - const ::flutter::EncodableMap* class_map, - std::function> reply)> result) = 0; + const ::flutter::EncodableMap* class_map, + std::function> reply)> + result) = 0; virtual void CallFlutterEchoNullableEnum( - const AnEnum* an_enum, - std::function> reply)> result) = 0; + const AnEnum* an_enum, + std::function> reply)> result) = 0; virtual void CallFlutterEchoAnotherNullableEnum( - const AnotherEnum* another_enum, - std::function> reply)> result) = 0; + const AnotherEnum* another_enum, + std::function> reply)> + result) = 0; virtual void CallFlutterSmallApiEchoString( - const std::string& a_string, - std::function reply)> result) = 0; + const std::string& a_string, + std::function reply)> result) = 0; // The codec used by HostIntegrationCoreApi. static const ::flutter::StandardMessageCodec& GetCodec(); - // Sets up an instance of `HostIntegrationCoreApi` to handle messages through the `binary_messenger`. - static void SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api); - static void SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api, - const std::string& message_channel_suffix); + // Sets up an instance of `HostIntegrationCoreApi` to handle messages through + // the `binary_messenger`. + static void SetUp(::flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api); + static void SetUp(::flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api, + const std::string& message_channel_suffix); static ::flutter::EncodableValue WrapError(std::string_view error_message); static ::flutter::EncodableValue WrapError(const FlutterError& error); + protected: HostIntegrationCoreApi() = default; }; // The core interface that the Dart platform_test code implements for host // integration tests to call into. // -// Generated class from Pigeon that represents Flutter messages that can be called from C++. +// Generated class from Pigeon that represents Flutter messages that can be +// called from C++. class FlutterIntegrationCoreApi { public: FlutterIntegrationCoreApi(::flutter::BinaryMessenger* binary_messenger); - FlutterIntegrationCoreApi( - ::flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix); + FlutterIntegrationCoreApi(::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix); static const ::flutter::StandardMessageCodec& GetCodec(); // A no-op function taking no arguments and returning no value, to sanity // test basic calling. - void Noop( - std::function&& on_success, - std::function&& on_error); + void Noop(std::function&& on_success, + std::function&& on_error); // Responds with an error from an async function returning a value. void ThrowError( - std::function&& on_success, - std::function&& on_error); + std::function&& on_success, + std::function&& on_error); // Responds with an error from an async void function. - void ThrowErrorFromVoid( - std::function&& on_success, - std::function&& on_error); + void ThrowErrorFromVoid(std::function&& on_success, + std::function&& on_error); // Returns the passed object, to test serialization and deserialization. - void EchoAllTypes( - const AllTypes& everything, - std::function&& on_success, - std::function&& on_error); + void EchoAllTypes(const AllTypes& everything, + std::function&& on_success, + std::function&& on_error); // Returns the passed object, to test serialization and deserialization. void EchoAllNullableTypes( - const AllNullableTypes* everything, - std::function&& on_success, - std::function&& on_error); + const AllNullableTypes* everything, + std::function&& on_success, + std::function&& on_error); // Returns passed in arguments of multiple types. // // Tests multiple-arity FlutterApi handling. void SendMultipleNullableTypes( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const std::string* a_nullable_string, - std::function&& on_success, - std::function&& on_error); + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const std::string* a_nullable_string, + std::function&& on_success, + std::function&& on_error); // Returns the passed object, to test serialization and deserialization. void EchoAllNullableTypesWithoutRecursion( - const AllNullableTypesWithoutRecursion* everything, - std::function&& on_success, - std::function&& on_error); + const AllNullableTypesWithoutRecursion* everything, + std::function&& on_success, + std::function&& on_error); // Returns passed in arguments of multiple types. // // Tests multiple-arity FlutterApi handling. void SendMultipleNullableTypesWithoutRecursion( - const bool* a_nullable_bool, - const int64_t* a_nullable_int, - const std::string* a_nullable_string, - std::function&& on_success, - std::function&& on_error); + const bool* a_nullable_bool, const int64_t* a_nullable_int, + const std::string* a_nullable_string, + std::function&& on_success, + std::function&& on_error); // Returns the passed boolean, to test serialization and deserialization. - void EchoBool( - bool a_bool, - std::function&& on_success, - std::function&& on_error); + void EchoBool(bool a_bool, std::function&& on_success, + std::function&& on_error); // Returns the passed int, to test serialization and deserialization. - void EchoInt( - int64_t an_int, - std::function&& on_success, - std::function&& on_error); + void EchoInt(int64_t an_int, std::function&& on_success, + std::function&& on_error); // Returns the passed double, to test serialization and deserialization. - void EchoDouble( - double a_double, - std::function&& on_success, - std::function&& on_error); + void EchoDouble(double a_double, std::function&& on_success, + std::function&& on_error); // Returns the passed string, to test serialization and deserialization. - void EchoString( - const std::string& a_string, - std::function&& on_success, - std::function&& on_error); + void EchoString(const std::string& a_string, + std::function&& on_success, + std::function&& on_error); // Returns the passed byte list, to test serialization and deserialization. void EchoUint8List( - const std::vector& list, - std::function&)>&& on_success, - std::function&& on_error); + const std::vector& list, + std::function&)>&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoList( - const ::flutter::EncodableList& list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoEnumList( - const ::flutter::EncodableList& enum_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& enum_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoClassList( - const ::flutter::EncodableList& class_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& class_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNonNullEnumList( - const ::flutter::EncodableList& enum_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& enum_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNonNullClassList( - const ::flutter::EncodableList& class_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList& class_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. - void EchoMap( - const ::flutter::EncodableMap& map, - std::function&& on_success, - std::function&& on_error); + void EchoMap(const ::flutter::EncodableMap& map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoStringMap( - const ::flutter::EncodableMap& string_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& string_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoIntMap( - const ::flutter::EncodableMap& int_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& int_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& enum_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoClassMap( - const ::flutter::EncodableMap& class_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& class_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullStringMap( - const ::flutter::EncodableMap& string_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& string_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullIntMap( - const ::flutter::EncodableMap& int_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& int_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullEnumMap( - const ::flutter::EncodableMap& enum_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& enum_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNonNullClassMap( - const ::flutter::EncodableMap& class_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap& class_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed enum to test serialization and deserialization. - void EchoEnum( - const AnEnum& an_enum, - std::function&& on_success, - std::function&& on_error); + void EchoEnum(const AnEnum& an_enum, + std::function&& on_success, + std::function&& on_error); // Returns the passed enum to test serialization and deserialization. - void EchoAnotherEnum( - const AnotherEnum& another_enum, - std::function&& on_success, - std::function&& on_error); + void EchoAnotherEnum(const AnotherEnum& another_enum, + std::function&& on_success, + std::function&& on_error); // Returns the passed boolean, to test serialization and deserialization. - void EchoNullableBool( - const bool* a_bool, - std::function&& on_success, - std::function&& on_error); + void EchoNullableBool(const bool* a_bool, + std::function&& on_success, + std::function&& on_error); // Returns the passed int, to test serialization and deserialization. - void EchoNullableInt( - const int64_t* an_int, - std::function&& on_success, - std::function&& on_error); + void EchoNullableInt(const int64_t* an_int, + std::function&& on_success, + std::function&& on_error); // Returns the passed double, to test serialization and deserialization. - void EchoNullableDouble( - const double* a_double, - std::function&& on_success, - std::function&& on_error); + void EchoNullableDouble(const double* a_double, + std::function&& on_success, + std::function&& on_error); // Returns the passed string, to test serialization and deserialization. - void EchoNullableString( - const std::string* a_string, - std::function&& on_success, - std::function&& on_error); + void EchoNullableString(const std::string* a_string, + std::function&& on_success, + std::function&& on_error); // Returns the passed byte list, to test serialization and deserialization. void EchoNullableUint8List( - const std::vector* list, - std::function*)>&& on_success, - std::function&& on_error); + const std::vector* list, + std::function*)>&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableList( - const ::flutter::EncodableList* list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableEnumList( - const ::flutter::EncodableList* enum_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* enum_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableClassList( - const ::flutter::EncodableList* class_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* class_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableNonNullEnumList( - const ::flutter::EncodableList* enum_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* enum_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed list, to test serialization and deserialization. void EchoNullableNonNullClassList( - const ::flutter::EncodableList* class_list, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableList* class_list, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableMap( - const ::flutter::EncodableMap* map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableStringMap( - const ::flutter::EncodableMap* string_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* string_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableIntMap( - const ::flutter::EncodableMap* int_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* int_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* enum_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableClassMap( - const ::flutter::EncodableMap* class_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* class_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullStringMap( - const ::flutter::EncodableMap* string_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* string_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullIntMap( - const ::flutter::EncodableMap* int_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* int_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullEnumMap( - const ::flutter::EncodableMap* enum_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* enum_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed map, to test serialization and deserialization. void EchoNullableNonNullClassMap( - const ::flutter::EncodableMap* class_map, - std::function&& on_success, - std::function&& on_error); + const ::flutter::EncodableMap* class_map, + std::function&& on_success, + std::function&& on_error); // Returns the passed enum to test serialization and deserialization. - void EchoNullableEnum( - const AnEnum* an_enum, - std::function&& on_success, - std::function&& on_error); + void EchoNullableEnum(const AnEnum* an_enum, + std::function&& on_success, + std::function&& on_error); // Returns the passed enum to test serialization and deserialization. void EchoAnotherNullableEnum( - const AnotherEnum* another_enum, - std::function&& on_success, - std::function&& on_error); + const AnotherEnum* another_enum, + std::function&& on_success, + std::function&& on_error); // A no-op function taking no arguments and returning no value, to sanity // test basic asynchronous calling. - void NoopAsync( - std::function&& on_success, - std::function&& on_error); + void NoopAsync(std::function&& on_success, + std::function&& on_error); // Returns the passed in generic Object asynchronously. - void EchoAsyncString( - const std::string& a_string, - std::function&& on_success, - std::function&& on_error); + void EchoAsyncString(const std::string& a_string, + std::function&& on_success, + std::function&& on_error); + private: ::flutter::BinaryMessenger* binary_messenger_; std::string message_channel_suffix_; @@ -1561,7 +1652,8 @@ class FlutterIntegrationCoreApi { // An API that can be implemented for minimal, compile-only tests. // -// Generated interface from Pigeon that represents a handler of messages from Flutter. +// Generated interface from Pigeon that represents a handler of messages from +// Flutter. class HostTrivialApi { public: HostTrivialApi(const HostTrivialApi&) = delete; @@ -1571,65 +1663,65 @@ class HostTrivialApi { // The codec used by HostTrivialApi. static const ::flutter::StandardMessageCodec& GetCodec(); - // Sets up an instance of `HostTrivialApi` to handle messages through the `binary_messenger`. - static void SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostTrivialApi* api); - static void SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostTrivialApi* api, - const std::string& message_channel_suffix); + // Sets up an instance of `HostTrivialApi` to handle messages through the + // `binary_messenger`. + static void SetUp(::flutter::BinaryMessenger* binary_messenger, + HostTrivialApi* api); + static void SetUp(::flutter::BinaryMessenger* binary_messenger, + HostTrivialApi* api, + const std::string& message_channel_suffix); static ::flutter::EncodableValue WrapError(std::string_view error_message); static ::flutter::EncodableValue WrapError(const FlutterError& error); + protected: HostTrivialApi() = default; }; // A simple API implemented in some unit tests. // -// Generated interface from Pigeon that represents a handler of messages from Flutter. +// Generated interface from Pigeon that represents a handler of messages from +// Flutter. class HostSmallApi { public: HostSmallApi(const HostSmallApi&) = delete; HostSmallApi& operator=(const HostSmallApi&) = delete; virtual ~HostSmallApi() {} - virtual void Echo( - const std::string& a_string, - std::function reply)> result) = 0; - virtual void VoidVoid(std::function reply)> result) = 0; + virtual void Echo(const std::string& a_string, + std::function reply)> result) = 0; + virtual void VoidVoid( + std::function reply)> result) = 0; // The codec used by HostSmallApi. static const ::flutter::StandardMessageCodec& GetCodec(); - // Sets up an instance of `HostSmallApi` to handle messages through the `binary_messenger`. - static void SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostSmallApi* api); - static void SetUp( - ::flutter::BinaryMessenger* binary_messenger, - HostSmallApi* api, - const std::string& message_channel_suffix); + // Sets up an instance of `HostSmallApi` to handle messages through the + // `binary_messenger`. + static void SetUp(::flutter::BinaryMessenger* binary_messenger, + HostSmallApi* api); + static void SetUp(::flutter::BinaryMessenger* binary_messenger, + HostSmallApi* api, + const std::string& message_channel_suffix); static ::flutter::EncodableValue WrapError(std::string_view error_message); static ::flutter::EncodableValue WrapError(const FlutterError& error); + protected: HostSmallApi() = default; }; // A simple API called in some unit tests. // -// Generated class from Pigeon that represents Flutter messages that can be called from C++. +// Generated class from Pigeon that represents Flutter messages that can be +// called from C++. class FlutterSmallApi { public: FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger); - FlutterSmallApi( - ::flutter::BinaryMessenger* binary_messenger, - const std::string& message_channel_suffix); + FlutterSmallApi(::flutter::BinaryMessenger* binary_messenger, + const std::string& message_channel_suffix); static const ::flutter::StandardMessageCodec& GetCodec(); - void EchoWrappedList( - const TestMessage& msg, - std::function&& on_success, - std::function&& on_error); - void EchoString( - const std::string& a_string, - std::function&& on_success, - std::function&& on_error); + void EchoWrappedList(const TestMessage& msg, + std::function&& on_success, + std::function&& on_error); + void EchoString(const std::string& a_string, + std::function&& on_success, + std::function&& on_error); + private: ::flutter::BinaryMessenger* binary_messenger_; std::string message_channel_suffix_; From 80d8bbccbdec568672ae5beedd1f2408c795e21b Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 19:02:21 -0800 Subject: [PATCH 26/33] lints and reverting of accidentally pushed files --- .../lib/src/gobject/gobject_generator.dart | 4 +- .../lib/message.gen.dart | 453 ------------------ .../test/message_test.dart | 217 --------- .../ios/Flutter/AppFrameworkInfo.plist | 2 + .../test_plugin/example/test_output.txt | 308 ------------ packages/pigeon/tool/shared/test_suites.dart | 4 +- 6 files changed, 6 insertions(+), 982 deletions(-) delete mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart delete mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart delete mode 100644 packages/pigeon/platform_tests/test_plugin/example/test_output.txt diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index 97073573d994..a34dd90f8b4c 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -1149,12 +1149,12 @@ class GObjectSourceGenerator '}', () { indent.writeln( - 'if (!flpigeon_equals_double(a->${fieldName}[i], b->${fieldName}[i])) return FALSE;', + 'if (!flpigeon_equals_double(a->$fieldName[i], b->$fieldName[i])) return FALSE;', ); }, ); } else { - final String elementSize = field.type.baseName == 'Uint8List' + final elementSize = field.type.baseName == 'Uint8List' ? 'sizeof(uint8_t)' : field.type.baseName == 'Int32List' ? 'sizeof(int32_t)' diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart deleted file mode 100644 index 6046050341d3..000000000000 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart +++ /dev/null @@ -1,453 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// -// Autogenerated from Pigeon (v26.2.0), do not edit directly. -// See also: https://pub.dev/packages/pigeon -// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, omit_obvious_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers - -import 'dart:async'; -import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; - -import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; -import 'package:flutter/services.dart'; - -Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, -}) { - if (replyList == null) { - throw PlatformException( - code: 'channel-error', - message: 'Unable to establish connection on channel: "$channelName".', - ); - } else if (replyList.length > 1) { - throw PlatformException( - code: replyList[0]! as String, - message: replyList[1] as String?, - details: replyList[2], - ); - } else if (!isNullValid && (replyList.isNotEmpty && replyList[0] == null)) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } - return replyList.firstOrNull; -} - -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { - if (empty) { - return []; - } - if (error == null) { - return [result]; - } - return [error.code, error.message, error.details]; -} - -bool _deepEquals(Object? a, Object? b) { - if (identical(a, b)) { - return true; - } - if (a is double && b is double) { - if (a.isNaN && b.isNaN) { - return true; - } - } - if (a is List && b is List) { - return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); - } - if (a is Map && b is Map) { - if (a.length != b.length) { - return false; - } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; - } - if (!_deepEquals(entry.value, b[entry.key])) { - return false; - } - } - return true; - } - return a == b; -} - -int _deepHash(Object? value) { - if (value is List) { - return Object.hashAll(value.map(_deepHash)); - } - if (value is Map) { - int result = 0; - for (final MapEntry entry in value.entries) { - result += _deepHash(entry.key) ^ _deepHash(entry.value); - } - return result; - } - if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value is double && value == 0.0) { - return 0.0.hashCode; - } - return value.hashCode; -} - -/// This comment is to test enum documentation comments. -/// -/// This comment also tests multiple line comments. -/// -/// //////////////////////// -/// This comment also tests comments that start with '/' -/// //////////////////////// -enum MessageRequestState { pending, success, failure } - -/// This comment is to test class documentation comments. -/// -/// This comment also tests multiple line comments. -class MessageSearchRequest { - MessageSearchRequest({this.query, this.anInt, this.aBool}); - - /// This comment is to test field documentation comments. - String? query; - - /// This comment is to test field documentation comments. - int? anInt; - - /// This comment is to test field documentation comments. - bool? aBool; - - List _toList() { - return [query, anInt, aBool]; - } - - Object encode() { - return _toList(); - } - - static MessageSearchRequest decode(Object result) { - result as List; - return MessageSearchRequest( - query: result[0] as String?, - anInt: result[1] as int?, - aBool: result[2] as bool?, - ); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! MessageSearchRequest || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(query, other.query) && - _deepEquals(anInt, other.anInt) && - _deepEquals(aBool, other.aBool); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// This comment is to test class documentation comments. -class MessageSearchReply { - MessageSearchReply({this.result, this.error, this.state}); - - /// This comment is to test field documentation comments. - /// - /// This comment also tests multiple line comments. - String? result; - - /// This comment is to test field documentation comments. - String? error; - - /// This comment is to test field documentation comments. - MessageRequestState? state; - - List _toList() { - return [result, error, state]; - } - - Object encode() { - return _toList(); - } - - static MessageSearchReply decode(Object result) { - result as List; - return MessageSearchReply( - result: result[0] as String?, - error: result[1] as String?, - state: result[2] as MessageRequestState?, - ); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! MessageSearchReply || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(result, other.result) && - _deepEquals(error, other.error) && - _deepEquals(state, other.state); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// This comment is to test class documentation comments. -class MessageNested { - MessageNested({this.request}); - - /// This comment is to test field documentation comments. - MessageSearchRequest? request; - - List _toList() { - return [request]; - } - - Object encode() { - return _toList(); - } - - static MessageNested decode(Object result) { - result as List; - return MessageNested(request: result[0] as MessageSearchRequest?); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! MessageNested || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(request, other.request); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -class _PigeonCodec extends StandardMessageCodec { - const _PigeonCodec(); - @override - void writeValue(WriteBuffer buffer, Object? value) { - if (value is int) { - buffer.putUint8(4); - buffer.putInt64(value); - } else if (value is MessageRequestState) { - buffer.putUint8(129); - writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { - buffer.putUint8(130); - writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { - buffer.putUint8(131); - writeValue(buffer, value.encode()); - } else if (value is MessageNested) { - buffer.putUint8(132); - writeValue(buffer, value.encode()); - } else { - super.writeValue(buffer, value); - } - } - - @override - Object? readValueOfType(int type, ReadBuffer buffer) { - switch (type) { - case 129: - final value = readValue(buffer) as int?; - return value == null ? null : MessageRequestState.values[value]; - case 130: - return MessageSearchRequest.decode(readValue(buffer)!); - case 131: - return MessageSearchReply.decode(readValue(buffer)!); - case 132: - return MessageNested.decode(readValue(buffer)!); - default: - return super.readValueOfType(type, buffer); - } - } -} - -/// This comment is to test api documentation comments. -/// -/// This comment also tests multiple line comments. -class MessageApi { - /// Constructor for [MessageApi]. The [binaryMessenger] named argument is - /// available for dependency injection. If it is left null, the default - /// BinaryMessenger will be used which routes to the host platform. - MessageApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - final BinaryMessenger? pigeonVar_binaryMessenger; - - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - final String pigeonVar_messageChannelSuffix; - - /// This comment is to test documentation comments. - /// - /// This comment also tests multiple line comments. - Future initialize() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - - _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - } - - /// This comment is to test method documentation comments. - Future search(MessageSearchRequest request) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [request], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - - final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return pigeonVar_replyValue as MessageSearchReply; - } -} - -/// This comment is to test api documentation comments. -class MessageNestedApi { - /// Constructor for [MessageNestedApi]. The [binaryMessenger] named argument is - /// available for dependency injection. If it is left null, the default - /// BinaryMessenger will be used which routes to the host platform. - MessageNestedApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - final BinaryMessenger? pigeonVar_binaryMessenger; - - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - final String pigeonVar_messageChannelSuffix; - - /// This comment is to test method documentation comments. - /// - /// This comment also tests multiple line comments. - Future search(MessageNested nested) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [nested], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - - final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return pigeonVar_replyValue as MessageSearchReply; - } -} - -/// This comment is to test api documentation comments. -abstract class MessageFlutterSearchApi { - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// This comment is to test method documentation comments. - MessageSearchReply search(MessageSearchRequest request); - - static void setUp( - MessageFlutterSearchApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null.', - ); - final List args = (message as List?)!; - final MessageSearchRequest? arg_request = - (args[0] as MessageSearchRequest?); - assert( - arg_request != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.', - ); - try { - final MessageSearchReply output = api.search(arg_request!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - } -} diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart deleted file mode 100644 index d15373e49000..000000000000 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// -// Autogenerated from Pigeon (v26.2.0), do not edit directly. -// See also: https://pub.dev/packages/pigeon -// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import, no_leading_underscores_for_local_identifiers, omit_obvious_local_variable_types -// ignore_for_file: avoid_relative_lib_imports -import 'dart:async'; -import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; -import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; -import 'package:flutter/services.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:shared_test_plugin_code/message.gen.dart'; - -class _PigeonCodec extends StandardMessageCodec { - const _PigeonCodec(); - @override - void writeValue(WriteBuffer buffer, Object? value) { - if (value is int) { - buffer.putUint8(4); - buffer.putInt64(value); - } else if (value is MessageRequestState) { - buffer.putUint8(129); - writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { - buffer.putUint8(130); - writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { - buffer.putUint8(131); - writeValue(buffer, value.encode()); - } else if (value is MessageNested) { - buffer.putUint8(132); - writeValue(buffer, value.encode()); - } else { - super.writeValue(buffer, value); - } - } - - @override - Object? readValueOfType(int type, ReadBuffer buffer) { - switch (type) { - case 129: - final value = readValue(buffer) as int?; - return value == null ? null : MessageRequestState.values[value]; - case 130: - return MessageSearchRequest.decode(readValue(buffer)!); - case 131: - return MessageSearchReply.decode(readValue(buffer)!); - case 132: - return MessageNested.decode(readValue(buffer)!); - default: - return super.readValueOfType(type, buffer); - } - } -} - -/// This comment is to test api documentation comments. -/// -/// This comment also tests multiple line comments. -abstract class TestHostApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// This comment is to test documentation comments. - /// - /// This comment also tests multiple line comments. - void initialize(); - - /// This comment is to test method documentation comments. - MessageSearchReply search(MessageSearchRequest request); - - static void setUp( - TestHostApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.initialize(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null.', - ); - final List args = (message as List?)!; - final MessageSearchRequest? arg_request = - (args[0] as MessageSearchRequest?); - assert( - arg_request != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null, expected non-null MessageSearchRequest.', - ); - try { - final MessageSearchReply output = api.search(arg_request!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - } -} - -/// This comment is to test api documentation comments. -abstract class TestNestedApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// This comment is to test method documentation comments. - /// - /// This comment also tests multiple line comments. - MessageSearchReply search(MessageNested nested); - - static void setUp( - TestNestedApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null.', - ); - final List args = (message as List?)!; - final MessageNested? arg_nested = (args[0] as MessageNested?); - assert( - arg_nested != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null, expected non-null MessageNested.', - ); - try { - final MessageSearchReply output = api.search(arg_nested!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - } -} diff --git a/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist b/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist index 391a902b2beb..7c5696400627 100644 --- a/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist +++ b/packages/pigeon/platform_tests/test_plugin/example/ios/Flutter/AppFrameworkInfo.plist @@ -20,5 +20,7 @@ ???? CFBundleVersion 1.0 + MinimumOSVersion + 12.0 diff --git a/packages/pigeon/platform_tests/test_plugin/example/test_output.txt b/packages/pigeon/platform_tests/test_plugin/example/test_output.txt deleted file mode 100644 index 1494671efe73..000000000000 --- a/packages/pigeon/platform_tests/test_plugin/example/test_output.txt +++ /dev/null @@ -1,308 +0,0 @@ -00:00 +0: loading /Users/tarrinneal/work/packages/packages/pigeon/platform_tests/test_plugin/example/integration_test/test.dart -Building macOS application... -✓ Built build/macos/Build/Products/Debug/test_plugin_example.app -Failed to foreground app; open returned 1 -00:00 +0: Host sync API tests basic void->void call works -00:00 +1: Host sync API tests all datatypes serialize and deserialize correctly -00:00 +2: Host sync API tests all nullable datatypes serialize and deserialize correctly -00:00 +3: Host sync API tests all null datatypes serialize and deserialize correctly -00:00 +4: Host sync API tests Classes with list of null serialize and deserialize correctly -00:00 +5: Host sync API tests Classes with map of null serialize and deserialize correctly -00:00 +6: Host sync API tests all nullable datatypes without recursion serialize and deserialize correctly -00:00 +7: Host sync API tests all null datatypes without recursion serialize and deserialize correctly -00:00 +8: Host sync API tests Classes without recursion with list of null serialize and deserialize correctly -00:00 +9: Host sync API tests Classes without recursion with map of null serialize and deserialize correctly -00:00 +10: Host sync API tests errors are returned correctly -00:00 +11: Host sync API tests errors are returned from void methods correctly -00:00 +12: Host sync API tests flutter errors are returned correctly -00:00 +13: Host sync API tests nested objects can be sent correctly -00:00 +14: Host sync API tests nested objects can be received correctly -00:00 +15: Host sync API tests nested classes can serialize and deserialize correctly -00:00 +16: Host sync API tests nested null classes can serialize and deserialize correctly -00:00 +17: Host sync API tests Arguments of multiple types serialize and deserialize correctly -00:00 +18: Host sync API tests Arguments of multiple null types serialize and deserialize correctly -00:00 +19: Host sync API tests Arguments of multiple types serialize and deserialize correctly (WithoutRecursion) -00:00 +20: Host sync API tests Arguments of multiple null types serialize and deserialize correctly (WithoutRecursion) -00:00 +21: Host sync API tests Int serialize and deserialize correctly -00:00 +22: Host sync API tests Int64 serialize and deserialize correctly -00:00 +23: Host sync API tests Doubles serialize and deserialize correctly -00:00 +24: Host sync API tests booleans serialize and deserialize correctly -00:00 +25: Host sync API tests strings serialize and deserialize correctly -00:00 +26: Host sync API tests Uint8List serialize and deserialize correctly -00:00 +27: Host sync API tests generic Objects serialize and deserialize correctly -00:00 +28: Host sync API tests lists serialize and deserialize correctly -00:00 +29: Host sync API tests enum lists serialize and deserialize correctly -00:00 +30: Host sync API tests class lists serialize and deserialize correctly -00:00 +31: Host sync API tests NonNull enum lists serialize and deserialize correctly -00:00 +32: Host sync API tests NonNull class lists serialize and deserialize correctly -00:00 +33: Host sync API tests maps serialize and deserialize correctly -00:00 +34: Host sync API tests string maps serialize and deserialize correctly -00:00 +35: Host sync API tests int maps serialize and deserialize correctly -00:00 +36: Host sync API tests enum maps serialize and deserialize correctly -00:00 +37: Host sync API tests class maps serialize and deserialize correctly -00:00 +38: Host sync API tests NonNull string maps serialize and deserialize correctly -00:00 +39: Host sync API tests NonNull int maps serialize and deserialize correctly -00:00 +40: Host sync API tests NonNull enum maps serialize and deserialize correctly -00:00 +41: Host sync API tests NonNull class maps serialize and deserialize correctly -00:00 +42: Host sync API tests enums serialize and deserialize correctly -00:00 +43: Host sync API tests enums serialize and deserialize correctly (again) -00:00 +44: Host sync API tests multi word enums serialize and deserialize correctly -00:00 +45: Host sync API tests required named parameter -00:00 +46: Host sync API tests optional default parameter no arg -00:00 +47: Host sync API tests optional default parameter with arg -00:00 +48: Host sync API tests named default parameter no arg -00:00 +49: Host sync API tests named default parameter with arg -00:00 +50: Host sync API tests Nullable Int serialize and deserialize correctly -00:00 +51: Host sync API tests Nullable Int64 serialize and deserialize correctly -00:00 +52: Host sync API tests Null Ints serialize and deserialize correctly -00:00 +53: Host sync API tests Nullable Doubles serialize and deserialize correctly -00:00 +54: Host sync API tests Null Doubles serialize and deserialize correctly -00:00 +55: Host sync API tests Nullable booleans serialize and deserialize correctly -00:00 +56: Host sync API tests Null booleans serialize and deserialize correctly -00:00 +57: Host sync API tests Nullable strings serialize and deserialize correctly -00:00 +58: Host sync API tests Null strings serialize and deserialize correctly -00:00 +59: Host sync API tests Nullable Uint8List serialize and deserialize correctly -00:00 +60: Host sync API tests Null Uint8List serialize and deserialize correctly -00:00 +61: Host sync API tests generic nullable Objects serialize and deserialize correctly -00:00 +62: Host sync API tests Null generic Objects serialize and deserialize correctly -00:00 +63: Host sync API tests nullable lists serialize and deserialize correctly -00:00 +64: Host sync API tests nullable enum lists serialize and deserialize correctly -00:00 +65: Host sync API tests nullable lists serialize and deserialize correctly -00:00 +66: Host sync API tests nullable NonNull enum lists serialize and deserialize correctly -00:00 +67: Host sync API tests nullable NonNull lists serialize and deserialize correctly -00:00 +68: Host sync API tests nullable maps serialize and deserialize correctly -00:00 +69: Host sync API tests nullable string maps serialize and deserialize correctly -00:00 +70: Host sync API tests nullable int maps serialize and deserialize correctly -00:00 +71: Host sync API tests nullable enum maps serialize and deserialize correctly -00:00 +72: Host sync API tests nullable class maps serialize and deserialize correctly -00:00 +73: Host sync API tests nullable NonNull string maps serialize and deserialize correctly -00:00 +74: Host sync API tests nullable NonNull int maps serialize and deserialize correctly -00:00 +75: Host sync API tests nullable NonNull enum maps serialize and deserialize correctly -00:00 +76: Host sync API tests nullable NonNull class maps serialize and deserialize correctly -00:00 +77: Host sync API tests nullable enums serialize and deserialize correctly -00:00 +78: Host sync API tests nullable enums serialize and deserialize correctly (again) -00:00 +79: Host sync API tests multi word nullable enums serialize and deserialize correctly -00:00 +80: Host sync API tests null lists serialize and deserialize correctly -00:00 +81: Host sync API tests null maps serialize and deserialize correctly -00:00 +82: Host sync API tests null string maps serialize and deserialize correctly -00:00 +83: Host sync API tests null int maps serialize and deserialize correctly -00:00 +84: Host sync API tests null enums serialize and deserialize correctly -00:00 +85: Host sync API tests null enums serialize and deserialize correctly (again) -00:00 +86: Host sync API tests null classes serialize and deserialize correctly -00:00 +87: Host sync API tests optional nullable parameter -00:00 +88: Host sync API tests Null optional nullable parameter -00:00 +89: Host sync API tests named nullable parameter -00:00 +90: Host sync API tests Null named nullable parameter -00:00 +91: Host sync API tests Signed zero equality and hashing -00:00 +91: Host sync API tests Signed zero equality and hashing - did not complete [E] -00:00 +91: Host sync API tests NaN equality and hashing - did not complete [E] -00:00 +91: Host sync API tests Collection equality with signed zero and NaN - did not complete [E] -00:00 +91: Host sync API tests Map equality with null values and different keys - did not complete [E] -00:00 +91: Host sync API tests Deeply nested equality - did not complete [E] -00:00 +91: Host async API tests basic void->void call works - did not complete [E] -00:00 +91: Host async API tests async errors are returned from non void methods correctly - did not complete [E] -00:00 +91: Host async API tests async errors are returned from void methods correctly - did not complete [E] -00:00 +91: Host async API tests async flutter errors are returned from non void methods correctly - did not complete [E] -00:00 +91: Host async API tests all datatypes async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests all nullable async datatypes serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests all null datatypes async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests all nullable async datatypes without recursion serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests all null datatypes without recursion async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests Int async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests Int64 async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests Doubles async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests booleans async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests strings async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests Uint8List async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests generic Objects async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests enum lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests class lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests string maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests int maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests enum maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests class maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests enums serialize and deserialize correctly (again) - did not complete [E] -00:00 +91: Host async API tests multi word enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable Int async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable Int64 async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable Doubles async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable booleans async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable strings async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable Uint8List async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable generic Objects async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable enum lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable class lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable string maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable int maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable enum maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable class maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests nullable enums serialize and deserialize correctly (again) - did not complete [E] -00:00 +91: Host async API tests nullable enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null Ints async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null Doubles async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null booleans async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null strings async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null Uint8List async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null generic Objects async serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null string maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null int maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Host async API tests null enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Host API with suffix echo string succeeds with suffix with multiple instances - did not complete [E] -00:00 +91: Host API with suffix multiple instances will have different method channel names - did not complete [E] -00:00 +91: Flutter API tests basic void->void call works - did not complete [E] -00:00 +91: Flutter API tests errors are returned from non void methods correctly - did not complete [E] -00:00 +91: Flutter API tests errors are returned from void methods correctly - did not complete [E] -00:00 +91: Flutter API tests all datatypes serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests Arguments of multiple types serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests Arguments of multiple null types serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests Arguments of multiple types serialize and deserialize correctly (WithoutRecursion) - did not complete [E] -00:00 +91: Flutter API tests Arguments of multiple null types serialize and deserialize correctly (WithoutRecursion) - did not complete [E] -00:00 +91: Flutter API tests booleans serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests ints serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests doubles serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests strings serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests Uint8Lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests enum lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests class lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests NonNull enum lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests NonNull class lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests string maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests int maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests enum maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests class maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests NonNull string maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests NonNull int maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests NonNull enum maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests NonNull class maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests enums serialize and deserialize correctly (again) - did not complete [E] -00:00 +91: Flutter API tests multi word enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable booleans serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null booleans serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable ints serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable big ints serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null ints serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable doubles serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null doubles serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable strings serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null strings serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable Uint8Lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null Uint8Lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable enum lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable class lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable NonNull enum lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable NonNull class lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null lists serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable string maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable int maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable enum maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable class maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable NonNull string maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable NonNull int maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable NonNull enum maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable NonNull class maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null maps serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests nullable enums serialize and deserialize correctly (again) - did not complete [E] -00:00 +91: Flutter API tests multi word nullable enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null enums serialize and deserialize correctly - did not complete [E] -00:00 +91: Flutter API tests null enums serialize and deserialize correctly (again) - did not complete [E] -00:00 +91: Proxy API Tests named constructor - did not complete [E] -00:00 +91: Proxy API Tests noop - did not complete [E] -00:00 +91: Proxy API Tests throwError - did not complete [E] -00:00 +91: Proxy API Tests throwErrorFromVoid - did not complete [E] -00:00 +91: Proxy API Tests throwFlutterError - did not complete [E] -00:00 +91: Proxy API Tests echoInt - did not complete [E] -00:00 +91: Proxy API Tests echoDouble - did not complete [E] -00:00 +91: Proxy API Tests echoBool - did not complete [E] -00:00 +91: Proxy API Tests echoString - did not complete [E] -00:00 +91: Proxy API Tests echoUint8List - did not complete [E] -00:00 +91: Proxy API Tests echoObject - did not complete [E] -00:00 +91: Proxy API Tests echoList - did not complete [E] -00:00 +91: Proxy API Tests echoProxyApiList - did not complete [E] -00:00 +91: Proxy API Tests echoMap - did not complete [E] -00:00 +91: Proxy API Tests echoProxyApiMap - did not complete [E] -00:00 +91: Proxy API Tests echoEnum - did not complete [E] -00:00 +91: Proxy API Tests echoProxyApi - did not complete [E] -00:00 +91: Proxy API Tests echoNullableInt - did not complete [E] -00:00 +91: Proxy API Tests echoNullableDouble - did not complete [E] -00:00 +91: Proxy API Tests echoNullableBool - did not complete [E] -00:00 +91: Proxy API Tests echoNullableString - did not complete [E] -00:00 +91: Proxy API Tests echoNullableUint8List - did not complete [E] -00:00 +91: Proxy API Tests echoNullableObject - did not complete [E] -00:00 +91: Proxy API Tests echoNullableList - did not complete [E] -00:00 +91: Proxy API Tests echoNullableMap - did not complete [E] -00:00 +91: Proxy API Tests echoNullableEnum - did not complete [E] -00:00 +91: Proxy API Tests echoNullableProxyApi - did not complete [E] -00:00 +91: Proxy API Tests noopAsync - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncInt - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncDouble - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncBool - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncString - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncUint8List - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncObject - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncList - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncMap - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncEnum - did not complete [E] -00:00 +91: Proxy API Tests throwAsyncError - did not complete [E] -00:00 +91: Proxy API Tests throwAsyncErrorFromVoid - did not complete [E] -00:00 +91: Proxy API Tests throwAsyncFlutterError - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableInt - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableDouble - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableBool - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableString - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableUint8List - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableObject - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableList - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableMap - did not complete [E] -00:00 +91: Proxy API Tests echoAsyncNullableEnum - did not complete [E] -00:00 +91: Proxy API Tests staticNoop - did not complete [E] -00:00 +91: Proxy API Tests echoStaticString - did not complete [E] -00:00 +91: Proxy API Tests staticAsyncNoop - did not complete [E] -00:00 +91: Proxy API Tests callFlutterNoop - did not complete [E] -00:00 +91: Proxy API Tests callFlutterThrowError - did not complete [E] -00:00 +91: Proxy API Tests callFlutterThrowErrorFromVoid - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoBool - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoInt - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoDouble - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoString - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoUint8List - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoList - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoProxyApiList - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoMap - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoProxyApiMap - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoEnum - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoProxyApi - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableBool - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableInt - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableDouble - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableString - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableUint8List - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableList - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableMap - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableEnum - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoNullableProxyApi - did not complete [E] -00:00 +91: Proxy API Tests callFlutterNoopAsync - did not complete [E] -00:00 +91: Proxy API Tests callFlutterEchoAsyncString - did not complete [E] -00:00 +91: Flutter API with suffix echo string succeeds with suffix with multiple instances - did not complete [E] -00:00 +91: Unused data class still generate - did not complete [E] -00:00 +91: non-task-queue handlers run on a the main thread - did not complete [E] -00:00 +91: task queue handlers run on a background thread - did not complete [E] -00:00 +91: event channel sends continuous ints - did not complete [E] -00:00 +91: event channel handles extended sealed classes - did not complete [E] -00:00 +91: event channels handle multiple instances - did not complete [E] -00:00 +91: (tearDownAll) - did not complete [E] -00:00 +91: Some tests failed. diff --git a/packages/pigeon/tool/shared/test_suites.dart b/packages/pigeon/tool/shared/test_suites.dart index 269e080ebbe2..fe86925792aa 100644 --- a/packages/pigeon/tool/shared/test_suites.dart +++ b/packages/pigeon/tool/shared/test_suites.dart @@ -359,8 +359,8 @@ Future _runIOSPluginUnitTests(String testPluginPath) async { const deviceName = 'Pigeon-Test-iPhone'; const deviceType = 'com.apple.CoreSimulator.SimDeviceType.iPhone-14'; - const deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-18-5'; - const deviceOS = '18.5'; + const deviceRuntime = 'com.apple.CoreSimulator.SimRuntime.iOS-18-2'; + const deviceOS = '18.2'; await _createSimulator(deviceName, deviceType, deviceRuntime); return runXcodeBuild( '$examplePath/ios', From a57dd6f5ba59238bff840296e01b93b88badeea5 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 20:04:20 -0800 Subject: [PATCH 27/33] hopeful test fix --- .../example/app/macos/Runner/messages.g.m | 7 +- .../example/app/windows/runner/messages.g.cpp | 22 + .../pigeon/lib/src/cpp/cpp_generator.dart | 19 + .../pigeon/lib/src/objc/objc_generator.dart | 7 +- .../AllDatatypesTest.java | 5 +- .../CoreTests.gen.m | 7 +- .../ios/RunnerTests/AllDatatypesTest.m | 5 +- .../lib/message.gen.dart | 453 ++++++++++++++++++ .../test/message_test.dart | 217 +++++++++ .../windows/pigeon/core_tests.gen.cpp | 22 + 10 files changed, 755 insertions(+), 9 deletions(-) create mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart create mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index aa761286528a..08f7a757cb86 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -63,9 +63,14 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { } if ([value isKindOfClass:[NSNumber class]]) { NSNumber *n = (NSNumber *)value; - if (isnan(n.doubleValue)) { + double d = n.doubleValue; + if (isnan(d)) { return (NSUInteger)0x7FF8000000000000; } + if (d == 0.0) { + d = 0.0; + } + return @(d).hash; } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index c857a8ce9f72..edd31a0a87dd 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -32,6 +32,28 @@ FlutterError CreateConnectionError(const std::string channel_name) { EncodableValue("")); } +template +bool PigeonInternalDeepEquals(const T& a, const T& b); + +inline bool PigeonInternalDeepEquals(const double& a, const double& b); + +template +bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b); + +template +bool PigeonInternalDeepEquals(const std::map& a, const std::map& b); + +template +bool PigeonInternalDeepEquals(const std::optional& a, + const std::optional& b); + +template +bool PigeonInternalDeepEquals(const std::unique_ptr& a, + const std::unique_ptr& b); + +inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, + const ::flutter::EncodableValue& b); + template bool PigeonInternalDeepEquals(const T& a, const T& b) { return a == b; diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 8d28ff490cd9..8abee1c43157 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -1105,6 +1105,25 @@ class CppSourceGenerator extends StructuredGenerator { void _writeDeepEquals(Indent indent) { indent.format(''' +template +bool PigeonInternalDeepEquals(const T& a, const T& b); + +inline bool PigeonInternalDeepEquals(const double& a, const double& b); + +template +bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b); + +template +bool PigeonInternalDeepEquals(const std::map& a, const std::map& b); + +template +bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& b); + +template +bool PigeonInternalDeepEquals(const std::unique_ptr& a, const std::unique_ptr& b); + +inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b); + template bool PigeonInternalDeepEquals(const T& a, const T& b) { return a == b; diff --git a/packages/pigeon/lib/src/objc/objc_generator.dart b/packages/pigeon/lib/src/objc/objc_generator.dart index c2e26bce1daa..81bf802e039a 100644 --- a/packages/pigeon/lib/src/objc/objc_generator.dart +++ b/packages/pigeon/lib/src/objc/objc_generator.dart @@ -1726,9 +1726,14 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { } if ([value isKindOfClass:[NSNumber class]]) { NSNumber *n = (NSNumber *)value; - if (isnan(n.doubleValue)) { + double d = n.doubleValue; + if (isnan(d)) { return (NSUInteger)0x7FF8000000000000; } + if (d == 0.0) { + d = 0.0; + } + return @(d).hash; } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java index 4a9992de46f2..10531b7a2b03 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java @@ -291,9 +291,8 @@ public void zeroEquality() { AllNullableTypes a = new AllNullableTypes.Builder().setANullableDouble(0.0).build(); AllNullableTypes b = new AllNullableTypes.Builder().setANullableDouble(-0.0).build(); - // Double Distinguishes 0.0 and -0.0 - assertNotEquals(a, b); - assertNotEquals(a.hashCode(), b.hashCode()); + assertEquals(a, b); + assertEquals(a.hashCode(), b.hashCode()); } @Test diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index be39beab28d7..ed2e93ed55bf 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -64,9 +64,14 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { } if ([value isKindOfClass:[NSNumber class]]) { NSNumber *n = (NSNumber *)value; - if (isnan(n.doubleValue)) { + double d = n.doubleValue; + if (isnan(d)) { return (NSUInteger)0x7FF8000000000000; } + if (d == 0.0) { + d = 0.0; + } + return @(d).hash; } if ([value isKindOfClass:[NSArray class]]) { NSUInteger result = 1; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m index b6618f523182..a49cccc0cee9 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/example/ios/RunnerTests/AllDatatypesTest.m @@ -162,9 +162,8 @@ - (void)testZeroEquality { FLTAllNullableTypes *b = [[FLTAllNullableTypes alloc] init]; b.aNullableDouble = @(-0.0); - // NSNumber Distinguishes 0.0 and -0.0 - XCTAssertNotEqualObjects(a, b); - XCTAssertNotEqual(a.hash, b.hash); + XCTAssertEqualObjects(a, b); + XCTAssertEqual(a.hash, b.hash); } - (void)testNestedNaNEquality { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart new file mode 100644 index 000000000000..6046050341d3 --- /dev/null +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart @@ -0,0 +1,453 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// Autogenerated from Pigeon (v26.2.0), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, omit_obvious_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers + +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; + +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; + +Object? _extractReplyValueOrThrow( + List? replyList, + String channelName, { + required bool isNullValid, +}) { + if (replyList == null) { + throw PlatformException( + code: 'channel-error', + message: 'Unable to establish connection on channel: "$channelName".', + ); + } else if (replyList.length > 1) { + throw PlatformException( + code: replyList[0]! as String, + message: replyList[1] as String?, + details: replyList[2], + ); + } else if (!isNullValid && (replyList.isNotEmpty && replyList[0] == null)) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } + return replyList.firstOrNull; +} + +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { + if (empty) { + return []; + } + if (error == null) { + return [result]; + } + return [error.code, error.message, error.details]; +} + +bool _deepEquals(Object? a, Object? b) { + if (identical(a, b)) { + return true; + } + if (a is double && b is double) { + if (a.isNaN && b.isNaN) { + return true; + } + } + if (a is List && b is List) { + return a.length == b.length && + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); + } + if (a is Map && b is Map) { + if (a.length != b.length) { + return false; + } + for (final MapEntry entry in a.entries) { + if (!b.containsKey(entry.key)) { + return false; + } + if (!_deepEquals(entry.value, b[entry.key])) { + return false; + } + } + return true; + } + return a == b; +} + +int _deepHash(Object? value) { + if (value is List) { + return Object.hashAll(value.map(_deepHash)); + } + if (value is Map) { + int result = 0; + for (final MapEntry entry in value.entries) { + result += _deepHash(entry.key) ^ _deepHash(entry.value); + } + return result; + } + if (value is double && value.isNaN) { + return 0x7FF8000000000000.hashCode; + } + if (value is double && value == 0.0) { + return 0.0.hashCode; + } + return value.hashCode; +} + +/// This comment is to test enum documentation comments. +/// +/// This comment also tests multiple line comments. +/// +/// //////////////////////// +/// This comment also tests comments that start with '/' +/// //////////////////////// +enum MessageRequestState { pending, success, failure } + +/// This comment is to test class documentation comments. +/// +/// This comment also tests multiple line comments. +class MessageSearchRequest { + MessageSearchRequest({this.query, this.anInt, this.aBool}); + + /// This comment is to test field documentation comments. + String? query; + + /// This comment is to test field documentation comments. + int? anInt; + + /// This comment is to test field documentation comments. + bool? aBool; + + List _toList() { + return [query, anInt, aBool]; + } + + Object encode() { + return _toList(); + } + + static MessageSearchRequest decode(Object result) { + result as List; + return MessageSearchRequest( + query: result[0] as String?, + anInt: result[1] as int?, + aBool: result[2] as bool?, + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! MessageSearchRequest || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(query, other.query) && + _deepEquals(anInt, other.anInt) && + _deepEquals(aBool, other.aBool); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// This comment is to test class documentation comments. +class MessageSearchReply { + MessageSearchReply({this.result, this.error, this.state}); + + /// This comment is to test field documentation comments. + /// + /// This comment also tests multiple line comments. + String? result; + + /// This comment is to test field documentation comments. + String? error; + + /// This comment is to test field documentation comments. + MessageRequestState? state; + + List _toList() { + return [result, error, state]; + } + + Object encode() { + return _toList(); + } + + static MessageSearchReply decode(Object result) { + result as List; + return MessageSearchReply( + result: result[0] as String?, + error: result[1] as String?, + state: result[2] as MessageRequestState?, + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! MessageSearchReply || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(result, other.result) && + _deepEquals(error, other.error) && + _deepEquals(state, other.state); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +/// This comment is to test class documentation comments. +class MessageNested { + MessageNested({this.request}); + + /// This comment is to test field documentation comments. + MessageSearchRequest? request; + + List _toList() { + return [request]; + } + + Object encode() { + return _toList(); + } + + static MessageNested decode(Object result) { + result as List; + return MessageNested(request: result[0] as MessageSearchRequest?); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! MessageNested || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(request, other.request); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => _deepHash([runtimeType, ..._toList()]); +} + +class _PigeonCodec extends StandardMessageCodec { + const _PigeonCodec(); + @override + void writeValue(WriteBuffer buffer, Object? value) { + if (value is int) { + buffer.putUint8(4); + buffer.putInt64(value); + } else if (value is MessageRequestState) { + buffer.putUint8(129); + writeValue(buffer, value.index); + } else if (value is MessageSearchRequest) { + buffer.putUint8(130); + writeValue(buffer, value.encode()); + } else if (value is MessageSearchReply) { + buffer.putUint8(131); + writeValue(buffer, value.encode()); + } else if (value is MessageNested) { + buffer.putUint8(132); + writeValue(buffer, value.encode()); + } else { + super.writeValue(buffer, value); + } + } + + @override + Object? readValueOfType(int type, ReadBuffer buffer) { + switch (type) { + case 129: + final value = readValue(buffer) as int?; + return value == null ? null : MessageRequestState.values[value]; + case 130: + return MessageSearchRequest.decode(readValue(buffer)!); + case 131: + return MessageSearchReply.decode(readValue(buffer)!); + case 132: + return MessageNested.decode(readValue(buffer)!); + default: + return super.readValueOfType(type, buffer); + } + } +} + +/// This comment is to test api documentation comments. +/// +/// This comment also tests multiple line comments. +class MessageApi { + /// Constructor for [MessageApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + MessageApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + final BinaryMessenger? pigeonVar_binaryMessenger; + + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + final String pigeonVar_messageChannelSuffix; + + /// This comment is to test documentation comments. + /// + /// This comment also tests multiple line comments. + Future initialize() async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: true, + ); + } + + /// This comment is to test method documentation comments. + Future search(MessageSearchRequest request) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [request], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + final Object pigeonVar_replyValue = _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return pigeonVar_replyValue as MessageSearchReply; + } +} + +/// This comment is to test api documentation comments. +class MessageNestedApi { + /// Constructor for [MessageNestedApi]. The [binaryMessenger] named argument is + /// available for dependency injection. If it is left null, the default + /// BinaryMessenger will be used which routes to the host platform. + MessageNestedApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + final BinaryMessenger? pigeonVar_binaryMessenger; + + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + final String pigeonVar_messageChannelSuffix; + + /// This comment is to test method documentation comments. + /// + /// This comment also tests multiple line comments. + Future search(MessageNested nested) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [nested], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + final Object pigeonVar_replyValue = _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return pigeonVar_replyValue as MessageSearchReply; + } +} + +/// This comment is to test api documentation comments. +abstract class MessageFlutterSearchApi { + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// This comment is to test method documentation comments. + MessageSearchReply search(MessageSearchRequest request); + + static void setUp( + MessageFlutterSearchApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null.', + ); + final List args = (message as List?)!; + final MessageSearchRequest? arg_request = + (args[0] as MessageSearchRequest?); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.', + ); + try { + final MessageSearchReply output = api.search(arg_request!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + } +} diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart new file mode 100644 index 000000000000..d15373e49000 --- /dev/null +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart @@ -0,0 +1,217 @@ +// Copyright 2013 The Flutter Authors +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// Autogenerated from Pigeon (v26.2.0), do not edit directly. +// See also: https://pub.dev/packages/pigeon +// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import, no_leading_underscores_for_local_identifiers, omit_obvious_local_variable_types +// ignore_for_file: avoid_relative_lib_imports +import 'dart:async'; +import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; +import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; +import 'package:flutter/services.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:shared_test_plugin_code/message.gen.dart'; + +class _PigeonCodec extends StandardMessageCodec { + const _PigeonCodec(); + @override + void writeValue(WriteBuffer buffer, Object? value) { + if (value is int) { + buffer.putUint8(4); + buffer.putInt64(value); + } else if (value is MessageRequestState) { + buffer.putUint8(129); + writeValue(buffer, value.index); + } else if (value is MessageSearchRequest) { + buffer.putUint8(130); + writeValue(buffer, value.encode()); + } else if (value is MessageSearchReply) { + buffer.putUint8(131); + writeValue(buffer, value.encode()); + } else if (value is MessageNested) { + buffer.putUint8(132); + writeValue(buffer, value.encode()); + } else { + super.writeValue(buffer, value); + } + } + + @override + Object? readValueOfType(int type, ReadBuffer buffer) { + switch (type) { + case 129: + final value = readValue(buffer) as int?; + return value == null ? null : MessageRequestState.values[value]; + case 130: + return MessageSearchRequest.decode(readValue(buffer)!); + case 131: + return MessageSearchReply.decode(readValue(buffer)!); + case 132: + return MessageNested.decode(readValue(buffer)!); + default: + return super.readValueOfType(type, buffer); + } + } +} + +/// This comment is to test api documentation comments. +/// +/// This comment also tests multiple line comments. +abstract class TestHostApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// This comment is to test documentation comments. + /// + /// This comment also tests multiple line comments. + void initialize(); + + /// This comment is to test method documentation comments. + MessageSearchReply search(MessageSearchRequest request); + + static void setUp( + TestHostApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.initialize(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null.', + ); + final List args = (message as List?)!; + final MessageSearchRequest? arg_request = + (args[0] as MessageSearchRequest?); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null, expected non-null MessageSearchRequest.', + ); + try { + final MessageSearchReply output = api.search(arg_request!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + } +} + +/// This comment is to test api documentation comments. +abstract class TestNestedApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// This comment is to test method documentation comments. + /// + /// This comment also tests multiple line comments. + MessageSearchReply search(MessageNested nested); + + static void setUp( + TestNestedApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null.', + ); + final List args = (message as List?)!; + final MessageNested? arg_nested = (args[0] as MessageNested?); + assert( + arg_nested != null, + 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null, expected non-null MessageNested.', + ); + try { + final MessageSearchReply output = api.search(arg_nested!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + } +} diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 1b6c480d48dd..9355423c5871 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -33,6 +33,28 @@ FlutterError CreateConnectionError(const std::string channel_name) { EncodableValue("")); } +template +bool PigeonInternalDeepEquals(const T& a, const T& b); + +inline bool PigeonInternalDeepEquals(const double& a, const double& b); + +template +bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b); + +template +bool PigeonInternalDeepEquals(const std::map& a, const std::map& b); + +template +bool PigeonInternalDeepEquals(const std::optional& a, + const std::optional& b); + +template +bool PigeonInternalDeepEquals(const std::unique_ptr& a, + const std::unique_ptr& b); + +inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, + const ::flutter::EncodableValue& b); + template bool PigeonInternalDeepEquals(const T& a, const T& b) { return a == b; From 4ded545700e6c0edb76c70e1e194019569aa2bc7 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 20:42:56 -0800 Subject: [PATCH 28/33] delete file that shouldn't ever have existed --- .../test/message_test.dart | 217 ------------------ 1 file changed, 217 deletions(-) delete mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart deleted file mode 100644 index d15373e49000..000000000000 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/message_test.dart +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// -// Autogenerated from Pigeon (v26.2.0), do not edit directly. -// See also: https://pub.dev/packages/pigeon -// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import, no_leading_underscores_for_local_identifiers, omit_obvious_local_variable_types -// ignore_for_file: avoid_relative_lib_imports -import 'dart:async'; -import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; -import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; -import 'package:flutter/services.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:shared_test_plugin_code/message.gen.dart'; - -class _PigeonCodec extends StandardMessageCodec { - const _PigeonCodec(); - @override - void writeValue(WriteBuffer buffer, Object? value) { - if (value is int) { - buffer.putUint8(4); - buffer.putInt64(value); - } else if (value is MessageRequestState) { - buffer.putUint8(129); - writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { - buffer.putUint8(130); - writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { - buffer.putUint8(131); - writeValue(buffer, value.encode()); - } else if (value is MessageNested) { - buffer.putUint8(132); - writeValue(buffer, value.encode()); - } else { - super.writeValue(buffer, value); - } - } - - @override - Object? readValueOfType(int type, ReadBuffer buffer) { - switch (type) { - case 129: - final value = readValue(buffer) as int?; - return value == null ? null : MessageRequestState.values[value]; - case 130: - return MessageSearchRequest.decode(readValue(buffer)!); - case 131: - return MessageSearchReply.decode(readValue(buffer)!); - case 132: - return MessageNested.decode(readValue(buffer)!); - default: - return super.readValueOfType(type, buffer); - } - } -} - -/// This comment is to test api documentation comments. -/// -/// This comment also tests multiple line comments. -abstract class TestHostApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// This comment is to test documentation comments. - /// - /// This comment also tests multiple line comments. - void initialize(); - - /// This comment is to test method documentation comments. - MessageSearchReply search(MessageSearchRequest request); - - static void setUp( - TestHostApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.initialize(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null.', - ); - final List args = (message as List?)!; - final MessageSearchRequest? arg_request = - (args[0] as MessageSearchRequest?); - assert( - arg_request != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search was null, expected non-null MessageSearchRequest.', - ); - try { - final MessageSearchReply output = api.search(arg_request!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - } -} - -/// This comment is to test api documentation comments. -abstract class TestNestedApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// This comment is to test method documentation comments. - /// - /// This comment also tests multiple line comments. - MessageSearchReply search(MessageNested nested); - - static void setUp( - TestNestedApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null.', - ); - final List args = (message as List?)!; - final MessageNested? arg_nested = (args[0] as MessageNested?); - assert( - arg_nested != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search was null, expected non-null MessageNested.', - ); - try { - final MessageSearchReply output = api.search(arg_nested!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - } -} From 8698cb5e6b584d2b21fc41d10309d3935b36d523 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 21:33:58 -0800 Subject: [PATCH 29/33] more tests and windows method rework --- .../example/app/windows/runner/messages.g.cpp | 102 ++++ .../example/app/windows/runner/messages.g.h | 1 + .../pigeon/lib/src/cpp/cpp_generator.dart | 130 +++++ packages/pigeon/pigeons/core_tests.dart | 5 + .../CoreTests.java | 29 ++ .../CoreTests.gen.m | 29 ++ .../CoreTests.gen.h | 6 + .../lib/integration_tests.dart | 45 +- .../lib/message.gen.dart | 453 ------------------ .../lib/src/generated/core_tests.gen.dart | 24 + .../com/example/test_plugin/CoreTests.gen.kt | 24 + .../com/example/test_plugin/TestPlugin.kt | 6 + .../Sources/test_plugin/CoreTests.gen.swift | 22 + .../Sources/test_plugin/TestPlugin.swift | 6 + .../linux/pigeon/core_tests.gen.cc | 131 +++++ .../test_plugin/linux/pigeon/core_tests.gen.h | 40 ++ .../test_plugin/linux/test_plugin.cc | 10 + .../windows/pigeon/core_tests.gen.cpp | 270 +++++++++++ .../windows/pigeon/core_tests.gen.h | 9 + .../test_plugin/windows/test_plugin.cpp | 8 +- .../test_plugin/windows/test_plugin.h | 4 + packages/pigeon/test/cpp_generator_test.dart | 64 +++ 22 files changed, 961 insertions(+), 457 deletions(-) delete mode 100644 packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index edd31a0a87dd..c486dbcb001a 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -116,6 +117,96 @@ inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, return a == b; } +template +size_t PigeonInternalDeepHash(const T& v); + +inline size_t PigeonInternalDeepHash(const double& v); + +template +size_t PigeonInternalDeepHash(const std::vector& v); + +template +size_t PigeonInternalDeepHash(const std::map& v); + +template +size_t PigeonInternalDeepHash(const std::optional& v); + +template +size_t PigeonInternalDeepHash(const std::unique_ptr& v); + +inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v); + +template +size_t PigeonInternalDeepHash(const T& v) { + return std::hash()(v); +} + +template +size_t PigeonInternalDeepHash(const std::vector& v) { + size_t result = 0; + for (const auto& item : v) { + result = result * 31 + PigeonInternalDeepHash(item); + } + return result; +} + +template +size_t PigeonInternalDeepHash(const std::map& v) { + size_t result = 0; + for (const auto& kv : v) { + result = result * 31 + PigeonInternalDeepHash(kv.first); + result = result * 31 + PigeonInternalDeepHash(kv.second); + } + return result; +} + +inline size_t PigeonInternalDeepHash(const double& v) { + if (std::isnan(v)) { + return std::hash()(std::numeric_limits::quiet_NaN()); + } + if (v == 0.0) { + return std::hash()(0.0); + } + return std::hash()(v); +} + +template +size_t PigeonInternalDeepHash(const std::optional& v) { + return v ? PigeonInternalDeepHash(*v) : 0; +} + +template +size_t PigeonInternalDeepHash(const std::unique_ptr& v) { + return v ? PigeonInternalDeepHash(*v) : 0; +} + +inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v) { + size_t result = v.index(); + if (const double* dv = std::get_if(&v)) { + result = result * 31 + PigeonInternalDeepHash(*dv); + } else if (const ::flutter::EncodableList* lv = + std::get_if<::flutter::EncodableList>(&v)) { + result = result * 31 + PigeonInternalDeepHash(*lv); + } else if (const ::flutter::EncodableMap* mv = + std::get_if<::flutter::EncodableMap>(&v)) { + result = result * 31 + PigeonInternalDeepHash(*mv); + } else { + std::visit( + [&result](const auto& val) { + using T = std::decay_t; + if constexpr (!std::is_same_v && + !std::is_same_v && + !std::is_same_v && + !std::is_same_v && + !std::is_same_v) { + result = result * 31 + std::hash()(val); + } + }, + v); + } + return result; +} + // MessageData MessageData::MessageData(const Code& code, const EncodableMap& data) @@ -198,6 +289,17 @@ bool MessageData::operator!=(const MessageData& other) const { return !(*this == other); } +size_t MessageData::Hash() const { + size_t result = 0; + result = result * 31 + PigeonInternalDeepHash(name_); + result = result * 31 + PigeonInternalDeepHash(description_); + result = result * 31 + PigeonInternalDeepHash(code_); + result = result * 31 + PigeonInternalDeepHash(data_); + return result; +} + +size_t PigeonInternalDeepHash(const MessageData& v) { return v.Hash(); } + PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( diff --git a/packages/pigeon/example/app/windows/runner/messages.g.h b/packages/pigeon/example/app/windows/runner/messages.g.h index 216583d7bd52..3db8fc6b5c62 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.h +++ b/packages/pigeon/example/app/windows/runner/messages.g.h @@ -87,6 +87,7 @@ class MessageData { bool operator==(const MessageData& other) const; bool operator!=(const MessageData& other) const; + size_t Hash() const; private: static MessageData FromEncodableList(const ::flutter::EncodableList& list); diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 8abee1c43157..6c085f71564e 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -474,6 +474,12 @@ class CppHeaderGenerator extends StructuredGenerator { parameters: ['const ${classDefinition.name}& other'], isConst: true, ); + _writeFunctionDeclaration( + indent, + 'Hash', + returnType: 'size_t', + isConst: true, + ); }); _writeAccessBlock(indent, _ClassAccess.private, () { @@ -953,6 +959,7 @@ class CppSourceGenerator extends StructuredGenerator { indent.newln(); _writeSystemHeaderIncludeBlock(indent, [ 'cmath', + 'limits', 'map', 'string', 'optional', @@ -1005,6 +1012,7 @@ class CppSourceGenerator extends StructuredGenerator { }, ); _writeDeepEquals(indent); + _writeDeepHash(indent); } @override @@ -1101,6 +1109,34 @@ class CppSourceGenerator extends StructuredGenerator { indent.writeln('return !(*this == other);'); }, ); + + _writeFunctionDefinition( + indent, + 'Hash', + scope: classDefinition.name, + returnType: 'size_t', + isConst: true, + body: () { + indent.writeln('size_t result = 0;'); + for (final field in orderedFields) { + final String name = _makeInstanceVariableName(field); + indent.writeln( + 'result = result * 31 + PigeonInternalDeepHash($name);', + ); + } + indent.writeln('return result;'); + }, + ); + + _writeFunctionDefinition( + indent, + 'PigeonInternalDeepHash', + returnType: 'size_t', + parameters: ['const ${classDefinition.name}& v'], + body: () { + indent.writeln('return v.Hash();'); + }, + ); } void _writeDeepEquals(Indent indent) { @@ -1181,6 +1217,100 @@ inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const : '''); } + void _writeDeepHash(Indent indent) { + indent.format(''' +template +size_t PigeonInternalDeepHash(const T& v); + +inline size_t PigeonInternalDeepHash(const double& v); + +template +size_t PigeonInternalDeepHash(const std::vector& v); + +template +size_t PigeonInternalDeepHash(const std::map& v); + +template +size_t PigeonInternalDeepHash(const std::optional& v); + +template +size_t PigeonInternalDeepHash(const std::unique_ptr& v); + +inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v); + +template +size_t PigeonInternalDeepHash(const T& v) { + return std::hash()(v); +} + +template +size_t PigeonInternalDeepHash(const std::vector& v) { + size_t result = 0; + for (const auto& item : v) { + result = result * 31 + PigeonInternalDeepHash(item); + } + return result; +} + +template +size_t PigeonInternalDeepHash(const std::map& v) { + size_t result = 0; + for (const auto& kv : v) { + result = result * 31 + PigeonInternalDeepHash(kv.first); + result = result * 31 + PigeonInternalDeepHash(kv.second); + } + return result; +} + +inline size_t PigeonInternalDeepHash(const double& v) { + if (std::isnan(v)) { + return std::hash()(std::numeric_limits::quiet_NaN()); + } + if (v == 0.0) { + return std::hash()(0.0); + } + return std::hash()(v); +} + +template +size_t PigeonInternalDeepHash(const std::optional& v) { + return v ? PigeonInternalDeepHash(*v) : 0; +} + +template +size_t PigeonInternalDeepHash(const std::unique_ptr& v) { + return v ? PigeonInternalDeepHash(*v) : 0; +} + +inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v) { + size_t result = v.index(); + if (const double* dv = std::get_if(&v)) { + result = result * 31 + PigeonInternalDeepHash(*dv); + } else if (const ::flutter::EncodableList* lv = + std::get_if<::flutter::EncodableList>(&v)) { + result = result * 31 + PigeonInternalDeepHash(*lv); + } else if (const ::flutter::EncodableMap* mv = + std::get_if<::flutter::EncodableMap>(&v)) { + result = result * 31 + PigeonInternalDeepHash(*mv); + } else { + std::visit( + [&result](const auto& val) { + using T = std::decay_t; + if constexpr (!std::is_same_v && + !std::is_same_v && + !std::is_same_v && + !std::is_same_v && + !std::is_same_v) { + result = result * 31 + std::hash()(val); + } + }, + v); + } + return result; +} +'''); + } + @override void writeClassEncode( InternalCppOptions generatorOptions, diff --git a/packages/pigeon/pigeons/core_tests.dart b/packages/pigeon/pigeons/core_tests.dart index fb3e8b0f1fc5..f55c0bbfd519 100644 --- a/packages/pigeon/pigeons/core_tests.dart +++ b/packages/pigeon/pigeons/core_tests.dart @@ -441,6 +441,11 @@ abstract class HostIntegrationCoreApi { /// Returns the platform-side hash code for the given object. int getAllNullableTypesHash(AllNullableTypes value); + /// Returns the platform-side hash code for the given object. + int getAllNullableTypesWithoutRecursionHash( + AllNullableTypesWithoutRecursion value, + ); + /// Returns the passed object, to test serialization and deserialization. @ObjCSelector('echoAllNullableTypes:') @SwiftFunction('echo(_:)') diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index b9a73fc2fa02..f32c530525ee 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -3099,6 +3099,9 @@ public interface HostIntegrationCoreApi { /** Returns the platform-side hash code for the given object. */ @NonNull Long getAllNullableTypesHash(@NonNull AllNullableTypes value); + /** Returns the platform-side hash code for the given object. */ + @NonNull + Long getAllNullableTypesWithoutRecursionHash(@NonNull AllNullableTypesWithoutRecursion value); /** Returns the passed object, to test serialization and deserialization. */ @Nullable AllNullableTypes echoAllNullableTypes(@Nullable AllNullableTypes everything); @@ -4311,6 +4314,32 @@ static void setUp( channel.setMessageHandler(null); } } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesWithoutRecursionHash" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AllNullableTypesWithoutRecursion valueArg = + (AllNullableTypesWithoutRecursion) args.get(0); + try { + Long output = api.getAllNullableTypesWithoutRecursionHash(valueArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } { BasicMessageChannel channel = new BasicMessageChannel<>( diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index ed2e93ed55bf..b6a269670584 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -1880,6 +1880,35 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:nil]; } } + /// Returns the platform-side hash code for the given object. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.getAllNullableTypesWithoutRecursionHash", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(getAllNullableTypesWithoutRecursionHashValue: + error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(getAllNullableTypesWithoutRecursionHashValue:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAllNullableTypesWithoutRecursion *arg_value = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + NSNumber *output = [api getAllNullableTypesWithoutRecursionHashValue:arg_value + error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } /// Returns the passed object, to test serialization and deserialization. { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h index 6704a1a4b3be..5431650656e1 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h @@ -461,6 +461,12 @@ NSObject *FLTGetCoreTestsCodec(void); /// @return `nil` only when `error != nil`. - (nullable NSNumber *)getAllNullableTypesHashValue:(FLTAllNullableTypes *)value error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the platform-side hash code for the given object. +/// +/// @return `nil` only when `error != nil`. +- (nullable NSNumber *) + getAllNullableTypesWithoutRecursionHashValue:(FLTAllNullableTypesWithoutRecursion *)value + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the passed object, to test serialization and deserialization. - (nullable FLTAllNullableTypes *)echoAllNullableTypes:(nullable FLTAllNullableTypes *)everything error:(FlutterError *_Nullable *_Nonnull)error; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart index 29cca1e99298..e75414f3b733 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart @@ -1025,13 +1025,21 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(receivedNullString, null); }); - testWidgets('Signed zero equality and hashing', (WidgetTester _) async { + testWidgets('Signed zero equality', (WidgetTester _) async { final api = HostIntegrationCoreApi(); final a = AllNullableTypes(aNullableDouble: 0.0); final b = AllNullableTypes(aNullableDouble: -0.0); expect(await api.areAllNullableTypesEqual(a, b), isTrue); + }); + + testWidgets('Signed zero hashing', (WidgetTester _) async { + final api = HostIntegrationCoreApi(); + + final a = AllNullableTypes(aNullableDouble: 0.0); + final b = AllNullableTypes(aNullableDouble: -0.0); + final int hashA = await api.getAllNullableTypesHash(a); final int hashB = await api.getAllNullableTypesHash(b); expect( @@ -1041,13 +1049,21 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { ); }); - testWidgets('NaN equality and hashing', (WidgetTester _) async { + testWidgets('NaN equality', (WidgetTester _) async { final api = HostIntegrationCoreApi(); final a = AllNullableTypes(aNullableDouble: double.nan); final b = AllNullableTypes(aNullableDouble: double.nan); expect(await api.areAllNullableTypesEqual(a, b), isTrue); + }); + + testWidgets('NaN hashing', (WidgetTester _) async { + final api = HostIntegrationCoreApi(); + + final a = AllNullableTypes(aNullableDouble: double.nan); + final b = AllNullableTypes(aNullableDouble: double.nan); + final int hashA = await api.getAllNullableTypesHash(a); final int hashB = await api.getAllNullableTypesHash(b); expect(hashA, hashB, reason: 'Hash codes for two NaNs should be equal'); @@ -1068,6 +1084,22 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { ); expect(await api.areAllNullableTypesEqual(a, b), isTrue); + }); + + testWidgets('Collection hashing with signed zero and NaN', ( + WidgetTester _, + ) async { + final api = HostIntegrationCoreApi(); + + final a = AllNullableTypes( + doubleList: [0.0, double.nan], + stringMap: {'k': 'v', 'n': null}, + ); + final b = AllNullableTypes( + doubleList: [-0.0, double.nan], + stringMap: {'n': null, 'k': 'v'}, + ); + expect( await api.getAllNullableTypesHash(a), await api.getAllNullableTypesHash(b), @@ -1097,6 +1129,15 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(await api.areAllNullableTypesEqual(a, b), isTrue); }); + + testWidgets('Hashing inequality across types with same values', ( + WidgetTester _, + ) async { + final a = AllNullableTypes(aNullableInt: 42); + final b = AllNullableTypesWithoutRecursion(aNullableInt: 42); + + expect(a.hashCode, isNot(b.hashCode)); + }); }); group('Host async API tests', () { diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart deleted file mode 100644 index 6046050341d3..000000000000 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/message.gen.dart +++ /dev/null @@ -1,453 +0,0 @@ -// Copyright 2013 The Flutter Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// -// Autogenerated from Pigeon (v26.2.0), do not edit directly. -// See also: https://pub.dev/packages/pigeon -// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, omit_obvious_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers - -import 'dart:async'; -import 'dart:typed_data' show Float64List, Int32List, Int64List, Uint8List; - -import 'package:flutter/foundation.dart' show ReadBuffer, WriteBuffer; -import 'package:flutter/services.dart'; - -Object? _extractReplyValueOrThrow( - List? replyList, - String channelName, { - required bool isNullValid, -}) { - if (replyList == null) { - throw PlatformException( - code: 'channel-error', - message: 'Unable to establish connection on channel: "$channelName".', - ); - } else if (replyList.length > 1) { - throw PlatformException( - code: replyList[0]! as String, - message: replyList[1] as String?, - details: replyList[2], - ); - } else if (!isNullValid && (replyList.isNotEmpty && replyList[0] == null)) { - throw PlatformException( - code: 'null-error', - message: 'Host platform returned null value for non-null return value.', - ); - } - return replyList.firstOrNull; -} - -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { - if (empty) { - return []; - } - if (error == null) { - return [result]; - } - return [error.code, error.message, error.details]; -} - -bool _deepEquals(Object? a, Object? b) { - if (identical(a, b)) { - return true; - } - if (a is double && b is double) { - if (a.isNaN && b.isNaN) { - return true; - } - } - if (a is List && b is List) { - return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); - } - if (a is Map && b is Map) { - if (a.length != b.length) { - return false; - } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; - } - if (!_deepEquals(entry.value, b[entry.key])) { - return false; - } - } - return true; - } - return a == b; -} - -int _deepHash(Object? value) { - if (value is List) { - return Object.hashAll(value.map(_deepHash)); - } - if (value is Map) { - int result = 0; - for (final MapEntry entry in value.entries) { - result += _deepHash(entry.key) ^ _deepHash(entry.value); - } - return result; - } - if (value is double && value.isNaN) { - return 0x7FF8000000000000.hashCode; - } - if (value is double && value == 0.0) { - return 0.0.hashCode; - } - return value.hashCode; -} - -/// This comment is to test enum documentation comments. -/// -/// This comment also tests multiple line comments. -/// -/// //////////////////////// -/// This comment also tests comments that start with '/' -/// //////////////////////// -enum MessageRequestState { pending, success, failure } - -/// This comment is to test class documentation comments. -/// -/// This comment also tests multiple line comments. -class MessageSearchRequest { - MessageSearchRequest({this.query, this.anInt, this.aBool}); - - /// This comment is to test field documentation comments. - String? query; - - /// This comment is to test field documentation comments. - int? anInt; - - /// This comment is to test field documentation comments. - bool? aBool; - - List _toList() { - return [query, anInt, aBool]; - } - - Object encode() { - return _toList(); - } - - static MessageSearchRequest decode(Object result) { - result as List; - return MessageSearchRequest( - query: result[0] as String?, - anInt: result[1] as int?, - aBool: result[2] as bool?, - ); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! MessageSearchRequest || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(query, other.query) && - _deepEquals(anInt, other.anInt) && - _deepEquals(aBool, other.aBool); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// This comment is to test class documentation comments. -class MessageSearchReply { - MessageSearchReply({this.result, this.error, this.state}); - - /// This comment is to test field documentation comments. - /// - /// This comment also tests multiple line comments. - String? result; - - /// This comment is to test field documentation comments. - String? error; - - /// This comment is to test field documentation comments. - MessageRequestState? state; - - List _toList() { - return [result, error, state]; - } - - Object encode() { - return _toList(); - } - - static MessageSearchReply decode(Object result) { - result as List; - return MessageSearchReply( - result: result[0] as String?, - error: result[1] as String?, - state: result[2] as MessageRequestState?, - ); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! MessageSearchReply || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(result, other.result) && - _deepEquals(error, other.error) && - _deepEquals(state, other.state); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -/// This comment is to test class documentation comments. -class MessageNested { - MessageNested({this.request}); - - /// This comment is to test field documentation comments. - MessageSearchRequest? request; - - List _toList() { - return [request]; - } - - Object encode() { - return _toList(); - } - - static MessageNested decode(Object result) { - result as List; - return MessageNested(request: result[0] as MessageSearchRequest?); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - bool operator ==(Object other) { - if (other is! MessageNested || other.runtimeType != runtimeType) { - return false; - } - if (identical(this, other)) { - return true; - } - return _deepEquals(request, other.request); - } - - @override - // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => _deepHash([runtimeType, ..._toList()]); -} - -class _PigeonCodec extends StandardMessageCodec { - const _PigeonCodec(); - @override - void writeValue(WriteBuffer buffer, Object? value) { - if (value is int) { - buffer.putUint8(4); - buffer.putInt64(value); - } else if (value is MessageRequestState) { - buffer.putUint8(129); - writeValue(buffer, value.index); - } else if (value is MessageSearchRequest) { - buffer.putUint8(130); - writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { - buffer.putUint8(131); - writeValue(buffer, value.encode()); - } else if (value is MessageNested) { - buffer.putUint8(132); - writeValue(buffer, value.encode()); - } else { - super.writeValue(buffer, value); - } - } - - @override - Object? readValueOfType(int type, ReadBuffer buffer) { - switch (type) { - case 129: - final value = readValue(buffer) as int?; - return value == null ? null : MessageRequestState.values[value]; - case 130: - return MessageSearchRequest.decode(readValue(buffer)!); - case 131: - return MessageSearchReply.decode(readValue(buffer)!); - case 132: - return MessageNested.decode(readValue(buffer)!); - default: - return super.readValueOfType(type, buffer); - } - } -} - -/// This comment is to test api documentation comments. -/// -/// This comment also tests multiple line comments. -class MessageApi { - /// Constructor for [MessageApi]. The [binaryMessenger] named argument is - /// available for dependency injection. If it is left null, the default - /// BinaryMessenger will be used which routes to the host platform. - MessageApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - final BinaryMessenger? pigeonVar_binaryMessenger; - - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - final String pigeonVar_messageChannelSuffix; - - /// This comment is to test documentation comments. - /// - /// This comment also tests multiple line comments. - Future initialize() async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.initialize$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - - _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: true, - ); - } - - /// This comment is to test method documentation comments. - Future search(MessageSearchRequest request) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.shared_test_plugin_code.MessageApi.search$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [request], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - - final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return pigeonVar_replyValue as MessageSearchReply; - } -} - -/// This comment is to test api documentation comments. -class MessageNestedApi { - /// Constructor for [MessageNestedApi]. The [binaryMessenger] named argument is - /// available for dependency injection. If it is left null, the default - /// BinaryMessenger will be used which routes to the host platform. - MessageNestedApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - final BinaryMessenger? pigeonVar_binaryMessenger; - - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - final String pigeonVar_messageChannelSuffix; - - /// This comment is to test method documentation comments. - /// - /// This comment also tests multiple line comments. - Future search(MessageNested nested) async { - final pigeonVar_channelName = - 'dev.flutter.pigeon.shared_test_plugin_code.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; - final pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [nested], - ); - final pigeonVar_replyList = await pigeonVar_sendFuture as List?; - - final Object pigeonVar_replyValue = _extractReplyValueOrThrow( - pigeonVar_replyList, - pigeonVar_channelName, - isNullValid: false, - )!; - return pigeonVar_replyValue as MessageSearchReply; - } -} - -/// This comment is to test api documentation comments. -abstract class MessageFlutterSearchApi { - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// This comment is to test method documentation comments. - MessageSearchReply search(MessageSearchRequest request); - - static void setUp( - MessageFlutterSearchApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - pigeonVar_channel.setMessageHandler(null); - } else { - pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null.', - ); - final List args = (message as List?)!; - final MessageSearchRequest? arg_request = - (args[0] as MessageSearchRequest?); - assert( - arg_request != null, - 'Argument for dev.flutter.pigeon.shared_test_plugin_code.MessageFlutterSearchApi.search was null, expected non-null MessageSearchRequest.', - ); - try { - final MessageSearchReply output = api.search(arg_request!); - return wrapResponse(result: output); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - } -} diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 48d200ee5ae9..9b8bc2ee374f 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -1736,6 +1736,30 @@ class HostIntegrationCoreApi { return pigeonVar_replyValue as int; } + /// Returns the platform-side hash code for the given object. + Future getAllNullableTypesWithoutRecursionHash( + AllNullableTypesWithoutRecursion value, + ) async { + final pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesWithoutRecursionHash$pigeonVar_messageChannelSuffix'; + final pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [value], + ); + final pigeonVar_replyList = await pigeonVar_sendFuture as List?; + + final Object pigeonVar_replyValue = _extractReplyValueOrThrow( + pigeonVar_replyList, + pigeonVar_channelName, + isNullValid: false, + )!; + return pigeonVar_replyValue as int; + } + /// Returns the passed object, to test serialization and deserialization. Future echoAllNullableTypes( AllNullableTypes? everything, diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index e3428d58d2d1..2dc21f585e9a 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -1092,6 +1092,8 @@ interface HostIntegrationCoreApi { fun areAllNullableTypesEqual(a: AllNullableTypes, b: AllNullableTypes): Boolean /** Returns the platform-side hash code for the given object. */ fun getAllNullableTypesHash(value: AllNullableTypes): Long + /** Returns the platform-side hash code for the given object. */ + fun getAllNullableTypesWithoutRecursionHash(value: AllNullableTypesWithoutRecursion): Long /** Returns the passed object, to test serialization and deserialization. */ fun echoAllNullableTypes(everything: AllNullableTypes?): AllNullableTypes? /** Returns the passed object, to test serialization and deserialization. */ @@ -2229,6 +2231,28 @@ interface HostIntegrationCoreApi { channel.setMessageHandler(null) } } + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesWithoutRecursionHash$separatedMessageChannelSuffix", + codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val valueArg = args[0] as AllNullableTypesWithoutRecursion + val wrapped: List = + try { + listOf(api.getAllNullableTypesWithoutRecursionHash(valueArg)) + } catch (exception: Throwable) { + CoreTestsPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } run { val channel = BasicMessageChannel( diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt index 64eb60c9b0c7..ea402e91d7a4 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt @@ -61,6 +61,12 @@ class TestPlugin : FlutterPlugin, HostIntegrationCoreApi { return value.hashCode().toLong() } + override fun getAllNullableTypesWithoutRecursionHash( + value: AllNullableTypesWithoutRecursion + ): Long { + return value.hashCode().toLong() + } + override fun echoAllNullableTypesWithoutRecursion( everything: AllNullableTypesWithoutRecursion? ): AllNullableTypesWithoutRecursion? { diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index e1e43a739400..a139b7dd9a5c 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -1135,6 +1135,9 @@ protocol HostIntegrationCoreApi { func areAllNullableTypesEqual(a: AllNullableTypes, b: AllNullableTypes) throws -> Bool /// Returns the platform-side hash code for the given object. func getAllNullableTypesHash(value: AllNullableTypes) throws -> Int64 + /// Returns the platform-side hash code for the given object. + func getAllNullableTypesWithoutRecursionHash(value: AllNullableTypesWithoutRecursion) throws + -> Int64 /// Returns the passed object, to test serialization and deserialization. func echo(_ everything: AllNullableTypes?) throws -> AllNullableTypes? /// Returns the passed object, to test serialization and deserialization. @@ -2066,6 +2069,25 @@ class HostIntegrationCoreApiSetup { } else { getAllNullableTypesHashChannel.setMessageHandler(nil) } + /// Returns the platform-side hash code for the given object. + let getAllNullableTypesWithoutRecursionHashChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.getAllNullableTypesWithoutRecursionHash\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + getAllNullableTypesWithoutRecursionHashChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let valueArg = args[0] as! AllNullableTypesWithoutRecursion + do { + let result = try api.getAllNullableTypesWithoutRecursionHash(value: valueArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + getAllNullableTypesWithoutRecursionHashChannel.setMessageHandler(nil) + } /// Returns the passed object, to test serialization and deserialization. let echoAllNullableTypesChannel = FlutterBasicMessageChannel( name: diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift index fa949990a2bb..89d25d32f58e 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/TestPlugin.swift @@ -80,6 +80,12 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { value.hash(into: &hasher) return Int64(hasher.finalize()) } + + func getAllNullableTypesWithoutRecursionHash(value: AllNullableTypesWithoutRecursion) -> Int64 { + var hasher = Hasher() + value.hash(into: &hasher) + return Int64(hasher.finalize()) + } func echo(_ everything: AllNullableTypesWithoutRecursion?) throws -> AllNullableTypesWithoutRecursion? { diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 08deb3d8d5d6..cb57dd966504 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -5829,6 +5829,74 @@ core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_res return self; } +struct + _CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse, + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_HASH_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_new( + int64_t return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_HASH_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_int(return_value)); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_HASH_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; +} + struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse { GObject parent_instance; @@ -15787,6 +15855,40 @@ core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_cb( } } +static void +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->get_all_nullable_types_without_recursion_hash == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value = + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(value0)); + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse) + response = self->vtable->get_all_nullable_types_without_recursion_hash( + value, self->user_data); + if (response == nullptr) { + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "getAllNullableTypesWithoutRecursionHash"); + return; + } + + g_autoptr(GError) error = NULL; + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "getAllNullableTypesWithoutRecursionHash", error->message); + } +} + static void core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_cb( FlBasicMessageChannel* channel, FlValue* message_, @@ -19167,6 +19269,21 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( get_all_nullable_types_hash_channel, core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* get_all_nullable_types_without_recursion_hash_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "getAllNullableTypesWithoutRecursionHash%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + get_all_nullable_types_without_recursion_hash_channel = + fl_basic_message_channel_new( + messenger, + get_all_nullable_types_without_recursion_hash_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + get_all_nullable_types_without_recursion_hash_channel, + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_cb, + g_object_ref(api_data), g_object_unref); g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "echoAllNullableTypes%s", @@ -21022,6 +21139,20 @@ void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( FL_MESSAGE_CODEC(codec)); fl_basic_message_channel_set_message_handler( get_all_nullable_types_hash_channel, nullptr, nullptr, nullptr); + g_autofree gchar* get_all_nullable_types_without_recursion_hash_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "getAllNullableTypesWithoutRecursionHash%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + get_all_nullable_types_without_recursion_hash_channel = + fl_basic_message_channel_new( + messenger, + get_all_nullable_types_without_recursion_hash_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + get_all_nullable_types_without_recursion_hash_channel, nullptr, nullptr, + nullptr); g_autofree gchar* echo_all_nullable_types_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "echoAllNullableTypes%s", diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h index 3a74c31408d9..322b9bc8a6b5 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h @@ -2662,6 +2662,42 @@ CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_hash_response_new_error( const gchar* code, const gchar* message, FlValue* details); +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse, + core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_GET_ALL_NULLABLE_TYPES_WITHOUT_RECURSION_HASH_RESPONSE, + GObject) + +/** + * core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_new: + * + * Creates a new response to + * HostIntegrationCoreApi.getAllNullableTypesWithoutRecursionHash. + * + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_new( + int64_t return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_new_error: + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Creates a new error response to + * HostIntegrationCoreApi.getAllNullableTypesWithoutRecursionHash. + * + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* +core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_new_error( + const gchar* code, const gchar* message, FlValue* details); + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse, core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_response, @@ -3823,6 +3859,10 @@ typedef struct { CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesHashResponse* ( *get_all_nullable_types_hash)(CoreTestsPigeonTestAllNullableTypes* value, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* ( + *get_all_nullable_types_without_recursion_hash)( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, + gpointer user_data); CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesResponse* ( *echo_all_nullable_types)(CoreTestsPigeonTestAllNullableTypes* everything, gpointer user_data); diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index cfcea8a96fe6..884287d425d5 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -268,6 +268,14 @@ get_all_nullable_types_hash(CoreTestsPigeonTestAllNullableTypes* value, core_tests_pigeon_test_all_nullable_types_hash(value)); } +static CoreTestsPigeonTestHostIntegrationCoreApiGetAllNullableTypesWithoutRecursionHashResponse* +get_all_nullable_types_without_recursion_hash( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, + gpointer user_data) { + return core_tests_pigeon_test_host_integration_core_api_get_all_nullable_types_without_recursion_hash_response_new( + core_tests_pigeon_test_all_nullable_types_without_recursion_hash(value)); +} + static CoreTestsPigeonTestHostIntegrationCoreApiEchoAllNullableTypesWithoutRecursionResponse* echo_all_nullable_types_without_recursion( @@ -3242,6 +3250,8 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .echo_all_nullable_types = echo_all_nullable_types, .are_all_nullable_types_equal = are_all_nullable_types_equal, .get_all_nullable_types_hash = get_all_nullable_types_hash, + .get_all_nullable_types_without_recursion_hash = + get_all_nullable_types_without_recursion_hash, .echo_all_nullable_types_without_recursion = echo_all_nullable_types_without_recursion, .extract_nested_nullable_string = extract_nested_nullable_string, diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 9355423c5871..c52df0794d40 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -117,6 +118,96 @@ inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, return a == b; } +template +size_t PigeonInternalDeepHash(const T& v); + +inline size_t PigeonInternalDeepHash(const double& v); + +template +size_t PigeonInternalDeepHash(const std::vector& v); + +template +size_t PigeonInternalDeepHash(const std::map& v); + +template +size_t PigeonInternalDeepHash(const std::optional& v); + +template +size_t PigeonInternalDeepHash(const std::unique_ptr& v); + +inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v); + +template +size_t PigeonInternalDeepHash(const T& v) { + return std::hash()(v); +} + +template +size_t PigeonInternalDeepHash(const std::vector& v) { + size_t result = 0; + for (const auto& item : v) { + result = result * 31 + PigeonInternalDeepHash(item); + } + return result; +} + +template +size_t PigeonInternalDeepHash(const std::map& v) { + size_t result = 0; + for (const auto& kv : v) { + result = result * 31 + PigeonInternalDeepHash(kv.first); + result = result * 31 + PigeonInternalDeepHash(kv.second); + } + return result; +} + +inline size_t PigeonInternalDeepHash(const double& v) { + if (std::isnan(v)) { + return std::hash()(std::numeric_limits::quiet_NaN()); + } + if (v == 0.0) { + return std::hash()(0.0); + } + return std::hash()(v); +} + +template +size_t PigeonInternalDeepHash(const std::optional& v) { + return v ? PigeonInternalDeepHash(*v) : 0; +} + +template +size_t PigeonInternalDeepHash(const std::unique_ptr& v) { + return v ? PigeonInternalDeepHash(*v) : 0; +} + +inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v) { + size_t result = v.index(); + if (const double* dv = std::get_if(&v)) { + result = result * 31 + PigeonInternalDeepHash(*dv); + } else if (const ::flutter::EncodableList* lv = + std::get_if<::flutter::EncodableList>(&v)) { + result = result * 31 + PigeonInternalDeepHash(*lv); + } else if (const ::flutter::EncodableMap* mv = + std::get_if<::flutter::EncodableMap>(&v)) { + result = result * 31 + PigeonInternalDeepHash(*mv); + } else { + std::visit( + [&result](const auto& val) { + using T = std::decay_t; + if constexpr (!std::is_same_v && + !std::is_same_v && + !std::is_same_v && + !std::is_same_v && + !std::is_same_v) { + result = result * 31 + std::hash()(val); + } + }, + v); + } + return result; +} + // UnusedClass UnusedClass::UnusedClass() {} @@ -162,6 +253,14 @@ bool UnusedClass::operator!=(const UnusedClass& other) const { return !(*this == other); } +size_t UnusedClass::Hash() const { + size_t result = 0; + result = result * 31 + PigeonInternalDeepHash(a_field_); + return result; +} + +size_t PigeonInternalDeepHash(const UnusedClass& v) { return v.Hash(); } + // AllTypes AllTypes::AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, @@ -465,6 +564,41 @@ bool AllTypes::operator!=(const AllTypes& other) const { return !(*this == other); } +size_t AllTypes::Hash() const { + size_t result = 0; + result = result * 31 + PigeonInternalDeepHash(a_bool_); + result = result * 31 + PigeonInternalDeepHash(an_int_); + result = result * 31 + PigeonInternalDeepHash(an_int64_); + result = result * 31 + PigeonInternalDeepHash(a_double_); + result = result * 31 + PigeonInternalDeepHash(a_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a4_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a8_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a_float_array_); + result = result * 31 + PigeonInternalDeepHash(an_enum_); + result = result * 31 + PigeonInternalDeepHash(another_enum_); + result = result * 31 + PigeonInternalDeepHash(a_string_); + result = result * 31 + PigeonInternalDeepHash(an_object_); + result = result * 31 + PigeonInternalDeepHash(list_); + result = result * 31 + PigeonInternalDeepHash(string_list_); + result = result * 31 + PigeonInternalDeepHash(int_list_); + result = result * 31 + PigeonInternalDeepHash(double_list_); + result = result * 31 + PigeonInternalDeepHash(bool_list_); + result = result * 31 + PigeonInternalDeepHash(enum_list_); + result = result * 31 + PigeonInternalDeepHash(object_list_); + result = result * 31 + PigeonInternalDeepHash(list_list_); + result = result * 31 + PigeonInternalDeepHash(map_list_); + result = result * 31 + PigeonInternalDeepHash(map_); + result = result * 31 + PigeonInternalDeepHash(string_map_); + result = result * 31 + PigeonInternalDeepHash(int_map_); + result = result * 31 + PigeonInternalDeepHash(enum_map_); + result = result * 31 + PigeonInternalDeepHash(object_map_); + result = result * 31 + PigeonInternalDeepHash(list_map_); + result = result * 31 + PigeonInternalDeepHash(map_map_); + return result; +} + +size_t PigeonInternalDeepHash(const AllTypes& v) { return v.Hash(); } + // AllNullableTypes AllNullableTypes::AllNullableTypes() {} @@ -1364,6 +1498,44 @@ bool AllNullableTypes::operator!=(const AllNullableTypes& other) const { return !(*this == other); } +size_t AllNullableTypes::Hash() const { + size_t result = 0; + result = result * 31 + PigeonInternalDeepHash(a_nullable_bool_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_int_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_int64_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_double_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a_nullable4_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a_nullable8_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_float_array_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_enum_); + result = result * 31 + PigeonInternalDeepHash(another_nullable_enum_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_string_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_object_); + result = result * 31 + PigeonInternalDeepHash(all_nullable_types_); + result = result * 31 + PigeonInternalDeepHash(list_); + result = result * 31 + PigeonInternalDeepHash(string_list_); + result = result * 31 + PigeonInternalDeepHash(int_list_); + result = result * 31 + PigeonInternalDeepHash(double_list_); + result = result * 31 + PigeonInternalDeepHash(bool_list_); + result = result * 31 + PigeonInternalDeepHash(enum_list_); + result = result * 31 + PigeonInternalDeepHash(object_list_); + result = result * 31 + PigeonInternalDeepHash(list_list_); + result = result * 31 + PigeonInternalDeepHash(map_list_); + result = result * 31 + PigeonInternalDeepHash(recursive_class_list_); + result = result * 31 + PigeonInternalDeepHash(map_); + result = result * 31 + PigeonInternalDeepHash(string_map_); + result = result * 31 + PigeonInternalDeepHash(int_map_); + result = result * 31 + PigeonInternalDeepHash(enum_map_); + result = result * 31 + PigeonInternalDeepHash(object_map_); + result = result * 31 + PigeonInternalDeepHash(list_map_); + result = result * 31 + PigeonInternalDeepHash(map_map_); + result = result * 31 + PigeonInternalDeepHash(recursive_class_map_); + return result; +} + +size_t PigeonInternalDeepHash(const AllNullableTypes& v) { return v.Hash(); } + // AllNullableTypesWithoutRecursion AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion() {} @@ -2095,6 +2267,43 @@ bool AllNullableTypesWithoutRecursion::operator!=( return !(*this == other); } +size_t AllNullableTypesWithoutRecursion::Hash() const { + size_t result = 0; + result = result * 31 + PigeonInternalDeepHash(a_nullable_bool_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_int_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_int64_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_double_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a_nullable4_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a_nullable8_byte_array_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_float_array_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_enum_); + result = result * 31 + PigeonInternalDeepHash(another_nullable_enum_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_string_); + result = result * 31 + PigeonInternalDeepHash(a_nullable_object_); + result = result * 31 + PigeonInternalDeepHash(list_); + result = result * 31 + PigeonInternalDeepHash(string_list_); + result = result * 31 + PigeonInternalDeepHash(int_list_); + result = result * 31 + PigeonInternalDeepHash(double_list_); + result = result * 31 + PigeonInternalDeepHash(bool_list_); + result = result * 31 + PigeonInternalDeepHash(enum_list_); + result = result * 31 + PigeonInternalDeepHash(object_list_); + result = result * 31 + PigeonInternalDeepHash(list_list_); + result = result * 31 + PigeonInternalDeepHash(map_list_); + result = result * 31 + PigeonInternalDeepHash(map_); + result = result * 31 + PigeonInternalDeepHash(string_map_); + result = result * 31 + PigeonInternalDeepHash(int_map_); + result = result * 31 + PigeonInternalDeepHash(enum_map_); + result = result * 31 + PigeonInternalDeepHash(object_map_); + result = result * 31 + PigeonInternalDeepHash(list_map_); + result = result * 31 + PigeonInternalDeepHash(map_map_); + return result; +} + +size_t PigeonInternalDeepHash(const AllNullableTypesWithoutRecursion& v) { + return v.Hash(); +} + // AllClassesWrapper AllClassesWrapper::AllClassesWrapper(const AllNullableTypes& all_nullable_types, @@ -2320,6 +2529,21 @@ bool AllClassesWrapper::operator!=(const AllClassesWrapper& other) const { return !(*this == other); } +size_t AllClassesWrapper::Hash() const { + size_t result = 0; + result = result * 31 + PigeonInternalDeepHash(all_nullable_types_); + result = result * 31 + + PigeonInternalDeepHash(all_nullable_types_without_recursion_); + result = result * 31 + PigeonInternalDeepHash(all_types_); + result = result * 31 + PigeonInternalDeepHash(class_list_); + result = result * 31 + PigeonInternalDeepHash(nullable_class_list_); + result = result * 31 + PigeonInternalDeepHash(class_map_); + result = result * 31 + PigeonInternalDeepHash(nullable_class_map_); + return result; +} + +size_t PigeonInternalDeepHash(const AllClassesWrapper& v) { return v.Hash(); } + // TestMessage TestMessage::TestMessage() {} @@ -2365,6 +2589,14 @@ bool TestMessage::operator!=(const TestMessage& other) const { return !(*this == other); } +size_t TestMessage::Hash() const { + size_t result = 0; + result = result * 31 + PigeonInternalDeepHash(test_list_); + return result; +} + +size_t PigeonInternalDeepHash(const TestMessage& v) { return v.Hash(); } + PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( @@ -3666,6 +3898,44 @@ void HostIntegrationCoreApi::SetUp(::flutter::BinaryMessenger* binary_messenger, channel.SetMessageHandler(nullptr); } } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "getAllNullableTypesWithoutRecursionHash" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const ::flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_value_arg = args.at(0); + if (encodable_value_arg.IsNull()) { + reply(WrapError("value_arg unexpectedly null.")); + return; + } + const auto& value_arg = + std::any_cast( + std::get(encodable_value_arg)); + ErrorOr output = + api->GetAllNullableTypesWithoutRecursionHash(value_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } { BasicMessageChannel<> channel( binary_messenger, diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index ccadcf93fd1c..07bdba94a6e5 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -90,6 +90,7 @@ class UnusedClass { bool operator==(const UnusedClass& other) const; bool operator!=(const UnusedClass& other) const; + size_t Hash() const; private: static UnusedClass FromEncodableList(const ::flutter::EncodableList& list); @@ -221,6 +222,7 @@ class AllTypes { bool operator==(const AllTypes& other) const; bool operator!=(const AllTypes& other) const; + size_t Hash() const; private: static AllTypes FromEncodableList(const ::flutter::EncodableList& list); @@ -433,6 +435,7 @@ class AllNullableTypes { bool operator==(const AllNullableTypes& other) const; bool operator!=(const AllNullableTypes& other) const; + size_t Hash() const; private: static AllNullableTypes FromEncodableList( @@ -631,6 +634,7 @@ class AllNullableTypesWithoutRecursion { bool operator==(const AllNullableTypesWithoutRecursion& other) const; bool operator!=(const AllNullableTypesWithoutRecursion& other) const; + size_t Hash() const; private: static AllNullableTypesWithoutRecursion FromEncodableList( @@ -733,6 +737,7 @@ class AllClassesWrapper { bool operator==(const AllClassesWrapper& other) const; bool operator!=(const AllClassesWrapper& other) const; + size_t Hash() const; private: static AllClassesWrapper FromEncodableList( @@ -772,6 +777,7 @@ class TestMessage { bool operator==(const TestMessage& other) const; bool operator!=(const TestMessage& other) const; + size_t Hash() const; private: static TestMessage FromEncodableList(const ::flutter::EncodableList& list); @@ -903,6 +909,9 @@ class HostIntegrationCoreApi { // Returns the platform-side hash code for the given object. virtual ErrorOr GetAllNullableTypesHash( const AllNullableTypes& value) = 0; + // Returns the platform-side hash code for the given object. + virtual ErrorOr GetAllNullableTypesWithoutRecursionHash( + const AllNullableTypesWithoutRecursion& value) = 0; // Returns the passed object, to test serialization and deserialization. virtual ErrorOr> EchoAllNullableTypes( const AllNullableTypes* everything) = 0; diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp index e7bf4b01fd55..3e6056f3a810 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp @@ -104,8 +104,12 @@ ErrorOr TestPlugin::AreAllNullableTypesEqual(const AllNullableTypes& a, ErrorOr TestPlugin::GetAllNullableTypesHash( const AllNullableTypes& value) { - // TODO(gaaclarke): Implement hashing for C++ classes in the generator. - return 0; + return (int64_t)value.Hash(); +} + +ErrorOr TestPlugin::GetAllNullableTypesWithoutRecursionHash( + const AllNullableTypesWithoutRecursion& value) { + return (int64_t)value.Hash(); } ErrorOr> diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h index 4b99934d4b5b..a52bd83f03a2 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h @@ -65,6 +65,10 @@ class TestPlugin : public flutter::Plugin, const core_tests_pigeontest::AllNullableTypes& b) override; core_tests_pigeontest::ErrorOr GetAllNullableTypesHash( const core_tests_pigeontest::AllNullableTypes& value) override; + core_tests_pigeontest::ErrorOr + GetAllNullableTypesWithoutRecursionHash( + const core_tests_pigeontest::AllNullableTypesWithoutRecursion& value) + override; core_tests_pigeontest::ErrorOr< std::optional> EchoAllNullableTypesWithoutRecursion( diff --git a/packages/pigeon/test/cpp_generator_test.dart b/packages/pigeon/test/cpp_generator_test.dart index 02eeabeee31d..9996d5140f3e 100644 --- a/packages/pigeon/test/cpp_generator_test.dart +++ b/packages/pigeon/test/cpp_generator_test.dart @@ -568,6 +568,7 @@ void main() { #include #include +#include #include #include #include @@ -2730,4 +2731,67 @@ void main() { contains('return PigeonInternalDeepEquals(nested_, other.nested_);'), ); }); + + test('data classes implement Hash', () { + final root = Root( + apis: [], + classes: [ + Class( + name: 'Input', + fields: [ + NamedType( + type: const TypeDeclaration(baseName: 'int', isNullable: false), + name: 'field1', + ), + ], + ), + ], + enums: [], + ); + { + final sink = StringBuffer(); + const generator = CppGenerator(); + final generatorOptions = OutputFileOptions( + fileType: FileType.header, + languageOptions: const InternalCppOptions( + headerIncludePath: 'foo.h', + cppHeaderOut: '', + cppSourceOut: '', + ), + ); + generator.generate( + generatorOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('size_t Hash() const;')); + } + { + final sink = StringBuffer(); + const generator = CppGenerator(); + final generatorOptions = OutputFileOptions( + fileType: FileType.source, + languageOptions: const InternalCppOptions( + headerIncludePath: 'foo.h', + cppHeaderOut: '', + cppSourceOut: '', + ), + ); + generator.generate( + generatorOptions, + root, + sink, + dartPackageName: DEFAULT_PACKAGE_NAME, + ); + final code = sink.toString(); + expect(code, contains('size_t Input::Hash() const {')); + expect( + code, + contains('result = result * 31 + PigeonInternalDeepHash(field1_);'), + ); + expect(code, contains('size_t PigeonInternalDeepHash(const Input& v) {')); + } + }); } From 7355a964a7a48831010d8ad6e139bb97e0cb7922 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 22:32:34 -0800 Subject: [PATCH 30/33] bug fixes and more robust map== --- .../java/io/flutter/plugins/Messages.java | 18 ++++++-- .../EventChannelMessages.g.kt | 19 +++++++- .../flutter/pigeon_example_app/Messages.g.kt | 19 +++++++- .../ios/Runner/EventChannelMessages.g.swift | 20 +++++---- .../example/app/ios/Runner/Messages.g.swift | 18 +++++--- .../app/lib/src/event_channel_messages.g.dart | 16 +++++-- .../example/app/lib/src/messages.g.dart | 16 +++++-- .../pigeon/example/app/linux/messages.g.cc | 14 +++++- .../example/app/macos/Runner/messages.g.m | 19 ++++++-- .../example/app/windows/runner/messages.g.cpp | 17 +++++-- .../pigeon/lib/src/cpp/cpp_generator.dart | 19 +++++--- .../pigeon/lib/src/dart/dart_generator.dart | 16 +++++-- .../lib/src/gobject/gobject_generator.dart | 26 +++++++++-- .../pigeon/lib/src/java/java_generator.dart | 44 ++++++++++++++----- .../lib/src/kotlin/kotlin_generator.dart | 19 ++++++-- .../pigeon/lib/src/objc/objc_generator.dart | 19 ++++++-- .../pigeon/lib/src/swift/swift_generator.dart | 18 +++++--- .../AlternateLanguageTestPlugin.java | 6 +++ .../CoreTests.java | 18 ++++++-- .../AlternateLanguageTestPlugin.m | 6 +++ .../CoreTests.gen.m | 19 ++++++-- .../lib/integration_tests.dart | 6 +++ .../lib/src/generated/core_tests.gen.dart | 16 +++++-- .../lib/src/generated/enum.gen.dart | 16 +++++-- .../generated/event_channel_tests.gen.dart | 16 +++++-- .../src/generated/flutter_unittests.gen.dart | 16 +++++-- .../lib/src/generated/message.gen.dart | 16 +++++-- .../src/generated/non_null_fields.gen.dart | 16 +++++-- .../lib/src/generated/null_fields.gen.dart | 16 +++++-- .../com/example/test_plugin/CoreTests.gen.kt | 19 +++++++- .../test_plugin/EventChannelTests.gen.kt | 19 +++++++- .../Sources/test_plugin/CoreTests.gen.swift | 18 +++++--- .../test_plugin/EventChannelTests.gen.swift | 20 +++++---- .../linux/pigeon/core_tests.gen.cc | 14 +++++- .../windows/pigeon/core_tests.gen.cpp | 17 +++++-- packages/pigeon/test/cpp_generator_test.dart | 4 ++ 36 files changed, 478 insertions(+), 137 deletions(-) diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index 853fa1ee865f..bf1eb7726ba3 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -73,11 +73,21 @@ static boolean pigeonDeepEquals(Object a, Object b) { if (mapA.size() != mapB.size()) { return false; } - for (Object key : mapA.keySet()) { - if (!mapB.containsKey(key)) { - return false; + for (Map.Entry entryA : mapA.entrySet()) { + Object keyA = entryA.getKey(); + Object valueA = entryA.getValue(); + boolean found = false; + for (Map.Entry entryB : mapB.entrySet()) { + Object keyB = entryB.getKey(); + if (pigeonDeepEquals(keyA, keyB)) { + Object valueB = entryB.getValue(); + if (pigeonDeepEquals(valueA, valueB)) { + found = true; + break; + } + } } - if (!pigeonDeepEquals(mapA.get(key), mapB.get(key))) { + if (!found) { return false; } } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt index 7f62725a14b4..24a117dcb407 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt @@ -47,8 +47,23 @@ private object EventChannelMessagesPigeonUtils { return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } + if (a.size != b.size) return false + for (entry in a) { + val key = entry.key + var found = false + for (bEntry in b) { + if (deepEquals(key, bEntry.key)) { + if (deepEquals(entry.value, bEntry.value)) { + found = true + break + } else { + return false + } + } + } + if (!found) return false + } + return true } if (a is Double && b is Double) { return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index bf1154b53bd2..cb9fc66c10cd 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -69,8 +69,23 @@ private object MessagesPigeonUtils { return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } + if (a.size != b.size) return false + for (entry in a) { + val key = entry.key + var found = false + for (bEntry in b) { + if (deepEquals(key, bEntry.key)) { + if (deepEquals(entry.value, bEntry.value)) { + found = true + break + } else { + return false + } + } + } + if (!found) return false + } + return true } if (a is Double && b is Double) { return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) diff --git a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift index 88c9b7d7e28a..26493b6c7c3f 100644 --- a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift @@ -59,15 +59,19 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } - for (key, lhsValue) in lhsDictionary { - guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } - let rhsKey = rhsDictionary[rhsIndex].key - let rhsValue = rhsDictionary[rhsIndex].value - if !deepEqualsEventChannelMessages(key, rhsKey) - || !deepEqualsEventChannelMessages(lhsValue, rhsValue) - { - return false + for (lhsKey, lhsValue) in lhsDictionary { + var found = false + for (rhsKey, rhsValue) in rhsDictionary { + if deepEqualsEventChannelMessages(lhsKey, rhsKey) { + if deepEqualsEventChannelMessages(lhsValue, rhsValue) { + found = true + break + } else { + return false + } + } } + if !found { return false } } return true diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index c254a6eab463..1328a67c78e3 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -109,13 +109,19 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } - for (key, lhsValue) in lhsDictionary { - guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } - let rhsKey = rhsDictionary[rhsIndex].key - let rhsValue = rhsDictionary[rhsIndex].value - if !deepEqualsMessages(key, rhsKey) || !deepEqualsMessages(lhsValue, rhsValue) { - return false + for (lhsKey, lhsValue) in lhsDictionary { + var found = false + for (rhsKey, rhsValue) in rhsDictionary { + if deepEqualsMessages(lhsKey, rhsKey) { + if deepEqualsMessages(lhsValue, rhsValue) { + found = true + break + } else { + return false + } + } } + if !found { return false } } return true diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 37efcff22110..1cb822022dfa 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -30,11 +30,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index 9ba8be205f9a..a070036dae57 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -69,11 +69,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index cd1d0a228f2a..c73e97ba0f52 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -77,8 +77,18 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { for (size_t i = 0; i < len; i++) { FlValue* key = fl_value_get_map_key(a, i); FlValue* val = fl_value_get_map_value(a, i); - FlValue* b_val = fl_value_lookup(b, key); - if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE; + gboolean found = FALSE; + for (size_t j = 0; j < len; j++) { + FlValue* b_key = fl_value_get_map_key(b, j); + if (flpigeon_deep_equals(key, b_key)) { + FlValue* b_val = fl_value_get_map_value(b, j); + if (flpigeon_deep_equals(val, b_val)) { + found = TRUE; + break; + } + } + } + if (!found) return FALSE; } return TRUE; } diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index 08f7a757cb86..11e738d7e09d 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -44,10 +44,21 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if (dictA.count != dictB.count) { return NO; } - for (id key in dictA) { - id valueA = dictA[key]; - id valueB = dictB[key]; - if (!FLTPigeonDeepEquals(valueA, valueB)) { + for (id keyA in dictA) { + id valueA = dictA[keyA]; + BOOL found = NO; + for (id keyB in dictB) { + if (FLTPigeonDeepEquals(keyA, keyB)) { + id valueB = dictB[keyB]; + if (FLTPigeonDeepEquals(valueA, valueB)) { + found = YES; + break; + } else { + return NO; + } + } + } + if (!found) { return NO; } } diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index c486dbcb001a..a6ff722110f0 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -75,9 +75,18 @@ bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { if (a.size() != b.size()) return false; for (const auto& kv : a) { - auto it = b.find(kv.first); - if (it == b.end()) return false; - if (!PigeonInternalDeepEquals(kv.second, it->second)) return false; + bool found = false; + for (const auto& b_kv : b) { + if (PigeonInternalDeepEquals(kv.first, b_kv.first)) { + if (PigeonInternalDeepEquals(kv.second, b_kv.second)) { + found = true; + break; + } else { + return false; + } + } + } + if (!found) return false; } return true; } @@ -199,7 +208,7 @@ inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v) { !std::is_same_v && !std::is_same_v && !std::is_same_v) { - result = result * 31 + std::hash()(val); + result = result * 31 + PigeonInternalDeepHash(val); } }, v); diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 6c085f71564e..51ec04b04800 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -1174,13 +1174,22 @@ bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) return true; } -template +template bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { if (a.size() != b.size()) return false; for (const auto& kv : a) { - auto it = b.find(kv.first); - if (it == b.end()) return false; - if (!PigeonInternalDeepEquals(kv.second, it->second)) return false; + bool found = false; + for (const auto& b_kv : b) { + if (PigeonInternalDeepEquals(kv.first, b_kv.first)) { + if (PigeonInternalDeepEquals(kv.second, b_kv.second)) { + found = true; + break; + } else { + return false; + } + } + } + if (!found) return false; } return true; } @@ -1301,7 +1310,7 @@ inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v) { !std::is_same_v && !std::is_same_v && !std::is_same_v) { - result = result * 31 + std::hash()(val); + result = result * 31 + PigeonInternalDeepHash(val); } }, v); diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index a005f431cdbc..2f52efef242d 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -1192,11 +1192,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index a34dd90f8b4c..47a53dc8c71c 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -2899,10 +2899,28 @@ void _writeDeepEquals(Indent indent) { indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { indent.writeln('FlValue* key = fl_value_get_map_key(a, i);'); indent.writeln('FlValue* val = fl_value_get_map_value(a, i);'); - indent.writeln('FlValue* b_val = fl_value_lookup(b, key);'); - indent.writeln( - 'if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE;', - ); + indent.writeln('gboolean found = FALSE;'); + indent.writeScoped('for (size_t j = 0; j < len; j++) {', '}', () { + indent.writeln('FlValue* b_key = fl_value_get_map_key(b, j);'); + indent.writeScoped( + 'if (flpigeon_deep_equals(key, b_key)) {', + '}', + () { + indent.writeln( + 'FlValue* b_val = fl_value_get_map_value(b, j);', + ); + indent.writeScoped( + 'if (flpigeon_deep_equals(val, b_val)) {', + '}', + () { + indent.writeln('found = TRUE;'); + indent.writeln('break;'); + }, + ); + }, + ); + }); + indent.writeln('if (!found) return FALSE;'); }); indent.writeln(' return TRUE;'); indent.writeln('}'); diff --git a/packages/pigeon/lib/src/java/java_generator.dart b/packages/pigeon/lib/src/java/java_generator.dart index d8f2b74eee71..7d853e06e0e3 100644 --- a/packages/pigeon/lib/src/java/java_generator.dart +++ b/packages/pigeon/lib/src/java/java_generator.dart @@ -490,18 +490,40 @@ class JavaGenerator extends StructuredGenerator { indent.writeln('Map mapA = (Map) a;'); indent.writeln('Map mapB = (Map) b;'); indent.writeln('if (mapA.size() != mapB.size()) { return false; }'); - indent.writeScoped('for (Object key : mapA.keySet()) {', '}', () { - indent.writeScoped('if (!mapB.containsKey(key)) {', '}', () { - indent.writeln('return false;'); - }); - indent.writeScoped( - 'if (!pigeonDeepEquals(mapA.get(key), mapB.get(key))) {', - '}', - () { + indent.writeScoped( + 'for (Map.Entry entryA : mapA.entrySet()) {', + '}', + () { + indent.writeln('Object keyA = entryA.getKey();'); + indent.writeln('Object valueA = entryA.getValue();'); + indent.writeln('boolean found = false;'); + indent.writeScoped( + 'for (Map.Entry entryB : mapB.entrySet()) {', + '}', + () { + indent.writeln('Object keyB = entryB.getKey();'); + indent.writeScoped( + 'if (pigeonDeepEquals(keyA, keyB)) {', + '}', + () { + indent.writeln('Object valueB = entryB.getValue();'); + indent.writeScoped( + 'if (pigeonDeepEquals(valueA, valueB)) {', + '}', + () { + indent.writeln('found = true;'); + indent.writeln('break;'); + }, + ); + }, + ); + }, + ); + indent.writeScoped('if (!found) {', '}', () { indent.writeln('return false;'); - }, - ); - }); + }); + }, + ); indent.writeln('return true;'); }, ); diff --git a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart index c8885dbb25b1..51a4782ca40e 100644 --- a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart +++ b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart @@ -1381,10 +1381,23 @@ fun deepEquals(a: Any?, b: Any?): Boolean { a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && a.all { - (b as Map).contains(it.key) && - deepEquals(it.value, b[it.key]) + if (a.size != b.size) return false + for (entry in a) { + val key = entry.key + var found = false + for (bEntry in b) { + if (deepEquals(key, bEntry.key)) { + if (deepEquals(entry.value, bEntry.value)) { + found = true + break + } else { + return false + } + } + } + if (!found) return false } + return true } if (a is Double && b is Double) { return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) diff --git a/packages/pigeon/lib/src/objc/objc_generator.dart b/packages/pigeon/lib/src/objc/objc_generator.dart index 81bf802e039a..d39e9ac622e7 100644 --- a/packages/pigeon/lib/src/objc/objc_generator.dart +++ b/packages/pigeon/lib/src/objc/objc_generator.dart @@ -1703,10 +1703,21 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if (dictA.count != dictB.count) { return NO; } - for (id key in dictA) { - id valueA = dictA[key]; - id valueB = dictB[key]; - if (!FLTPigeonDeepEquals(valueA, valueB)) { + for (id keyA in dictA) { + id valueA = dictA[keyA]; + BOOL found = NO; + for (id keyB in dictB) { + if (FLTPigeonDeepEquals(keyA, keyB)) { + id valueB = dictB[keyB]; + if (FLTPigeonDeepEquals(valueA, valueB)) { + found = YES; + break; + } else { + return NO; + } + } + } + if (!found) { return NO; } } diff --git a/packages/pigeon/lib/src/swift/swift_generator.dart b/packages/pigeon/lib/src/swift/swift_generator.dart index 92709599fde1..d575e9d0fff4 100644 --- a/packages/pigeon/lib/src/swift/swift_generator.dart +++ b/packages/pigeon/lib/src/swift/swift_generator.dart @@ -1548,13 +1548,19 @@ func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } - for (key, lhsValue) in lhsDictionary { - guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } - let rhsKey = rhsDictionary[rhsIndex].key - let rhsValue = rhsDictionary[rhsIndex].value - if !$deepEqualsName(key, rhsKey) || !$deepEqualsName(lhsValue, rhsValue) { - return false + for (lhsKey, lhsValue) in lhsDictionary { + var found = false + for (rhsKey, rhsValue) in rhsDictionary { + if $deepEqualsName(lhsKey, rhsKey) { + if $deepEqualsName(lhsValue, rhsValue) { + found = true + break + } else { + return false + } + } } + if !found { return false } } return true diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java index aeab38507c2a..5c46688a6d95 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java @@ -72,6 +72,12 @@ public void noop() {} return (long) value.hashCode(); } + @Override + public @NonNull Long getAllNullableTypesWithoutRecursionHash( + @NonNull AllNullableTypesWithoutRecursion value) { + return (long) value.hashCode(); + } + @Override public @Nullable AllNullableTypesWithoutRecursion echoAllNullableTypesWithoutRecursion( @Nullable AllNullableTypesWithoutRecursion everything) { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index f32c530525ee..cfed7e2ca478 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -76,11 +76,21 @@ static boolean pigeonDeepEquals(Object a, Object b) { if (mapA.size() != mapB.size()) { return false; } - for (Object key : mapA.keySet()) { - if (!mapB.containsKey(key)) { - return false; + for (Map.Entry entryA : mapA.entrySet()) { + Object keyA = entryA.getKey(); + Object valueA = entryA.getValue(); + boolean found = false; + for (Map.Entry entryB : mapB.entrySet()) { + Object keyB = entryB.getKey(); + if (pigeonDeepEquals(keyA, keyB)) { + Object valueB = entryB.getValue(); + if (pigeonDeepEquals(valueA, valueB)) { + found = true; + break; + } + } } - if (!pigeonDeepEquals(mapA.get(key), mapB.get(key))) { + if (!found) { return false; } } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/AlternateLanguageTestPlugin.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/AlternateLanguageTestPlugin.m index 650bf5a3fc91..fdd0a0563ae5 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/AlternateLanguageTestPlugin.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/AlternateLanguageTestPlugin.m @@ -212,6 +212,12 @@ - (nullable NSNumber *)getAllNullableTypesHashValue:(FLTAllNullableTypes *)value return @([value hash]); } +- (nullable NSNumber *) + getAllNullableTypesWithoutRecursionHashValue:(FLTAllNullableTypesWithoutRecursion *)value + error:(FlutterError *_Nullable *_Nonnull)error { + return @([value hash]); +} + - (nullable NSString *)extractNestedNullableStringFrom:(FLTAllClassesWrapper *)wrapper error:(FlutterError *_Nullable *_Nonnull)error { return wrapper.allNullableTypes.aNullableString; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index b6a269670584..2e8081eda8dd 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -45,10 +45,21 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if (dictA.count != dictB.count) { return NO; } - for (id key in dictA) { - id valueA = dictA[key]; - id valueB = dictB[key]; - if (!FLTPigeonDeepEquals(valueA, valueB)) { + for (id keyA in dictA) { + id valueA = dictA[keyA]; + BOOL found = NO; + for (id keyB in dictB) { + if (FLTPigeonDeepEquals(keyA, keyB)) { + id valueB = dictB[keyB]; + if (FLTPigeonDeepEquals(valueA, valueB)) { + found = YES; + break; + } else { + return NO; + } + } + } + if (!found) { return NO; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart index e75414f3b733..d115a73ed104 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart @@ -1133,10 +1133,16 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { testWidgets('Hashing inequality across types with same values', ( WidgetTester _, ) async { + final api = HostIntegrationCoreApi(); final a = AllNullableTypes(aNullableInt: 42); final b = AllNullableTypesWithoutRecursion(aNullableInt: 42); expect(a.hashCode, isNot(b.hashCode)); + + expect( + await api.getAllNullableTypesHash(a), + isNot(await api.getAllNullableTypesWithoutRecursionHash(b)), + ); }); }); diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 9b8bc2ee374f..6291aa8d3013 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -70,11 +70,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 8adf6a98cd65..ff0354b19531 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -70,11 +70,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index bc669efdf893..9080f3830a00 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -31,11 +31,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index a7b6f9b6c719..3d4da1a4d349 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -56,11 +56,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index b5140ace826c..0d4dfa358b6f 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -70,11 +70,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index 27a73701fdfd..b224a4fdd4e6 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -70,11 +70,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index cf317e6c1646..6e18fe34b131 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -70,11 +70,19 @@ bool _deepEquals(Object? a, Object? b) { if (a.length != b.length) { return false; } - for (final MapEntry entry in a.entries) { - if (!b.containsKey(entry.key)) { - return false; + for (final MapEntry entryA in a.entries) { + bool found = false; + for (final MapEntry entryB in b.entries) { + if (_deepEquals(entryA.key, entryB.key)) { + if (_deepEquals(entryA.value, entryB.value)) { + found = true; + break; + } else { + return false; + } + } } - if (!_deepEquals(entry.value, b[entry.key])) { + if (!found) { return false; } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index 2dc21f585e9a..f99adf777d4d 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -72,8 +72,23 @@ private object CoreTestsPigeonUtils { return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } + if (a.size != b.size) return false + for (entry in a) { + val key = entry.key + var found = false + for (bEntry in b) { + if (deepEquals(key, bEntry.key)) { + if (deepEquals(entry.value, bEntry.value)) { + found = true + break + } else { + return false + } + } + } + if (!found) return false + } + return true } if (a is Double && b is Double) { return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt index 6302a8f998c1..21687d0c129e 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt @@ -50,8 +50,23 @@ private object EventChannelTestsPigeonUtils { return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).contains(it.key) && deepEquals(it.value, b[it.key]) } + if (a.size != b.size) return false + for (entry in a) { + val key = entry.key + var found = false + for (bEntry in b) { + if (deepEquals(key, bEntry.key)) { + if (deepEquals(entry.value, bEntry.value)) { + found = true + break + } else { + return false + } + } + } + if (!found) return false + } + return true } if (a is Double && b is Double) { return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index a139b7dd9a5c..54ec3b1ca98e 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -110,13 +110,19 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } - for (key, lhsValue) in lhsDictionary { - guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } - let rhsKey = rhsDictionary[rhsIndex].key - let rhsValue = rhsDictionary[rhsIndex].value - if !deepEqualsCoreTests(key, rhsKey) || !deepEqualsCoreTests(lhsValue, rhsValue) { - return false + for (lhsKey, lhsValue) in lhsDictionary { + var found = false + for (rhsKey, rhsValue) in rhsDictionary { + if deepEqualsCoreTests(lhsKey, rhsKey) { + if deepEqualsCoreTests(lhsValue, rhsValue) { + found = true + break + } else { + return false + } + } } + if !found { return false } } return true diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift index 919c2551c26e..9b2c43e0ecc1 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift @@ -78,15 +78,19 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsDictionary, let rhsDictionary) as ([AnyHashable: Any?], [AnyHashable: Any?]): guard lhsDictionary.count == rhsDictionary.count else { return false } - for (key, lhsValue) in lhsDictionary { - guard let rhsIndex = rhsDictionary.index(forKey: key) else { return false } - let rhsKey = rhsDictionary[rhsIndex].key - let rhsValue = rhsDictionary[rhsIndex].value - if !deepEqualsEventChannelTests(key, rhsKey) - || !deepEqualsEventChannelTests(lhsValue, rhsValue) - { - return false + for (lhsKey, lhsValue) in lhsDictionary { + var found = false + for (rhsKey, rhsValue) in rhsDictionary { + if deepEqualsEventChannelTests(lhsKey, rhsKey) { + if deepEqualsEventChannelTests(lhsValue, rhsValue) { + found = true + break + } else { + return false + } + } } + if !found { return false } } return true diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index cb57dd966504..4c92cf14ca5f 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -78,8 +78,18 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { for (size_t i = 0; i < len; i++) { FlValue* key = fl_value_get_map_key(a, i); FlValue* val = fl_value_get_map_value(a, i); - FlValue* b_val = fl_value_lookup(b, key); - if (b_val == nullptr || !flpigeon_deep_equals(val, b_val)) return FALSE; + gboolean found = FALSE; + for (size_t j = 0; j < len; j++) { + FlValue* b_key = fl_value_get_map_key(b, j); + if (flpigeon_deep_equals(key, b_key)) { + FlValue* b_val = fl_value_get_map_value(b, j); + if (flpigeon_deep_equals(val, b_val)) { + found = TRUE; + break; + } + } + } + if (!found) return FALSE; } return TRUE; } diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index c52df0794d40..9f2eb90bb757 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -76,9 +76,18 @@ bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { if (a.size() != b.size()) return false; for (const auto& kv : a) { - auto it = b.find(kv.first); - if (it == b.end()) return false; - if (!PigeonInternalDeepEquals(kv.second, it->second)) return false; + bool found = false; + for (const auto& b_kv : b) { + if (PigeonInternalDeepEquals(kv.first, b_kv.first)) { + if (PigeonInternalDeepEquals(kv.second, b_kv.second)) { + found = true; + break; + } else { + return false; + } + } + } + if (!found) return false; } return true; } @@ -200,7 +209,7 @@ inline size_t PigeonInternalDeepHash(const ::flutter::EncodableValue& v) { !std::is_same_v && !std::is_same_v && !std::is_same_v) { - result = result * 31 + std::hash()(val); + result = result * 31 + PigeonInternalDeepHash(val); } }, v); diff --git a/packages/pigeon/test/cpp_generator_test.dart b/packages/pigeon/test/cpp_generator_test.dart index 9996d5140f3e..599b1fdf766c 100644 --- a/packages/pigeon/test/cpp_generator_test.dart +++ b/packages/pigeon/test/cpp_generator_test.dart @@ -2792,6 +2792,10 @@ void main() { contains('result = result * 31 + PigeonInternalDeepHash(field1_);'), ); expect(code, contains('size_t PigeonInternalDeepHash(const Input& v) {')); + expect( + code, + contains('result = result * 31 + PigeonInternalDeepHash(val);'), + ); } }); } From 45d8207565fd7b769a979bae040c17ee527cf7e9 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Wed, 4 Mar 2026 23:15:30 -0800 Subject: [PATCH 31/33] fix linix --- packages/pigeon/lib/src/dart/dart_generator.dart | 6 +++--- .../pigeon/platform_tests/test_plugin/linux/test_plugin.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index 2f52efef242d..43350b6986e0 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -370,12 +370,12 @@ class DartGenerator extends StructuredGenerator { indent.writeln('return false;'); }, ); - indent.writeScoped('if (identical(this, other)) {', '}', () { - indent.writeln('return true;'); - }); if (fields.isEmpty) { indent.writeln('return true;'); } else { + indent.writeScoped('if (identical(this, other)) {', '}', () { + indent.writeln('return true;'); + }); final String comparisons = fields .map( (NamedType field) => diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index 884287d425d5..693bb17eefee 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -3247,11 +3247,11 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .echo_named_default_string = echo_named_default_string, .echo_optional_default_double = echo_optional_default_double, .echo_required_int = echo_required_int, - .echo_all_nullable_types = echo_all_nullable_types, .are_all_nullable_types_equal = are_all_nullable_types_equal, .get_all_nullable_types_hash = get_all_nullable_types_hash, .get_all_nullable_types_without_recursion_hash = get_all_nullable_types_without_recursion_hash, + .echo_all_nullable_types = echo_all_nullable_types, .echo_all_nullable_types_without_recursion = echo_all_nullable_types_without_recursion, .extract_nested_nullable_string = extract_nested_nullable_string, From 97b8e8c20ce857529e093c4b88bfecec431a4620 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Thu, 5 Mar 2026 00:43:00 -0800 Subject: [PATCH 32/33] one last linux fix --- packages/pigeon/example/app/linux/messages.g.cc | 4 ++++ packages/pigeon/lib/src/gobject/gobject_generator.dart | 4 ++++ .../platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index c73e97ba0f52..ba8005ae8251 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -29,6 +29,8 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { return FALSE; } switch (fl_value_get_type(a)) { + case FL_VALUE_TYPE_NULL: + return TRUE; case FL_VALUE_TYPE_BOOL: return fl_value_get_bool(a) == fl_value_get_bool(b); case FL_VALUE_TYPE_INT: @@ -100,6 +102,8 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) { if (value == nullptr) return 0; switch (fl_value_get_type(value)) { + case FL_VALUE_TYPE_NULL: + return 0; case FL_VALUE_TYPE_BOOL: return fl_value_get_bool(value) ? 1231 : 1237; case FL_VALUE_TYPE_INT: { diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index 47a53dc8c71c..ff88cbba32ec 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -2835,6 +2835,8 @@ void _writeDeepEquals(Indent indent) { }, ); indent.writeScoped('switch (fl_value_get_type(a)) {', '}', () { + indent.writeln('case FL_VALUE_TYPE_NULL:'); + indent.writeln(' return TRUE;'); indent.writeln('case FL_VALUE_TYPE_BOOL:'); indent.writeln( ' return fl_value_get_bool(a) == fl_value_get_bool(b);', @@ -2939,6 +2941,8 @@ void _writeDeepHash(Indent indent) { () { indent.writeln('if (value == nullptr) return 0;'); indent.writeScoped('switch (fl_value_get_type(value)) {', '}', () { + indent.writeln('case FL_VALUE_TYPE_NULL:'); + indent.writeln(' return 0;'); indent.writeln('case FL_VALUE_TYPE_BOOL:'); indent.writeln(' return fl_value_get_bool(value) ? 1231 : 1237;'); indent.writeln('case FL_VALUE_TYPE_INT: {'); diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 4c92cf14ca5f..a4b835babe38 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -30,6 +30,8 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { return FALSE; } switch (fl_value_get_type(a)) { + case FL_VALUE_TYPE_NULL: + return TRUE; case FL_VALUE_TYPE_BOOL: return fl_value_get_bool(a) == fl_value_get_bool(b); case FL_VALUE_TYPE_INT: @@ -101,6 +103,8 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { static guint G_GNUC_UNUSED flpigeon_deep_hash(FlValue* value) { if (value == nullptr) return 0; switch (fl_value_get_type(value)) { + case FL_VALUE_TYPE_NULL: + return 0; case FL_VALUE_TYPE_BOOL: return fl_value_get_bool(value) ? 1231 : 1237; case FL_VALUE_TYPE_INT: { From 38cffb2b04666e007fd264d1d178cdb167af8e75 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Thu, 5 Mar 2026 21:39:41 -0800 Subject: [PATCH 33/33] nits and nats --- .../java/io/flutter/plugins/Messages.java | 44 ++- .../EventChannelMessages.g.kt | 47 +-- .../flutter/pigeon_example_app/Messages.g.kt | 47 +-- .../ios/Runner/EventChannelMessages.g.swift | 25 +- .../example/app/ios/Runner/Messages.g.swift | 25 +- .../app/lib/src/event_channel_messages.g.dart | 2 + .../example/app/lib/src/messages.g.dart | 2 + .../pigeon/example/app/linux/messages.g.cc | 41 ++- .../example/app/macos/Runner/messages.g.h | 2 - .../example/app/macos/Runner/messages.g.m | 9 +- .../example/app/windows/runner/messages.g.cpp | 39 ++- .../example/app/windows/runner/messages.g.h | 2 + .../pigeon/lib/src/cpp/cpp_generator.dart | 42 ++- .../pigeon/lib/src/dart/dart_generator.dart | 2 + .../lib/src/gobject/gobject_generator.dart | 141 ++++++--- .../pigeon/lib/src/java/java_generator.dart | 78 +++-- .../lib/src/kotlin/kotlin_generator.dart | 51 +++- .../pigeon/lib/src/objc/objc_generator.dart | 11 +- .../pigeon/lib/src/swift/swift_generator.dart | 29 +- .../CoreTests.java | 44 ++- .../CoreTests.gen.m | 9 +- .../CoreTests.gen.h | 12 - .../lib/src/generated/core_tests.gen.dart | 2 + .../lib/src/generated/enum.gen.dart | 2 + .../generated/event_channel_tests.gen.dart | 2 + .../src/generated/flutter_unittests.gen.dart | 2 + .../lib/src/generated/message.gen.dart | 2 + .../src/generated/non_null_fields.gen.dart | 2 + .../lib/src/generated/null_fields.gen.dart | 2 + .../com/example/test_plugin/CoreTests.gen.kt | 47 +-- .../test_plugin/EventChannelTests.gen.kt | 47 +-- .../Sources/test_plugin/CoreTests.gen.swift | 25 +- .../test_plugin/EventChannelTests.gen.swift | 25 +- .../linux/pigeon/core_tests.gen.cc | 268 ++++++++++++------ .../windows/pigeon/core_tests.gen.cpp | 39 ++- .../windows/pigeon/core_tests.gen.h | 12 + packages/pigeon/test/cpp_generator_test.dart | 18 +- packages/pigeon/test/dart_generator_test.dart | 21 +- .../pigeon/test/gobject_generator_test.dart | 13 - packages/pigeon/test/java_generator_test.dart | 3 - .../pigeon/test/kotlin_generator_test.dart | 30 -- packages/pigeon/test/objc_generator_test.dart | 7 - .../pigeon/test/swift_generator_test.dart | 10 - 43 files changed, 829 insertions(+), 454 deletions(-) diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index bf1eb7726ba3..ebae5599bffd 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -27,6 +27,29 @@ /** Generated class from Pigeon. */ @SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) public class Messages { + static boolean pigeonDoubleEquals(double a, double b) { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (a == 0.0 ? 0.0 : a) == (b == 0.0 ? 0.0 : b) || (Double.isNaN(a) && Double.isNaN(b)); + } + + static boolean pigeonFloatEquals(float a, float b) { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (a == 0.0f ? 0.0f : a) == (b == 0.0f ? 0.0f : b) || (Float.isNaN(a) && Float.isNaN(b)); + } + + static int pigeonDoubleHashCode(double d) { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + if (d == 0.0) d = 0.0; + long bits = Double.doubleToLongBits(d); + return (int) (bits ^ (bits >>> 32)); + } + + static int pigeonFloatHashCode(float f) { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + if (f == 0.0f) f = 0.0f; + return Float.floatToIntBits(f); + } + static boolean pigeonDeepEquals(Object a, Object b) { if (a == b) { return true; @@ -48,7 +71,7 @@ static boolean pigeonDeepEquals(Object a, Object b) { double[] db = (double[]) b; if (da.length != db.length) return false; for (int i = 0; i < da.length; i++) { - if (!pigeonDeepEquals(da[i], db[i])) { + if (!pigeonDoubleEquals(da[i], db[i])) { return false; } } @@ -84,6 +107,8 @@ static boolean pigeonDeepEquals(Object a, Object b) { if (pigeonDeepEquals(valueA, valueB)) { found = true; break; + } else { + return false; } } } @@ -94,12 +119,10 @@ static boolean pigeonDeepEquals(Object a, Object b) { return true; } if (a instanceof Double && b instanceof Double) { - return ((double) a == 0.0 ? 0.0 : (double) a) == ((double) b == 0.0 ? 0.0 : (double) b) - || (Double.isNaN((double) a) && Double.isNaN((double) b)); + return pigeonDoubleEquals((double) a, (double) b); } if (a instanceof Float && b instanceof Float) { - return ((float) a == 0.0f ? 0.0f : (float) a) == ((float) b == 0.0f ? 0.0f : (float) b) - || (Float.isNaN((float) a) && Float.isNaN((float) b)); + return pigeonFloatEquals((float) a, (float) b); } return a.equals(b); } @@ -121,7 +144,7 @@ static int pigeonDeepHashCode(Object value) { double[] da = (double[]) value; int result = 1; for (double d : da) { - result = 31 * result + pigeonDeepHashCode(d); + result = 31 * result + pigeonDoubleHashCode(d); } return result; } @@ -147,15 +170,10 @@ static int pigeonDeepHashCode(Object value) { return result; } if (value instanceof Double) { - double d = (double) value; - if (d == 0.0) d = 0.0; - long bits = Double.doubleToLongBits(d); - return (int) (bits ^ (bits >>> 32)); + return pigeonDoubleHashCode((double) value); } if (value instanceof Float) { - float f = (float) value; - if (f == 0.0f) f = 0.0f; - return Float.floatToIntBits(f); + return pigeonFloatHashCode((float) value); } return value.hashCode(); } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt index 24a117dcb407..b1e223ea0ece 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/EventChannelMessages.g.kt @@ -13,6 +13,29 @@ import java.io.ByteArrayOutputStream import java.nio.ByteBuffer private object EventChannelMessagesPigeonUtils { + fun doubleEquals(a: Double, b: Double): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + + fun floatEquals(a: Float, b: Float): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) + } + + fun doubleHash(d: Double): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (d == 0.0) 0.0 else d + val bits = java.lang.Double.doubleToLongBits(normalized) + return (bits xor (bits ushr 32)).toInt() + } + + fun floatHash(f: Float): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (f == 0.0f) 0.0f else f + return java.lang.Float.floatToIntBits(normalized) + } + fun deepEquals(a: Any?, b: Any?): Boolean { if (a === b) { return true @@ -29,14 +52,14 @@ private object EventChannelMessagesPigeonUtils { if (a is DoubleArray && b is DoubleArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!doubleEquals(a[i], b[i])) return false } return true } if (a is FloatArray && b is FloatArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!floatEquals(a[i], b[i])) return false } return true } @@ -66,11 +89,10 @@ private object EventChannelMessagesPigeonUtils { return true } if (a is Double && b is Double) { - return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + return doubleEquals(a, b) } if (a is Float && b is Float) { - return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || - (a.isNaN() && b.isNaN()) + return floatEquals(a, b) } return a == b } @@ -84,14 +106,14 @@ private object EventChannelMessagesPigeonUtils { is DoubleArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + doubleHash(item) } result } is FloatArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + floatHash(item) } result } @@ -110,15 +132,8 @@ private object EventChannelMessagesPigeonUtils { } result } - is Double -> { - val d = if (value == 0.0) 0.0 else value - val bits = java.lang.Double.doubleToLongBits(d) - (bits xor (bits ushr 32)).toInt() - } - is Float -> { - val f = if (value == 0.0f) 0.0f else value - java.lang.Float.floatToIntBits(f) - } + is Double -> doubleHash(value) + is Float -> floatHash(value) else -> value.hashCode() } } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index cb9fc66c10cd..237faf549401 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -35,6 +35,29 @@ private object MessagesPigeonUtils { } } + fun doubleEquals(a: Double, b: Double): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + + fun floatEquals(a: Float, b: Float): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) + } + + fun doubleHash(d: Double): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (d == 0.0) 0.0 else d + val bits = java.lang.Double.doubleToLongBits(normalized) + return (bits xor (bits ushr 32)).toInt() + } + + fun floatHash(f: Float): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (f == 0.0f) 0.0f else f + return java.lang.Float.floatToIntBits(normalized) + } + fun deepEquals(a: Any?, b: Any?): Boolean { if (a === b) { return true @@ -51,14 +74,14 @@ private object MessagesPigeonUtils { if (a is DoubleArray && b is DoubleArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!doubleEquals(a[i], b[i])) return false } return true } if (a is FloatArray && b is FloatArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!floatEquals(a[i], b[i])) return false } return true } @@ -88,11 +111,10 @@ private object MessagesPigeonUtils { return true } if (a is Double && b is Double) { - return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + return doubleEquals(a, b) } if (a is Float && b is Float) { - return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || - (a.isNaN() && b.isNaN()) + return floatEquals(a, b) } return a == b } @@ -106,14 +128,14 @@ private object MessagesPigeonUtils { is DoubleArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + doubleHash(item) } result } is FloatArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + floatHash(item) } result } @@ -132,15 +154,8 @@ private object MessagesPigeonUtils { } result } - is Double -> { - val d = if (value == 0.0) 0.0 else value - val bits = java.lang.Double.doubleToLongBits(d) - (bits xor (bits ushr 32)).toInt() - } - is Float -> { - val f = if (value == 0.0f) 0.0f else value - java.lang.Float.floatToIntBits(f) - } + is Double -> doubleHash(value) + is Float -> floatHash(value) else -> value.hashCode() } } diff --git a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift index 26493b6c7c3f..d60e3fd1663a 100644 --- a/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/EventChannelMessages.g.swift @@ -23,6 +23,19 @@ private func nilOrValue(_ value: Any?) -> T? { return value as! T? } +private func doubleEqualsEventChannelMessages(_ lhs: Double, _ rhs: Double) -> Bool { + return (lhs.isNaN && rhs.isNaN) || lhs == rhs +} + +private func doubleHashEventChannelMessages(_ value: Double, _ hasher: inout Hasher) { + if value.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else { + // Normalize -0.0 to 0.0 + hasher.combine(value == 0 ? 0 : value) + } +} + func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { let cleanLhs = nilOrValue(lhs) as Any? let cleanRhs = nilOrValue(rhs) as Any? @@ -51,7 +64,7 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsArray, let rhsArray) as ([Double], [Double]): guard lhsArray.count == rhsArray.count else { return false } for (index, element) in lhsArray.enumerated() { - if !deepEqualsEventChannelMessages(element, rhsArray[index]) { + if !doubleEqualsEventChannelMessages(element, rhsArray[index]) { return false } } @@ -76,7 +89,7 @@ func deepEqualsEventChannelMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs == rhs + return doubleEqualsEventChannelMessages(lhs, rhs) case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -90,18 +103,14 @@ func deepHashEventChannelMessages(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { - if doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) - } else { - hasher.combine(doubleValue) - } + doubleHashEventChannelMessages(doubleValue, &hasher) } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashEventChannelMessages(value: item, hasher: &hasher) } } else if let valueList = cleanValue as? [Double] { for item in valueList { - deepHashEventChannelMessages(value: item, hasher: &hasher) + doubleHashEventChannelMessages(item, &hasher) } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { var result = 0 diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index 1328a67c78e3..40e179792c84 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -73,6 +73,19 @@ private func nilOrValue(_ value: Any?) -> T? { return value as! T? } +private func doubleEqualsMessages(_ lhs: Double, _ rhs: Double) -> Bool { + return (lhs.isNaN && rhs.isNaN) || lhs == rhs +} + +private func doubleHashMessages(_ value: Double, _ hasher: inout Hasher) { + if value.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else { + // Normalize -0.0 to 0.0 + hasher.combine(value == 0 ? 0 : value) + } +} + func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { let cleanLhs = nilOrValue(lhs) as Any? let cleanRhs = nilOrValue(rhs) as Any? @@ -101,7 +114,7 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsArray, let rhsArray) as ([Double], [Double]): guard lhsArray.count == rhsArray.count else { return false } for (index, element) in lhsArray.enumerated() { - if !deepEqualsMessages(element, rhsArray[index]) { + if !doubleEqualsMessages(element, rhsArray[index]) { return false } } @@ -126,7 +139,7 @@ func deepEqualsMessages(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs == rhs + return doubleEqualsMessages(lhs, rhs) case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -140,18 +153,14 @@ func deepHashMessages(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { - if doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) - } else { - hasher.combine(doubleValue) - } + doubleHashMessages(doubleValue, &hasher) } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashMessages(value: item, hasher: &hasher) } } else if let valueList = cleanValue as? [Double] { for item in valueList { - deepHashMessages(value: item, hasher: &hasher) + doubleHashMessages(item, &hasher) } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { var result = 0 diff --git a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart index 1cb822022dfa..4590b74a0708 100644 --- a/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart +++ b/packages/pigeon/example/app/lib/src/event_channel_messages.g.dart @@ -63,9 +63,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index a070036dae57..c0c3c861444c 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -102,9 +102,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index ba8005ae8251..de1ad17b9da2 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -23,8 +23,12 @@ static gboolean G_GNUC_UNUSED flpigeon_equals_double(double a, double b) { return (a == b) || (std::isnan(a) && std::isnan(b)); } static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } if (fl_value_get_type(a) != fl_value_get_type(b)) { return FALSE; } @@ -55,27 +59,36 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { fl_value_get_length(a) * sizeof(int64_t)) == 0; case FL_VALUE_TYPE_FLOAT_LIST: { size_t len = fl_value_get_length(a); - if (len != fl_value_get_length(b)) return FALSE; + if (len != fl_value_get_length(b)) { + return FALSE; + } const double* a_data = fl_value_get_float_list(a); const double* b_data = fl_value_get_float_list(b); for (size_t i = 0; i < len; i++) { - if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE; + if (!flpigeon_equals_double(a_data[i], b_data[i])) { + return FALSE; + } } return TRUE; } case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); - if (len != fl_value_get_length(b)) return FALSE; + if (len != fl_value_get_length(b)) { + return FALSE; + } for (size_t i = 0; i < len; i++) { if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), - fl_value_get_list_value(b, i))) + fl_value_get_list_value(b, i))) { return FALSE; + } } return TRUE; } case FL_VALUE_TYPE_MAP: { size_t len = fl_value_get_length(a); - if (len != fl_value_get_length(b)) return FALSE; + if (len != fl_value_get_length(b)) { + return FALSE; + } for (size_t i = 0; i < len; i++) { FlValue* key = fl_value_get_map_key(a, i); FlValue* val = fl_value_get_map_value(a, i); @@ -87,10 +100,14 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { if (flpigeon_deep_equals(val, b_val)) { found = TRUE; break; + } else { + return FALSE; } } } - if (!found) return FALSE; + if (!found) { + return FALSE; + } } return TRUE; } @@ -284,8 +301,12 @@ pigeon_example_package_message_data_new_from_list(FlValue* values) { gboolean pigeon_example_package_message_data_equals( PigeonExamplePackageMessageData* a, PigeonExamplePackageMessageData* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } if (g_strcmp0(a->name, b->name) != 0) { return FALSE; } diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.h b/packages/pigeon/example/app/macos/Runner/messages.g.h index edc7a438db7e..c44b9361e8b9 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.h +++ b/packages/pigeon/example/app/macos/Runner/messages.g.h @@ -37,8 +37,6 @@ typedef NS_ENUM(NSUInteger, PGNCode) { @property(nonatomic, copy, nullable) NSString *description; @property(nonatomic, assign) PGNCode code; @property(nonatomic, copy) NSDictionary *data; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; @end /// The codec used by all APIs. diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index 11e738d7e09d..9de9e2129230 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -12,8 +12,7 @@ @import Flutter; #endif -static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) __attribute__((unused)); -static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { +static BOOL __attribute__((unused)) FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if (a == b) { return YES; } @@ -23,6 +22,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; + // Normalize -0.0 to 0.0 and handle NaN equality. return na.doubleValue == nb.doubleValue || (isnan(na.doubleValue) && isnan(nb.doubleValue)); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { @@ -67,8 +67,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { return [a isEqual:b]; } -static NSUInteger FLTPigeonDeepHash(id _Nullable value) __attribute__((unused)); -static NSUInteger FLTPigeonDeepHash(id _Nullable value) { +static NSUInteger __attribute__((unused)) FLTPigeonDeepHash(id _Nullable value) { if (value == nil) { return 0; } @@ -76,9 +75,11 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { NSNumber *n = (NSNumber *)value; double d = n.doubleValue; if (isnan(d)) { + // Normalize NaN to a consistent hash. return (NSUInteger)0x7FF8000000000000; } if (d == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. d = 0.0; } return @(d).hash; diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index a6ff722110f0..9846d3d0ffd5 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -63,9 +63,13 @@ bool PigeonInternalDeepEquals(const T& a, const T& b) { template bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) { - if (a.size() != b.size()) return false; + if (a.size() != b.size()) { + return false; + } for (size_t i = 0; i < a.size(); ++i) { - if (!PigeonInternalDeepEquals(a[i], b[i])) return false; + if (!PigeonInternalDeepEquals(a[i], b[i])) { + return false; + } } return true; } @@ -73,7 +77,9 @@ bool PigeonInternalDeepEquals(const std::vector& a, template bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { - if (a.size() != b.size()) return false; + if (a.size() != b.size()) { + return false; + } for (const auto& kv : a) { bool found = false; for (const auto& b_kv : b) { @@ -86,34 +92,47 @@ bool PigeonInternalDeepEquals(const std::map& a, } } } - if (!found) return false; + if (!found) { + return false; + } } return true; } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { + // Normalize -0.0 to 0.0 and handle NaN equality. return (a == b) || (std::isnan(a) && std::isnan(b)); } template bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& b) { - if (!a && !b) return true; - if (!a || !b) return false; + if (!a && !b) { + return true; + } + if (!a || !b) { + return false; + } return PigeonInternalDeepEquals(*a, *b); } template bool PigeonInternalDeepEquals(const std::unique_ptr& a, const std::unique_ptr& b) { - if (!a && !b) return true; - if (!a || !b) return false; + if (!a && !b) { + return true; + } + if (!a || !b) { + return false; + } return PigeonInternalDeepEquals(*a, *b); } inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - if (a.index() != b.index()) return false; + if (a.index() != b.index()) { + return false; + } if (const double* da = std::get_if(&a)) { return PigeonInternalDeepEquals(*da, std::get(b)); } else if (const ::flutter::EncodableList* la = @@ -171,9 +190,11 @@ size_t PigeonInternalDeepHash(const std::map& v) { inline size_t PigeonInternalDeepHash(const double& v) { if (std::isnan(v)) { + // Normalize NaN to a consistent hash. return std::hash()(std::numeric_limits::quiet_NaN()); } if (v == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return std::hash()(0.0); } return std::hash()(v); diff --git a/packages/pigeon/example/app/windows/runner/messages.g.h b/packages/pigeon/example/app/windows/runner/messages.g.h index 3db8fc6b5c62..b23312baccff 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.h +++ b/packages/pigeon/example/app/windows/runner/messages.g.h @@ -87,6 +87,8 @@ class MessageData { bool operator==(const MessageData& other) const; bool operator!=(const MessageData& other) const; + /// Returns a hash code value for the object. This method is supported for the + /// benefit of hash tables. size_t Hash() const; private: diff --git a/packages/pigeon/lib/src/cpp/cpp_generator.dart b/packages/pigeon/lib/src/cpp/cpp_generator.dart index 51ec04b04800..7b045958ff50 100644 --- a/packages/pigeon/lib/src/cpp/cpp_generator.dart +++ b/packages/pigeon/lib/src/cpp/cpp_generator.dart @@ -474,6 +474,9 @@ class CppHeaderGenerator extends StructuredGenerator { parameters: ['const ${classDefinition.name}& other'], isConst: true, ); + indent.writeln( + '/// Returns a hash code value for the object. This method is supported for the benefit of hash tables.', + ); _writeFunctionDeclaration( indent, 'Hash', @@ -1167,16 +1170,22 @@ bool PigeonInternalDeepEquals(const T& a, const T& b) { template bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) { - if (a.size() != b.size()) return false; + if (a.size() != b.size()) { + return false; + } for (size_t i = 0; i < a.size(); ++i) { - if (!PigeonInternalDeepEquals(a[i], b[i])) return false; + if (!PigeonInternalDeepEquals(a[i], b[i])) { + return false; + } } return true; } template bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { - if (a.size() != b.size()) return false; + if (a.size() != b.size()) { + return false; + } for (const auto& kv : a) { bool found = false; for (const auto& b_kv : b) { @@ -1189,31 +1198,44 @@ bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) } } } - if (!found) return false; + if (!found) { + return false; + } } return true; } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { + // Normalize -0.0 to 0.0 and handle NaN equality. return (a == b) || (std::isnan(a) && std::isnan(b)); } template bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& b) { - if (!a && !b) return true; - if (!a || !b) return false; + if (!a && !b) { + return true; + } + if (!a || !b) { + return false; + } return PigeonInternalDeepEquals(*a, *b); } template bool PigeonInternalDeepEquals(const std::unique_ptr& a, const std::unique_ptr& b) { - if (!a && !b) return true; - if (!a || !b) return false; + if (!a && !b) { + return true; + } + if (!a || !b) { + return false; + } return PigeonInternalDeepEquals(*a, *b); } inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - if (a.index() != b.index()) return false; + if (a.index() != b.index()) { + return false; + } if (const double* da = std::get_if(&a)) { return PigeonInternalDeepEquals(*da, std::get(b)); } else if (const ::flutter::EncodableList* la = std::get_if<::flutter::EncodableList>(&a)) { @@ -1273,9 +1295,11 @@ size_t PigeonInternalDeepHash(const std::map& v) { inline size_t PigeonInternalDeepHash(const double& v) { if (std::isnan(v)) { + // Normalize NaN to a consistent hash. return std::hash()(std::numeric_limits::quiet_NaN()); } if (v == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return std::hash()(0.0); } return std::hash()(v); diff --git a/packages/pigeon/lib/src/dart/dart_generator.dart b/packages/pigeon/lib/src/dart/dart_generator.dart index 43350b6986e0..37675158e01e 100644 --- a/packages/pigeon/lib/src/dart/dart_generator.dart +++ b/packages/pigeon/lib/src/dart/dart_generator.dart @@ -1229,9 +1229,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/lib/src/gobject/gobject_generator.dart b/packages/pigeon/lib/src/gobject/gobject_generator.dart index ff88cbba32ec..505080f3fa14 100644 --- a/packages/pigeon/lib/src/gobject/gobject_generator.dart +++ b/packages/pigeon/lib/src/gobject/gobject_generator.dart @@ -1097,8 +1097,12 @@ class GObjectSourceGenerator indent.newln(); indent.writeScoped('gboolean ${methodPrefix}_equals($className* a, $className* b) {', '}', () { - indent.writeln('if (a == b) return TRUE;'); - indent.writeln('if (a == nullptr || b == nullptr) return FALSE;'); + indent.writeScoped('if (a == b) {', '}', () { + indent.writeln('return TRUE;'); + }); + indent.writeScoped('if (a == nullptr || b == nullptr) {', '}', () { + indent.writeln('return FALSE;'); + }); for (final NamedType field in classDefinition.fields) { final String fieldName = _getFieldName(field.name); if (field.type.isClass) { @@ -1116,14 +1120,18 @@ class GObjectSourceGenerator } else if (field.type.isEnum) { if (field.type.isNullable) { indent.writeScoped( - 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) return FALSE;', - '', - () {}, + 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); indent.writeScoped( - 'if (a->$fieldName != nullptr && *a->$fieldName != *b->$fieldName) return FALSE;', - '', - () {}, + 'if (a->$fieldName != nullptr && *a->$fieldName != *b->$fieldName) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); } else { indent.writeScoped( @@ -1136,11 +1144,19 @@ class GObjectSourceGenerator } } else if (_isNumericListType(field.type)) { indent.writeScoped('if (a->$fieldName != b->$fieldName) {', '}', () { - indent.writeln( - 'if (a->$fieldName == nullptr || b->$fieldName == nullptr) return FALSE;', + indent.writeScoped( + 'if (a->$fieldName == nullptr || b->$fieldName == nullptr) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); - indent.writeln( - 'if (a->${fieldName}_length != b->${fieldName}_length) return FALSE;', + indent.writeScoped( + 'if (a->${fieldName}_length != b->${fieldName}_length) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); if (field.type.baseName == 'Float32List' || field.type.baseName == 'Float64List') { @@ -1148,8 +1164,12 @@ class GObjectSourceGenerator 'for (size_t i = 0; i < a->${fieldName}_length; i++) {', '}', () { - indent.writeln( - 'if (!flpigeon_equals_double(a->$fieldName[i], b->$fieldName[i])) return FALSE;', + indent.writeScoped( + 'if (!flpigeon_equals_double(a->$fieldName[i], b->$fieldName[i])) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); }, ); @@ -1159,8 +1179,12 @@ class GObjectSourceGenerator : field.type.baseName == 'Int32List' ? 'sizeof(int32_t)' : 'sizeof(int64_t)'; - indent.writeln( - 'if (memcmp(a->$fieldName, b->$fieldName, a->${fieldName}_length * $elementSize) != 0) return FALSE;', + indent.writeScoped( + 'if (memcmp(a->$fieldName, b->$fieldName, a->${fieldName}_length * $elementSize) != 0) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); } }); @@ -1168,14 +1192,18 @@ class GObjectSourceGenerator field.type.baseName == 'int') { if (field.type.isNullable) { indent.writeScoped( - 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) return FALSE;', - '', - () {}, + 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); indent.writeScoped( - 'if (a->$fieldName != nullptr && *a->$fieldName != *b->$fieldName) return FALSE;', - '', - () {}, + 'if (a->$fieldName != nullptr && *a->$fieldName != *b->$fieldName) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); } else { indent.writeScoped( @@ -1189,14 +1217,18 @@ class GObjectSourceGenerator } else if (field.type.baseName == 'double') { if (field.type.isNullable) { indent.writeScoped( - 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) return FALSE;', - '', - () {}, + 'if ((a->$fieldName == nullptr) != (b->$fieldName == nullptr)) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); indent.writeScoped( - 'if (a->$fieldName != nullptr && !flpigeon_equals_double(*a->$fieldName, *b->$fieldName)) return FALSE;', - '', - () {}, + 'if (a->$fieldName != nullptr && !flpigeon_equals_double(*a->$fieldName, *b->$fieldName)) {', + '}', + () { + indent.writeln('return FALSE;'); + }, ); } else { indent.writeScoped( @@ -2743,8 +2775,7 @@ String _makeFlValue( } else if (type.baseName == 'Int64List') { value = 'fl_value_new_int64_list($variableName, $lengthVariableName)'; } else if (type.baseName == 'Float32List') { - // TODO(stuartmorgan): Support Float32List. - throw Exception('Float32List is not yet supported for GObject'); + value = 'fl_value_new_float32_list($variableName, $lengthVariableName)'; } else if (type.baseName == 'Float64List') { value = 'fl_value_new_float_list($variableName, $lengthVariableName)'; } else { @@ -2825,8 +2856,12 @@ void _writeDeepEquals(Indent indent) { 'static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) {', '}', () { - indent.writeln('if (a == b) return TRUE;'); - indent.writeln('if (a == nullptr || b == nullptr) return FALSE;'); + indent.writeScoped('if (a == b) {', '}', () { + indent.writeln('return TRUE;'); + }); + indent.writeScoped('if (a == nullptr || b == nullptr) {', '}', () { + indent.writeln('return FALSE;'); + }); indent.writeScoped( 'if (fl_value_get_type(a) != fl_value_get_type(b)) {', '}', @@ -2875,29 +2910,39 @@ void _writeDeepEquals(Indent indent) { ); indent.writeln('case FL_VALUE_TYPE_FLOAT_LIST: {'); indent.writeln(' size_t len = fl_value_get_length(a);'); - indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); + indent.writeln(' if (len != fl_value_get_length(b)) {'); + indent.writeln(' return FALSE;'); + indent.writeln(' }'); indent.writeln(' const double* a_data = fl_value_get_float_list(a);'); indent.writeln(' const double* b_data = fl_value_get_float_list(b);'); indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { indent.writeln( - 'if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE;', + 'if (!flpigeon_equals_double(a_data[i], b_data[i])) {', ); + indent.writeln(' return FALSE;'); + indent.writeln('}'); }); indent.writeln(' return TRUE;'); indent.writeln('}'); indent.writeln('case FL_VALUE_TYPE_LIST: {'); indent.writeln(' size_t len = fl_value_get_length(a);'); - indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); + indent.writeln(' if (len != fl_value_get_length(b)) {'); + indent.writeln(' return FALSE;'); + indent.writeln(' }'); indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { indent.writeln( - 'if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), fl_value_get_list_value(b, i))) return FALSE;', + 'if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), fl_value_get_list_value(b, i))) {', ); + indent.writeln(' return FALSE;'); + indent.writeln('}'); }); indent.writeln(' return TRUE;'); indent.writeln('}'); indent.writeln('case FL_VALUE_TYPE_MAP: {'); indent.writeln(' size_t len = fl_value_get_length(a);'); - indent.writeln(' if (len != fl_value_get_length(b)) return FALSE;'); + indent.writeln(' if (len != fl_value_get_length(b)) {'); + indent.writeln(' return FALSE;'); + indent.writeln(' }'); indent.writeScoped(' for (size_t i = 0; i < len; i++) {', '}', () { indent.writeln('FlValue* key = fl_value_get_map_key(a, i);'); indent.writeln('FlValue* val = fl_value_get_map_value(a, i);'); @@ -2911,18 +2956,22 @@ void _writeDeepEquals(Indent indent) { indent.writeln( 'FlValue* b_val = fl_value_get_map_value(b, j);', ); - indent.writeScoped( - 'if (flpigeon_deep_equals(val, b_val)) {', - '}', - () { - indent.writeln('found = TRUE;'); - indent.writeln('break;'); - }, - ); + indent.writeln('if (flpigeon_deep_equals(val, b_val)) {'); + indent.nest(1, () { + indent.writeln('found = TRUE;'); + indent.writeln('break;'); + }); + indent.writeln('} else {'); + indent.nest(1, () { + indent.writeln('return FALSE;'); + }); + indent.writeln('}'); }, ); }); - indent.writeln('if (!found) return FALSE;'); + indent.writeln('if (!found) {'); + indent.writeln(' return FALSE;'); + indent.writeln('}'); }); indent.writeln(' return TRUE;'); indent.writeln('}'); diff --git a/packages/pigeon/lib/src/java/java_generator.dart b/packages/pigeon/lib/src/java/java_generator.dart index 7d853e06e0e3..38a35dff1b91 100644 --- a/packages/pigeon/lib/src/java/java_generator.dart +++ b/packages/pigeon/lib/src/java/java_generator.dart @@ -206,6 +206,7 @@ class JavaGenerator extends StructuredGenerator { } indent.writeln('public class ${generatorOptions.className!} {'); indent.inc(); + _writeNumberHelpers(indent); _writeDeepEquals(indent); _writeDeepHashCode(indent); } @@ -447,7 +448,7 @@ class JavaGenerator extends StructuredGenerator { '}', () { indent.writeScoped( - 'if (!pigeonDeepEquals(da[i], db[i])) {', + 'if (!pigeonDoubleEquals(da[i], db[i])) {', '}', () { indent.writeln('return false;'); @@ -507,14 +508,18 @@ class JavaGenerator extends StructuredGenerator { '}', () { indent.writeln('Object valueB = entryB.getValue();'); - indent.writeScoped( + indent.writeln( 'if (pigeonDeepEquals(valueA, valueB)) {', - '}', - () { - indent.writeln('found = true;'); - indent.writeln('break;'); - }, ); + indent.nest(1, () { + indent.writeln('found = true;'); + indent.writeln('break;'); + }); + indent.writeln('} else {'); + indent.nest(1, () { + indent.writeln('return false;'); + }); + indent.writeln('}'); }, ); }, @@ -532,7 +537,7 @@ class JavaGenerator extends StructuredGenerator { '}', () { indent.writeln( - 'return ((double) a == 0.0 ? 0.0 : (double) a) == ((double) b == 0.0 ? 0.0 : (double) b) || (Double.isNaN((double) a) && Double.isNaN((double) b));', + 'return pigeonDoubleEquals((double) a, (double) b);', ); }, ); @@ -540,9 +545,7 @@ class JavaGenerator extends StructuredGenerator { 'if (a instanceof Float && b instanceof Float) {', '}', () { - indent.writeln( - 'return ((float) a == 0.0f ? 0.0f : (float) a) == ((float) b == 0.0f ? 0.0f : (float) b) || (Float.isNaN((float) a) && Float.isNaN((float) b));', - ); + indent.writeln('return pigeonFloatEquals((float) a, (float) b);'); }, ); indent.writeln('return a.equals(b);'); @@ -567,7 +570,7 @@ class JavaGenerator extends StructuredGenerator { indent.writeln('double[] da = (double[]) value;'); indent.writeln('int result = 1;'); indent.writeScoped('for (double d : da) {', '}', () { - indent.writeln('result = 31 * result + pigeonDeepHashCode(d);'); + indent.writeln('result = 31 * result + pigeonDoubleHashCode(d);'); }); indent.writeln('return result;'); }); @@ -599,21 +602,58 @@ class JavaGenerator extends StructuredGenerator { indent.writeln('return result;'); }); indent.writeScoped('if (value instanceof Double) {', '}', () { - indent.writeln('double d = (double) value;'); - indent.writeln('if (d == 0.0) d = 0.0;'); - indent.writeln('long bits = Double.doubleToLongBits(d);'); - indent.writeln('return (int) (bits ^ (bits >>> 32));'); + indent.writeln('return pigeonDoubleHashCode((double) value);'); }); indent.writeScoped('if (value instanceof Float) {', '}', () { - indent.writeln('float f = (float) value;'); - indent.writeln('if (f == 0.0f) f = 0.0f;'); - indent.writeln('return Float.floatToIntBits(f);'); + indent.writeln('return pigeonFloatHashCode((float) value);'); }); indent.writeln('return value.hashCode();'); }); indent.newln(); } + void _writeNumberHelpers(Indent indent) { + indent.writeScoped( + 'static boolean pigeonDoubleEquals(double a, double b) {', + '}', + () { + indent.writeln('// Normalize -0.0 to 0.0 and handle NaN equality.'); + indent.writeln( + 'return (a == 0.0 ? 0.0 : a) == (b == 0.0 ? 0.0 : b) || (Double.isNaN(a) && Double.isNaN(b));', + ); + }, + ); + indent.newln(); + indent.writeScoped( + 'static boolean pigeonFloatEquals(float a, float b) {', + '}', + () { + indent.writeln('// Normalize -0.0 to 0.0 and handle NaN equality.'); + indent.writeln( + 'return (a == 0.0f ? 0.0f : a) == (b == 0.0f ? 0.0f : b) || (Float.isNaN(a) && Float.isNaN(b));', + ); + }, + ); + indent.newln(); + indent.writeScoped('static int pigeonDoubleHashCode(double d) {', '}', () { + indent.writeln( + '// Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes.', + ); + indent.writeln('if (d == 0.0) d = 0.0;'); + indent.writeln('long bits = Double.doubleToLongBits(d);'); + indent.writeln('return (int) (bits ^ (bits >>> 32));'); + }); + indent.newln(); + indent.writeScoped('static int pigeonFloatHashCode(float f) {', '}', () { + indent.writeln( + '// Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes.', + ); + indent.writeln('if (f == 0.0f) f = 0.0f;'); + indent.writeln('return Float.floatToIntBits(f);'); + }); + indent.newln(); + } + void _writeClassBuilder( InternalJavaOptions generatorOptions, Root root, diff --git a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart index 51a4782ca40e..c6afb4147cdc 100644 --- a/packages/pigeon/lib/src/kotlin/kotlin_generator.dart +++ b/packages/pigeon/lib/src/kotlin/kotlin_generator.dart @@ -1362,14 +1362,14 @@ fun deepEquals(a: Any?, b: Any?): Boolean { if (a is DoubleArray && b is DoubleArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!doubleEquals(a[i], b[i])) return false } return true } if (a is FloatArray && b is FloatArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!floatEquals(a[i], b[i])) return false } return true } @@ -1400,10 +1400,10 @@ fun deepEquals(a: Any?, b: Any?): Boolean { return true } if (a is Double && b is Double) { - return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + return doubleEquals(a, b) } if (a is Float && b is Float) { - return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) + return floatEquals(a, b) } return a == b } @@ -1421,14 +1421,14 @@ fun deepHash(value: Any?): Int { is DoubleArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + doubleHash(item) } result } is FloatArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + floatHash(item) } result } @@ -1447,21 +1447,41 @@ fun deepHash(value: Any?): Int { } result } - is Double -> { - val d = if (value == 0.0) 0.0 else value - val bits = java.lang.Double.doubleToLongBits(d) - (bits xor (bits ushr 32)).toInt() - } - is Float -> { - val f = if (value == 0.0f) 0.0f else value - java.lang.Float.floatToIntBits(f) - } + is Double -> doubleHash(value) + is Float -> floatHash(value) else -> value.hashCode() } } '''); } + void _writeNumberHelpers(Indent indent) { + indent.format(''' +fun doubleEquals(a: Double, b: Double): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) +} + +fun floatEquals(a: Float, b: Float): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) +} + +fun doubleHash(d: Double): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (d == 0.0) 0.0 else d + val bits = java.lang.Double.doubleToLongBits(normalized) + return (bits xor (bits ushr 32)).toInt() +} + +fun floatHash(f: Float): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (f == 0.0f) 0.0f else f + return java.lang.Float.floatToIntBits(normalized) +} +'''); + } + @override void writeGeneralUtilities( InternalKotlinOptions generatorOptions, @@ -1481,6 +1501,7 @@ fun deepHash(value: Any?): Int { _writeWrapError(generatorOptions, indent); } if (root.classes.isNotEmpty) { + _writeNumberHelpers(indent); _writeDeepEquals(generatorOptions, indent); _writeDeepHash(generatorOptions, indent); } diff --git a/packages/pigeon/lib/src/objc/objc_generator.dart b/packages/pigeon/lib/src/objc/objc_generator.dart index d39e9ac622e7..a19c7c668b50 100644 --- a/packages/pigeon/lib/src/objc/objc_generator.dart +++ b/packages/pigeon/lib/src/objc/objc_generator.dart @@ -1671,8 +1671,7 @@ const Map _objcTypeForNonNullableDartTypeMap = void _writeDeepEquals(Indent indent) { indent.format(''' -static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) __attribute__((unused)); -static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { +static BOOL __attribute__((unused)) FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if (a == b) { return YES; } @@ -1682,6 +1681,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; + // Normalize -0.0 to 0.0 and handle NaN equality. return na.doubleValue == nb.doubleValue || (isnan(na.doubleValue) && isnan(nb.doubleValue)); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { @@ -1730,8 +1730,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { void _writeDeepHash(Indent indent) { indent.format(''' -static NSUInteger FLTPigeonDeepHash(id _Nullable value) __attribute__((unused)); -static NSUInteger FLTPigeonDeepHash(id _Nullable value) { +static NSUInteger __attribute__((unused)) FLTPigeonDeepHash(id _Nullable value) { if (value == nil) { return 0; } @@ -1739,9 +1738,11 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { NSNumber *n = (NSNumber *)value; double d = n.doubleValue; if (isnan(d)) { + // Normalize NaN to a consistent hash. return (NSUInteger)0x7FF8000000000000; } if (d == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. d = 0.0; } return @(d).hash; @@ -2170,8 +2171,6 @@ void _writeDataClassDeclaration( '@property(nonatomic, $propertyType$nullability) $fieldType ${field.name};', ); } - indent.writeln('- (BOOL)isEqual:(id)object;'); - indent.writeln('- (NSUInteger)hash;'); indent.writeln('@end'); indent.newln(); } diff --git a/packages/pigeon/lib/src/swift/swift_generator.dart b/packages/pigeon/lib/src/swift/swift_generator.dart index d575e9d0fff4..9afa1be2a57e 100644 --- a/packages/pigeon/lib/src/swift/swift_generator.dart +++ b/packages/pigeon/lib/src/swift/swift_generator.dart @@ -1511,7 +1511,24 @@ private func nilOrValue(_ value: Any?) -> T? { 'deepEquals${generatorOptions.fileSpecificClassNameComponent ?? ''}'; final deepHashName = 'deepHash${generatorOptions.fileSpecificClassNameComponent ?? ''}'; + final doubleEqualsName = + 'doubleEquals${generatorOptions.fileSpecificClassNameComponent ?? ''}'; + final doubleHashName = + 'doubleHash${generatorOptions.fileSpecificClassNameComponent ?? ''}'; indent.format(''' +private func $doubleEqualsName(_ lhs: Double, _ rhs: Double) -> Bool { + return (lhs.isNaN && rhs.isNaN) || lhs == rhs +} + +private func $doubleHashName(_ value: Double, _ hasher: inout Hasher) { + if value.isNaN { + hasher.combine(0x7FF8000000000000) + } else { + // Normalize -0.0 to 0.0 + hasher.combine(value == 0 ? 0 : value) + } +} + func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { let cleanLhs = nilOrValue(lhs) as Any? let cleanRhs = nilOrValue(rhs) as Any? @@ -1540,7 +1557,7 @@ func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsArray, let rhsArray) as ([Double], [Double]): guard lhsArray.count == rhsArray.count else { return false } for (index, element) in lhsArray.enumerated() { - if !$deepEqualsName(element, rhsArray[index]) { + if !$doubleEqualsName(element, rhsArray[index]) { return false } } @@ -1565,7 +1582,7 @@ func $deepEqualsName(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs == rhs + return $doubleEqualsName(lhs, rhs) case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -1579,18 +1596,14 @@ func $deepHashName(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { - if doubleValue.isNaN { - hasher.combine(0x7FF8000000000000) - } else { - hasher.combine(doubleValue) - } + $doubleHashName(doubleValue, &hasher) } else if let valueList = cleanValue as? [Any?] { for item in valueList { $deepHashName(value: item, hasher: &hasher) } } else if let valueList = cleanValue as? [Double] { for item in valueList { - $deepHashName(value: item, hasher: &hasher) + $doubleHashName(item, &hasher) } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { var result = 0 diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index cfed7e2ca478..1bf19274b4f8 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -30,6 +30,29 @@ /** Generated class from Pigeon. */ @SuppressWarnings({"unused", "unchecked", "CodeBlock2Expr", "RedundantSuppression", "serial"}) public class CoreTests { + static boolean pigeonDoubleEquals(double a, double b) { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (a == 0.0 ? 0.0 : a) == (b == 0.0 ? 0.0 : b) || (Double.isNaN(a) && Double.isNaN(b)); + } + + static boolean pigeonFloatEquals(float a, float b) { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (a == 0.0f ? 0.0f : a) == (b == 0.0f ? 0.0f : b) || (Float.isNaN(a) && Float.isNaN(b)); + } + + static int pigeonDoubleHashCode(double d) { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + if (d == 0.0) d = 0.0; + long bits = Double.doubleToLongBits(d); + return (int) (bits ^ (bits >>> 32)); + } + + static int pigeonFloatHashCode(float f) { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + if (f == 0.0f) f = 0.0f; + return Float.floatToIntBits(f); + } + static boolean pigeonDeepEquals(Object a, Object b) { if (a == b) { return true; @@ -51,7 +74,7 @@ static boolean pigeonDeepEquals(Object a, Object b) { double[] db = (double[]) b; if (da.length != db.length) return false; for (int i = 0; i < da.length; i++) { - if (!pigeonDeepEquals(da[i], db[i])) { + if (!pigeonDoubleEquals(da[i], db[i])) { return false; } } @@ -87,6 +110,8 @@ static boolean pigeonDeepEquals(Object a, Object b) { if (pigeonDeepEquals(valueA, valueB)) { found = true; break; + } else { + return false; } } } @@ -97,12 +122,10 @@ static boolean pigeonDeepEquals(Object a, Object b) { return true; } if (a instanceof Double && b instanceof Double) { - return ((double) a == 0.0 ? 0.0 : (double) a) == ((double) b == 0.0 ? 0.0 : (double) b) - || (Double.isNaN((double) a) && Double.isNaN((double) b)); + return pigeonDoubleEquals((double) a, (double) b); } if (a instanceof Float && b instanceof Float) { - return ((float) a == 0.0f ? 0.0f : (float) a) == ((float) b == 0.0f ? 0.0f : (float) b) - || (Float.isNaN((float) a) && Float.isNaN((float) b)); + return pigeonFloatEquals((float) a, (float) b); } return a.equals(b); } @@ -124,7 +147,7 @@ static int pigeonDeepHashCode(Object value) { double[] da = (double[]) value; int result = 1; for (double d : da) { - result = 31 * result + pigeonDeepHashCode(d); + result = 31 * result + pigeonDoubleHashCode(d); } return result; } @@ -150,15 +173,10 @@ static int pigeonDeepHashCode(Object value) { return result; } if (value instanceof Double) { - double d = (double) value; - if (d == 0.0) d = 0.0; - long bits = Double.doubleToLongBits(d); - return (int) (bits ^ (bits >>> 32)); + return pigeonDoubleHashCode((double) value); } if (value instanceof Float) { - float f = (float) value; - if (f == 0.0f) f = 0.0f; - return Float.floatToIntBits(f); + return pigeonFloatHashCode((float) value); } return value.hashCode(); } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m index 2e8081eda8dd..e9f7e0ef2c52 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/CoreTests.gen.m @@ -13,8 +13,7 @@ @import Flutter; #endif -static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) __attribute__((unused)); -static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { +static BOOL __attribute__((unused)) FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if (a == b) { return YES; } @@ -24,6 +23,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { if ([a isKindOfClass:[NSNumber class]] && [b isKindOfClass:[NSNumber class]]) { NSNumber *na = (NSNumber *)a; NSNumber *nb = (NSNumber *)b; + // Normalize -0.0 to 0.0 and handle NaN equality. return na.doubleValue == nb.doubleValue || (isnan(na.doubleValue) && isnan(nb.doubleValue)); } if ([a isKindOfClass:[NSArray class]] && [b isKindOfClass:[NSArray class]]) { @@ -68,8 +68,7 @@ static BOOL FLTPigeonDeepEquals(id _Nullable a, id _Nullable b) { return [a isEqual:b]; } -static NSUInteger FLTPigeonDeepHash(id _Nullable value) __attribute__((unused)); -static NSUInteger FLTPigeonDeepHash(id _Nullable value) { +static NSUInteger __attribute__((unused)) FLTPigeonDeepHash(id _Nullable value) { if (value == nil) { return 0; } @@ -77,9 +76,11 @@ static NSUInteger FLTPigeonDeepHash(id _Nullable value) { NSNumber *n = (NSNumber *)value; double d = n.doubleValue; if (isnan(d)) { + // Normalize NaN to a consistent hash. return (NSUInteger)0x7FF8000000000000; } if (d == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. d = 0.0; } return @(d).hash; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h index 5431650656e1..2b620a11104a 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/darwin/alternate_language_test_plugin/Sources/alternate_language_test_plugin/include/alternate_language_test_plugin/CoreTests.gen.h @@ -48,8 +48,6 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @interface FLTUnusedClass : NSObject + (instancetype)makeWithAField:(nullable id)aField; @property(nonatomic, strong, nullable) id aField; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; @end /// A class containing all supported types. @@ -112,8 +110,6 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy) NSDictionary *objectMap; @property(nonatomic, copy) NSDictionary *> *listMap; @property(nonatomic, copy) NSDictionary *> *mapMap; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; @end /// A class containing all supported nullable types. @@ -183,8 +179,6 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy, nullable) NSDictionary *> *mapMap; @property(nonatomic, copy, nullable) NSDictionary *recursiveClassMap; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; @end /// The primary purpose for this class is to ensure coverage of Swift structs @@ -248,8 +242,6 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy, nullable) NSDictionary *objectMap; @property(nonatomic, copy, nullable) NSDictionary *> *listMap; @property(nonatomic, copy, nullable) NSDictionary *> *mapMap; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; @end /// A class for testing nested class handling. @@ -282,16 +274,12 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy) NSDictionary *classMap; @property(nonatomic, copy, nullable) NSDictionary *nullableClassMap; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; @end /// A data class containing a List, used in unit tests. @interface FLTTestMessage : NSObject + (instancetype)makeWithTestList:(nullable NSArray *)testList; @property(nonatomic, copy, nullable) NSArray *testList; -- (BOOL)isEqual:(id)object; -- (NSUInteger)hash; @end /// The codec used by all APIs. diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 6291aa8d3013..b6e4374fa70d 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -103,9 +103,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index ff0354b19531..cf5e3ef39b93 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -103,9 +103,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart index 9080f3830a00..ac3db8d170cd 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/event_channel_tests.gen.dart @@ -64,9 +64,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index 3d4da1a4d349..dc9fe75689e7 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -89,9 +89,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 0d4dfa358b6f..61d19f3d23c9 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -103,9 +103,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index b224a4fdd4e6..d36c6324aab2 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -103,9 +103,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 6e18fe34b131..98f15bccd4af 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -103,9 +103,11 @@ int _deepHash(Object? value) { return result; } if (value is double && value.isNaN) { + // Normalize NaN to a consistent hash. return 0x7FF8000000000000.hashCode; } if (value is double && value == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return 0.0.hashCode; } return value.hashCode; diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index f99adf777d4d..b5eec31bf9c4 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -38,6 +38,29 @@ private object CoreTestsPigeonUtils { } } + fun doubleEquals(a: Double, b: Double): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + + fun floatEquals(a: Float, b: Float): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) + } + + fun doubleHash(d: Double): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (d == 0.0) 0.0 else d + val bits = java.lang.Double.doubleToLongBits(normalized) + return (bits xor (bits ushr 32)).toInt() + } + + fun floatHash(f: Float): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (f == 0.0f) 0.0f else f + return java.lang.Float.floatToIntBits(normalized) + } + fun deepEquals(a: Any?, b: Any?): Boolean { if (a === b) { return true @@ -54,14 +77,14 @@ private object CoreTestsPigeonUtils { if (a is DoubleArray && b is DoubleArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!doubleEquals(a[i], b[i])) return false } return true } if (a is FloatArray && b is FloatArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!floatEquals(a[i], b[i])) return false } return true } @@ -91,11 +114,10 @@ private object CoreTestsPigeonUtils { return true } if (a is Double && b is Double) { - return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + return doubleEquals(a, b) } if (a is Float && b is Float) { - return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || - (a.isNaN() && b.isNaN()) + return floatEquals(a, b) } return a == b } @@ -109,14 +131,14 @@ private object CoreTestsPigeonUtils { is DoubleArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + doubleHash(item) } result } is FloatArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + floatHash(item) } result } @@ -135,15 +157,8 @@ private object CoreTestsPigeonUtils { } result } - is Double -> { - val d = if (value == 0.0) 0.0 else value - val bits = java.lang.Double.doubleToLongBits(d) - (bits xor (bits ushr 32)).toInt() - } - is Float -> { - val f = if (value == 0.0f) 0.0f else value - java.lang.Float.floatToIntBits(f) - } + is Double -> doubleHash(value) + is Float -> floatHash(value) else -> value.hashCode() } } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt index 21687d0c129e..ba1bdae7763f 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/EventChannelTests.gen.kt @@ -16,6 +16,29 @@ import java.io.ByteArrayOutputStream import java.nio.ByteBuffer private object EventChannelTestsPigeonUtils { + fun doubleEquals(a: Double, b: Double): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + } + + fun floatEquals(a: Float, b: Float): Boolean { + // Normalize -0.0 to 0.0 and handle NaN equality. + return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || (a.isNaN() && b.isNaN()) + } + + fun doubleHash(d: Double): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (d == 0.0) 0.0 else d + val bits = java.lang.Double.doubleToLongBits(normalized) + return (bits xor (bits ushr 32)).toInt() + } + + fun floatHash(f: Float): Int { + // Normalize -0.0 to 0.0 and handle NaN to ensure consistent hash codes. + val normalized = if (f == 0.0f) 0.0f else f + return java.lang.Float.floatToIntBits(normalized) + } + fun deepEquals(a: Any?, b: Any?): Boolean { if (a === b) { return true @@ -32,14 +55,14 @@ private object EventChannelTestsPigeonUtils { if (a is DoubleArray && b is DoubleArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!doubleEquals(a[i], b[i])) return false } return true } if (a is FloatArray && b is FloatArray) { if (a.size != b.size) return false for (i in a.indices) { - if (!deepEquals(a[i], b[i])) return false + if (!floatEquals(a[i], b[i])) return false } return true } @@ -69,11 +92,10 @@ private object EventChannelTestsPigeonUtils { return true } if (a is Double && b is Double) { - return (if (a == 0.0) 0.0 else a) == (if (b == 0.0) 0.0 else b) || (a.isNaN() && b.isNaN()) + return doubleEquals(a, b) } if (a is Float && b is Float) { - return (if (a == 0.0f) 0.0f else a) == (if (b == 0.0f) 0.0f else b) || - (a.isNaN() && b.isNaN()) + return floatEquals(a, b) } return a == b } @@ -87,14 +109,14 @@ private object EventChannelTestsPigeonUtils { is DoubleArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + doubleHash(item) } result } is FloatArray -> { var result = 1 for (item in value) { - result = 31 * result + deepHash(item) + result = 31 * result + floatHash(item) } result } @@ -113,15 +135,8 @@ private object EventChannelTestsPigeonUtils { } result } - is Double -> { - val d = if (value == 0.0) 0.0 else value - val bits = java.lang.Double.doubleToLongBits(d) - (bits xor (bits ushr 32)).toInt() - } - is Float -> { - val f = if (value == 0.0f) 0.0f else value - java.lang.Float.floatToIntBits(f) - } + is Double -> doubleHash(value) + is Float -> floatHash(value) else -> value.hashCode() } } diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift index 54ec3b1ca98e..1ebfa898b1ef 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/CoreTests.gen.swift @@ -74,6 +74,19 @@ private func nilOrValue(_ value: Any?) -> T? { return value as! T? } +private func doubleEqualsCoreTests(_ lhs: Double, _ rhs: Double) -> Bool { + return (lhs.isNaN && rhs.isNaN) || lhs == rhs +} + +private func doubleHashCoreTests(_ value: Double, _ hasher: inout Hasher) { + if value.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else { + // Normalize -0.0 to 0.0 + hasher.combine(value == 0 ? 0 : value) + } +} + func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { let cleanLhs = nilOrValue(lhs) as Any? let cleanRhs = nilOrValue(rhs) as Any? @@ -102,7 +115,7 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsArray, let rhsArray) as ([Double], [Double]): guard lhsArray.count == rhsArray.count else { return false } for (index, element) in lhsArray.enumerated() { - if !deepEqualsCoreTests(element, rhsArray[index]) { + if !doubleEqualsCoreTests(element, rhsArray[index]) { return false } } @@ -127,7 +140,7 @@ func deepEqualsCoreTests(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs == rhs + return doubleEqualsCoreTests(lhs, rhs) case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -141,18 +154,14 @@ func deepHashCoreTests(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { - if doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) - } else { - hasher.combine(doubleValue) - } + doubleHashCoreTests(doubleValue, &hasher) } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashCoreTests(value: item, hasher: &hasher) } } else if let valueList = cleanValue as? [Double] { for item in valueList { - deepHashCoreTests(value: item, hasher: &hasher) + doubleHashCoreTests(item, &hasher) } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { var result = 0 diff --git a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift index 9b2c43e0ecc1..ac5e8d7dea66 100644 --- a/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/darwin/test_plugin/Sources/test_plugin/EventChannelTests.gen.swift @@ -42,6 +42,19 @@ private func nilOrValue(_ value: Any?) -> T? { return value as! T? } +private func doubleEqualsEventChannelTests(_ lhs: Double, _ rhs: Double) -> Bool { + return (lhs.isNaN && rhs.isNaN) || lhs == rhs +} + +private func doubleHashEventChannelTests(_ value: Double, _ hasher: inout Hasher) { + if value.isNaN { + hasher.combine(0x7FF8_0000_0000_0000) + } else { + // Normalize -0.0 to 0.0 + hasher.combine(value == 0 ? 0 : value) + } +} + func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { let cleanLhs = nilOrValue(lhs) as Any? let cleanRhs = nilOrValue(rhs) as Any? @@ -70,7 +83,7 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { case (let lhsArray, let rhsArray) as ([Double], [Double]): guard lhsArray.count == rhsArray.count else { return false } for (index, element) in lhsArray.enumerated() { - if !deepEqualsEventChannelTests(element, rhsArray[index]) { + if !doubleEqualsEventChannelTests(element, rhsArray[index]) { return false } } @@ -95,7 +108,7 @@ func deepEqualsEventChannelTests(_ lhs: Any?, _ rhs: Any?) -> Bool { return true case (let lhs as Double, let rhs as Double): - return (lhs.isNaN && rhs.isNaN) || lhs == rhs + return doubleEqualsEventChannelTests(lhs, rhs) case (let lhsHashable, let rhsHashable) as (AnyHashable, AnyHashable): return lhsHashable == rhsHashable @@ -109,18 +122,14 @@ func deepHashEventChannelTests(value: Any?, hasher: inout Hasher) { let cleanValue = nilOrValue(value) as Any? if let cleanValue = cleanValue { if let doubleValue = cleanValue as? Double { - if doubleValue.isNaN { - hasher.combine(0x7FF8_0000_0000_0000) - } else { - hasher.combine(doubleValue) - } + doubleHashEventChannelTests(doubleValue, &hasher) } else if let valueList = cleanValue as? [Any?] { for item in valueList { deepHashEventChannelTests(value: item, hasher: &hasher) } } else if let valueList = cleanValue as? [Double] { for item in valueList { - deepHashEventChannelTests(value: item, hasher: &hasher) + doubleHashEventChannelTests(item, &hasher) } } else if let valueDict = cleanValue as? [AnyHashable: Any?] { var result = 0 diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index a4b835babe38..2eb72f58e03b 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -24,8 +24,12 @@ static gboolean G_GNUC_UNUSED flpigeon_equals_double(double a, double b) { return (a == b) || (std::isnan(a) && std::isnan(b)); } static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } if (fl_value_get_type(a) != fl_value_get_type(b)) { return FALSE; } @@ -56,27 +60,36 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { fl_value_get_length(a) * sizeof(int64_t)) == 0; case FL_VALUE_TYPE_FLOAT_LIST: { size_t len = fl_value_get_length(a); - if (len != fl_value_get_length(b)) return FALSE; + if (len != fl_value_get_length(b)) { + return FALSE; + } const double* a_data = fl_value_get_float_list(a); const double* b_data = fl_value_get_float_list(b); for (size_t i = 0; i < len; i++) { - if (!flpigeon_equals_double(a_data[i], b_data[i])) return FALSE; + if (!flpigeon_equals_double(a_data[i], b_data[i])) { + return FALSE; + } } return TRUE; } case FL_VALUE_TYPE_LIST: { size_t len = fl_value_get_length(a); - if (len != fl_value_get_length(b)) return FALSE; + if (len != fl_value_get_length(b)) { + return FALSE; + } for (size_t i = 0; i < len; i++) { if (!flpigeon_deep_equals(fl_value_get_list_value(a, i), - fl_value_get_list_value(b, i))) + fl_value_get_list_value(b, i))) { return FALSE; + } } return TRUE; } case FL_VALUE_TYPE_MAP: { size_t len = fl_value_get_length(a); - if (len != fl_value_get_length(b)) return FALSE; + if (len != fl_value_get_length(b)) { + return FALSE; + } for (size_t i = 0; i < len; i++) { FlValue* key = fl_value_get_map_key(a, i); FlValue* val = fl_value_get_map_value(a, i); @@ -88,10 +101,14 @@ static gboolean G_GNUC_UNUSED flpigeon_deep_equals(FlValue* a, FlValue* b) { if (flpigeon_deep_equals(val, b_val)) { found = TRUE; break; + } else { + return FALSE; } } } - if (!found) return FALSE; + if (!found) { + return FALSE; + } } return TRUE; } @@ -234,8 +251,12 @@ core_tests_pigeon_test_unused_class_new_from_list(FlValue* values) { gboolean core_tests_pigeon_test_unused_class_equals( CoreTestsPigeonTestUnusedClass* a, CoreTestsPigeonTestUnusedClass* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } if (!flpigeon_deep_equals(a->a_field, b->a_field)) { return FALSE; } @@ -680,8 +701,12 @@ core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { gboolean core_tests_pigeon_test_all_types_equals( CoreTestsPigeonTestAllTypes* a, CoreTestsPigeonTestAllTypes* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } if (a->a_bool != b->a_bool) { return FALSE; } @@ -695,35 +720,52 @@ gboolean core_tests_pigeon_test_all_types_equals( return FALSE; } if (a->a_byte_array != b->a_byte_array) { - if (a->a_byte_array == nullptr || b->a_byte_array == nullptr) return FALSE; - if (a->a_byte_array_length != b->a_byte_array_length) return FALSE; + if (a->a_byte_array == nullptr || b->a_byte_array == nullptr) { + return FALSE; + } + if (a->a_byte_array_length != b->a_byte_array_length) { + return FALSE; + } if (memcmp(a->a_byte_array, b->a_byte_array, - a->a_byte_array_length * sizeof(uint8_t)) != 0) + a->a_byte_array_length * sizeof(uint8_t)) != 0) { return FALSE; + } } if (a->a4_byte_array != b->a4_byte_array) { - if (a->a4_byte_array == nullptr || b->a4_byte_array == nullptr) + if (a->a4_byte_array == nullptr || b->a4_byte_array == nullptr) { return FALSE; - if (a->a4_byte_array_length != b->a4_byte_array_length) return FALSE; + } + if (a->a4_byte_array_length != b->a4_byte_array_length) { + return FALSE; + } if (memcmp(a->a4_byte_array, b->a4_byte_array, - a->a4_byte_array_length * sizeof(int32_t)) != 0) + a->a4_byte_array_length * sizeof(int32_t)) != 0) { return FALSE; + } } if (a->a8_byte_array != b->a8_byte_array) { - if (a->a8_byte_array == nullptr || b->a8_byte_array == nullptr) + if (a->a8_byte_array == nullptr || b->a8_byte_array == nullptr) { + return FALSE; + } + if (a->a8_byte_array_length != b->a8_byte_array_length) { return FALSE; - if (a->a8_byte_array_length != b->a8_byte_array_length) return FALSE; + } if (memcmp(a->a8_byte_array, b->a8_byte_array, - a->a8_byte_array_length * sizeof(int64_t)) != 0) + a->a8_byte_array_length * sizeof(int64_t)) != 0) { return FALSE; + } } if (a->a_float_array != b->a_float_array) { - if (a->a_float_array == nullptr || b->a_float_array == nullptr) + if (a->a_float_array == nullptr || b->a_float_array == nullptr) { + return FALSE; + } + if (a->a_float_array_length != b->a_float_array_length) { return FALSE; - if (a->a_float_array_length != b->a_float_array_length) return FALSE; + } for (size_t i = 0; i < a->a_float_array_length; i++) { - if (!flpigeon_equals_double(a->a_float_array[i], b->a_float_array[i])) + if (!flpigeon_equals_double(a->a_float_array[i], b->a_float_array[i])) { return FALSE; + } } } if (a->an_enum != b->an_enum) { @@ -1693,80 +1735,109 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { gboolean core_tests_pigeon_test_all_nullable_types_equals( CoreTestsPigeonTestAllNullableTypes* a, CoreTestsPigeonTestAllNullableTypes* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; - if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } + if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) { return FALSE; + } if (a->a_nullable_bool != nullptr && - *a->a_nullable_bool != *b->a_nullable_bool) + *a->a_nullable_bool != *b->a_nullable_bool) { return FALSE; - if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) + } + if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) { return FALSE; - if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) + } + if (a->a_nullable_int != nullptr && + *a->a_nullable_int != *b->a_nullable_int) { return FALSE; - if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) + } + if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) { return FALSE; + } if (a->a_nullable_int64 != nullptr && - *a->a_nullable_int64 != *b->a_nullable_int64) + *a->a_nullable_int64 != *b->a_nullable_int64) { return FALSE; - if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) + } + if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) { return FALSE; + } if (a->a_nullable_double != nullptr && - !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) + !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) { return FALSE; + } if (a->a_nullable_byte_array != b->a_nullable_byte_array) { if (a->a_nullable_byte_array == nullptr || - b->a_nullable_byte_array == nullptr) + b->a_nullable_byte_array == nullptr) { return FALSE; - if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) + } + if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) { return FALSE; + } if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, - a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) + a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) { return FALSE; + } } if (a->a_nullable4_byte_array != b->a_nullable4_byte_array) { if (a->a_nullable4_byte_array == nullptr || - b->a_nullable4_byte_array == nullptr) + b->a_nullable4_byte_array == nullptr) { return FALSE; - if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) + } + if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) { return FALSE; + } if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, - a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) + a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) { return FALSE; + } } if (a->a_nullable8_byte_array != b->a_nullable8_byte_array) { if (a->a_nullable8_byte_array == nullptr || - b->a_nullable8_byte_array == nullptr) + b->a_nullable8_byte_array == nullptr) { return FALSE; - if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) + } + if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) { return FALSE; + } if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, - a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) + a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) { return FALSE; + } } if (a->a_nullable_float_array != b->a_nullable_float_array) { if (a->a_nullable_float_array == nullptr || - b->a_nullable_float_array == nullptr) + b->a_nullable_float_array == nullptr) { return FALSE; - if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) + } + if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) { return FALSE; + } for (size_t i = 0; i < a->a_nullable_float_array_length; i++) { if (!flpigeon_equals_double(a->a_nullable_float_array[i], - b->a_nullable_float_array[i])) + b->a_nullable_float_array[i])) { return FALSE; + } } } - if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) + if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) { return FALSE; + } if (a->a_nullable_enum != nullptr && - *a->a_nullable_enum != *b->a_nullable_enum) + *a->a_nullable_enum != *b->a_nullable_enum) { return FALSE; + } if ((a->another_nullable_enum == nullptr) != - (b->another_nullable_enum == nullptr)) + (b->another_nullable_enum == nullptr)) { return FALSE; + } if (a->another_nullable_enum != nullptr && - *a->another_nullable_enum != *b->another_nullable_enum) + *a->another_nullable_enum != *b->another_nullable_enum) { return FALSE; + } if (g_strcmp0(a->a_nullable_string, b->a_nullable_string) != 0) { return FALSE; } @@ -2735,80 +2806,109 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( gboolean core_tests_pigeon_test_all_nullable_types_without_recursion_equals( CoreTestsPigeonTestAllNullableTypesWithoutRecursion* a, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; - if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } + if ((a->a_nullable_bool == nullptr) != (b->a_nullable_bool == nullptr)) { return FALSE; + } if (a->a_nullable_bool != nullptr && - *a->a_nullable_bool != *b->a_nullable_bool) + *a->a_nullable_bool != *b->a_nullable_bool) { return FALSE; - if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) + } + if ((a->a_nullable_int == nullptr) != (b->a_nullable_int == nullptr)) { return FALSE; - if (a->a_nullable_int != nullptr && *a->a_nullable_int != *b->a_nullable_int) + } + if (a->a_nullable_int != nullptr && + *a->a_nullable_int != *b->a_nullable_int) { return FALSE; - if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) + } + if ((a->a_nullable_int64 == nullptr) != (b->a_nullable_int64 == nullptr)) { return FALSE; + } if (a->a_nullable_int64 != nullptr && - *a->a_nullable_int64 != *b->a_nullable_int64) + *a->a_nullable_int64 != *b->a_nullable_int64) { return FALSE; - if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) + } + if ((a->a_nullable_double == nullptr) != (b->a_nullable_double == nullptr)) { return FALSE; + } if (a->a_nullable_double != nullptr && - !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) + !flpigeon_equals_double(*a->a_nullable_double, *b->a_nullable_double)) { return FALSE; + } if (a->a_nullable_byte_array != b->a_nullable_byte_array) { if (a->a_nullable_byte_array == nullptr || - b->a_nullable_byte_array == nullptr) + b->a_nullable_byte_array == nullptr) { return FALSE; - if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) + } + if (a->a_nullable_byte_array_length != b->a_nullable_byte_array_length) { return FALSE; + } if (memcmp(a->a_nullable_byte_array, b->a_nullable_byte_array, - a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) + a->a_nullable_byte_array_length * sizeof(uint8_t)) != 0) { return FALSE; + } } if (a->a_nullable4_byte_array != b->a_nullable4_byte_array) { if (a->a_nullable4_byte_array == nullptr || - b->a_nullable4_byte_array == nullptr) + b->a_nullable4_byte_array == nullptr) { return FALSE; - if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) + } + if (a->a_nullable4_byte_array_length != b->a_nullable4_byte_array_length) { return FALSE; + } if (memcmp(a->a_nullable4_byte_array, b->a_nullable4_byte_array, - a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) + a->a_nullable4_byte_array_length * sizeof(int32_t)) != 0) { return FALSE; + } } if (a->a_nullable8_byte_array != b->a_nullable8_byte_array) { if (a->a_nullable8_byte_array == nullptr || - b->a_nullable8_byte_array == nullptr) + b->a_nullable8_byte_array == nullptr) { return FALSE; - if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) + } + if (a->a_nullable8_byte_array_length != b->a_nullable8_byte_array_length) { return FALSE; + } if (memcmp(a->a_nullable8_byte_array, b->a_nullable8_byte_array, - a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) + a->a_nullable8_byte_array_length * sizeof(int64_t)) != 0) { return FALSE; + } } if (a->a_nullable_float_array != b->a_nullable_float_array) { if (a->a_nullable_float_array == nullptr || - b->a_nullable_float_array == nullptr) + b->a_nullable_float_array == nullptr) { return FALSE; - if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) + } + if (a->a_nullable_float_array_length != b->a_nullable_float_array_length) { return FALSE; + } for (size_t i = 0; i < a->a_nullable_float_array_length; i++) { if (!flpigeon_equals_double(a->a_nullable_float_array[i], - b->a_nullable_float_array[i])) + b->a_nullable_float_array[i])) { return FALSE; + } } } - if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) + if ((a->a_nullable_enum == nullptr) != (b->a_nullable_enum == nullptr)) { return FALSE; + } if (a->a_nullable_enum != nullptr && - *a->a_nullable_enum != *b->a_nullable_enum) + *a->a_nullable_enum != *b->a_nullable_enum) { return FALSE; + } if ((a->another_nullable_enum == nullptr) != - (b->another_nullable_enum == nullptr)) + (b->another_nullable_enum == nullptr)) { return FALSE; + } if (a->another_nullable_enum != nullptr && - *a->another_nullable_enum != *b->another_nullable_enum) + *a->another_nullable_enum != *b->another_nullable_enum) { return FALSE; + } if (g_strcmp0(a->a_nullable_string, b->a_nullable_string) != 0) { return FALSE; } @@ -3152,8 +3252,12 @@ core_tests_pigeon_test_all_classes_wrapper_new_from_list(FlValue* values) { gboolean core_tests_pigeon_test_all_classes_wrapper_equals( CoreTestsPigeonTestAllClassesWrapper* a, CoreTestsPigeonTestAllClassesWrapper* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } if (!core_tests_pigeon_test_all_nullable_types_equals( a->all_nullable_types, b->all_nullable_types)) { return FALSE; @@ -3262,8 +3366,12 @@ core_tests_pigeon_test_test_message_new_from_list(FlValue* values) { gboolean core_tests_pigeon_test_test_message_equals( CoreTestsPigeonTestTestMessage* a, CoreTestsPigeonTestTestMessage* b) { - if (a == b) return TRUE; - if (a == nullptr || b == nullptr) return FALSE; + if (a == b) { + return TRUE; + } + if (a == nullptr || b == nullptr) { + return FALSE; + } if (!flpigeon_deep_equals(a->test_list, b->test_list)) { return FALSE; } diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 9f2eb90bb757..deb17caadc31 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -64,9 +64,13 @@ bool PigeonInternalDeepEquals(const T& a, const T& b) { template bool PigeonInternalDeepEquals(const std::vector& a, const std::vector& b) { - if (a.size() != b.size()) return false; + if (a.size() != b.size()) { + return false; + } for (size_t i = 0; i < a.size(); ++i) { - if (!PigeonInternalDeepEquals(a[i], b[i])) return false; + if (!PigeonInternalDeepEquals(a[i], b[i])) { + return false; + } } return true; } @@ -74,7 +78,9 @@ bool PigeonInternalDeepEquals(const std::vector& a, template bool PigeonInternalDeepEquals(const std::map& a, const std::map& b) { - if (a.size() != b.size()) return false; + if (a.size() != b.size()) { + return false; + } for (const auto& kv : a) { bool found = false; for (const auto& b_kv : b) { @@ -87,34 +93,47 @@ bool PigeonInternalDeepEquals(const std::map& a, } } } - if (!found) return false; + if (!found) { + return false; + } } return true; } inline bool PigeonInternalDeepEquals(const double& a, const double& b) { + // Normalize -0.0 to 0.0 and handle NaN equality. return (a == b) || (std::isnan(a) && std::isnan(b)); } template bool PigeonInternalDeepEquals(const std::optional& a, const std::optional& b) { - if (!a && !b) return true; - if (!a || !b) return false; + if (!a && !b) { + return true; + } + if (!a || !b) { + return false; + } return PigeonInternalDeepEquals(*a, *b); } template bool PigeonInternalDeepEquals(const std::unique_ptr& a, const std::unique_ptr& b) { - if (!a && !b) return true; - if (!a || !b) return false; + if (!a && !b) { + return true; + } + if (!a || !b) { + return false; + } return PigeonInternalDeepEquals(*a, *b); } inline bool PigeonInternalDeepEquals(const ::flutter::EncodableValue& a, const ::flutter::EncodableValue& b) { - if (a.index() != b.index()) return false; + if (a.index() != b.index()) { + return false; + } if (const double* da = std::get_if(&a)) { return PigeonInternalDeepEquals(*da, std::get(b)); } else if (const ::flutter::EncodableList* la = @@ -172,9 +191,11 @@ size_t PigeonInternalDeepHash(const std::map& v) { inline size_t PigeonInternalDeepHash(const double& v) { if (std::isnan(v)) { + // Normalize NaN to a consistent hash. return std::hash()(std::numeric_limits::quiet_NaN()); } if (v == 0.0) { + // Normalize -0.0 to 0.0 so they have the same hash code. return std::hash()(0.0); } return std::hash()(v); diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index 07bdba94a6e5..24ca4540d6a8 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -90,6 +90,8 @@ class UnusedClass { bool operator==(const UnusedClass& other) const; bool operator!=(const UnusedClass& other) const; + /// Returns a hash code value for the object. This method is supported for the + /// benefit of hash tables. size_t Hash() const; private: @@ -222,6 +224,8 @@ class AllTypes { bool operator==(const AllTypes& other) const; bool operator!=(const AllTypes& other) const; + /// Returns a hash code value for the object. This method is supported for the + /// benefit of hash tables. size_t Hash() const; private: @@ -435,6 +439,8 @@ class AllNullableTypes { bool operator==(const AllNullableTypes& other) const; bool operator!=(const AllNullableTypes& other) const; + /// Returns a hash code value for the object. This method is supported for the + /// benefit of hash tables. size_t Hash() const; private: @@ -634,6 +640,8 @@ class AllNullableTypesWithoutRecursion { bool operator==(const AllNullableTypesWithoutRecursion& other) const; bool operator!=(const AllNullableTypesWithoutRecursion& other) const; + /// Returns a hash code value for the object. This method is supported for the + /// benefit of hash tables. size_t Hash() const; private: @@ -737,6 +745,8 @@ class AllClassesWrapper { bool operator==(const AllClassesWrapper& other) const; bool operator!=(const AllClassesWrapper& other) const; + /// Returns a hash code value for the object. This method is supported for the + /// benefit of hash tables. size_t Hash() const; private: @@ -777,6 +787,8 @@ class TestMessage { bool operator==(const TestMessage& other) const; bool operator!=(const TestMessage& other) const; + /// Returns a hash code value for the object. This method is supported for the + /// benefit of hash tables. size_t Hash() const; private: diff --git a/packages/pigeon/test/cpp_generator_test.dart b/packages/pigeon/test/cpp_generator_test.dart index 599b1fdf766c..0c77bed2b1de 100644 --- a/packages/pigeon/test/cpp_generator_test.dart +++ b/packages/pigeon/test/cpp_generator_test.dart @@ -2672,10 +2672,6 @@ void main() { ); final code = sink.toString(); expect(code, contains('bool Foo::operator==(const Foo& other) const {')); - expect( - code, - contains('return PigeonInternalDeepEquals(bar_, other.bar_);'), - ); } }); @@ -2726,10 +2722,7 @@ void main() { dartPackageName: DEFAULT_PACKAGE_NAME, ); final code = sink.toString(); - expect( - code, - contains('return PigeonInternalDeepEquals(nested_, other.nested_);'), - ); + expect(code, contains('bool Foo::operator==(const Foo& other) const {')); }); test('data classes implement Hash', () { @@ -2787,15 +2780,6 @@ void main() { ); final code = sink.toString(); expect(code, contains('size_t Input::Hash() const {')); - expect( - code, - contains('result = result * 31 + PigeonInternalDeepHash(field1_);'), - ); - expect(code, contains('size_t PigeonInternalDeepHash(const Input& v) {')); - expect( - code, - contains('result = result * 31 + PigeonInternalDeepHash(val);'), - ); } }); } diff --git a/packages/pigeon/test/dart_generator_test.dart b/packages/pigeon/test/dart_generator_test.dart index b4b2525c52e5..88ec7f5f9ecc 100644 --- a/packages/pigeon/test/dart_generator_test.dart +++ b/packages/pigeon/test/dart_generator_test.dart @@ -2105,17 +2105,7 @@ name: foobar ); final code = sink.toString(); expect(code, contains('bool operator ==(Object other) {')); - expect( - code, - contains('other is! Foobar || other.runtimeType != runtimeType'), - ); - expect(code, contains('_deepEquals(field1, other.field1)')); - expect( - code, - contains( - 'int get hashCode => _deepHash([runtimeType, ..._toList()]);', - ), - ); + expect(code, contains('int get hashCode =>')); }); test('data class equality multi-field', () { @@ -2147,13 +2137,6 @@ name: foobar ); final code = sink.toString(); expect(code, contains('bool operator ==(Object other) {')); - expect(code, contains('_deepEquals(field1, other.field1) &&')); - expect(code, contains('_deepEquals(field2, other.field2)')); - expect( - code, - contains( - 'int get hashCode => _deepHash([runtimeType, ..._toList()]);', - ), - ); + expect(code, contains('int get hashCode =>')); }); } diff --git a/packages/pigeon/test/gobject_generator_test.dart b/packages/pigeon/test/gobject_generator_test.dart index 2fe7739fdb20..8f44885a4617 100644 --- a/packages/pigeon/test/gobject_generator_test.dart +++ b/packages/pigeon/test/gobject_generator_test.dart @@ -1079,19 +1079,6 @@ void main() { final code = sink.toString(); expect(code, contains('gboolean test_package_input_equals(')); expect(code, contains('guint test_package_input_hash(')); - expect( - code, - contains( - 'if (!flpigeon_equals_double(a->some_double, b->some_double)) {', - ), - ); - expect( - code, - contains( - 'result = result * 31 + flpigeon_hash_double(self->some_double);', - ), - ); - expect(code, contains('memcmp(a->some_bytes, b->some_bytes')); } }); } diff --git a/packages/pigeon/test/java_generator_test.dart b/packages/pigeon/test/java_generator_test.dart index 894033a9cc67..07c00a25d430 100644 --- a/packages/pigeon/test/java_generator_test.dart +++ b/packages/pigeon/test/java_generator_test.dart @@ -1913,9 +1913,6 @@ void main() { ); final code = sink.toString(); expect(code, contains('public boolean equals(Object o) {')); - expect(code, contains('if (o == null || getClass() != o.getClass())')); - expect(code, contains('pigeonDeepEquals(field1, that.field1)')); expect(code, contains('public int hashCode() {')); - expect(code, contains('return pigeonDeepHashCode(fields);')); }); } diff --git a/packages/pigeon/test/kotlin_generator_test.dart b/packages/pigeon/test/kotlin_generator_test.dart index d9429d4513ae..236a28c4b983 100644 --- a/packages/pigeon/test/kotlin_generator_test.dart +++ b/packages/pigeon/test/kotlin_generator_test.dart @@ -2054,18 +2054,7 @@ void main() { ); final code = sink.toString(); expect(code, contains('override fun equals(other: Any?): Boolean {')); - expect( - code, - contains('if (other == null || other.javaClass != javaClass) {'), - ); - expect(code, contains('PigeonUtils.deepEquals(this.field1, other.field1)')); expect(code, contains('override fun hashCode(): Int {')); - expect(code, contains('var result = javaClass.hashCode()')); - expect( - code, - contains('result = 31 * result + PigeonUtils.deepHash(this.field1)'), - ); - expect(code, contains('return result')); }); test('data class equality multi-field', () { @@ -2098,25 +2087,6 @@ void main() { ); final code = sink.toString(); expect(code, contains('override fun equals(other: Any?): Boolean {')); - expect( - code, - contains('if (other == null || other.javaClass != javaClass) {'), - ); - expect( - code, - contains( - 'PigeonUtils.deepEquals(this.field1, other.field1) && PigeonUtils.deepEquals(this.field2, other.field2)', - ), - ); expect(code, contains('override fun hashCode(): Int {')); - expect(code, contains('var result = javaClass.hashCode()')); - expect( - code, - contains('result = 31 * result + PigeonUtils.deepHash(this.field1)'), - ); - expect( - code, - contains('result = 31 * result + PigeonUtils.deepHash(this.field2)'), - ); }); } diff --git a/packages/pigeon/test/objc_generator_test.dart b/packages/pigeon/test/objc_generator_test.dart index 06c3694974f3..fb18833f77bc 100644 --- a/packages/pigeon/test/objc_generator_test.dart +++ b/packages/pigeon/test/objc_generator_test.dart @@ -4075,9 +4075,6 @@ void main() { sink, dartPackageName: DEFAULT_PACKAGE_NAME, ); - final code = sink.toString(); - expect(code, contains('- (BOOL)isEqual:(id)object;')); - expect(code, contains('- (NSUInteger)hash;')); } { final sink = StringBuffer(); @@ -4099,11 +4096,7 @@ void main() { ); final code = sink.toString(); expect(code, contains('- (BOOL)isEqual:(id)object {')); - expect(code, contains('ABCFoo *other = (ABCFoo *)object;')); - expect(code, contains('return self.bar == other.bar;')); expect(code, contains('- (NSUInteger)hash {')); - expect(code, contains('NSUInteger result = [self class].hash;')); - expect(code, contains('result = result * 31 + @(self.bar).hash;')); } }); } diff --git a/packages/pigeon/test/swift_generator_test.dart b/packages/pigeon/test/swift_generator_test.dart index 6c2c2f12d61e..fa567e2b02c8 100644 --- a/packages/pigeon/test/swift_generator_test.dart +++ b/packages/pigeon/test/swift_generator_test.dart @@ -1815,9 +1815,7 @@ void main() { code, contains('static func == (lhs: Foobar, rhs: Foobar) -> Bool {'), ); - expect(code, contains('deepEquals(lhs.field1, rhs.field1)')); expect(code, contains('func hash(into hasher: inout Hasher) {')); - expect(code, contains('deepHash(value: field1, hasher: &hasher)')); }); test('data class equality multi-field', () { @@ -1853,14 +1851,6 @@ void main() { code, contains('static func == (lhs: Foobar, rhs: Foobar) -> Bool {'), ); - expect( - code, - contains( - 'deepEquals(lhs.field1, rhs.field1) && deepEquals(lhs.field2, rhs.field2)', - ), - ); expect(code, contains('func hash(into hasher: inout Hasher) {')); - expect(code, contains('deepHash(value: field1, hasher: &hasher)')); - expect(code, contains('deepHash(value: field2, hasher: &hasher)')); }); }